/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Logo-matched palette ─────────────────────────────────── */
  --green-900: #2e4228;     /* very dark sage  — footer, dark sections   */
  --green-800: #4a6b40;     /* deep sage       — CTA bg, dark accents    */
  --green-700: #6B9561;     /* dark green logo — primary buttons, eyebrow*/
  --green-600: #85AC7A;     /* main green logo — hover, border accents   */
  --green-400: #9EB090;     /* light sage      — subtle accents           */
  --green-200: #C5D4BC;     /* pale sage       — borders                  */
  --green-100: #E4EDE1;     /* lightest sage   — bg tints                 */
  --green-50:  #F0F5EE;     /* near-white sage                            */

  --cream:     #F8F5E4;     /* logo background + yellow tint — section backgrounds */
  --warm-100:  #FAF8EE;

  --yellow:    #F6DE3A;     /* turnip yellow   — decorative accent        */
  --yellow-lt: #F4DF54;     /* light yellow highlight                     */

  /* keep orange vars pointing at yellow so no references break */
  --orange:    #F6DE3A;
  --orange-lt: #F4DF54;

  --text-dark:  #1c2b1e;
  --text-body:  #3d5040;
  --text-muted: #6b7a68;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Nunito', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);

  --transition: .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-light  { background: #fff; }
.section-cream  { background: var(--cream); }
.section-green  { background: var(--green-900); color: #fff; }
.section-green h2,
.section-green h3 { color: #fff; }
.section-green .section-eyebrow { color: var(--yellow); }
.section-green p  { color: rgba(255,255,255,.82); }

.section-cta {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  color: #fff;
}
.section-cta h2,
.section-cta p { color: #fff; }
.section-cta .section-eyebrow { color: var(--yellow); }

.center  { text-align: center; }
.mt-lg   { margin-top: 48px; }

/* ─── Typography helpers ────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .75rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: .75rem auto 2.5rem;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
.btn-primary:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-outline:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }

.btn-white {
  background: #fff;
  color: var(--green-800);
  border-color: #fff;
}
.btn-white:hover { background: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-1px); }

.btn-large { padding: .9rem 2.2rem; font-size: 1rem; }

/* ─── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.logo-img {
  height: 34px;
  width: 34px;
  display: block;
  flex-shrink: 0;
}

.logo-text { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links li a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition);
}
.nav-links li a:not(.btn):hover { color: var(--green-700); }
.nav-links li a.nav-active {
  color: var(--green-700);
  font-weight: 700;
}
.nav-links li a.nav-active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--green-600);
  border-radius: 1px;
  margin-top: 2px;
  animation: nav-underline .2s ease;
}
@keyframes nav-underline {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
.nav-links li a.btn-primary { color: #fff; }
.nav-links li a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(133,172,122,.18) 0%, transparent 70%),
    linear-gradient(160deg, rgba(240,245,238,.85) 0%, rgba(243,243,243,.78) 50%, rgba(248,248,245,.82) 100%);
  z-index: 1;
}

/* Decorative blobs */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.hero-bg::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,200,134,.25), transparent 70%);
  top: -100px; right: -80px;
}
.hero-bg::after {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(232,115,74,.12), transparent 70%);
  bottom: 60px; left: -60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 24px;
}

.hero-eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1rem;
}

.hero-content h1 {
  margin-bottom: 1.4rem;
  color: var(--text-dark);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--green-600);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Two-column layout ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

.two-col-text h2 { margin-bottom: 1.2rem; }
.two-col-text p  { margin-bottom: 1.2rem; }

.image-placeholder {
  background: var(--green-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green-700);
  font-weight: 500;
  gap: .5rem;
  min-height: 300px;
  border: 2px dashed var(--green-200);
}

.image-tall { min-height: 460px; }

.section-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

/* ─── Cards ──────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  display: block;
  padding: 2rem 2rem 0;
}

.card h3 { margin: 0 2rem .75rem; }
.card p  { margin: 0 2rem 2rem; }

.card h3 { margin-bottom: .75rem; }

/* ─── Schedule list ──────────────────────────────────────────── */
.schedule-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.schedule-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green-400);
  font-size: .95rem;
}

.time {
  font-weight: 700;
  color: var(--green-400);
  min-width: 172px;
  font-size: .82rem;
  flex-shrink: 0;
}

/* ─── Testimonials ───────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.testimonial {
  background: var(--green-50);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--green-100);
}

.testimonial-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

blockquote {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.2rem;
  font-style: italic;
}

cite {
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-700);
  font-style: normal;
}

/* ─── Gallery ────────────────────────────────────────────────── */
/* ─── Credentials modal ─────────────────────────────────────── */
.cred-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cred-backdrop.is-open { display: flex; }

.cred-bubble {
  background: var(--warm-100);
  border: 1px solid var(--green-200);
  border-radius: 18px;
  padding: 2.2rem 2.4rem 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  animation: cred-in .22s ease;
}
@keyframes cred-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.cred-bubble h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--green-800);
  margin: 0 0 1.1rem;
}

.cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.cred-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: .97rem;
  color: var(--text-body);
  line-height: 1.5;
}
.cred-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

.cred-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.cred-close:hover { background: var(--green-100); color: var(--green-800); }

/* ─── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.lightbox.is-open { display: flex; }

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1100px);
  max-height: 82vh;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 60px rgba(0,0,0,.6);
  /* pop-in animation */
  animation: lb-pop .22s ease;
}
@keyframes lb-pop {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: scale(1);   }
}

.lb-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  padding: 0;
}
.lb-close:hover { background: rgba(255,255,255,.28); }

.lb-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  width: 54px; height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  padding: 0;
}
.lb-arrow:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-counter {
  margin: 12px 0 0;
  color: rgba(255,255,255,.45);
  font-family: var(--font-sans);
  font-size: .8rem;
}

/* ─── Gallery Grid ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: var(--radius-md);
  background: var(--green-100);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.12); }

/* ─── CTA section ────────────────────────────────────────────── */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.75);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-icon { filter: none; }
.footer-brand p {
  margin-top: 1rem;
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
}

.social-links {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  transition: var(--transition);
}
.social-links a:hover { background: var(--green-600); color: #fff; }

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact address p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .5rem;
}
.footer-contact address a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-contact address a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.85); }

/* ─── Founder & Our Story ─────────────────────────────────────── */
.founder-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 1.2rem;
  letter-spacing: .02em;
}

.founder-img {
  border-radius: 50% 40% 50% 40% / 40% 50% 40% 50%;
}

/* ─── Why Turnip Academy ──────────────────────────────────────── */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
  min-width: 180px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
  text-align: center;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.feature-card p {
  padding: .9rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.35;
}

/* remove old list style */
.feature-item { display: none; }
.feature-check { display: none; }

/* ─── Google Reviews badge ────────────────────────────────────── */
.google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: .75rem 0 0;
  font-size: .95rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.google-stars {
  color: var(--yellow);
  font-size: 1.1rem;
  letter-spacing: .05em;
}
.google-badge strong { color: var(--text-dark); font-size: 1rem; }
.google-badge a { color: var(--green-700); font-weight: 600; text-decoration: underline; }
.google-badge a:hover { color: var(--green-800); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col         { grid-template-columns: 1fr; gap: 40px; }
  .two-col-reverse { direction: ltr; }
  .cards           { grid-template-columns: 1fr; }
  .testimonials    { grid-template-columns: 1fr; }
  .feature-grid .feature-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
  .carousel-btn    { width: 44px; height: 44px; font-size: 2.2rem; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .footer-brand    { grid-column: span 2; }
  .section         { padding: 64px 0; }
}

@media (max-width: 640px) {
  .nav-links   { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle  { display: block; }
  .hero-content h1 { font-size: 2rem; }
  .feature-grid .feature-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
  .carousel-btn    { width: 36px; height: 36px; font-size: 1.8rem; }
  .carousel-thumb  { flex: 0 0 56px; height: 42px; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-brand    { grid-column: span 1; }
  .footer-bottom   { flex-direction: column; gap: .75rem; text-align: center; }
  .section         { padding: 48px 0; }
  .time            { min-width: 152px; font-size: .78rem; }
}
