/* ============================================================
   Branshe OS — Marketing site
   Design system: Cavalry visuals + Angi discovery + Rocket
   Mortgage simplicity.
   ============================================================ */

:root {
  --blue:        #5AA23D;   /* branshe green (brand) */
  --blue-dark:   #47832F;
  --blue-darker: #386824;
  --blue-light:  #EEF6E8;
  --blue-tint:   #C9E3B9;
  --navy:        #0F1B2D;
  --gray:        #5B6B7C;
  --gray-light:  #8A97A6;
  --line:        #E4E9EF;
  --bg:          #FFFFFF;
  --bg-soft:     #F6F9FC;
  --white:       #FFFFFF;
  --shadow-sm:   0 2px 8px rgba(15, 27, 45, 0.06);
  --shadow-md:   0 8px 28px rgba(15, 27, 45, 0.10);
  --shadow-lg:   0 18px 50px rgba(15, 27, 45, 0.16);
  --radius:      16px;
  --radius-lg:   24px;
  --pill:        999px;
  --maxw:        1180px;
  --header-h:    72px;
  font-synthesis: none;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', system-ui, sans-serif; line-height: 1.1; font-weight: 700; color: var(--navy); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
section { scroll-margin-top: var(--header-h); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 14px; }
.section-head p { color: var(--gray); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; border-radius: var(--pill);
  padding: 15px 30px; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(90,162,61,.35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1c2c44; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--blue); color: #fff; font-size: .9rem; font-weight: 600; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 22px; height: 38px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; }
/* The real logo lockup. Intrinsic width/height are on the <img> so the header
   does not reflow while it loads; height here drives the display size and the
   aspect ratio does the rest. */
/* flex: 0 0 auto is load-bearing. As a flex child inside .brand, inside the
   space-between header, the image is otherwise shrunk by the nav until it
   computes to 0 width. aspect-ratio lets width resolve from height without
   relying on the intrinsic size surviving that shrink. */
.brand-logo {
  display: block; height: 52px; width: auto;
  aspect-ratio: 620 / 275; flex: 0 0 auto; max-width: none;
}
.brand { flex: 0 0 auto; }
.site-footer .brand-logo { height: 44px; }
.brand .logo-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand span.accent { color: var(--blue); }
.site-footer .brand { color: #fff; }
.site-footer .brand .accent { color: #fff; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink { font-weight: 600; color: var(--navy); font-size: .98rem; }
.nav a.navlink:hover { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.hamburger:hover { background: var(--bg-soft); }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; }
.hamburger span::before, .hamburger span::after { content: ''; position: absolute; left: 0; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }
.hamburger span::before { top: -7px; } .hamburger span::after { top: 7px; }

/* ---------- Hero (Angi-style search-forward) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(20,40,16,.50), rgba(20,40,16,.30)),
    radial-gradient(120% 120% at 70% 0%, #7BC25E 0%, #5AA23D 38%, #47832F 70%, #386824 100%);
}
.hero-bg::after {
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .5;
}
.hero-inner { position: relative; z-index: 1; padding-top: 86px; padding-bottom: 110px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); color: #fff; max-width: 760px; }
.hero .sub { font-size: 1.2rem; margin-top: 18px; max-width: 540px; color: rgba(255,255,255,.92); }
.searchbar {
  margin-top: 36px; background: #fff; border-radius: var(--pill); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; padding: 8px 8px 8px 22px; max-width: 720px; gap: 10px;
}
.searchbar svg { flex: 0 0 auto; }
.searchbar input {
  flex: 1; border: none; outline: none; font-size: 1.05rem; color: var(--navy); padding: 14px 6px; background: transparent; min-width: 0;
}
.searchbar input::placeholder { color: var(--gray-light); }
.searchbar .zip { display: flex; align-items: center; gap: 6px; border-left: 1.5px solid var(--line); padding: 0 16px; color: var(--gray); font-weight: 600; font-size: .95rem; }
.searchbar .search-go { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.searchbar .search-go:hover { background: var(--blue-dark); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: .95rem; color: rgba(255,255,255,.9); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Category strip (Angi) ---------- */
.cats { background: #fff; border-bottom: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 22px 24px; scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 110px; padding: 14px 8px; border-radius: var(--radius); transition: background .15s; text-align: center;
}
.cat:hover { background: var(--blue-light); }
.cat .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.cat:hover .ic { background: var(--blue); color: #fff; }
.cat small { font-weight: 600; font-size: .85rem; color: var(--navy); line-height: 1.2; }

/* ---------- Stats band ---------- */
.stats { background: var(--blue); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { background: rgba(255,255,255,.16); border-radius: var(--radius); padding: 34px 20px; text-align: center; }
.stat-card .num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; }
.stat-card .label { margin-top: 10px; font-weight: 600; opacity: .95; }

/* ---------- Section base ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); }

/* ---------- Services cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.svc-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.svc-card p { color: var(--gray); }

/* ---------- In-demand cards (Angi) ---------- */
.demand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.demand-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: box-shadow .15s, transform .15s; }
.demand-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.demand-card .ic { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.demand-card .t { font-weight: 700; font-family: 'Poppins', sans-serif; }
.demand-card .m { font-size: .9rem; color: var(--gray); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.demand-card .m .up { color: #18a558; font-weight: 700; }

/* ---------- Why / value props ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { text-align: center; padding: 10px; }
.value .ic { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.value h4 { font-size: 1.2rem; margin-bottom: 8px; }
.value p { color: var(--gray); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 24px 4px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.faq-q .chev { flex: 0 0 auto; transition: transform .2s; color: var(--blue); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; color: var(--gray); }
.faq-a div { padding: 0 4px 24px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.cta-band p { color: rgba(255,255,255,.92); margin: 12px auto 28px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B7C2D0; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h5 { color: #fff; font-family: 'Poppins', sans-serif; margin-bottom: 16px; font-size: 1rem; }
.site-footer a { display: block; padding: 6px 0; color: #B7C2D0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Quote wizard (Rocket Mortgage style) ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,27,45,.55); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.show { display: flex; }
.wizard { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 620px; box-shadow: var(--shadow-lg); overflow: hidden; }
.wizard-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 0; }
.wizard-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-light); color: var(--blue-darker); font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: var(--pill); }
.wizard-close { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 1.4rem; }
.wizard-close:hover { background: var(--bg-soft); color: var(--navy); }
.progress { height: 6px; background: var(--line); margin: 22px 28px 0; border-radius: 99px; overflow: hidden; }
.progress .bar { height: 100%; width: 20%; background: var(--blue); border-radius: 99px; transition: width .3s ease; }
.wizard-body { padding: 28px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-body h3 { font-size: 1.7rem; margin-bottom: 6px; }
.wizard-body .q-sub { color: var(--gray); margin-bottom: 24px; }
.opt-list { display: flex; flex-direction: column; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: var(--bg-soft); border: 2px solid transparent; border-radius: var(--radius); padding: 18px 20px; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--blue-tint); }
.opt.selected { border-color: var(--blue); background: var(--blue-light); }
.opt .ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.opt .opt-label { font-weight: 600; font-family: 'Poppins', sans-serif; }
.opt .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; position: relative; }
.opt.selected .radio { border-color: var(--blue); }
.opt.selected .radio::after { content: ''; position: absolute; inset: 4px; background: var(--blue); border-radius: 50%; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 1rem; font-family: inherit; color: var(--navy); transition: border-color .15s; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 14px; }
.btn-back { color: var(--gray); font-weight: 600; padding: 12px 8px; }
.btn-back:hover { color: var(--navy); }
.btn-back[hidden] { visibility: hidden; }
.wizard-success { text-align: center; padding: 20px 10px; }
.wizard-success .check { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.wizard-success h3 { font-size: 1.8rem; margin-bottom: 10px; }
.wizard-success p { color: var(--gray); max-width: 420px; margin: 0 auto 24px; }

/* ---------- Floating chat widget ---------- */
.chat-bubble { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform .15s; }
.chat-bubble:hover { transform: scale(1.06); }
.chat-bubble .badge { position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; background: #e8453c; color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: #fff; padding: 24px; flex-direction: column; gap: 4px; }
.mobile-menu.show { display: flex; }
.mobile-menu a { padding: 16px 8px; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; gap: 36px; }
  .demand-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* topbar: keep the phone on one line, drop the tagline (no room) */
  .topbar { font-size: .82rem; }
  .topbar .wrap { gap: 0; justify-content: center; }
  .topbar a { white-space: nowrap; }
  .topbar [data-cfg="tagline-top"] { display: none; }
  /* header: stop the CTA from crowding the wordmark */
  .brand { gap: 7px; }
  .brand-logo { height: 38px; }
  .site-footer .brand-logo { height: 38px; }
  .header-cta { gap: 6px; }
  .header-cta .btn-primary { padding: 10px 16px; font-size: .9rem; }
  .hero-inner { padding-top: 60px; padding-bottom: 80px; }
  .searchbar { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 14px; }
  .searchbar .zip { border-left: none; border-top: 1.5px solid var(--line); width: 100%; padding: 12px 4px 0; }
  .searchbar .search-go { width: 100%; border-radius: var(--pill); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ============================================================
   Motion graphics
   ============================================================ */

/* Scroll-reveal — applied by JS (initMotion). Hidden only once JS opts in. */
/* Reveal variants. Hidden state is applied by JS adding .motion-on to <html>,
   so with JS disabled or reduced motion on, content is simply visible. */
.motion-on .reveal {
  opacity: 0;
  transition:
    opacity .72s cubic-bezier(.22,.61,.36,1) var(--rv-delay, 0ms),
    transform .72s cubic-bezier(.22,.61,.36,1) var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
.motion-on .reveal.rv-up    { transform: translate3d(0, 26px, 0); }
.motion-on .reveal.rv-left  { transform: translate3d(-24px, 0, 0); }
.motion-on .reveal.rv-right { transform: translate3d(24px, 0, 0); }
.motion-on .reveal.rv-scale { transform: scale(.955) translate3d(0, 14px, 0); }
.motion-on .reveal.in { opacity: 1; transform: none; }
/* Drop will-change once settled so the compositor can release the layer. */
.motion-on .reveal.in { will-change: auto; }


/* Hero content entrance */
.hero h1 { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .sub { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) .12s both; }
.hero-inner > div { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) .24s both; }
.hero .quote-line { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) .36s both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Chat bubble: gentle attention pulse (ring only, so hover-scale still works) */
.chat-bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(44,156,239,.5); animation: chatPulse 2.4s ease-out infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(90,162,61,.45); } 70%,100% { box-shadow: 0 0 0 16px rgba(90,162,61,0); } }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Shared page components (hub + spokes + about)
   ============================================================ */
.nav { gap: 22px; }
.nav a.navlink.active { color: var(--blue); }
.nav a.navlink.active::after { content:''; display:block; height:2px; background:var(--blue); border-radius:2px; margin-top:3px; }

/* compact page hero (spoke + about) */
.page-hero, .about-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero .hero-bg, .about-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .inner, .about-hero .inner { position: relative; z-index: 1; padding-top: 78px; padding-bottom: 70px; }
.page-hero .eyebrow, .about-hero .eyebrow { color: #fff; opacity: .9; }
.page-hero h1, .about-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.3rem); max-width: 800px; }
.page-hero p.sub, .about-hero p { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 640px; margin-top: 16px; }
.page-hero h1 { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.page-hero p.sub { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) .12s both; }
.page-hero .inner > div.cta-row { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) .24s both; }

/* who we work with */
.vertical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vertical-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.vertical-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.vertical-card .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.vertical-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.vertical-card p { color: var(--gray); flex: 1; }
.vertical-card .go { color: var(--blue); font-weight: 700; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.vertical-card.featured { border-color: var(--blue-tint); }
.vertical-card .tag { display: inline-block; background: var(--blue-light); color: var(--blue-dark); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start; }

/* narrative helpers */
.lead-note { text-align: center; max-width: 760px; margin: 0 auto; color: var(--gray); font-size: 1.1rem; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--navy); }
.checklist li .mk { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; margin-top: 2px; }
.fit-yes .mk { background: var(--blue-light); color: var(--blue-dark); }
.fit-no .mk { background: #F1F1F1; color: #8A97A6; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; }
.fit-card.yes { border-color: var(--blue-tint); }
.fit-card h3 { font-size: 1.35rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }

/* result band */
.result-band { background: var(--blue); color: #fff; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.result-card { text-align: center; }
.result-card .ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.result-card p { font-weight: 600; opacity: .97; }
.quote-line { text-align: center; font-family: 'Lora', serif; font-size: 1.5rem; color: var(--blue-dark); font-weight: 600; max-width: 720px; margin: 0 auto; }

/* client wall + testimonials */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.rel-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-align: center; font-weight: 600; color: var(--navy); font-size: .97rem; display: flex; align-items: center; justify-content: center; min-height: 66px; transition: border-color .15s, transform .15s; }
.rel-item:hover { border-color: var(--blue-tint); transform: translateY(-2px); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 28px 26px; }
.quote-card .mark { color: var(--blue); font-family: 'Lora', serif; font-size: 3rem; line-height: .4; height: 22px; }
.quote-card p { color: var(--navy); font-size: 1.02rem; margin: 8px 0 16px; }
.quote-card .who { color: var(--gray); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* content-needed flag (for placeholders) */
.needflag { border: 1.5px dashed var(--blue-tint); background: var(--blue-light); border-radius: 14px; padding: 13px 18px; color: var(--blue-darker); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; max-width: 760px; margin: 22px auto 0; text-align: left; }
.needflag svg { flex: 0 0 auto; margin-top: 1px; }

/* about page */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--gray); font-size: 1.08rem; margin-bottom: 18px; }
.prose strong { color: var(--navy); }
.num-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.num-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.num-item .n { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-light); color: var(--blue-dark); font-family: 'Poppins', sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.num-item .txt { color: var(--gray); } .num-item .txt strong { color: var(--navy); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; text-align: center; }
.team-card .av { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.team-card .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; object-position: 50% 16%; }
.team-card h4 { font-size: 1.3rem; }
.team-card .role { color: var(--blue-dark); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 14px; }
.team-card a.li { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 600; font-size: .95rem; }

@media (max-width: 900px) { .vertical-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .fit-grid { grid-template-columns: 1fr; } .result-grid { grid-template-columns: 1fr 1fr; } .rel-grid { grid-template-columns: 1fr 1fr; } .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIAL CAROUSEL
   ============================================================ */
.carousel { position: relative; max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.car-viewport { overflow: hidden; flex: 1 1 auto; border-radius: var(--radius-lg); }
.car-track { display: flex; will-change: transform; transition: transform .62s cubic-bezier(.22,.61,.36,1); }
.car-slide { flex: 0 0 100%; min-width: 100%; padding: 4px; }
.car-slide .quote-card { height: 100%; margin: 0; }
.car-nav {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--blue-dark); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.car-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.08); box-shadow: 0 6px 18px rgba(90,162,61,.28); }
.car-nav:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.car-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.car-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--blue-tint); transition: transform .28s ease, background .28s ease, width .28s ease;
}
.car-dot.active { background: var(--blue); width: 26px; border-radius: 5px; }
.car-dot:hover { transform: scale(1.25); }
.car-dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.car-dots { align-items: center; }
.car-toggle { width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.car-toggle:hover { border-color: var(--blue); }
.car-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.car-toggle .ic-play { display: none; }
.car-toggle[aria-pressed="true"] .ic-play { display: block; }
.car-toggle[aria-pressed="true"] .ic-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } }
@media (max-width: 640px) {
  .carousel { gap: 6px; }
  .car-nav { width: 38px; height: 38px; }
}

/* ============================================================
   MOTION
   ============================================================ */
/* ---------- hero: living green ---------- */
/* the base green slowly breathes between its light and dark stops */
.hero-bg { background-size: 100% 100%, 180% 180%; background-position: 0 0, 50% 0%; animation: greenBreathe 26s ease-in-out infinite; }
@keyframes greenBreathe {
  0%, 100% { background-position: 0 0, 50% 0%; }
  50%      { background-position: 0 0, 38% 34%; }
}

/* the dot texture drifts, so the green reads as air rather than paint.
   oversized + transform so it composites on the GPU and never shows an edge. */
.hero-bg::after { inset: -40px; animation: dotDrift 32s linear infinite; will-change: transform; }
@keyframes dotDrift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(26px, 26px, 0); }
}



/* the "standard holding" line: a steady sweep, on brand for consistency */
.result-band { position: relative; overflow: hidden; }
.result-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.09) 50%, transparent 62%);
  transform: translateX(-100%); animation: sweep 7.5s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* cards lift toward the cursor */
.svc-card, .result-card, .vertical-card, .rel-item {
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover, .vertical-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(17,34,17,.13); }
.result-card:hover { transform: translateY(-4px); }
.rel-item:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue-dark); }

/* icons give a small nod on hover */
.svc-card .ic, .vertical-card .ic { transition: transform .38s cubic-bezier(.34,1.56,.64,1), background .3s ease; }
.svc-card:hover .ic, .vertical-card:hover .ic { transform: translateY(-2px) rotate(-6deg) scale(1.08); }

/* primary buttons get a light sheen on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn-primary:hover::after { left: 125%; }

/* eyebrow rules draw themselves in when the section arrives */
.section-head .eyebrow { position: relative; display: inline-block; }
.section-head .eyebrow::after {
  content: ''; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0;
  background: var(--blue); transition: width .7s cubic-bezier(.22,.61,.36,1) .15s;
}
.reveal.in .eyebrow::after, .section-head.in .eyebrow::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-bg::after,
  .result-band::after { animation: none; }
  .car-track { transition: none; }
  .btn-primary::after { display: none; }
  .section-head .eyebrow::after { transition: none; }
}

/* ============================================================
   MOBILE TYPE SCALE
   Must live at the end of the file: the hero clamp() rules are declared
   later than the main breakpoint block, and with equal specificity the
   last declaration wins. Placed earlier, these silently do nothing.
   ============================================================ */
@media (max-width: 560px) {
  .hero h1 { font-size: 1.95rem; line-height: 1.16; }
  .hero .sub { font-size: 1.04rem; }
  .page-hero h1, .about-hero h1 { font-size: 1.72rem; line-height: 1.18; }
  .page-hero p.sub, .about-hero p { font-size: 1.02rem; }
  .section-head h2, .cta-band h2 { font-size: 1.42rem; line-height: 1.24; }
  .svc-card h3, .vertical-card h3, .result-card p { font-size: 1.1rem; }
  .hero-inner { padding-top: 54px; padding-bottom: 66px; }
  .page-hero .inner, .about-hero .inner { padding-top: 46px; padding-bottom: 44px; }
  .cta-band { padding: 32px 20px; }
  .quote-line { font-size: 1.02rem; }
  .section { padding: 48px 0; }
  .rel-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL MOTION
   ============================================================ */
/* Header gains weight once you leave the top. */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 2px 18px rgba(17, 34, 17, .10); background: rgba(255,255,255,.96); backdrop-filter: saturate(150%) blur(8px); }

/* Hero parallax layers are transform-driven by JS; declare the will-change
   here so the browser promotes them once rather than on every frame. */
.motion-on .hero .hero-bg, .motion-on .hero-inner { will-change: transform; }

/* Section headings draw their rule in as they arrive. */
.motion-on .section-head .eyebrow { position: relative; display: inline-block; }
.motion-on .section-head .eyebrow::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); transition: width .8s cubic-bezier(.22,.61,.36,1) .18s;
}
.motion-on .section-head.in .eyebrow::after { width: 100%; }

/* The dark results band brightens slightly as it enters. */
.motion-on .result-band { transition: filter .9s ease; filter: saturate(.85) brightness(.94); }
.motion-on .result-band:has(.in) { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .motion-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .site-header.scrolled { backdrop-filter: none; }
  .motion-on .result-band { filter: none; transition: none; }
}
