/* ================================================================
   Stallion Horse Riding Academy — premium single-page site
   Palette drawn from the brand brochure:
   deep forest green · warm cream · antique gold
   ================================================================ */

:root {
  --green-950: #17221a;
  --green-900: #1d2b20;
  --green-800: #24352a;
  --green-700: #2f4536;

  --cream-50:  #faf7ef;
  --cream-100: #f4efe2;
  --cream-200: #eae2cf;
  --cream-300: #ddd2b8;

  --gold-400: #c9a55c;
  --gold-500: #b9924c;
  --gold-600: #9c793a;

  --ink: #232620;
  --ink-soft: #55584f;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 60px rgba(23, 34, 26, 0.12);
  --shadow-card: 0 10px 34px rgba(23, 34, 26, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--green-900); }
h1 { font-size: clamp(2.9rem, 7.2vw, 5.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-500); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green-700);
  margin-bottom: 1.1rem;
}
.eyebrow--gold { color: var(--gold-500); }
.eyebrow--light { color: var(--cream-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05rem; height: 1.05rem; }
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #fff;
  box-shadow: 0 12px 28px rgba(156, 121, 58, 0.35);
}
.btn--gold:hover { box-shadow: 0 16px 36px rgba(156, 121, 58, 0.45); }

.btn--ghost {
  color: var(--cream-50);
  border: 1px solid rgba(250, 247, 239, 0.45);
  background: rgba(23, 34, 26, 0.25);
}
.btn--ghost:hover { background: rgba(250, 247, 239, 0.12); border-color: var(--cream-50); }

.btn--dark { background: var(--green-900); color: var(--cream-50); }
.btn--dark:hover { background: var(--green-800); box-shadow: 0 14px 30px rgba(23, 34, 26, 0.28); }

.btn--outline { border: 1.5px solid var(--green-800); color: var(--green-900); }
.btn--outline:hover { background: var(--green-900); color: var(--cream-50); }

/* ---------- Ribbon ---------- */
.ribbon {
  background: var(--green-950);
  color: var(--cream-200);
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}
.ribbon a { color: var(--gold-400); font-weight: 500; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(23, 34, 26, 0.92), rgba(23, 34, 26, 0.78));
  border-bottom: 1px solid rgba(250, 247, 239, 0.08);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled { background: rgba(23, 34, 26, 0.92); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--cream-50); }
.brand__mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  color: var(--gold-400);
  padding: 7px;
  flex: none;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand__text em {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
.nav__links > a:not(.btn) {
  color: var(--cream-100);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.btn--nav { padding: 0.7rem 1.6rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 0.6rem; }
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--cream-50);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 96px);
  display: flex;
  align-items: center;
  color: var(--cream-50);
  margin-top: -71px;           /* pull hero under the translucent nav */
  padding-top: 71px;
  overflow: hidden;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 35%; transform: scale(1.05); animation: heroDrift 18s var(--ease) forwards; }
@keyframes heroDrift { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 34, 26, 0.88) 0%, rgba(23, 34, 26, 0.62) 45%, rgba(23, 34, 26, 0.25) 100%),
    linear-gradient(to top, rgba(23, 34, 26, 0.65), transparent 40%);
}
.hero__content { position: relative; z-index: 2; padding: clamp(5rem, 12vh, 8rem) 0 clamp(4rem, 9vh, 6rem); }
.hero h1 { color: var(--cream-50); }
.hero h1 em { color: var(--gold-400); }
.hero__lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(250, 247, 239, 0.85);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }

.hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 2.6rem);
  margin-top: clamp(2.8rem, 6vh, 4.2rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(250, 247, 239, 0.22);
  max-width: 46rem;
}
.hero__stats i { width: 1px; height: 2.6rem; background: rgba(250, 247, 239, 0.22); }
.hero__stats strong {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1;
  display: block;
}
.hero__stats strong span { font-size: 0.55em; margin-left: 0.15em; }
.hero__stats small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 239, 0.75);
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(250, 247, 239, 0.5);
  border-radius: 999px;
  display: grid;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--gold-400);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ---------- About ---------- */
.about { background: var(--cream-50); }
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about__media { position: relative; padding-bottom: 3.5rem; }
.about__photo {
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  width: 78%;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.about__photo--accent {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  border-radius: var(--radius);
  border: 6px solid var(--cream-50);
}
.about__photo--accent img { aspect-ratio: 1; }
.about__seal {
  position: absolute;
  left: -2.2rem; bottom: 4.8rem;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--green-900);
  display: grid;
  place-items: center;
  animation: sealSpin 26s linear infinite;
  box-shadow: var(--shadow-card);
}
.about__seal svg { width: 92%; height: 92%; }
.about__seal text {
  font-family: var(--sans);
  font-size: 10.2px;
  letter-spacing: 2.6px;
  fill: var(--gold-400);
  text-transform: uppercase;
}
@keyframes sealSpin { to { transform: rotate(360deg); } }

.about__copy p:not(.eyebrow) { color: var(--ink-soft); max-width: 33rem; margin-top: 1.15rem; }
.about__copy h2 { margin-bottom: 0.4rem; }
.about__points { margin: 1.6rem 0 2.2rem; display: grid; gap: 0.7rem; }
.about__points li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
  font-weight: 400;
}
.about__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.48em;
  width: 0.95rem; height: 0.55rem;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}

/* ---------- Known for ---------- */
.known { background: var(--green-900); position: relative; overflow: hidden; }
.known::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 60rem at 110% -20%, rgba(201, 165, 92, 0.08), transparent 60%),
    radial-gradient(50rem 50rem at -10% 120%, rgba(201, 165, 92, 0.06), transparent 60%);
}
.known__head { position: relative; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.known__head h2 { color: var(--cream-50); }
.known__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.known__card {
  background: rgba(250, 247, 239, 0.04);
  border: 1px solid rgba(250, 247, 239, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.known__card:hover {
  transform: translateY(-6px);
  background: rgba(250, 247, 239, 0.07);
  border-color: rgba(201, 165, 92, 0.45);
}
.known__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold-400);
  display: block;
  margin-bottom: 1.1rem;
}
.known__card h3 { color: var(--cream-50); margin-bottom: 0.7rem; }
.known__card p { color: rgba(250, 247, 239, 0.72); font-size: 0.97rem; }

/* ---------- Quote band ---------- */
.quote {
  position: relative;
  padding: clamp(5rem, 12vw, 8.5rem) 0;
  color: var(--cream-50);
  text-align: center;
  overflow: hidden;
}
.quote__media, .quote__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote__media img { object-fit: cover; object-position: center 30%; }
.quote__veil { position: absolute; inset: 0; background: rgba(23, 34, 26, 0.78); }
.quote__inner { position: relative; max-width: 46rem; }
.quote__mark { width: 2.6rem; height: 2.6rem; color: var(--gold-400); margin-bottom: 1.4rem; }
.quote__inner p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}
.quote__rule {
  display: block;
  width: 64px; height: 1px;
  background: var(--gold-400);
  margin: 1.8rem auto 0;
}

/* ---------- Pricing ---------- */
.pricing { background: var(--cream-100); }
.pricing__head { text-align: center; }
.pricing__sub { color: var(--ink-soft); margin-top: 0.9rem; }

.tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  padding: 5px;
  margin-top: 2.2rem;
  box-shadow: inset 0 2px 6px rgba(23, 34, 26, 0.05);
}
.tab {
  position: relative;
  z-index: 2;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}
.tab small { font-size: 0.62rem; letter-spacing: 0.2em; opacity: 0.65; text-transform: none; }
.tab.is-active { color: var(--cream-50); }
.tabs__pill {
  position: absolute;
  z-index: 1;
  top: 5px; bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--green-900);
  transition: transform 0.45s var(--ease);
  box-shadow: 0 8px 20px rgba(23, 34, 26, 0.3);
}
.tabs.tabs--adults .tabs__pill { transform: translateX(100%); }

.plans { margin-top: clamp(2.5rem, 5vw, 3.8rem); }
.plans[hidden] { display: none; }
.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.plan header h3 { font-size: 1.45rem; }
.plan header p {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.plan__price {
  margin: 1.3rem 0;
  padding: 1.1rem 0;
  border-block: 1px solid var(--cream-200);
}
.plan__price strong {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green-900);
  display: block;
  line-height: 1;
}
.plan__price span {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 500;
}
.plan ul { display: grid; gap: 0.5rem; margin-bottom: 1.6rem; flex: 1; }
.plan ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.plan ul li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 0.05em;
  font-size: 0.55rem;
  color: var(--gold-500);
}
.plan .btn { width: 100%; padding-inline: 1rem; }

.plan--featured {
  background: var(--green-900);
  border-color: var(--green-700);
  box-shadow: 0 24px 60px rgba(23, 34, 26, 0.35);
}
.plan--featured header h3, .plan--featured .plan__price strong { color: var(--cream-50); }
.plan--featured header p { color: rgba(250, 247, 239, 0.6); }
.plan--featured .plan__price { border-color: rgba(250, 247, 239, 0.15); }
.plan--featured .plan__price span { color: var(--gold-400); }
.plan--featured ul li { color: rgba(250, 247, 239, 0.8); }
.plan__badge {
  position: absolute;
  top: -0.85rem;
  right: 1.2rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(156, 121, 58, 0.4);
}

@media (min-width: 1025px) {
  .plan--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1.4fr auto;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: 2.4rem 2.8rem;
    margin-top: 0.6rem;
  }
  .plan--featured .plan__price {
    margin: 0;
    padding: 0.4rem 0 0.4rem clamp(1.5rem, 3vw, 3rem);
    border-block: none;
    border-left: 1px solid rgba(250, 247, 239, 0.15);
  }
  .plan--featured ul { margin-bottom: 0; }
  .plan--featured .btn { width: auto; padding-inline: 2.2rem; }
}

.pricing__note {
  text-align: center;
  margin-top: 2.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.pricing__note a { color: var(--gold-600); font-weight: 500; border-bottom: 1px solid currentColor; }

/* ---------- Contact ---------- */
.contact { background: var(--green-950); color: var(--cream-50); position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55rem 40rem at 85% 15%, rgba(201, 165, 92, 0.09), transparent 60%);
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.contact__copy h2 { color: var(--cream-50); }
.contact__copy p:not(.eyebrow) { color: rgba(250, 247, 239, 0.75); margin-top: 1.2rem; max-width: 30rem; }
.contact__cards { display: grid; gap: 1rem; }
.contact__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.1rem;
  align-items: center;
  background: rgba(250, 247, 239, 0.05);
  border: 1px solid rgba(250, 247, 239, 0.14);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.contact__card:hover {
  transform: translateX(6px);
  border-color: rgba(201, 165, 92, 0.55);
  background: rgba(250, 247, 239, 0.08);
}
.contact__icon {
  grid-row: span 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold-400);
  color: var(--gold-400);
  display: grid;
  place-items: center;
}
.contact__icon svg { width: 1.3rem; height: 1.3rem; }
.contact__card small {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 247, 239, 0.6);
}
.contact__card strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-950);
  border-top: 1px solid rgba(250, 247, 239, 0.1);
  color: var(--cream-200);
  padding: 2.6rem 0;
}
.footer__inner {
  display: grid;
  gap: 1.6rem;
  justify-items: center;
  text-align: center;
}
.brand--footer .brand__text strong { font-size: 1.2rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem; }
.footer__links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-200);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--gold-400); }
.footer__note { font-size: 0.82rem; color: rgba(250, 247, 239, 0.55); }
.footer__note a { color: rgba(250, 247, 239, 0.75); }
.footer__note a:hover { color: var(--gold-400); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img, .about__seal, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { grid-column: span 2; }
}

@media (max-width: 860px) {
  .ribbon { font-size: 0.66rem; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(23, 34, 26, 0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.4s var(--ease); }
  .nav__links > a:not(.btn) { font-size: 1.05rem; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle { position: relative; z-index: 95; }

  .hero { min-height: calc(100svh - 80px); }
  .hero__stats { flex-wrap: wrap; gap: 1.4rem; }
  .hero__stats i { display: none; }
  .hero__stats > div { min-width: 8.5rem; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; margin-inline: auto; width: 100%; }
  .about__seal { left: auto; right: -0.6rem; bottom: 6rem; width: 100px; height: 100px; }

  .known__grid { grid-template-columns: 1fr; }

  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .plans__grid { grid-template-columns: 1fr; }
  .plan--featured { grid-column: auto; }
  .plan { padding: 1.6rem 1.3rem; }

  .tabs { width: 100%; }
  .tab { padding: 0.75rem 0.6rem; }

  .hero__cta .btn { width: 100%; }
  .brand__text em { font-size: 0.52rem; }
  .hero__scroll { display: none; }
}

/* Very tall viewports: keep the hero composed instead of stretching.
   Kept last so it wins over the responsive min-heights above. */
@media (min-height: 1400px) {
  .hero { min-height: 860px; }
}
