/* ============ Variables ============ */
:root {
  --primary: #2E7D32;
  --secondary: #66BB6A;
  --bg: #F5F9F4;
  --dark: #1B4332;
  --white: #FFFFFF;
  --ink: #16261C;
  --text-soft: #4A5C50;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-soft: 0 20px 50px -20px rgba(27,67,50,0.25);
  --shadow-card: 0 12px 30px -14px rgba(27,67,50,0.22);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
/* Compensates for the fixed .site-header so anchor-jumps (nav clicks) don't
   land with the section heading hidden underneath it. */
section[id] { scroll-margin-top: 100px; }
.section { padding: 120px 0; }
.section.dark { background: var(--dark); color: rgba(245,249,244,0.85); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.eyebrow { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--primary); margin: 0 0 14px; }
.eyebrow.light { color: var(--secondary); }
.eyebrow.center { text-align: center; }
.display { font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.display em { font-style: normal; color: var(--primary); }
.display.light { color: var(--white); }
.display.light em { color: var(--secondary); }
.display.center { text-align: center; max-width: 720px; margin: 0 auto; }
.section-sub { color: var(--text-soft); font-size: 1.1rem; max-width: 620px; margin: 18px auto 0; }
.section-sub.light { color: rgba(245,249,244,0.75); }
.section-sub.center { text-align: center; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--dark); color: var(--white); padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block; padding: 16px 32px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 14px 30px -10px rgba(46,125,50,0.55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(46,125,50,0.6); }
.btn-outline-light { border: 1.5px solid rgba(245,249,244,0.55); color: var(--white); backdrop-filter: blur(6px); background: rgba(245,249,244,0.06); }
.btn-outline-light:hover { background: rgba(245,249,244,0.16); transform: translateY(-3px); }
.link-arrow { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--primary); transition: transform 0.25s ease; }
.link-arrow:hover { transform: translateX(4px); }

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.site-header.solid {
  background: rgba(245,249,244,0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  padding: 14px 0;
  box-shadow: 0 8px 30px -18px rgba(27,67,50,0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.site-header.solid .logo { color: var(--dark); }
.logo-mark { color: var(--secondary); display: inline-flex; }
.logo-text em { font-style: normal; color: var(--secondary); }
.logo-text.light { color: var(--white); font-size: 1.2rem; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.nav-cta) { color: var(--white); font-weight: 500; font-size: 0.9rem; position: relative; padding-bottom: 4px; transition: color 0.25s ease; white-space: nowrap; }
.site-header.solid .nav a:not(.nav-cta) { color: var(--dark); }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--secondary);
  transition: width 0.25s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--white); color: var(--dark) !important; padding: 11px 24px; border-radius: 100px; font-weight: 600; transition: transform 0.25s ease, background 0.25s ease; }
.nav-cta:hover { transform: translateY(-2px); background: var(--secondary); color: var(--white) !important; }
.site-header.solid .nav-cta { background: var(--primary); color: var(--white) !important; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto; transition: background 0.25s ease; }
.site-header.solid .nav-toggle span { background: var(--dark); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--dark);
}
.hero-visual {
  position: absolute; inset: -6%;
  background-image: linear-gradient(155deg, rgba(16,25,18,0.35), rgba(12,19,14,0.55)), url('images/course-hero.jpg');
  background-size: cover; background-position: center 55%;
  will-change: transform;
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,19,14,0.85) 0%, rgba(12,19,14,0.25) 45%, rgba(12,19,14,0.5) 100%); }
.hero-content { position: relative; max-width: 780px; padding: 0 28px; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 800; color: var(--white); line-height: 1.08; margin: 16px 0 22px; letter-spacing: -0.01em; }
.hero-sub { font-size: 1.2rem; color: rgba(245,249,244,0.88); max-width: 520px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.scroll-cue { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: 30px; height: 46px; border: 1.5px solid rgba(245,249,244,0.6); border-radius: 20px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 3px; background: var(--white); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ============ Stats ============ */
.stats { background: var(--white); padding: 56px 0; border-bottom: 1px solid rgba(27,67,50,0.08); margin-top: -1px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--primary); }
.stat-label { font-size: 0.9rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============ About ============ */
.about-visual img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about-copy p { color: var(--text-soft); font-size: 1.05rem; margin: 0 0 16px; }

/* ============ Course / Feature grid ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-md); padding: 36px 30px;
  box-shadow: var(--shadow-card); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -16px rgba(27,67,50,0.28); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(46,125,50,0.1); color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); margin: 0; font-size: 0.98rem; }

/* ============ Pricing ============ */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.price-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
.price-card {
  background: var(--white); border-radius: var(--radius-md); padding: 38px 28px; text-align: center;
  box-shadow: var(--shadow-card); position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1.5px solid transparent;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(46,125,50,0.05), var(--white) 40%); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; padding: 6px 16px; border-radius: 100px; text-transform: uppercase; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.price-value { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--primary); margin: 0; }
.price-note { color: var(--text-soft); font-size: 0.88rem; margin: 4px 0 22px; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.price-card li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--text-soft); }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ============ Birthday ============ */
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 32px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-soft); font-size: 1rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--primary); color: var(--white); border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; }
.hours-note { color: var(--text-soft); font-size: 0.92rem; font-style: italic; border-left: 2px solid var(--primary); padding-left: 14px; }
.birthday-visual .visual-card {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(46,125,50,0.14), rgba(102,187,106,0.14));
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 600;
  border: 1.5px dashed rgba(46,125,50,0.35);
}
.birthday-visual .visual-card.has-photo {
  border: none; background-size: cover; background-position: center; box-shadow: var(--shadow-soft);
}

/* ============ Events (dark, glassmorphism) ============ */
.events.dark { background: radial-gradient(ellipse at 20% 10%, rgba(102,187,106,0.14), transparent 55%), var(--dark); }
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.event-card {
  background: rgba(245,249,244,0.06); border: 1px solid rgba(245,249,244,0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: 32px 26px; transition: transform 0.3s ease, background 0.3s ease;
}
.event-card:hover { transform: translateY(-6px); background: rgba(245,249,244,0.1); }
.event-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.event-card p { color: rgba(245,249,244,0.72); margin: 0; font-size: 0.95rem; }

/* ============ Gallery ============ */
/* Tile aspect-ratio (3/4) intentionally matches the portrait phone photos
   used here 1:1, so `cover` doesn't have to crop away most of the image —
   forcing them into landscape-ish tiles left only an unrecognisable
   centre sliver of each photo visible. */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.masonry-item { position: relative; border-radius: var(--radius-md); overflow: hidden; background-size: cover; background-position: center; aspect-ratio: 3 / 4; }
.masonry-item.has-photo { transition: transform 0.5s ease; }
.masonry-item.has-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,19,14,0.55), transparent 55%); }
.masonry-item.has-photo:hover { transform: scale(1.04); }
.masonry-item span { position: absolute; left: 18px; bottom: 16px; color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; z-index: 1; }

/* ============ Testimonials ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-md); padding: 32px 28px; box-shadow: var(--shadow-card); }
.stars { color: #F4B400; letter-spacing: 2px; margin-bottom: 14px; font-size: 1rem; }
.testimonial-card p { color: var(--ink); font-size: 1.02rem; margin: 0 0 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.testimonial-author div { display: flex; flex-direction: column; font-size: 0.88rem; color: var(--text-soft); }
.testimonial-author strong { color: var(--ink); font-size: 0.95rem; }

/* ============ FAQ ============ */
.accordion { max-width: 780px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 14px; }
.accordion details { background: var(--white); border-radius: var(--radius-md); padding: 6px 26px; box-shadow: var(--shadow-card); }
.accordion summary { cursor: pointer; padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform 0.25s ease; flex-shrink: 0; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p { color: var(--text-soft); margin: 0 0 22px; font-size: 0.98rem; }

/* ============ Contact ============ */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; max-width: 480px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid rgba(27,67,50,0.18); background: var(--white); color: var(--ink); resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,125,50,0.12); outline: none; }
.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }
.form-status { font-size: 0.9rem; color: var(--primary); min-height: 1.2em; margin: 0; }
.contact-map iframe { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); filter: grayscale(0.15) saturate(1.05); }

/* ============ Floating buttons ============ */
.floating-cta {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--primary); color: var(--white); padding: 15px 22px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 16px 34px -12px rgba(46,125,50,0.6);
  opacity: 0; transform: translateY(16px) scale(0.94); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease;
}
.floating-cta.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating-cta:hover { background: var(--dark); }

.back-to-top {
  position: fixed; right: 26px; bottom: 96px; z-index: 89;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--white); color: var(--dark); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: rgba(245,249,244,0.78); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(245,249,244,0.12); }
.footer-brand p { max-width: 280px; margin: 14px 0 20px; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 10px; color: rgba(245,249,244,0.72); }
.footer-col a:hover { color: var(--secondary); }
.hours-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; margin-bottom: 10px; }
.footer-subhead { color: var(--white); font-weight: 600; font-size: 0.85rem; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-subhead:first-of-type { margin-top: 0; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 0.85rem; color: rgba(245,249,244,0.5); }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2,0.6,0.2,1), transform 0.8s cubic-bezier(0.2,0.6,0.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span, .hero-visual { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .section { padding: 84px 0; }
  .nav { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(78vw, 320px);
    background: var(--dark); flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 40px 36px; gap: 26px; transform: translateX(100%); transition: transform 0.4s ease;
    overflow-y: auto; }
  .nav.nav-open { transform: translateX(0); }
  .nav a:not(.nav-cta) { color: var(--white); font-size: 1.1rem; }
  .nav-cta { order: 10; flex-shrink: 0; }
  /* Fixed independently of the header's flex layout and given its own
     stacking context (z-index 110, above the drawer's 100) — this removes
     any chance of the open drawer intercepting taps meant for this button,
     which is what made the menu impossible to close on a second tap. */
  .nav-toggle {
    display: flex; position: fixed; top: 22px; right: 32px; z-index: 110;
    transition: top 0.35s ease;
  }
  .site-header.solid .nav-toggle { top: 14px; }
  .nav-toggle span { transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease; }
  .nav.nav-open ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav-open ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.nav-open ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.nav-open ~ .nav-toggle span { background: var(--white); }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 520px) {
  .price-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 22px; }
}
