/* ==========================================================================
   Budget Air, Bakersfield HVAC
   Modern, fast, accessible stylesheet
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Brand palette, charcoal #232323, teal #89c7cd, orange #ec7744 */
  --navy-900: #171717;   /* deepest charcoal (footer) */
  --navy-800: #232323;   /* brand charcoal (dark sections, primary btn) */
  --navy-700: #333131;   /* raised charcoal */
  --navy-600: #30767e;   /* deep shade of logo teal, links, buttons, hover (contrast-safe) */
  --blue-500: #54acb6;   /* mid shade of logo teal, focus rings, accents */
  --blue-400: #89c7cd;   /* BRAND teal = logo "Budget" color */
  --blue-100: #d3ebee;   /* light tint of logo teal */
  --accent-600: #cf5a2b;  /* darker orange (hover, accessible text) */
  --accent-500: #ec7744;  /* brand orange (CTA) */
  --accent-400: #f2916a;  /* light orange */
  --accent-100: #fdeee6;  /* orange tint */

  --ink: #232323;
  --body: #4c4a48;
  --muted: #837f7c;
  --line: #e7e3e0;
  --bg: #ffffff;
  --bg-soft: #f7f5f3;
  --bg-tint: #eef6f7;

  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(35, 35, 35, .07);
  --shadow: 0 12px 30px rgba(35, 35, 35, .12);
  --shadow-lg: 0 24px 60px rgba(35, 35, 35, .18);

  --grad-teal: linear-gradient(135deg, #6bbcc3, #46a0a8);
  --grad-warm: linear-gradient(135deg, #f2916a, #ec7744);
  --grad-brand: linear-gradient(135deg, #479aa1 0%, #2b6b72 52%, #232323 100%);

  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", var(--font-body);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

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

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-500); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; font-weight: 700; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg-soft)); }
.section--navy { background: var(--navy-800); color: #d6d1cc; }
.section--navy h2, .section--navy h3 { color: #fff; }

.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.16em; fill: none; }
.ic--sm { width: .85em; height: .85em; }

/* ---- Typography helpers ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-600); background: var(--blue-100);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 4px;
}
.eyebrow--center { justify-content: center; align-self: center; }
.eyebrow--light { color: #fff; background: rgba(255,255,255,.18); }

h1, .h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -.01em; text-transform: none; }
h2, .h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--body); }

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

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--navy-800); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border: 2px solid transparent; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent-500); box-shadow: 0 6px 16px rgba(236,119,68,.18); }
.btn--accent:hover { --btn-bg: var(--accent-600); box-shadow: 0 10px 22px rgba(236,119,68,.26); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--teal { --btn-bg: var(--blue-400); --btn-fg: #fff; box-shadow: 0 6px 16px rgba(137,199,205,.28); }
.btn--teal:hover { --btn-bg: #74bec5; box-shadow: 0 10px 22px rgba(137,199,205,.36); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-800); background: var(--navy-800); --btn-fg: #fff; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: #fff; --btn-fg: var(--navy-800); border-color:#fff; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 17px 32px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }

.textlink { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--navy-600); }
.textlink .ic { transition: transform .2s; }
.textlink:hover .ic { transform: translateX(4px); }

.pill { display:inline-block; font-size:.62rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  background: var(--accent-500); color:#fff; padding:2px 7px; border-radius: 999px; vertical-align: middle; }

/* ---- Top utility bar ---------------------------------------------------- */
.topbar { background: var(--navy-900); color: #b4afaa; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 40px; }
.topbar__left, .topbar__nav { display: flex; align-items: center; gap: 20px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; color: #b4afaa; }
.topbar__phone { color: #fff; font-weight: 700; }
.topbar__phone:hover { color: var(--accent-400); }
.topbar__nav a { color: #cdc8c3; font-weight: 600; }
.topbar__nav a:hover, .topbar__nav a.is-active { color: #fff; }
@media (max-width: 940px) { .topbar__nav { display: none; } }
@media (max-width: 560px) { .topbar__left .topbar__item:first-child { display: none; } }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__logo { height: 50px; width: auto; flex: none; }
.brand__sub { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.brand__sub--head { align-self: center; padding-left: 13px; margin-left: 1px; border-left: 1.5px solid var(--line); line-height: 1.25; white-space: nowrap; }
.brand--footer .brand__logo { height: 54px; }
@media (max-width: 600px) {
  .brand__logo { height: 42px; }
  .brand__sub--head { display: none; }
}

.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > li > a:not(.btn) {
  display: inline-flex; align-items: center; gap: .3em;
  padding: 10px 14px; border-radius: 8px; font-weight: 600; color: var(--ink); font-size: .98rem;
}
.nav__menu > li > a:not(.btn):hover, .nav__menu > li > a:not(.btn).is-active { color: var(--navy-600); background: var(--bg-tint); }

.nav__has-drop { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease);
}
/* Invisible hover-bridge: fills the gap between the link and dropdown (and a bit
   of slack on the sides) so moving the cursor down never drops the hover. */
.nav__drop::before { content: ""; position: absolute; left: -12px; right: -12px; top: -16px; height: 18px; }
.nav__has-drop:hover .nav__drop, .nav__has-drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 9px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.nav__drop a:hover { background: var(--bg-tint); color: var(--navy-600); }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 10px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--navy-800); border-radius: 2px; transition: .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: flex; }
  /* backdrop-filter makes the header a containing block for position:fixed,
     which traps the mobile menu inside the header. Disable it on mobile so the
     fixed menu panel can fill the viewport. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px; z-index: 101;
    background: #fff; padding: 88px 20px 32px; box-shadow: var(--shadow-lg);
    transform: translateX(101%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; overflow-y: auto;
  }
  body.nav-open .nav__menu { transform: translateX(0); visibility: visible; transition: transform .3s var(--ease), visibility 0s 0s; }
  body.nav-open { overflow: hidden; }
  .nav__menu > li > a { padding: 14px 12px; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__drop {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 8px 12px; min-width: 0; display: none;
  }
  .nav__has-drop.is-open .nav__drop { display: block; }
  .nav__drop::before { display: none; } /* hover-bridge is desktop-only */
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(23,23,23,.55); opacity: 0; visibility: hidden; transition: .3s; z-index: 99; }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-800); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__bg picture { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,14,15,.88) 0%, rgba(20,21,23,.66) 48%, rgba(28,29,31,.40) 100%);
}
.hero__inner {
  position: relative; z-index: 2; max-width: 600px;
  margin-block: clamp(56px, 9vw, 100px);
  padding: clamp(30px, 3.6vw, 46px);
  background: rgba(16,18,20,.5);
  -webkit-backdrop-filter: blur(7px) saturate(112%);
  backdrop-filter: blur(7px) saturate(112%);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero h1 { font-family: var(--font-body); font-weight: 800; font-size: clamp(2.05rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.14; color: var(--blue-400); text-shadow: 0 2px 18px rgba(0,0,0,.4), 0 0 30px rgba(137,199,205,.3); }
.hero__sub { margin-top: 20px; color: #eae6e1; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__callnote { margin-top: 16px; color: #eae6e1; font-size: 1rem; }
.hero__callnote a { color: #fff; font-weight: 700; border-bottom: 2px solid var(--accent-500); padding-bottom: 1px; }
.hero__callnote a:hover { color: var(--accent-400); border-color: var(--accent-400); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero__trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: #efeae6; }
.hero__trust-item .ic { color: var(--blue-400); width: 1.4em; height: 1.4em; }
.hero__trust-item strong { color: #fff; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: #fff;
}
.hero__badge .ic { color: var(--accent-400); }

/* ---- Trust strip (logos / quick facts) ---------------------------------- */
.trust-strip { background: linear-gradient(180deg, #fff, var(--bg-tint)); border-bottom: 1px solid var(--line); }
.trust-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 42px; padding-block: 15px; }
.trust-fact { display: flex; align-items: center; gap: 10px; }
.trust-fact__ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--blue-100); color: var(--navy-600); }
.trust-fact__ic .ic { width: 17px; height: 17px; }
.trust-fact strong { display: block; color: var(--ink); font-size: .94rem; line-height: 1.2; white-space: nowrap; }
@media (max-width: 700px) { .trust-strip__inner { gap: 10px 16px; } .trust-fact strong { font-size: .88rem; } }

/* ---- Service cards ------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.svc-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-tint); }
.svc-card__media picture { display: block; width: 100%; height: 100%; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__badge { position: absolute; top: 14px; left: 14px; }
.svc-card__icon {
  position: absolute; top: -27px; right: 22px; width: 54px; height: 54px; border-radius: 14px; z-index: 2;
  background: var(--grad-teal); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(70,160,168,.4);
}
.svc-card__icon .ic { width: 26px; height: 26px; }
.svc-card__body { position: relative; padding: 34px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.svc-card__body p { font-size: .97rem; margin-bottom: 18px; }
.svc-card__body .textlink { margin-top: auto; }
.svc-card__link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.svc-card__link:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 3px; }
.svc-card:hover .textlink { color: var(--blue-500); }
.svc-card:hover .textlink .ic { transform: translateX(4px); }

/* icon-only card variant (no image) */
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; transition: transform .25s var(--ease), box-shadow .25s; }
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feat-card__ic { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-teal); color: #fff; margin-bottom: 20px; box-shadow: 0 8px 18px rgba(70,160,168,.38); }
.feat-card__ic .ic { width: 28px; height: 28px; }
.feat-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feat-card p { font-size: .96rem; }

/* ---- Split feature (image + text) --------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.split__media--stack { aspect-ratio: 4/3.4; }
/* Frosted-glass chip that sits INSIDE the image (bottom-left), so it reads as
   part of the photo instead of a box floating in the whitespace. */
.split__badge {
  position: absolute; left: 16px; bottom: 16px; right: auto;
  display: flex; align-items: center; gap: 11px; max-width: min(84%, 330px);
  background: rgba(18, 18, 20, .55); color: #fff;
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px;
  padding: 12px 15px; box-shadow: 0 10px 26px rgba(0, 0, 0, .30);
}
.split__badge .ic { width: 26px; height: 26px; flex: none; color: var(--blue-400); }
.split__badge .pill { flex: none; align-self: center; }
.split__badge span { font-size: .86rem; opacity: .96; line-height: 1.32; }
.split__badge strong { font-family: var(--font-head); font-size: 1.15rem; line-height: 1; }
/* legacy modifier, base now covers it; kept so existing markup stays valid */
.split__badge--icon { }
.split__list { display: grid; gap: 14px; margin: 26px 0; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; }
.split__list .ic { color: var(--accent-500); flex: none; margin-top: 3px; width: 1.3em; height: 1.3em; }
.split__list strong { color: var(--ink); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__badge { left: 16px; bottom: -18px; }
}

/* ---- Stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 12px; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; line-height: 1; }
.stat__num .u { color: var(--accent-400); }
.stat__label { margin-top: 8px; color: #bdb8b3; font-size: .95rem; font-weight: 600; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; } }

/* ---- Promise band (colorful) -------------------------------------------- */
.promise { background: var(--grad-brand); position: relative; overflow: hidden; }
.promise::before { content:""; position:absolute; top:-120px; left:-100px; width:360px; height:360px; border-radius:50%; background: radial-gradient(circle, rgba(137,199,205,.28), transparent 68%); }
.promise::after { content:""; position:absolute; bottom:-140px; right:-90px; width:340px; height:340px; border-radius:50%; background: radial-gradient(circle, rgba(236,119,68,.22), transparent 70%); }
.promise .container { position: relative; z-index: 1; }
.promise .section-head h2 { color: #fff; }
.promise .section-head .lead { color: #d9eff1; }
.promise-card { background: #fff; border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: 0 18px 40px rgba(10,40,44,.28); transition: transform .25s var(--ease); }
.promise-card:hover { transform: translateY(-6px); }
.promise-card__ic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.promise-card__ic .ic { width: 27px; height: 27px; }
.promise-card__ic--teal { background: var(--grad-teal); box-shadow: 0 8px 18px rgba(137,199,205,.42); }
.promise-card__ic--warm { background: var(--grad-warm); box-shadow: 0 8px 18px rgba(236,119,68,.3); }
.promise-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.promise-card p { font-size: .94rem; }

/* ---- Why choose (checklist band) ---------------------------------------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checks .ic { flex: none; margin-top: 2px; width: 24px; height: 24px; color: #fff; background: var(--accent-500); border-radius: 50%; padding: 4px; }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }

/* ---- Testimonials ------------------------------------------------------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.quote-card__stars { display: flex; gap: 3px; color: #f5b301; margin-bottom: 16px; }
.quote-card__stars .ic { width: 20px; height: 20px; }
.quote-card blockquote { font-size: 1.05rem; color: var(--ink); line-height: 1.6; flex: 1; }
.quote-card__author { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.quote-card__source { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.quote-card__source .ic { width: 16px; height: 16px; }
.quote-card__author strong { display: block; color: var(--ink); font-size: .98rem; }
.quote-card__author span { font-size: .84rem; color: var(--muted); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; right:-80px; top:-80px; width:340px; height:340px; border-radius:50%; background: radial-gradient(circle, rgba(137,199,205,.28), transparent 70%); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: clamp(40px, 6vw, 68px); flex-wrap: wrap; }
.cta-band__title { color: #fff; font-family: var(--font-head); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band__text { color: #d6d1cc; margin-top: 6px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Areas -------------------------------------------------------------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.area-grid--home { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin-inline: auto; }
@media (max-width: 560px) { .area-grid--home { grid-template-columns: repeat(2, 1fr); } }
.area-chip { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font-weight: 600; color: var(--ink); font-size: .95rem; transition: .2s; }
.area-chip .ic { color: var(--accent-500); width: 1.1em; height: 1.1em; }
.area-chip:hover { border-color: var(--navy-600); color: var(--navy-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---- Page hero (interior pages) ----------------------------------------- */
.page-hero { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; display: grid; align-items: center; min-height: clamp(360px, 34vw, 470px); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img, .page-hero__bg picture { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(14,15,16,.76) 0%, rgba(22,24,26,.48) 46%, rgba(30,32,34,.20) 100%); z-index: 0; }
.page-hero__inner { position: relative; z-index: 1; padding: clamp(28px, 3.5vw, 44px) 0; max-width: 760px; }
.page-hero h1 { font-family: var(--font-body); font-weight: 800; font-size: clamp(2.05rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1.14; color: var(--blue-400); text-shadow: 0 2px 18px rgba(0,0,0,.4), 0 0 30px rgba(137,199,205,.3); }
.page-hero p { color: #eae6e1; margin-top: 16px; max-width: 620px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: #b0aaa4; margin-bottom: 18px; }
.breadcrumbs a { color: #ddd8d3; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: .5; }

/* ---- Prose (article content) -------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin: 42px 0 14px; }
.prose h3 { margin: 30px 0 10px; font-size: 1.28rem; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 20px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; line-height: 1.65; }
/* Bullets centered on the first text line (scales with font size, stays put on wrap). */
.prose ul li::before { content:""; position:absolute; left:0; top: calc((1.65em - 18px) / 2); width:18px; height:18px; border-radius:50%; background: var(--accent-100); }
.prose ul li::after { content:""; position:absolute; left:6px; top: calc((1.65em - 6px) / 2); width:6px; height:6px; border-radius:50%; background: var(--accent-500); }
.prose strong { color: var(--ink); }

/* ---- Content layout with sidebar ---------------------------------------- */
.content-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }
.sidebar-card { background: #fff; color: var(--body); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; position: sticky; top: 100px; }
.sidebar-card h3 { color: var(--ink); margin-bottom: 8px; }
.sidebar-card p { font-size: .95rem; margin-bottom: 18px; }
.sidebar-card .split__list span { color: var(--body); }
.sidebar-card .btn { width: 100%; margin-bottom: 10px; }
/* ghost-light buttons live inside this card on a light bg, so give them a dark outline */
.sidebar-card .btn--ghost-light { --btn-fg: var(--navy-800); border-color: var(--line); }
.sidebar-card .btn--ghost-light:hover { background: var(--navy-800); --btn-fg: #fff; border-color: var(--navy-800); }
.sidebar-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 24px; }
.sidebar-nav h4 { padding: 10px 14px 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sidebar-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.sidebar-nav a:hover, .sidebar-nav a.is-active { background: var(--bg-tint); color: var(--navy-600); }
.sidebar-nav a.is-active { background: var(--blue-400); color: #fff; }

/* ---- Forms -------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field .req { color: var(--accent-600); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(84,172,182,.30);
}
.field textarea { min-height: 130px; resize: vertical; }
/* Custom select arrow so dropdowns look identical in every browser */
.field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837f7c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 13px;
}
.field select::-ms-expand { display: none; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field .radio { flex: 1 1 130px; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
.field .radio:hover { border-color: var(--blue-500); }
.field .radio input { flex: none; accent-color: var(--navy-600); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--navy-600); background: var(--bg-tint); }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.field-error { color: var(--accent-600); font-size: .85rem; margin-top: 5px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent-600); }
.field.has-error .field-error { display: block; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.form-alert--ok { background: #e7f7ee; color: #14713f; border: 1px solid #b7e6cb; }
.form-alert--err { background: var(--accent-100); color: var(--accent-600); border: 1px solid #ffcbb8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Contact info list -------------------------------------------------- */
.info-list { display: grid; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--bg-tint); color: var(--navy-600); display: grid; place-items: center; }
.info-item__ic .ic { width: 22px; height: 22px; }
.info-item h3 { font-size: 1.05rem; margin-bottom: 3px; }
.info-item a { font-weight: 600; }
.info-item p, .info-item span { color: var(--body); font-size: .96rem; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; transition: transform .25s; color: var(--navy-600); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > div { padding: 0 24px 22px; color: var(--body); }

/* ---- Gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); transition: transform .4s var(--ease), box-shadow .3s; }
.gallery a:hover img { transform: scale(1.03); box-shadow: var(--shadow); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #a9a39d; padding-top: clamp(48px, 7vw, 76px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.brand--footer .brand__name, .brand--footer .brand__accent { color: #fff; }
.brand--footer .brand__mark { color: #fff; }
.brand--footer .brand__accent { color: var(--accent-400); }
.brand--footer .brand__sub { color: #847e78; }
.footer__tag { margin: 18px 0 20px; font-size: .95rem; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #d6d1cc; display: grid; place-items: center; }
.footer__social a:hover { background: var(--accent-500); color: #fff; }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a, .footer__contact span { color: #a9a39d; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.footer__col a:hover { color: #fff; }
.footer__contact .ic { color: var(--blue-400); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.09); }
.footer__bar-inner { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding-block: 20px; font-size: .84rem; color: #847e78; }
.footer__legal { flex: 1 1 auto; text-align: left; }
.footer__seo { flex: 1 1 auto; text-align: center; font-size: .82rem; color: #6d6862; }
.footer__credit { flex: 1 1 auto; text-align: right; color: #847e78; }
.footer__legal a { color: #a9a39d; }
.footer__legal a:hover { color: var(--blue-400); }
.footer__credit a { color: #b9b3ad; font-weight: 600; }
.footer__credit a:hover { color: var(--blue-400); }
@media (max-width: 760px) {
  .footer__bar-inner { flex-direction: column; text-align: center; }
  .footer__legal, .footer__seo, .footer__credit { flex: none; text-align: center; }
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---- Misc --------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.center-btn { display: flex; justify-content: center; margin-top: 40px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ==========================================================================
   Motion / animation layer  (all disabled under prefers-reduced-motion)
   ========================================================================== */

/* ---- Hero content entrance (staggered) ---------------------------------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__badge, .hero h1, .hero__sub, .hero__actions,
.page-hero .breadcrumbs, .page-hero .hero__badge, .page-hero h1, .page-hero p, .page-hero .hero__actions {
  animation: riseIn .75s var(--ease) both;
}
.hero h1, .page-hero h1 { animation-delay: .12s; }
.hero__sub, .page-hero p { animation-delay: .24s; }
.hero__actions, .page-hero .hero__actions { animation-delay: .36s; }

/* ---- Ken Burns, slow, subtle life on hero imagery ---------------------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero__bg img, .page-hero__bg img { animation: kenburns 28s ease-in-out infinite alternate; will-change: transform; }

/* ---- Reveal direction variants ------------------------------------------ */
.reveal--left  { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--scale { transform: scale(.93); }
.reveal--left.is-in, .reveal--right.is-in, .reveal--scale.is-in { transform: none; }

/* ---- Card icon micro-interactions --------------------------------------- */
.svc-card__icon { transition: transform .35s var(--ease), box-shadow .3s; }
.svc-card:hover .svc-card__icon { transform: translateY(-5px) rotate(-6deg) scale(1.08); }
.feat-card__ic, .promise-card__ic { transition: transform .35s var(--ease); }
.feat-card:hover .feat-card__ic, .promise-card:hover .promise-card__ic { transform: translateY(-4px) scale(1.07); }
.info-item__ic { transition: transform .3s var(--ease), background .3s, color .3s; }
.info-item:hover .info-item__ic { transform: scale(1.08); background: var(--blue-100); color: var(--navy-600); }

/* ---- Primary button shine sweep ----------------------------------------- */
.btn--accent { position: relative; overflow: hidden; }
.btn--accent::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn--accent:hover::after { left: 130%; }

/* ---- Promise band floating glows ---------------------------------------- */
@keyframes floaty { from { transform: translate(0,0); } to { transform: translate(20px,-16px); } }
.promise::before { animation: floaty 9s ease-in-out infinite alternate; }
.promise::after  { animation: floaty 12s ease-in-out infinite alternate-reverse; }

/* ---- Eyebrow accent line grows in --------------------------------------- */
.reveal .eyebrow, .section-head .eyebrow { transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
.reveal:not(.is-in) .eyebrow { opacity: 0; transform: translateY(6px); }

/* ---- Nav link animated underline ---------------------------------------- */
.nav__menu > li > a:not(.btn) { position: relative; }
.nav__menu > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--blue-400); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__menu > li > a:not(.btn):hover::after, .nav__menu > li > a:not(.btn).is-active::after { transform: scaleX(1); }

/* Community partner cards: push the website link to the bottom */
.feat-card--link { display: flex; flex-direction: column; }
.feat-card--link p { flex: 1 1 auto; }
.feat-card--link .textlink { margin-top: 16px; justify-content: center; }

/* ---- Hero title: grow-in entrance + soft teal glow -------------------- */
@keyframes heroGrow { from { opacity: 0; transform: translateY(28px) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes heroGlow {
  0%, 100% { text-shadow: 0 2px 18px rgba(0,0,0,.4), 0 0 18px rgba(137,199,205,.12); }
  50%      { text-shadow: 0 2px 18px rgba(0,0,0,.4), 0 0 60px rgba(137,199,205,.85); }
}
.hero h1, .page-hero h1 { animation: heroGrow 1.7s var(--ease) .2s both, heroGlow 5.5s ease-in-out 1.6s infinite; }

/* Minor nav items live in the topbar on desktop, in the drawer on mobile */
@media (min-width: 941px) { .nav__minor { display: none; } }

/* Careers: resume upload input */
.field-file { width: 100%; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--body); font-size: .95rem; cursor: pointer; transition: border-color .2s, background .2s; }
.field-file:hover { border-color: var(--blue-500); }
.field-file::file-selector-button { font: inherit; font-weight: 700; margin-right: 14px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--navy-600); color: #fff; cursor: pointer; transition: background .2s; }
.field-file::file-selector-button:hover { background: var(--navy-800); }

/* ---- Plain hero (legal pages, no image) --------------------------------- */
.page-hero--plain { min-height: clamp(190px, 20vw, 260px); background: var(--grad-brand); }
.page-hero--plain::after { display: none; }

/* ---- Cookie notice ------------------------------------------------------ */
.cookie-bar {
  position: fixed; right: clamp(12px, 3vw, 24px); bottom: clamp(12px, 3vw, 24px); z-index: 90;
  width: min(360px, calc(100% - 24px));
  background: var(--navy-800); color: #d6d1cc;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-bar.is-visible { opacity: 1; transform: none; }
.cookie-bar__text { font-size: .9rem; line-height: 1.55; margin-bottom: 14px; }
.cookie-bar__text a { color: var(--blue-400); text-decoration: underline; }
.cookie-bar__text a:hover { color: #fff; }
.cookie-bar__actions { display: flex; align-items: center; gap: 12px; }
.cookie-bar__decline { background: none; border: 0; color: #b0aaa4; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; padding: 8px 6px; border-radius: 8px; }
.cookie-bar__decline:hover { color: #fff; }
@media (max-width: 480px) { .cookie-bar { left: 12px; right: 12px; width: auto; } }
