/* ── Theme tokens ──────────────────────────────────────────────────────
   Orange:      #F06820   (primary accent)
   Orange light:#FF8030   (hover / highlight)
   Orange dark: #8B3A08   (borders, muted)
   Background:  animated gradient (pink/purple/blue, fixed attachment)
   Card:        #12141E   (card background)
   Card border: #22253A   (card border)
   Text:        #F0F0F0   (body text)
──────────────────────────────────────────────────────────────────────── */

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: scroll;
  height: 100%;
  background: linear-gradient(125deg, #0a0520, #0c2461, #2d0057, #6b0f4a, #0b1d4a, #3b0764, #7d1560, #071e4a, #1a0533, #0d3060, #5c0a3a, #0f1a50);
  background-size: 600% 600%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  animation: gradientShift 14s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 20%; }
  25%  { background-position: 80% 0%; }
  50%  { background-position: 100% 80%; }
  75%  { background-position: 20% 100%; }
  100% { background-position: 0% 20%; }
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  background: transparent;
  color: #F0F0F0;
  height: 100%;
  padding-left: 3vw;
  padding-right: 3vw;
  box-sizing: border-box;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('brand_assets/background-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

/* ── Reusable classes ───────────────────────────────────────────────── */
.snap-section {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 64px;
  padding-bottom: 16px;
}
.heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-shadow {
  box-shadow: 0 4px 24px 0 rgba(240,104,32,0.15), 0 1.5px 6px 0 rgba(240,104,32,0.08);
}
.accent-border { border-top: 3px solid #F06820; }
.card {
  background: rgba(18, 20, 30, 0.3);
  border: 1px solid #22253A;
}

/* ── Side border strips ─────────────────────────────────────────────── */
.border-strip {
  position: fixed;
  top: 0; bottom: 0;
  width: 2vw;
  z-index: 110;
  background-image: url('brand_assets/website-border.png');
  background-size: 100% auto;
  background-repeat: repeat-y;
  pointer-events: none;
  opacity: 0.4;
}
#border-left  { left:  0.5vw; }
#border-right { right: 0.5vw; }

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-left: 3vw;
  padding-right: 3vw;
  background: transparent;
  font-weight: bold;
}
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 3%; right: 3%;
  height: 2px;
  background: #F06820;
}

/* ── Academy title shimmer ──────────────────────────────────────────── */
@keyframes title-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
header h1 {
  background: linear-gradient(90deg, #C8A415, #FFD700, #FFFEF0, #FFFFFF, #FFFEF0, #FFD700, #C8A415);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 15s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  header h1 {
    animation: none;
    background: none;
    -webkit-text-fill-color: #FFD700;
  }
}

/* ── Nav links ──────────────────────────────────────────────────────── */
.nav-link {
  position: relative;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
}
.nav-link:hover  { color: #FF8030 !important; }
.nav-link.active { color: #FF8030 !important; }

/* ── Hero animation initial states ─────────────────────────────────── */
#hero-subheading, #hero-subtext-1,
#hero-subtext-2, #hero-ctas, #hero-carousel { opacity: 0; }

/* ── Hero layout ────────────────────────────────────────────────────── */
#hero {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
  overflow: hidden;
}
#hero > div {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-carousel-col {
  width: 55%;
  height: 60%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.hero-text-col {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Photo carousel ─────────────────────────────────────────────────── */
.carousel-track {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid #F06820;
}
.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-track img.active { opacity: 0.9; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #8B3A08;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.carousel-dots button.active {
  background: #F06820;
  transform: scale(1.3);
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(240,104,32,0.2);
  border: 1px solid #F06820;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #F06820;
  font-size: 1rem;
  transition: background 0.2s;
  z-index: 2;
}
.carousel-nav:hover { background: rgba(240,104,32,0.4); }
.carousel-nav.prev  { left: 10px; }
.carousel-nav.next  { right: 10px; }

/* ── About section ──────────────────────────────────────────────────── */
#about {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 64px 2rem 36px;
  box-sizing: border-box;
  overflow: hidden;
}
#about > div {
  width: 100%;
}

/* ── Contact section ────────────────────────────────────────────────── */
#contact-snap {
  display: flex;
  flex-direction: column;
}
#contact {
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* ── Form inputs ────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #8B3A08;
  background: #090B14;
  color: #F0F0F0;
  font-size: 0.875rem;
  outline: none;
}
.form-input:focus  { border-color: #F06820; box-shadow: 0 0 0 2px rgba(240,104,32,0.3); }
.form-input option { background: #12141E; color: #F0F0F0; }

/* ── Hamburger button ───────────────────────────────────────────────── */
#hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F0F0F0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#hamburger-btn.menu-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger-btn.menu-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger-btn.menu-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Tablet dropdown menu ───────────────────────────────────────────── */
#mobile-menu {
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #F06820;
  top: 54px;
}

/* ── Tablet (max 1024px) ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  header {
    background: rgba(13, 27, 42, 0.8);
  }

  /* Hero: stack carousel and text vertically */
  #hero-snap {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #hero {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
  }
  #hero > div {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
  }
  .hero-carousel-col {
    width: 100%;
    height: 45vh;
  }
  .hero-text-col {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  /* Hide CTA buttons on tablet */
  #hero-ctas {
    display: none !important;
  }
}

/* ── Mobile (max 768px) ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  body::before { background-position: 80% center; }

  /* Generic snap-section becomes a transparent passthrough on mobile */
  .snap-section {
    height: auto;
    overflow: visible;
    scroll-snap-align: none;
    padding-bottom: 0;
  }

  /* Screen 1: Hero — full height, content vertically centred */
  #hero-snap {
    min-height: 100svh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Screens 2–6: each card group is a full-height snap target */
  .mobile-screen {
    min-height: 100svh;
    height: auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 72px 1rem 1.5rem;
    box-sizing: border-box;
  }

  /* Hide on mobile */
  .mobile-hide {
    display: none !important;
  }

  /* Centre text on mobile */
  .mobile-center {
    text-align: center;
  }

  /* Section wrappers: transparent passthrough, no extra padding/height */
  #about {
    height: auto;
    padding: 0;
    overflow: visible;
  }
  #contact-snap {
    padding: 0;
  }
  #contact {
    height: auto;
    padding: 0;
    overflow: visible;
    align-items: unset;
  }

  /* Remove gaps so mobile-screen divs sit flush */
  #about .grid,
  #contact .grid {
    gap: 0;
  }

  /* Right col: combined snap screen for Formats + Unique */
  #about-right-col {
    scroll-snap-align: start;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 72px 1rem 1.5rem;
    box-sizing: border-box;
  }

  /* Hero layout */
  #hero {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
    padding: 1rem;
    align-items: flex-start;
  }
  #hero > div {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-carousel-col {
    width: 100%;
    height: 32vh;
    min-height: 160px;
  }
  .hero-text-col {
    width: 100%;
    align-items: center;
  }

  /* ── Large-font accessibility ─────────────────────────────────────────
     Use vw-based clamp so sizes stay compact even when OS font scale
     is set to maximum. min ensures readability; max caps the size.   */

  /* Header academy name */
  header h1 {
    font-size: clamp(1.2rem, 5.5vw, 1.875rem) !important;
  }

  /* Hero subheading (Hindi text) */
  #hero-subheading {
    font-size: clamp(0.85rem, 4vw, 1.1rem) !important;
    margin-bottom: 0.5rem;
  }

  /* Hero body paragraphs */
  #hero-subtext-1, #hero-subtext-2 {
    font-size: clamp(0.75rem, 3.5vw, 0.9rem) !important;
    line-height: 1.55;
    margin-bottom: 0.4rem;
  }

  /* Card headings */
  .mobile-screen h2 {
    font-size: clamp(1rem, 4.5vw, 1.2rem) !important;
  }

  /* Card sub-headings */
  .mobile-screen h3 {
    font-size: clamp(0.9rem, 4vw, 1rem) !important;
    margin-bottom: 0.2rem;
  }

  /* Card body text and list items */
  .mobile-screen p,
  .mobile-screen li,
  .mobile-screen label {
    font-size: clamp(0.75rem, 3.5vw, 0.875rem) !important;
    line-height: 1.5;
  }

  /* Prevent any text from overflowing its container */
  .mobile-screen * {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }

  /* Formats & Unique are plain wrappers inside #about-right-col */
  #formats-screen,
  #unique-screen {
    scroll-snap-align: none;
    min-height: auto;
    height: auto;
    padding: 0;
    display: block;
    overflow-y: visible;
    justify-content: unset;
    align-items: unset;
  }
}

/* ── Mobile landscape ────────────────────────────────────────────────── */
/* Targets phones in landscape regardless of width (most phones: ~360–430px tall) */
@media (orientation: landscape) and (max-height: 500px) {
  /* Home icon only — no hamburger, no dropdown needed */
  #hamburger-btn                { display: none !important; }
  header a[aria-label="Home"]   { display: flex !important; }
  header { background: rgba(13, 27, 42, 0.8); }

  /* snap-section: full-height snap targets */
  .snap-section {
    height: 100svh;
    min-height: unset;
    overflow: hidden;
    scroll-snap-align: start;
    padding: 0;
  }

  /* ── Hero: side-by-side, carousel clears header ── */
  #hero-snap {
    padding-top: 64px;
    display: flex;
    align-items: center;
  }
  #hero {
    flex: none;
    height: auto;
    width: 100%;
    padding: 0.25rem 1rem;
    align-items: center;
  }
  #hero > div {
    flex-direction: row;
    height: auto;
    gap: 1.5rem;
    align-items: center;
  }
  .hero-carousel-col {
    width: 40%;
    height: calc(100svh - 80px);
    min-height: unset;
  }
  .hero-text-col {
    width: 60%;
    align-items: flex-start;
    text-align: left;
  }

  /* ── Section wrappers: transparent passthroughs ── */
  #about        { height: auto; padding: 0; overflow: visible; }
  #contact-snap { height: auto; padding: 0; overflow: visible; }
  #contact      { height: auto; padding: 0; overflow: visible; align-items: unset; }
  #about .grid, #contact .grid { display: block !important; gap: 0; }

  /* ── Each content screen: full-height snap target ── */
  .mobile-screen {
    display: flex;
    flex-direction: column;
    height: 100svh;
    min-height: unset;
    overflow: hidden;
    scroll-snap-align: start;
    padding: 68px 1.5rem 0.75rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: stretch;
  }

  /* ── Classes screen: 3 instruments in a horizontal row ── */
  #classes-screen > div,
  #formats-screen > div,
  #unique-screen  > div   { height: 100%; overflow: hidden; }
  #classes-screen ul      { flex-direction: row !important; gap: 0.75rem; align-items: stretch; }
  #classes-screen li      {
    flex: 1;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    border-bottom: none !important;
    border-right: 1px solid #22253A;
    padding-bottom: 0 !important;
    padding-right: 0.75rem;
    gap: 0.5rem;
  }
  #classes-screen li:last-child { border-right: none; padding-right: 0; }

  /* ── Formats + Unique: each their own full-height snap screen ── */
  #about-right-col {
    min-height: unset;
    scroll-snap-align: none;
    padding: 0;
    gap: 0;
    justify-content: unset;
  }
  #formats-screen,
  #unique-screen {
    flex: none;
    display: flex !important; /* override portrait-mobile's display:block (ID specificity) */
  }

  /* ── Message form: 2-column grid ── */
  #whatsapp-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  #wa-name    { grid-column: 1; grid-row: 1; }
  #wa-class   { grid-column: 1; grid-row: 2; }
  #wa-format  { grid-column: 1; grid-row: 3; }
  #wa-message { grid-column: 2; grid-row: 1 / 4; }
  #message-screen button[type="submit"] { grid-column: 1 / 3; }

  /* ── Compact font sizes ── */
  .mobile-screen h2 { font-size: 0.95rem !important; margin-bottom: 0.2rem; }
  .mobile-screen h3 { font-size: 0.85rem !important; margin-bottom: 0.15rem; }
  .mobile-screen p,
  .mobile-screen li { font-size: 0.75rem !important; line-height: 1.4; }
  header h1         { font-size: clamp(1rem, 3.5vh, 1.4rem) !important; }
}
