html,
body {
  margin: 0;
  padding: 0;
  background: #000;
}

.site-header-wrap {
  z-index: 999;
}

.nav-toggle {
  position: relative;
  z-index: 1002;
}

body.menu-open {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

body.menu-open::after {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .section-title::after {
    width: 280px;
  }

  .hero-content {
    max-width: 920px;
    transform: translateY(clamp(180px, 16vh, 260px));
  }

  .lesson-card h3 {
    font-size: 34px;
  }

  .booking-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 1180px) and (orientation: landscape) {
  /* Removed section scroll-margin-top and html scroll-padding-top as per instructions */

  .site-header {
    height: 110px;
  }
  .brand img {
    height: 88px;
  }

  .nav a {
    font-size: 13px; /* slightly smaller nav text */
    letter-spacing: 1.3px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 120px;
    left: 50%;
    right: auto;
    width: min(420px, calc(100vw - 32px));
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 80, 60, 0.18);
    background:
      linear-gradient(180deg, rgba(40, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("../img/noise.png");
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
    z-index: 1001;
    flex-wrap: nowrap;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .nav a {
    width: 100%;
    text-align: center;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 4px 0;
  }

  .nav-social {
    gap: 14px;
    margin-left: 8px;
  }

  .hero-content {
    transform: translateY(clamp(60px, 6vh, 140px));
  }

  .hero-title {
    font-size: clamp(42px, 6vw, 72px);
  }
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: 0;
  }

  section {
    padding: 70px 0;
    scroll-margin-top: 110px; /* offset anchors by header height */
  }

  .site-header {
    height: 110px;
    min-height: 110px;
    padding: 14px 24px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .brand img {
    height: 88px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 120px;
    left: 50%;
    right: auto;
    width: min(420px, calc(100vw - 32px));
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 80, 60, 0.18);
    background:
      linear-gradient(180deg, rgba(40, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("../img/noise.png");
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
    z-index: 1001;
    flex-wrap: nowrap;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .nav a {
    width: 100%;
    text-align: center;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 4px 0;
  }

  .nav-social {
    gap: 14px;
    margin-left: 8px;
  }

  .hero {
    padding-top: 0;
    background-position: center top;
    background-size: cover;
  }

  .hero-center {
    min-height: 100vh;
  }

  .hero-content {
    max-width: 820px;
    transform: translateY(clamp(120px, 10vh, 180px));
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(42px, 7vw, 84px);
  }

  .hero-tagline {
    max-width: 640px;
    font-size: clamp(17px, 2vw, 22px);
  }

  .section-title {
    font-size: 42px;
  }

  .section-title::after {
    width: 180px;
    height: 4px;
  }

  .lessons-grid,
  .lessons-learn-grid,
  .about-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 100%;
  }

  .testimonial-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .booking .container {
    max-width: 1440px;
  }

  .section-nav {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  /* Force tablet landscape to behave like tablet portrait */

  /* Removed section scroll-margin-top rule as per instructions */

  .lessons-grid,
  .lessons-learn-grid,
  .about-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 100%;
  }

  .hero-center {
    min-height: 100vh;
  }

  .hero-content {
    transform: translateY(clamp(40px, 6vh, 120px));
  }

  .hero-title {
    font-size: clamp(40px, 6vw, 72px);
    white-space: normal;
  }

  .hero-tagline {
    max-width: 640px;
  }

  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .testimonial-slide {
    grid-template-columns: 1fr;
  }

  .section-nav {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0 !important;
  }
  html {
    scroll-snap-type: none;
    scroll-padding-top: 10px;
  }

  header.hero,
  section,
  footer,
  .hero,
  .about,
  .testimonials,
  .booking,
  .lessons {
    scroll-snap-align: none;
  }

  .container {
    padding: 0 20px;
  }

  .site-header {
    padding: calc(env(safe-area-inset-top) + 14px) 20px 14px;
    min-height: 0;
    height: auto;
  }

  .site-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent !important;
    border-bottom-color: transparent !important;
    padding-top: 0 !important;
  }

  .brand img {
    height: 76px;
  }

  .nav {
    position: absolute;
    top: 120px;
    left: 50%;
    right: auto;
    width: min(420px, calc(100vw - 32px));
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 80, 60, 0.18);
    background:
      linear-gradient(180deg, rgba(40, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("../img/noise.png");
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
    z-index: 1001;
    flex-wrap: nowrap;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .nav a {
    width: 100%;
    text-align: center;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 4px 0;
  }

  .nav .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
  /* hide socials in mobile menu */
  .nav-social {
    display: none;
  }

  .hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh;
    background-position: center top;
  }

  .hero-center {
    min-height: 100vh;
    padding: 0 0 40px;
  }

  section {
    min-height: auto;
    scroll-margin-top: 60px;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-features {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .about-features > * {
    width: 100%;
    flex: none;
  }

  .section-nav {
    transition: opacity 0.25s ease;
  }

  .hero-content {
    transition: opacity 0.25s ease;
  }
  .nav-social a,
  .nav-social a i {
    font-size: 15px;
  }

  .hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh;
    background-position: center top;
  }

  .hero-center {
    min-height: 100vh;
    padding: 0 0 40px;
  }

  .hero-content {
    transform: translateY(clamp(10px, 3vh, 40px));
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 62px);
    letter-spacing: 2px;
  }

  .hero-title::after {
    width: 90px;
    margin-top: 12px;
  }

  .hero-tagline {
    font-size: 16px;
    letter-spacing: 1.2px;
    margin: 14px auto 20px;
  }

  .btn {
    font-size: 18px;
    padding: 14px 22px;
  }

  .hero-btn {
    width: 100%;
    max-width: 320px;
  }

  .section-title {
    font-size: 34px;
    display: block;
  }

  .section-title::after {
    position: static;
    display: block;
    width: 100px;
    height: 3px;
    margin: 12px 0 0;
    transform: none;
    background-size: cover;
  }

  .lessons {
    padding: 30px 0 40px !important;
  }
  .lessons .section-title {
    margin-top: 0;
  }

  .lesson-card,
  .testimonial-card {
    min-height: auto;
  }

  .lesson-card h3 {
    font-size: 32px;
  }

  .lesson-card li {
    font-size: 17px;
  }

  .testimonials {
    min-height: auto;
    overflow: hidden;
  }

  .testimonial-card {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .testimonials-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-width: 100%;
    transition: transform 0.45s ease;
  }

  .testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonial-slide > * {
    width: 100%;
  }

  .testimonial-text {
    min-height: auto;
    font-size: 17px;
  }

  .booking {
    min-height: auto;
  }

  .booking-form-wrap {
    padding: 28px 22px;
  }

  .faq-title::after {
    width: 46px;
    margin-left: 10px;
  }

  .footer {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 26px;
  }

  .footer-social {
    gap: 16px;
  }

  .section-nav {
    right: 14px;
    bottom: 14px;
  }

  .section-nav button {
    width: 40px;
    height: 40px;
  }

  .testimonial-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .faq-title::after {
    margin-left: 15px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 100vh;
  }

  .hero-center {
    min-height: 100vh;
  }
  section {
    padding: 40px 0 !important;
    scroll-margin-top: 60px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand img {
    height: 64px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .nav .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .nav-social {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    gap: 16px;
  }

  .hero-title {
    font-size: clamp(32px, 11vw, 50px);
  }

  .hero-tagline {
    font-size: 15px;
  }

  .section-title {
    font-size: 30px;
  }

  .lesson-card,
  .learn-item,
  .about-point,
  .booking-form-wrap,
  .faq-item {
    padding-left: 18px;
    padding-right: 18px;
  }

  .faq-question {
    padding: 18px;
    font-size: 16px;
  }

  .faq-answer p {
    padding: 0 18px 18px;
  }

  .footer {
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .footer-social a {
    font-size: 16px;
  }
}
