/* =============================================
   GAYA SPIRITUAL ACADEMY — Global Design System
   Brand colors: Deep teal + Aqua + Bright gold
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --teal-deep:   #1B5F75;
  --teal-mid:    #2A8099;
  --teal-bright: #2AACB8;
  --teal-pale:   #E3F6F8;
  --teal-light:  #B8E8EE;
  --gold:        #C9A227;
  --gold-bright: #E8BC30;
  --gold-pale:   #FBF3DC;
  --gold-dark:   #9A7A18;
  --mint:        #A8C96E;
  --mint-pale:   #EDF5DA;
  --indigo:      #2D2A6E;
  --white:       #FFFFFF;
  --off-white:   #F4FAFB;
  --ivory:       #FDFAF4;
  --text-dark:   #0E2A33;
  --text-mid:    #3A6070;
  --text-soft:   #7AADBE;
  --border:      rgba(42,172,184,0.18);
  --border-gold: rgba(201,162,39,0.25);
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'Jost', system-ui, sans-serif;
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1140px;
  --nav-h:       72px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(20px, 4vw, 60px);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42,172,184,0.1);
  box-shadow: 0 2px 20px rgba(27,95,117,0.06);
  transition: box-shadow 0.3s var(--ease);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-deep);
  letter-spacing: 0.04em;
  flex: 1;
}
.nav-logo span { font-style: italic; color: var(--teal-bright); }
.nav-links {
  display: flex; gap: 32px; align-items: center; list-style: none;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mid); transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px; background: var(--teal-bright);
  transform: scaleX(0); transition: transform 0.2s var(--ease);
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal-deep); }
.lang-toggle {
  display: flex; border: 1.5px solid var(--border);
  border-radius: 20px; overflow: hidden; margin-left: 28px;
}
.lang-btn {
  padding: 5px 14px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; background: transparent; color: var(--text-soft);
  border: none; cursor: pointer; transition: all 0.2s; border-radius: 20px;
}
.lang-btn.active { background: var(--teal-bright); color: white; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px; margin-left: 16px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--teal-deep); transition: all 0.3s;
}

/* Hamburger → X when menu open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: white; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: white; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #EBF8FA 0%, #F8FCFD 50%, #FFFDF5 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 25%, rgba(42,172,184,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 85%, rgba(201,162,39,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(168,201,110,0.05) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,172,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,172,184,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--teal-bright); margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s 0.2s var(--ease) forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--text-dark); margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.9s 0.35s var(--ease) forwards;
}
.hero-title em { font-style: italic; color: var(--teal-bright); }
.hero-title .line-zh {
  display: block; font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--text-soft); font-weight: 300; margin-top: 8px;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: var(--text-mid);
  max-width: 520px; margin-bottom: 48px; font-weight: 300;
  opacity: 0; animation: fadeUp 1s 0.5s var(--ease) forwards; line-height: 1.85;
}
.hero-cta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s 0.65s var(--ease) forwards;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--teal-bright); color: white;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border: none; cursor: pointer; border-radius: 2px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(42,172,184,0.3);
}
.btn-primary:hover {
  background: var(--teal-deep); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(42,172,184,0.4);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px; background: transparent; color: var(--teal-deep);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1.5px solid var(--teal-bright);
  border-radius: 2px; cursor: pointer; transition: all 0.25s var(--ease);
}
.btn-outline:hover {
  background: var(--teal-pale); border-color: var(--teal-deep); color: var(--teal-deep);
}
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--gold); color: white;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border: none; cursor: pointer; border-radius: 2px;
  transition: all 0.25s var(--ease); box-shadow: 0 4px 20px rgba(201,162,39,0.3);
}
.btn-gold:hover {
  background: var(--gold-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,0.4);
}
.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px; background: transparent; color: var(--gold-dark);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1.5px solid var(--gold);
  border-radius: 2px; cursor: pointer; transition: all 0.25s var(--ease);
}
.btn-gold-outline:hover { background: var(--gold-pale); border-color: var(--gold-dark); }

/* ── Sections ── */
.section { padding: var(--section-pad) 0; }
.section-white     { background: var(--white); }
.section-offwhite  { background: var(--off-white); }
.section-teal      { background: var(--teal-deep); color: white; }
.section-teal-mid  { background: var(--teal-mid); color: white; }
.section-teal-pale { background: var(--teal-pale); }
.section-gold-pale { background: var(--gold-pale); }
.section-mint-pale { background: var(--mint-pale); }
.section-ivory     { background: var(--ivory); }
/* compat aliases */
.section-dark { background: var(--teal-deep); color: white; }
.section-mid  { background: var(--teal-mid); color: white; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }

.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--teal-bright);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 28px; height: 2px; background: var(--teal-bright); border-radius: 2px;
}
.section-dark .section-label,
.section-mid .section-label,
.section-teal .section-label,
.section-teal-mid .section-label { color: var(--teal-light); }
.section-dark .section-label::before,
.section-mid .section-label::before,
.section-teal .section-label::before,
.section-teal-mid .section-label::before { background: var(--teal-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.2;
  color: var(--text-dark); margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--teal-bright); }
.section-dark .section-title,
.section-mid .section-title,
.section-teal .section-title,
.section-teal-mid .section-title { color: white; }

.section-title-zh {
  font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300; color: var(--text-soft); margin-bottom: 24px;
}
.section-dark .section-title-zh,
.section-mid .section-title-zh { color: rgba(255,255,255,0.4); }

.gold-line {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--teal-bright), var(--gold));
  margin: 24px 0; border-radius: 2px;
}
.gold-line.center { margin: 24px auto; }

/* ── Cards ── */
.card {
  background: white; border: 1px solid rgba(42,172,184,0.12);
  padding: 40px; border-radius: 4px; transition: all 0.3s var(--ease);
  box-shadow: 0 2px 16px rgba(27,95,117,0.04);
}
.card:hover {
  border-color: rgba(42,172,184,0.35); transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27,95,117,0.1);
}
.card-dark {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  padding: 40px; border-radius: 4px; transition: all 0.3s var(--ease);
}
.card-dark:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

/* ── Footer ── */
.footer {
  background: var(--teal-deep); color: rgba(255,255,255,0.55);
  padding: 64px 0 32px; border-top: 3px solid var(--teal-bright);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: white; margin-bottom: 16px; }
.footer-desc { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.4); margin-bottom: 24px; }
.footer-heading { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }

/* ── Mobile ── */
@media (max-width: 768px) {
  /* Hide desktop nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Open state: full-screen dark panel */
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #0A2E3C;
    z-index: 99;
    padding: 24px 0 60px;
    overflow-y: auto;
    gap: 0;
    align-items: stretch;
    list-style: none;
  }

  /* Top-level list items */
  .nav-links.open > li {
    border-bottom: 1px solid rgba(42,172,184,0.1);
  }

  /* Top-level links */
  .nav-links.open > li > a {
    display: block !important;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82) !important;
    padding: 17px 32px;
    background: transparent;
    transition: color 0.18s, background 0.18s;
  }

  /* Suppress desktop underline animation on mobile */
  .nav-links.open > li > a::after {
    display: none !important;
  }

  .nav-links.open > li > a:hover {
    color: var(--teal-bright) !important;
    background: rgba(42,172,184,0.07);
  }

  /* Dropdown sub-menu: collapse by default, expand when parent .open */
  .nav-links.open .dropdown-menu {
    display: none !important;
    position: static !important;
    background: rgba(0,0,0,0.18);
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(42,172,184,0.08) !important;
    padding: 4px 0;
    min-width: unset;
  }
  .nav-links.open .nav-dropdown.open .dropdown-menu {
    display: block !important;
  }

  /* Sub-menu links */
  .nav-links.open .dropdown-menu li { list-style: none; }
  .nav-links.open .dropdown-menu a {
    display: block !important;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.48) !important;
    padding: 12px 32px 12px 48px !important;
    letter-spacing: 0.05em;
    white-space: normal;
    text-transform: uppercase;
    background: transparent;
  }
  .nav-links.open .dropdown-menu a::after { display: none !important; }
  .nav-links.open .dropdown-menu a:hover {
    color: var(--teal-bright) !important;
    background: rgba(42,172,184,0.06);
  }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Dropdown Nav ── */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: white;
  border: 1px solid var(--border);
  border-top: 2px solid var(--teal-bright);
  min-width: 220px; padding: 8px 0;
  box-shadow: 0 12px 32px rgba(14,42,51,0.1);
  border-radius: 0 0 4px 4px;
  list-style: none; z-index: 200;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 0.76rem; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.07em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.dropdown-menu a:hover { color: var(--teal-deep); background: var(--teal-pale); }
.dropdown-menu a::after { display: none !important; }
