/* ==========================================================================
   Haarika Insurance Services
   --------------------------------------------------------------------------
   Palette and type are carried over from the original design.
   Sections run top-down in roughly the order they appear on the page.
   ========================================================================== */

@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-var.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green:      #083c2f;
  --green-deep: #052a21;
  --nav-bar:    #2c5229;  /* the navbar capsule */
  --gold:       #f3c022;  /* badge on the active nav item, matches the logo shield */
  --lime:       #c9f269;
  --lime-soft:  #e6f9b9;
  --ink:        #212121;
  --body:       #4a4d4c;
  --muted:      #747675;
  --faint:      #acacac;
  --line:       #d8d8d8;
  --bg:         #f6f8f4;
  --bg-alt:     #f1f5f4;
  --white:      #fff;

  --shell: 1200px;
  --gutter: 20px;
  --header-h: 76px;   /* the hero subtracts this to fill exactly one screen */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow:    0 2px 10px rgba(8, 60, 47, .06);
  --shadow-lg: 0 18px 50px rgba(8, 60, 47, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: 'Figtree', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

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

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; padding: 0; background: none; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --- layout helpers ------------------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 110px); }
.section--tint { background: var(--bg); }
.section--alt  { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--lime-soft);
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: .97rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); box-shadow: var(--shadow-lg); }

.btn--lime { background: var(--lime); color: var(--green); }
.btn--lime:hover { background: var(--lime-soft); box-shadow: var(--shadow-lg); }

.btn--ghost { border: 1.5px solid var(--line); color: var(--green); }
.btn--ghost:hover { border-color: var(--green); background: var(--green); color: var(--white); }

.btn--light { background: var(--white); color: var(--green); }
.btn--light:hover { background: var(--lime); }

/* nowrap keeps buttons tidy on desktop, but the long service CTAs ("Protect
   your business with tailored cover") are wider than a phone, so below this
   they wrap instead of pushing the page sideways. */
@media (max-width: 600px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
}

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  /* The hairline is a shadow, not a border: a border would add 1px to the
     header's height and the hero's calc(100svh - var(--header-h)) would
     overflow the fold by exactly that much. */
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--line), var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { position: relative; flex: none; }
.brand img { width: auto; height: 42px; object-fit: contain; }
/* Two logos stacked: the dark one normally, the light one once the overlay
   menu covers the header and the dark one would disappear into the green. */
.brand__mark { transition: opacity .25s var(--ease); }
.brand__mark--light { position: absolute; top: 0; left: 0; opacity: 0; }

/* The nav is a dark capsule holding the links; the current page sits inside it
   as a white pill with a gold badge. */
.nav {
  margin-inline: auto;
  border-radius: 100px;
  background: var(--nav-bar);
  padding: 6px;
}
.nav ul { display: flex; align-items: center; gap: 2px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(18px, 2.4vw, 34px);
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .14); }
.nav a[aria-current='page'] { background: var(--white); color: var(--green); }

/* Gold badge: carried by every link, shown only on the current page. */
.nav__dot { display: none; }
.nav a[aria-current='page'] .nav__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}
.nav__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

/* Contact sits inside the capsule only on mobile; on desktop .header-cta covers it. */
.nav__contact { display: none; }

/* Contact pill: label, then a white disc holding the arrow. */
.header-cta {
  flex: none;
  gap: 14px;
  padding: 6px 6px 6px 26px;
  background: var(--green);
  color: var(--white);
}
.header-cta:hover { background: var(--green-deep); }
.header-cta__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  transition: transform .25s var(--ease);
}
.header-cta__arrow svg { width: 16px; height: 16px; }
.header-cta:hover .header-cta__arrow { transform: translateX(3px); }

/* On the contact page itself the capsule has nothing to highlight, so the gold
   disc marks where you are. */
.header-cta.is-current .header-cta__arrow { background: var(--gold); }

/* Column flex, not grid: grid would give each bar its own auto row and spread
   the three of them across the full 46px, instead of a compact 14px stack. */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  flex: none;
  border-radius: 50%;
  background: var(--bg-alt);
  transition: background-color .2s var(--ease);
}
.burger:hover { background: var(--line); }
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; margin-left: auto; }
  .header-cta { display: none; }

  /* Logo and burger ride above the panel so both stay visible and usable
     once it covers the header. */
  .brand, .burger { position: relative; z-index: 2; }

  /* Full-screen overlay: the panel covers the header rather than dropping
     below it, and its own top padding clears the logo row. */
  .nav {
    position: fixed;
    /* .site-header carries a backdrop-filter, which makes it the containing
       block for fixed descendants. So set the height explicitly instead of
       letting bottom:0 resolve - otherwise the panel is only as tall as the
       header whenever that filter is active. */
    inset: 0 0 auto;
    height: 100vh;
    height: 100svh;
    z-index: 1;
    margin: 0;
    padding: calc(var(--header-h) + 18px) var(--gutter) 32px;
    border-radius: 0;
    background: var(--nav-bar);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-100%);
    visibility: hidden;
    /* visibility flips instantly, delayed until the slide-out ends. Giving it a
       duration instead would leave the menu unusable if the transition is
       interrupted part-way. */
    transition: transform .34s var(--ease), visibility 0s linear .34s;
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform .34s var(--ease), visibility 0s linear 0s;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 15px 18px; border-radius: var(--r-sm); font-size: .95rem; }
  .nav__contact { display: block; margin-top: 14px; }
  .nav__contact a {
    justify-content: center;
    border-radius: 100px;
    background: var(--gold);
    color: var(--green);
  }
  .nav__contact a:hover { background: var(--lime); }

  /* While the overlay is up the header sits on green, so its own chrome
     switches to the light treatment. */
  body.nav-open .site-header {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  body.nav-open .burger { background: rgba(255, 255, 255, .16); }
  body.nav-open .burger span { background: var(--white); }
  body.nav-open .brand__mark { opacity: 0; }
  body.nav-open .brand__mark--light { opacity: 1; }
}

/* --- hero ---------------------------------------------------------------- */

/* Light hero. The artwork supplies the colour; a white wash down the top keeps
   the heading legible over it. */
.hero {
  position: relative;
  display: grid;
  /* Copy sits in a row that takes all the spare height so it can centre in it;
     the stats keep their own row at the foot. .hero__media is absolutely
     positioned, so it is out of flow and claims no row. */
  grid-template-rows: 1fr auto;
  /* Exactly one screenful below the sticky header. svh, not vh, so mobile
     browser chrome does not push the stats out of sight. The vh line is the
     fallback: a browser without svh drops that declaration whole. */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  gap: clamp(18px, 4vh, 56px);
  padding-block: clamp(20px, 4vh, 58px) clamp(20px, 4vh, 54px);
  overflow: hidden;
  background: var(--white);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    #fff 0%,
    rgba(255, 255, 255, .88) 15%,
    rgba(255, 255, 255, .30) 35%,
    rgba(255, 255, 255, 0) 52%);
}

.hero__head { align-self: center; text-align: center; }

/* Hero type is sized against BOTH axes: min() picks whichever of width or
   height is the tighter constraint, so the block clears the fold on a short
   laptop as well as a narrow phone. */
.hero h1 {
  margin-inline: auto;
  /* Wide enough for "SIMPLIFYING YOUR INSURANCE" to hold one line: two big
     lines are shorter than three smaller ones, which is what buys the size. */
  max-width: 28ch;
  font-size: clamp(1.9rem, min(5.6vw, 8.4vh), 4.75rem);
  line-height: 1.05;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: -.015em;
}
.hero__kicker {
  margin: clamp(8px, 1.8vh, 18px) auto 0;
  color: var(--body);
  font-size: clamp(.92rem, min(1.5vw, 2vh), 1.12rem);
  font-weight: 600;
}
.hero__sub {
  max-width: 52ch;
  margin: clamp(6px, 1.4vh, 14px) auto 0;
  color: var(--body);
  font-size: clamp(.9rem, min(1.2vw, 1.8vh), 1.04rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(14px, 2.6vh, 30px);
}
/* A plain bordered button vanishes against the artwork, so give it a pane. */
.hero__actions .btn--ghost {
  border-color: rgba(8, 60, 47, .22);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(5px);
}
.hero__actions .btn--ghost:hover {
  border-color: var(--green);
  background: var(--green);
}

/* Narrow screens stack the copy taller, so carry the white wash further down
   to keep it off the bright part of the sphere. */
@media (max-width: 700px) {
  .hero::after {
    background: linear-gradient(180deg,
      #fff 0%,
      rgba(255, 255, 255, .94) 26%,
      rgba(255, 255, 255, .58) 48%,
      rgba(255, 255, 255, 0) 72%);
  }
}

/* --- stat strip ---------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 2px;
  margin-top: clamp(44px, 6vw, 72px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.stat { padding: 26px 24px; background: rgba(5, 42, 33, .55); backdrop-filter: blur(6px); }
.stat__num {
  display: block;
  color: var(--lime);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* stats on a light background (about page) */
.stats--light { background: var(--line); }
.stats--light .stat { background: var(--white); backdrop-filter: none; }
.stats--light .stat__num { color: var(--green); }
.stats--light .stat__label { color: var(--muted); }

/* Hero stats: a bare column at the lower left, no panel behind them. */
/* Hero stats run as a row across the foot of the hero. Stacked in the corner
   they left the whole right-hand side of the artwork empty. */
.stats--stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
}
.stats--stack .stat {
  padding: 0 clamp(10px, 2.4vw, 36px);
  background: none;
  backdrop-filter: none;
}
.stats--stack .stat:first-child { padding-left: 0; }
.stats--stack .stat + .stat { border-left: 1px solid rgba(8, 60, 47, .16); }
.stats--stack .stat__num {
  color: var(--green);
  font-size: clamp(1.55rem, min(3.2vw, 4.2vh), 2.8rem);
}
.stats--stack .stat__label {
  margin-top: 1px;
  color: var(--body);
  font-size: clamp(.66rem, 1.4vh, .76rem);
}

/* Landscape phones and very short windows: one screenful would squash the type
   past readability, so let the hero grow and scroll instead. */
@media (max-height: 600px) {
  .hero { min-height: auto; }
}

/* --- partner marquee ----------------------------------------------------- */

.partners h2 { text-transform: uppercase; }

.marquee {
  position: relative;
  padding-block: 20px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
/* Second row drifts the other way, so the two read as one moving field. */
.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 56s;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(36px, 6vw, 74px);
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Full colour, as the partner brands are meant to be shown. */
.marquee img {
  width: auto;
  height: clamp(38px, 4vw, 54px);
  object-fit: contain;
  transition: transform .3s var(--ease);
}
.marquee img:hover { transform: scale(1.06); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* --- split (image + text) ------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.split--flip .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
/* Scoped to beat `.split__media img`, which is more specific than a lone class
   and would otherwise force this to 100% width, 4/5 aspect and the large
   radius - covering the photograph instead of sitting on its corner. */
.split__media .split__badge {
  position: absolute;
  right: clamp(-16px, -1.4vw, -10px);
  bottom: clamp(-16px, -1.4vw, -10px);
  z-index: 2;
  width: clamp(116px, 17vw, 188px);
  height: auto;
  aspect-ratio: 220 / 123;
  border-radius: var(--r-sm);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.ticks { margin-top: 28px; display: grid; gap: 13px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--green); }
.ticks svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--green); }

/* --- service cards ------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }

.card__media { aspect-ratio: 16 / 11; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 26px; }
.card__body h3 { font-size: 1.1rem; letter-spacing: .01em; text-transform: uppercase; }
.card__body p { color: var(--muted); font-size: .96rem; }

.card__link {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: .93rem;
}
.card__link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* --- service rows (services page) ---------------------------------------- */

.srow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--line);
}
.srow:first-of-type { border-top: 0; }
.srow:nth-child(even) .srow__media { order: 2; }
.srow__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  object-fit: cover;
}
.srow__body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.srow__body .btn { margin-top: 24px; }

/* --- sector overview ----------------------------------------------------- */

.sector {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--green);
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
  isolation: isolate;
}
.sector__bg { position: absolute; inset: 0; z-index: -1; opacity: .2; }
.sector__bg img { width: 100%; height: 100%; object-fit: cover; }
.sector__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 60px);
}
.sector h2 { color: var(--white); }
.sector__list { display: grid; gap: 10px; margin-top: 26px; }
.sector__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  font-weight: 600;
  font-size: .97rem;
}
.sector__list svg { width: 19px; height: 19px; flex: none; color: var(--lime); }
.sector__media img { width: 100%; border-radius: var(--r); object-fit: cover; }

/* --- testimonials -------------------------------------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 22px;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.quote__stars { display: flex; gap: 3px; color: #f5a623; }
.quote__stars svg { width: 17px; height: 17px; }
.quote blockquote { margin: 0; color: var(--ink); font-size: 1.02rem; }
.quote__author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote__author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__name { display: block; color: var(--green); font-weight: 700; font-size: .96rem; }
.quote__where { display: block; color: var(--muted); font-size: .85rem; text-transform: capitalize; }

/* Shown only once reviews.php returns a live rating. */
.rating-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--lime-soft);
  color: var(--green);
  font-size: .9rem;
  font-weight: 600;
}
.rating-badge a { color: var(--green); text-decoration: underline; }

/* --- FAQ ----------------------------------------------------------------- */

.faq { display: grid; gap: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 24px 2px;
  text-align: left;
  color: var(--green);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
}
.faq__icon {
  position: relative;
  width: 34px; height: 34px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: var(--bg-alt);
  transition: background-color .25s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded='true'] .faq__icon { background: var(--lime); }
.faq__q[aria-expanded='true'] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 24px; padding-right: 52px; color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* --- post / social cards ------------------------------------------------- */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 22px;
}
.post {
  display: block;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post__body { display: flex; align-items: center; gap: 12px; padding: 22px 24px; }
.post__body h3 { font-size: 1.02rem; font-weight: 600; }
.post__body svg { width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--green); }

/* --- value / feature tiles ----------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 20px;
}
.tile {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.tile__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--lime-soft);
  color: var(--green);
}
.tile__icon svg { width: 23px; height: 23px; }
.tile h3 { font-size: 1.06rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .95rem; }

.tile--photo { padding: 0; overflow: hidden; border: 0; }
.tile--photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tile--photo .tile__text { padding: 24px; background: var(--white); border: 1px solid var(--line); border-top: 0; }

/* --- director ------------------------------------------------------------ */

.director {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl);
  background: var(--bg);
}
.director img { width: 100%; max-width: 420px; border-radius: var(--r-lg); aspect-ratio: 1 / 1; object-fit: cover; }
.director__name { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .04em; }
.director__role {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* --- page banner --------------------------------------------------------- */

.banner {
  position: relative;
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--green);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
  isolation: isolate;
}
.banner__bg { position: absolute; inset: 0; z-index: -2; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 42, 33, .86), rgba(5, 42, 33, .68));
}
.banner h1 { color: var(--white); }
.banner p { max-width: 54ch; margin-top: 18px; color: rgba(255, 255, 255, .82); }

/* --- contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.contact-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green);
  color: var(--lime);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card h3 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card a, .contact-card p { display: block; margin-top: 7px; color: var(--green); font-weight: 600; font-size: 1.02rem; }
.contact-card a:hover { text-decoration: underline; }

/* --- contact our team ---------------------------------------------------- */

.team {
  position: relative;
  margin-bottom: clamp(34px, 5vw, 58px);
  padding: clamp(42px, 5vw, 56px) clamp(16px, 3vw, 32px) clamp(22px, 3vw, 32px);
  border: 1px solid rgba(243, 192, 34, .55);
  border-radius: var(--r-lg);
  background: #fdf9ee;
}

/* The label straddles the top border, so it reads as a tab on the card. */
.team__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 11px clamp(20px, 3vw, 32px);
  border-radius: 100px;
  background: var(--green);
  color: var(--white);
  font-size: clamp(.82rem, 1.5vw, .98rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(236px, 100%), 1fr));
  gap: 12px;
}
/* Six numbers sit best as 3 x 2; auto-fit alone gives a lopsided 4 + 2 on a
   wide screen. */
@media (min-width: 880px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}

.team__item a {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(8, 60, 47, .12);
  border-radius: var(--r-sm);
  background: #fdfcf8;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.team__item a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* The number people should reach for first. */
.team__item--main a { background: #e8f4e0; border-color: rgba(8, 60, 47, .22); }

.team__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #047a29;
  color: var(--white);
}
.team__icon svg { width: 19px; height: 19px; }

.team__text { display: flex; flex-direction: column; min-width: 0; }
.team__role {
  color: var(--muted);
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.3;
}
.team__num {
  color: var(--green);
  font-size: clamp(.98rem, 1.5vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

/* Email variant: an address is roughly three times the width of a phone
   number, so this drops to two columns and lets it wrap instead of pushing
   out of its tile. */
.team--email .team__num {
  font-size: clamp(.82rem, 1.2vw, .94rem);
  white-space: normal;
  overflow-wrap: anywhere;
}
.team--email .team__icon { background: var(--green); }

@media (min-width: 880px) {
  .team--email .team__grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* --- form ---------------------------------------------------------------- */

.form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.form h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 22px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label { color: var(--green); font-size: .88rem; font-weight: 600; }
.field label .req { color: #d9534f; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .97rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083c2f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 42px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 60, 47, .1);
}
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'], .field select[aria-invalid='true'] {
  border-color: #d9534f;
}
.field__error { color: #d9534f; font-size: .83rem; min-height: 1em; }

/* honeypot - hidden from humans, visible to naive bots */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; }

.form__submit { margin-top: 22px; }
.form__submit button { width: 100%; justify-content: center; }
.form__submit button[disabled] { opacity: .6; cursor: progress; transform: none; }

.form__note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
}
.form__note[hidden] { display: none; }
.form__note--ok   { background: var(--lime-soft); color: var(--green); }
.form__note--bad  { background: #fdecea; color: #a4332b; }

/* --- footer -------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(48px, 7vw, 80px) 30px;
  background: var(--green);
  color: rgba(255, 255, 255, .7);
}
.site-footer a { color: rgba(255, 255, 255, .7); transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--lime); }

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-brand img { width: auto; height: 46px; margin-bottom: 16px; object-fit: contain; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }

.footer-col h3 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer-col li + li { margin-top: 9px; }
.footer-col a { font-size: .95rem; }

.newsletter { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 150px;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font: inherit;
  font-size: .93rem;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter input:focus { outline: 0; border-color: var(--lime); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              filter .25s var(--ease);
}
.site-footer .socials a:hover {
  color: var(--white);
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
}
.socials svg { width: 18px; height: 18px; }

.social--instagram {
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social--facebook { background: #1877f2; }
.social--youtube  { background: #ff0000; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  padding-top: 26px;
  font-size: .88rem;
}
.footer-bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* --- prose (privacy policy) ---------------------------------------------- */

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--green); font-weight: 600; text-decoration: underline; }
.prose__meta { color: var(--muted); font-size: .92rem; }

/* --- 404 ----------------------------------------------------------------- */

.notfound { display: grid; place-items: center; min-height: 62vh; text-align: center; padding-block: 70px; }
.notfound__code {
  color: var(--lime);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.05em;
  -webkit-text-stroke: 2px var(--green);
}
.notfound .btn { margin-top: 10px; }

/* ==========================================================================
   MOTION
   --------------------------------------------------------------------------
   Everything here is transform/opacity only, so it composites on the GPU and
   never triggers layout. Nothing is required to read the page: content is
   visible by default and only hidden once `.js` confirms scripting is live.
   ========================================================================== */

:root {
  --m-dur:     .72s;
  --m-ease:    cubic-bezier(.22, .68, .3, 1);
  --m-stagger: 70ms;
}

/* --- reveal-on-scroll ---------------------------------------------------- */

.reveal, [data-reveal] { opacity: 1; transform: none; }

.js .reveal,
.js [data-reveal] {
  opacity: 0;
  transition: opacity var(--m-dur) var(--m-ease),
              transform var(--m-dur) var(--m-ease),
              clip-path var(--m-dur) var(--m-ease),
              filter var(--m-dur) var(--m-ease);
  /* --i is set per child by site.js, so siblings arrive in sequence. */
  transition-delay: calc(var(--i, 0) * var(--m-stagger));
}

.js .reveal,
.js [data-reveal='up']    { transform: translateY(26px); }
.js [data-reveal='down']  { transform: translateY(-26px); }
.js [data-reveal='left']  { transform: translateX(-34px); }
.js [data-reveal='right'] { transform: translateX(34px); }
.js [data-reveal='scale'] { transform: scale(.94); }
.js [data-reveal='clip']  { clip-path: inset(0 0 102% 0); }
.js [data-reveal='blur']  { transform: translateY(18px); filter: blur(7px); }

.js .reveal.is-in,
.js [data-reveal].is-in         { opacity: 1; transform: none; }
.js [data-reveal='clip'].is-in  { clip-path: inset(0 0 -2% 0); }
.js [data-reveal='blur'].is-in  { filter: none; }

/* Below the breakpoint those side-by-side sections stack, so a sideways slide
   no longer describes the layout - and on a full-width element it pushes the
   document 14px wider mid-transition. Slide them up instead. */
@media (max-width: 900px) {
  .js [data-reveal='left'],
  .js [data-reveal='right'] { transform: translateY(26px); }
}

/* --- scroll progress ----------------------------------------------------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 300;
  background: linear-gradient(90deg, var(--gold), var(--lime));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* --- hero ---------------------------------------------------------------- */

/* Parallax rides on the wrapper and the drift on the image, so the two
   transforms never fight over the same element. */
.hero__media { transform: translate3d(0, var(--par, 0px), 0); }

.js .hero__media img {
  animation: heroDrift 13s ease-in-out infinite;
}
@keyframes heroDrift {
  0%, 100% { transform: scale(1.05) translate3d(0, 0, 0); }
  50%      { transform: scale(1.075) translate3d(0, -12px, 0); }
}

/* Hero copy arrives in sequence on load. Staggering the existing elements
   rather than splitting lines keeps it correct however the text rewraps. */
.js .hero__head > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--m-ease), transform .8s var(--m-ease);
  transition-delay: calc(var(--i, 0) * 120ms + 100ms);
}
.js .hero__head.is-in > * { opacity: 1; transform: none; }

/* --- micro-interactions -------------------------------------------------- */

.card, .post, .tile, .quote, .team__item a, .contact-card {
  transition: transform .34s var(--m-ease), box-shadow .34s var(--m-ease),
              border-color .34s var(--m-ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quote:hover        { transform: translateY(-3px); box-shadow: var(--shadow); }

.contact-card__icon, .tile__icon, .team__icon {
  transition: transform .4s var(--m-ease);
}
.contact-card:hover .contact-card__icon,
.tile:hover .tile__icon,
.team__item a:hover .team__icon { transform: scale(1.08) rotate(-6deg); }

/* The tick list draws its circles in rather than just fading. */
.js .ticks svg { transition: transform .5s var(--m-ease); }
.js .ticks li:hover svg { transform: scale(1.15); }

/* Nav pill and sector rows */
.sector__list li {
  transition: transform .3s var(--m-ease), background-color .3s var(--m-ease),
              border-color .3s var(--m-ease);
}
.sector__list li:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(201, 242, 105, .4);
}

/* --- respect the system setting ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal,
  [data-reveal], .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
  }
  .js .hero__head > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media { transform: none !important; }
  .scroll-progress { display: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- print --------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .hero__media, .marquee, .burger { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section { padding-block: 12pt; }
}
