/* =====================================================================
   5 STARS MOVING — "Cohere" theme
   White editorial canvas · monumental tight display type · near-black pills ·
   deep-green / navy / image CTA bands · rounded media cards (8–22px) ·
   coral editorial accents · blue links · flat depth, hairline rules.
   ===================================================================== */

:root {
  /* brand & accent */
  --black:       #000000;
  --near-black:  #17171c;
  --green:       #003c33;
  --navy:        #071829;
  --blue:        #1863dc;
  --coral:       #ff7759;
  --soft-coral:  #ffad9b;

  /* surfaces */
  --white:       #ffffff;
  --stone:       #eeece7;
  --green-wash:  #edfce9;
  --blue-wash:   #f1f5ff;
  --card-border: #f2f2f2;

  /* text & rules */
  --ink:    #212121;
  --muted:  #93939f;
  --slate:  #75758a;
  --hairline:     #d9d9dd;
  --border-light: #e5e7eb;
  --focus:  #4c6ee6;

  /* radius */
  --r-xs: 4px; --r-sm: 8px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 32px;

  /* type */
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 120px); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--near-black); color: #fff; padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- type primitives ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 400; line-height: 1.4;
  letter-spacing: .04em; text-transform: uppercase; color: var(--slate);
}
.mono-label--light  { color: rgba(255,255,255,.7); }
.mono-label--coral  { color: var(--coral); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); display: flex; flex-direction: column; gap: 14px; }
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.0; letter-spacing: -.02em; color: var(--ink);
}
.section__intro { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.5; color: var(--slate); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1;
  padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--near-black); color: #fff; border-color: var(--near-black); }
.btn--primary:hover { background: #000; border-color: #000; }
.btn--light { background: #fff; color: var(--near-black); border-color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.86); border-color: rgba(255,255,255,.86); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--ink); }

/* underlined text-link action */
.btn--text {
  padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--blue); font-weight: 500; font-size: 15px;
  position: relative;
}
.btn--text::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; opacity: .35; transition: opacity .18s var(--ease); }
.btn--text:hover::after { opacity: 1; }

/* ---------- pills / chips ---------- */
.chip {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--slate); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 5px 10px;
}
.chip--coral { color: var(--coral); border-color: var(--soft-coral); background: #fff5f2; }

.pill {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: 10px 20px; font-size: 16px; color: var(--ink);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.area__pills li:hover .pill { border-color: var(--ink); }

.stars { color: var(--coral); letter-spacing: .12em; font-size: 15px; }

/* =====================================================================
   ANNOUNCEMENT BAR
   ===================================================================== */
.announce {
  background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 38px; padding: 6px 44px 6px 16px; position: relative; text-align: center;
}
.announce[hidden] { display: none; }
.announce p { font-size: 13.5px; min-width: 0; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: var(--soft-coral); }
.announce__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 22px; line-height: 1; width: 28px; height: 28px; border-radius: 50%; }
.announce__close:hover { background: rgba(255,255,255,.14); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--border-light); }
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__word { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }

.nav__links { display: flex; gap: 28px; margin-inline: auto; }
.nav__links a { font-size: 15px; color: var(--ink); padding: 6px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--ink); transition: width .22s var(--ease); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav__phone { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.nav__phone:hover { color: var(--blue); }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilemenu { display: none; flex-direction: column; gap: 6px; padding: 12px var(--gutter) 28px; border-top: 1px solid var(--border-light); background: #fff; }
.mobilemenu:not([hidden]) { display: flex; }
.mobilemenu nav { display: flex; flex-direction: column; }
.mobilemenu nav a { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--border-light); }
.mobilemenu .btn { margin-top: 14px; }
@media (min-width: 861px) { .mobilemenu { display: none !important; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero__eyebrow { color: var(--slate); }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(33px, 8.4vw, 96px); line-height: .98; letter-spacing: -.03em; color: var(--ink); max-width: 15ch; overflow-wrap: break-word; text-wrap: balance; }
.hero__lede { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.45; color: var(--slate); max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }

.hero__media { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: clamp(40px, 6vw, 72px); }
.media-card { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--stone); }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card--wide { aspect-ratio: 16 / 10; }
.media-card--tall { aspect-ratio: 3 / 4; }
.media-card__chip {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: var(--r-pill); padding: 9px 15px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.trust { padding-block: clamp(40px, 6vw, 72px); border-block: 1px solid var(--border-light); }
.trust__intro { text-align: center; color: var(--slate); font-size: 15px; margin-bottom: clamp(28px, 4vw, 44px); }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust__item { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.trust__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.5vw, 52px); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.trust__item span:last-child { font-size: 14px; color: var(--slate); }

/* =====================================================================
   SERVICES
   ===================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.pcard { background: var(--stone); border-radius: var(--r-md); padding: clamp(18px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 14px; }
.pcard__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-sm); background: #e3e0d8; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2vw, 26px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.pcard p { color: var(--slate); font-size: 15.5px; }
.pcard .btn--text { margin-top: auto; align-self: flex-start; }
.pcard--cta { background: var(--near-black); }
.pcard--cta .pcard__title, .pcard--cta p { color: #fff; }
.pcard--cta p { color: rgba(255,255,255,.72); }
.pcard--cta .btn { margin-top: auto; align-self: flex-start; }

/* =====================================================================
   BANDS (dark feature sections)
   ===================================================================== */
.band--green { background: var(--green); color: #fff; }
.band--green .section__title, .band--green h3 { color: #fff; }
.band__lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: rgba(255,255,255,.82); max-width: 46ch; }

.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.why__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.why__copy .section__title { margin-top: 0; }
.why__list { display: grid; gap: 0; }
.why__list li { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.18); }
.why__list li:first-child { border-top: 0; }
.why__list h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: #fff; margin-bottom: 6px; }
.why__list p { color: rgba(255,255,255,.72); }

/* =====================================================================
   PROCESS
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.step__no { font-family: var(--font-mono); font-size: 14px; color: var(--coral); letter-spacing: .04em; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.step p { color: var(--slate); font-size: 15.5px; }

/* =====================================================================
   REVIEWS
   ===================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.quote { border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; font-weight: 500; color: var(--ink); }
.quote figcaption small { color: var(--muted); font-size: 13px; }

/* =====================================================================
   SERVICE AREA
   ===================================================================== */
.area__pills { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   CTA IMAGE BAND
   ===================================================================== */
.ctaband { position: relative; overflow: hidden; }
.ctaband__media { position: absolute; inset: 0; }
.ctaband__media img { width: 100%; height: 100%; object-fit: cover; }
.ctaband__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,24,41,.55), rgba(7,24,41,.78)); }
.ctaband__inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(80px, 12vw, 150px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ctaband__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 7vw, 80px); line-height: 1.0; letter-spacing: -.03em; color: #fff; }
.ctaband__inner p { color: rgba(255,255,255,.85); font-size: clamp(16px, 1.4vw, 18px); }
.ctaband__inner .btn { margin-top: 8px; }

/* =====================================================================
   QUOTE FORM
   ===================================================================== */
.band--stone { background: var(--stone); }
.quote__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.quote__copy { display: flex; flex-direction: column; gap: 14px; }
.quote__copy .section__title { margin-top: 0; }
.quote__lede { color: var(--slate); max-width: 40ch; }
.quote__contact { margin-top: 14px; display: grid; gap: 0; }
.quote__contact li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.quote__contact li:first-child { border-top: 0; }
.quote__contact a, .quote__contact b { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; color: var(--ink); }
.quote__contact a:hover { color: var(--blue); }

.quote-form { background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 38px); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: var(--font-body); font-size: 15px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a7a7af; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(76,110,230,.15); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2375758a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.quote-form__note { font-size: 13px; color: var(--muted); }
.quote-form.is-sent { place-items: center; text-align: center; padding-block: clamp(48px, 7vw, 80px); gap: 8px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--near-black); color: #fff; padding-block: clamp(48px, 6vw, 80px) 28px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__cta { display: flex; flex-direction: column; gap: 10px; }
.footer__headline { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em; color: #fff; }

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(40px, 5vw, 60px); }
.footer__brand img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.footer__brand p { color: rgba(255,255,255,.6); max-width: 32ch; font-size: 15px; }
.footer__brand .stars { margin-top: 14px; display: block; }
.footer__col h4 { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 14px; }
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: #fff; }

/* =====================================================================
   LAZY IMAGES + REVEALS
   ===================================================================== */
.js .lazy { opacity: 0; transition: opacity .7s var(--ease); }
.js .lazy.is-loaded { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .lazy, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .why__grid, .quote__grid { grid-template-columns: 1fr; }
  .hero__media { grid-template-columns: 1fr; }
  .media-card--tall { aspect-ratio: 16 / 10; }
  .trust__row { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 560px) {
  .cards, .steps, .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn--text { text-align: center; }
}
