/* ===== Tokens ===== */
:root {
  /* Brand palette from the RR Shree logo */
  --green: #00a651;
  --forest: #006837;
  --leaf: #8dc63f;
  --sun: #fdd835;
  --orange: #f26b3a;
  /* Surfaces and text (--ink is the light page surface, --paper the dark text) */
  --ink: #ffffff;
  --ink-2: #f2f8ee;
  --ink-3: #e6f2df;
  --paper: #0f2a1c;
  --muted: #55695c;
  --line: rgba(15, 42, 28, .12);
  /* Accent roles */
  --lime: var(--green);
  --violet: var(--forest);
  --pink: var(--sun);
  --radius: 22px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 1rem; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 720px; }
.h2 { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--sun)); }

/* Film grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* Custom cursor (pointer devices only, see JS) */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid var(--green);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
  display: none;
}
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(0, 166, 81, .15); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ===== Buttons ===== */
.btn {
  --bg: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: #fff; font: 700 .95rem/1 var(--body);
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--bounce), color .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange);
  transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn:hover::after { transform: translateY(0); }
.btn:hover { border-color: var(--orange); color: #fff; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: .7rem 1.2rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  transition: background .4s, backdrop-filter .4s, transform .4s var(--ease);
}
.header.is-scrolled { background: rgba(255, 255, 255, .88); box-shadow: 0 6px 24px -18px rgba(15, 42, 28, .5); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; position: relative; z-index: 2; text-decoration: none; }
.brand__logo { height: 54px; width: auto; transition: transform .5s var(--bounce); }
.brand:hover .brand__logo { transform: scale(1.04) rotate(-1.5deg); }
@media (max-width: 520px) { .brand__logo { height: 44px; } }

.nav__menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; position: relative; padding: .3rem 0; }
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; z-index: 2;
    background: var(--ink-3); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .nav__toggle span { width: 20px; height: 2px; background: var(--paper); transition: transform .4s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--ink); clip-path: circle(0 at calc(100% - 40px) 40px);
    transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .nav__menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
  .nav__menu a:not(.btn) { font: 800 2.2rem/1 var(--display); }
}

/* ===== Hero ===== */
.hero {
  min-height: 100svh; padding: 120px 0 80px; position: relative; overflow: hidden;
  display: grid; align-content: center;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(141, 198, 63, .28), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(253, 216, 53, .35), transparent 70%),
    var(--ink);
}
.hero__inner { position: relative; z-index: 2; }
@media (min-width: 961px) { .hero__inner { padding-right: min(420px, 38vw); } }
.hero__title { font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 800; line-height: .92; margin-bottom: 1.6rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) .word { animation-delay: .12s; }
.hero__title .line:nth-child(3) .word { animation-delay: .24s; }
.hero__sub-title {
  font: 600 clamp(1rem, 2.2vw, 1.4rem)/1.3 var(--body); letter-spacing: .02em; color: var(--muted); margin-top: 1rem;
}
@keyframes rise { to { transform: translateY(0); } }

/* Squash-and-stretch: the first principle of animation */
.squash {
  font-style: normal; color: var(--orange); display: inline-block; transform-origin: 50% 100%;
  animation: squash 2.4s 1.2s var(--ease) infinite;
}
@keyframes squash {
  0%, 60%, 100% { transform: translateY(0) scale(1, 1); }
  10% { transform: translateY(0) scale(1.15, .82); }
  25% { transform: translateY(-.28em) scale(.9, 1.12); }
  40% { transform: translateY(0) scale(1.1, .88); }
  50% { transform: translateY(0) scale(.98, 1.02); }
}
.hero__lead { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #33473a; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__shapes .shape { position: absolute; z-index: 1; will-change: transform; }
.shape--circle { width: 120px; height: 120px; border-radius: 50%; background: var(--orange); top: 18%; right: 8%; animation: float 7s ease-in-out infinite; }
.shape--square { width: 70px; height: 70px; border-radius: 14px; background: var(--violet); bottom: 18%; right: 32%; animation: spin 12s linear infinite; }
.shape--tri { width: 0; height: 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 70px solid var(--lime); top: 60%; right: 6%; animation: float 9s ease-in-out -3s infinite; }
.shape--ring { width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(0, 104, 55, .25); top: 8%; left: 48%; animation: spin 30s linear infinite; }
@keyframes float { 50% { transform: translateY(-30px) rotate(10deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__reel { position: absolute; right: 4vw; bottom: 12vh; z-index: 2; width: min(360px, 34vw); margin: 0; transform: rotate(4deg); }
.reel__frame {
  position: relative; border-radius: 16px; overflow: hidden; border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 16px 16px 0 var(--green); background: var(--ink-3);
}
.reel__frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.reel__rec { position: absolute; top: 8px; left: 10px; font: 700 .7rem/1 var(--body); color: #ff3b3b; animation: blink 1s steps(2) infinite; }
.reel__tc { position: absolute; bottom: 8px; right: 10px; font: 600 .7rem/1 ui-monospace, monospace; color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 6px; border-radius: 4px; }
.reel__tc b { font-weight: 600; }
.hero__reel figcaption { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; transform: translateX(-50%); z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

@media (max-width: 960px) {
  .hero { padding-bottom: 60px; }
  .hero__reel { position: relative; right: auto; bottom: auto; width: min(420px, 100% - 40px); margin: 3rem auto 0; }
  .shape--ring, .shape--square { display: none; }
  .shape--circle { width: 90px; height: 90px; top: 90px; right: -30px; }
  .scroll-hint { display: none; }
}

/* ===== Marquee ===== */
.marquee { background: linear-gradient(90deg, var(--forest), var(--green) 60%, var(--leaf)); color: #fff; overflow: hidden; padding: 1.1rem 0; transform: rotate(-2deg); margin: -1rem -2vw 0; position: relative; z-index: 3; }
.marquee__track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 28s linear infinite; font: 800 clamp(1.4rem, 3vw, 2.2rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 6/7; object-fit: cover; width: 100%; filter: saturate(1.1); }
.badge-spin { position: absolute; right: -28px; bottom: -28px; width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--sun)); color: var(--paper); display: grid; place-items: center; }
.badge-spin svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge-spin text { font: 700 9.2px var(--body); letter-spacing: 2px; fill: var(--paper); }
.badge-spin strong { font: 800 2rem/1 var(--display); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 2rem 0 2.2rem; }
.stats li { background: var(--ink); padding: 1.4rem; }
.stats strong { display: block; font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--display); color: var(--green); }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 4/3; object-position: top; }
  .badge-spin { right: 12px; bottom: -40px; width: 116px; height: 116px; }
}

/* ===== Courses ===== */
.courses { background: var(--ink-2); }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.course {
  position: relative; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s, box-shadow .4s;
}
.course:hover { border-color: var(--c); box-shadow: 0 30px 60px -30px var(--c); }
.course img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.course:hover img { transform: scale(1.08); }
.course__num { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--c); color: #fff; font: 800 .85rem/1 var(--display); padding: .45rem .65rem; border-radius: 999px; }
.course__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course h3 { font-size: 1.35rem; }
.course p { color: var(--muted); font-size: .93rem; flex: 1; }
.course__link { color: var(--c); font-weight: 700; text-decoration: none; }
.course__link span { display: inline-block; transition: transform .3s var(--bounce); }
.course:hover .course__link span { transform: translateX(6px); }
@media (max-width: 1024px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .course-grid { grid-template-columns: 1fr; } }

.commitment { margin: clamp(3rem, 7vw, 5rem) 0 0; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius); background: linear-gradient(120deg, var(--forest), var(--green) 70%, var(--leaf)); color: #fff; position: relative; overflow: hidden; }
.commitment::before { content: "“"; position: absolute; right: 2rem; top: -2rem; font: 800 14rem/1 var(--display); opacity: .2; }
.commitment p { font: 600 clamp(1.25rem, 2.6vw, 2rem)/1.3 var(--display); max-width: 900px; position: relative; }
.commitment cite { font-style: normal; font-weight: 700; color: var(--sun); }

/* ===== Services ===== */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.service { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); transition: transform .5s var(--bounce); }
.service:hover { transform: translateY(-8px); }
.service--alt { background: var(--forest); color: #fff; }
.service.service--alt p { color: rgba(255, 255, 255, .82); }
.service--alt .service__icon svg { stroke: var(--sun); }
.service--alt .tags li { border-color: rgba(255, 255, 255, .3); }
.service--alt .btn { --bg: var(--sun); color: var(--paper); }
.service--alt .btn:hover { color: #fff; }
.service h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.service p { color: var(--muted); }
.service__icon { width: 64px; height: 64px; margin-bottom: 1.4rem; }
.service__icon svg { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; width: 100%; height: 100%; }
.service:hover .service__icon svg { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 2rem !important; }
.tags li { border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

/* ===== Process ===== */
.process { padding-top: 0; }
.process__list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: s; }
.process__list li { background: var(--ink); padding: 1.6rem 1.4rem; position: relative; transition: background .4s; }
.process__list li:hover { background: var(--ink-3); }
.process__list span { font: 800 .85rem/1 var(--display); color: var(--green); }
.process__list h3 { font-size: 1.3rem; margin: 1rem 0 .4rem; }
.process__list p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .process__list { grid-template-columns: repeat(2, 1fr); } .process__list li:last-child { grid-column: span 2; } }
@media (max-width: 480px) { .process__list { grid-template-columns: 1fr; } .process__list li:last-child { grid-column: auto; } }

/* ===== Team ===== */
.team { background: var(--ink-2); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.member__photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; position: relative; background: var(--ink-3); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 166, 81, .55), transparent 55%); opacity: 0; transition: opacity .5s; }
.member:hover .member__photo::after { opacity: 1; }
.member img { width: 100%; aspect-ratio: 5/6; object-fit: cover; filter: grayscale(0); transition: filter .6s, transform .8s var(--ease); }
.member:hover img { filter: grayscale(1); transform: scale(1.05); }
.member h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.member p { color: var(--green); font-size: .88rem; font-weight: 600; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Gallery ===== */
.gallery__rail {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(16px, (100vw - 1200px) / 2) 1.5rem; scrollbar-width: thin; scrollbar-color: var(--green) transparent;
}
.gallery__item { flex: 0 0 clamp(240px, 32vw, 420px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; }
.gallery__item:nth-child(even) { margin-top: 2.5rem; }
.gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.06) rotate(1deg); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(15, 42, 28, .9); backdrop-filter: blur(6px); }
.lightbox img { max-height: 86vh; border-radius: 14px; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--paper); font-size: 1.5rem; cursor: pointer; }

/* ===== Testimonials ===== */
.slider { overflow: hidden; }
.slider__track { display: flex; transition: transform .7s var(--ease); }
.quote { flex: 0 0 100%; margin: 0; padding: 0 2px; }
.quote blockquote { margin: 0; }
.quote__head { font: 800 clamp(1.6rem, 4vw, 3rem)/1.1 var(--display); margin-bottom: 1.2rem; }
.quote blockquote p:not(.quote__head) { color: #33473a; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 820px; }
.quote figcaption { margin-top: 1.2rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--green); font-size: 1.05rem; }
.slider__controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.slider__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--paper); font-size: 1.2rem; cursor: pointer; transition: background .3s, color .3s, transform .4s var(--bounce); }
.slider__btn:hover { background: var(--green); color: #fff; border-color: var(--green); transform: scale(1.1); }
.slider__dots { display: flex; gap: .5rem; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.slider__dots button[aria-selected="true"] { width: 34px; background: var(--green); }

/* ===== FAQ ===== */
.faq { background: var(--ink-2); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head p { color: var(--muted); }
.faq__head a { color: var(--lime); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 1.3rem 3rem 1.3rem 0; position: relative;
  font: 600 clamp(1.02rem, 1.6vw, 1.2rem)/1.35 var(--display); transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  font: 400 1.3rem/1 var(--body); transition: transform .4s var(--bounce), background .3s, color .3s;
}
.faq__list details[open] summary { color: var(--lime); }
.faq__list details[open] summary::after { transform: rotate(135deg); background: var(--green); color: #fff; border-color: var(--green); }
.faq__list details p { color: var(--muted); padding-right: 3rem; animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ===== CTA ===== */
.cta { background: radial-gradient(70% 70% at 0% 100%, rgba(253, 216, 53, .35), transparent 70%), radial-gradient(50% 60% at 100% 0%, rgba(141, 198, 63, .25), transparent 70%), var(--ink); }
.cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cta__copy > p { color: #33473a; max-width: 520px; }
.hours { display: grid; gap: .8rem; margin: 2rem 0 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; max-width: 420px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--green); font-weight: 700; }
.form { background: #fff; color: var(--paper); border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius); box-shadow: 14px 14px 0 var(--orange); display: grid; gap: 1rem; }
.form h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 700; }
.form input, .form select {
  font: 500 1rem var(--body); padding: .85rem 1rem; border-radius: 12px; border: 2px solid #d5e3cf; background: #fff; color: var(--paper);
  transition: border-color .3s, box-shadow .3s; width: 100%;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 166, 81, .18); }
.form input.is-invalid { border-color: #e0322b; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__msg { margin: 0; font-weight: 700; color: #1d7a3a; min-height: 1.2em; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } .form { box-shadow: 8px 8px 0 var(--orange); margin-right: 8px; } }

/* ===== Footer ===== */
.footer { border-top: 4px solid var(--green); padding: 4rem 0 1.5rem; background: var(--ink-2); }
.footer .brand__logo { height: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 2.5rem; }
.footer__h { font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.footer__about { color: var(--muted); margin-top: 1rem; max-width: 300px; }
.footer ul li { margin-bottom: .6rem; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--green); }
.footer address { font-style: normal; line-height: 1.9; }
.subscribe { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.subscribe input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--paper); padding: .6rem 1rem; font: inherit; }
.subscribe input:focus { outline: none; }
.subscribe button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 1.1rem; cursor: pointer; }
.social { display: flex; gap: .6rem; margin-top: 1.2rem !important; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); font-weight: 800; transition: transform .4s var(--bounce), background .3s, color .3s !important; }
.social a:hover { background: var(--green); color: #fff !important; transform: translateY(-4px) rotate(-8deg); }
.footer__copy { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ===== Scroll reveal ===== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__title .word { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .grain, .cursor { display: none !important; }
}

/* =====================================================
   Inner pages
   ===================================================== */
.nav__menu a[aria-current="page"]:not(.btn) { color: var(--green); }
.nav__menu a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

/* Page hero */
.page-hero {
  position: relative; overflow: hidden; padding: 150px 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(55% 70% at 90% 10%, rgba(141, 198, 63, .3), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(253, 216, 53, .35), transparent 70%),
    var(--ink-2);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); font-weight: 800; max-width: 16ch; animation: drop 1s var(--ease) both; }
.page-hero__lead { max-width: 620px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #33473a; }
.page-hero .shape--circle { top: 30%; right: 6%; width: 110px; height: 110px; }
.page-hero .shape--square { top: auto; bottom: 14%; right: 22%; }
.page-hero .shape--ring { top: 10%; left: auto; right: 12%; width: 260px; height: 260px; }
@media (max-width: 760px) {
  .page-hero { padding-top: 120px; }
  .page-hero .shape--circle { width: 70px; height: 70px; top: 100px; right: -20px; }
  .page-hero .shape--ring, .page-hero .shape--square { display: none; }
}
.crumbs { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--green); font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }

/* Generic content blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: #33473a; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose p, .prose li { color: #33473a; font-size: 1.05rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--green); font-weight: 700; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .5s var(--bounce), box-shadow .4s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 24px 50px -30px rgba(0, 104, 55, .5); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--green), var(--leaf)); color: #fff; font: 800 1.1rem/1 var(--display);
}
.card:nth-child(3n+2) .card__icon { background: linear-gradient(135deg, var(--orange), var(--sun)); }
.card:nth-child(3n+3) .card__icon { background: linear-gradient(135deg, var(--forest), var(--green)); }

/* Course detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.facts {
  position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: 12px 12px 0 var(--green);
}
@media (max-width: 960px) { .facts { position: static; box-shadow: 8px 8px 0 var(--green); margin-right: 8px; } }
.facts h2 { font-size: 1.4rem; }
.facts dl { margin: 0 0 1.4rem; }
.facts dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.facts .btn { width: 100%; margin-bottom: .6rem; }
.detail__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.detail__media img { width: 100%; aspect-ratio: 16/9; max-height: 440px; object-fit: cover; }

.modules { list-style: none; padding: 0; margin: 1.6rem 0 0; counter-reset: m; display: grid; gap: .8rem; }
.modules li {
  counter-increment: m; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem;
  transition: border-color .3s, transform .4s var(--bounce);
}
.modules li:hover { border-color: var(--green); transform: translateX(6px); }
.modules li::before {
  content: counter(m, decimal-leading-zero); font: 800 .85rem/1 var(--display); color: #fff;
  background: var(--green); border-radius: 999px; padding: .45rem .6rem;
}
.modules strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.modules span { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.chips li { background: var(--ink-3); color: var(--forest); font-weight: 700; font-size: .9rem; padding: .5rem .95rem; border-radius: 999px; }

.course-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.course-row:nth-child(even) .course-row__media { order: 2; }
.course-row__media { border-radius: var(--radius); overflow: hidden; position: relative; }
.course-row__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease); }
.course-row:hover .course-row__media img { transform: scale(1.05); }
.course-row h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.course-row p { color: #33473a; }
@media (max-width: 860px) { .course-row { grid-template-columns: 1fr; } .course-row:nth-child(even) .course-row__media { order: 0; } }

/* Services page */
.svc { display: grid; grid-template-columns: 90px 1fr; gap: 1.6rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc__num { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--green); }
.svc h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.svc p { color: #33473a; max-width: 720px; }
@media (max-width: 600px) { .svc { grid-template-columns: 1fr; gap: .4rem; } }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--bounce), box-shadow .4s; }
.post:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(0, 104, 55, .5); }
.post img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.post h2 { font-size: 1.3rem; }
.post h2 a { text-decoration: none; }
.post h2 a::after { content: ""; position: absolute; inset: 0; }
.post p { color: var(--muted); flex: 1; }
.article__media { border-radius: var(--radius); overflow: hidden; margin: 0 0 2.5rem; }
.article__media img { width: 100%; aspect-ratio: 21/9; max-height: 440px; object-fit: cover; }
.article__meta { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.info-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; }
.info-list .card__icon { margin: 0; }
.info-list strong { display: block; font-family: var(--display); }
.info-list a { color: var(--green); font-weight: 700; text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form textarea { font: 500 1rem var(--body); padding: .85rem 1rem; border-radius: 12px; border: 2px solid #d5e3cf; width: 100%; min-height: 120px; resize: vertical; color: var(--paper); }
.form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 166, 81, .18); }

/* CTA band */
.band { background: linear-gradient(120deg, var(--forest), var(--green) 65%, var(--leaf)); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); opacity: .25; animation: float 8s ease-in-out infinite; }
.band h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 0; max-width: 20ch; position: relative; z-index: 1; }
.band .btn { --bg: var(--sun); color: var(--paper); position: relative; z-index: 1; }
.band .btn:hover { color: #fff; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 16px 60px; }
.notfound__code { font: 800 clamp(6rem, 22vw, 14rem)/1 var(--display); background: linear-gradient(90deg, var(--orange), var(--sun), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; animation: squash 2.4s var(--ease) infinite; transform-origin: 50% 100%; }

/* =====================================================
   Mobile carousels: card grids become swipeable rows
   ===================================================== */
.carousel-dots { display: none; }
@media (max-width: 760px) {
  .course-grid, .team-grid, .cards-3, .post-grid, .service-grid, .process__list {
    display: flex !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch;
    margin-left: -16px !important; margin-right: -16px !important; padding: 4px 16px 18px; scrollbar-width: none;
  }
  .course-grid::-webkit-scrollbar, .team-grid::-webkit-scrollbar, .cards-3::-webkit-scrollbar,
  .post-grid::-webkit-scrollbar, .service-grid::-webkit-scrollbar, .process__list::-webkit-scrollbar { display: none; }

  .course-grid > *, .cards-3 > *, .post-grid > * { flex: 0 0 82%; scroll-snap-align: start; }
  .team-grid > * { flex: 0 0 68%; scroll-snap-align: start; }
  .service-grid > * { flex: 0 0 88%; scroll-snap-align: start; }

  /* Process steps: separate cards instead of a joined table */
  .process__list { background: none; border-radius: 0; overflow-x: auto; }
  .process__list li { flex: 0 0 62%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
  .process__list li:last-child { grid-column: auto; }

  .carousel-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .4rem; }
  .carousel-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(15, 42, 28, .2); transition: width .4s var(--ease), background .3s;
  }
  .carousel-dots button[aria-current="true"] { width: 26px; background: var(--green); }
}
@media (max-width: 760px) {
  /* Cards peeking in from the side should be visible, not waiting on the scroll reveal */
  .js .course-grid > .reveal, .js .team-grid > .reveal, .js .cards-3 > .reveal,
  .js .post-grid > .reveal, .js .service-grid > .reveal, .js .process__list > .reveal { opacity: 1; transform: none; }
}

/* Spam trap field, hidden from people and screen readers */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
