/* ============================================================
   Sustainable Concrete Inc. — Design System
   Light / corporate · white + blue tonal · amber highlights
   ============================================================ */

/* ---- Font (self-hosted Inter variable) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Relative to this stylesheet so it resolves at the domain root AND in
     subpath demo builds (SUBDIR=…), where CSS urls are not path-prefixed. */
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  /* Blue tonal scale (brand blue sampled from logo) */
  --blue: #1c75bc;
  --blue-600: #1668a8;
  --blue-700: #0f5991;
  --blue-050: #eef4fb;
  --blue-100: #dbe8f6;
  --navy: #0c2b47;
  --navy-800: #0a2439;

  /* Neutrals */
  --bg: #f7f8fa;        /* off-white page */
  --white: #ffffff;      /* elevated cards */
  --band: #eef2f8;       /* light section band */
  --ink: #12151a;        /* headings */
  --body: #3b434e;       /* body text */
  --muted: #6b7480;      /* secondary text */
  --line: #e3e7ee;       /* hairline */
  --line-strong: #d3d9e2;

  /* Accent */
  --amber: #f5a623;
  --amber-ink: #7a4d00;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sp-section: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(12, 21, 34, 0.06), 0 1px 3px rgba(12, 21, 34, 0.05);
  --shadow: 0 8px 24px rgba(12, 21, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 21, 34, 0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue); }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow--amber { color: var(--amber-ink); }
.hl { color: var(--blue); }
.hl-amber {
  background: linear-gradient(transparent 62%, rgba(245, 166, 35, 0.42) 62%);
  padding: 0 0.05em;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.band { background: var(--band); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 0.95em 1.5em; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg); cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--ghost-ink { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost-ink:hover { background: var(--blue-050); border-color: var(--blue); color: var(--blue-700); box-shadow: none; }
.btn--lg { font-size: 1.06rem; padding: 1.05em 1.8em; }
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.nav__brand { display: flex; align-items: center; margin-right: auto; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 550; font-size: 0.98rem; padding: 0.4rem 0; position: relative; }
.nav__links a:hover { color: var(--blue); }
.nav__links > li > a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width 0.2s var(--ease);
}
.nav__links > li > a:hover::after { width: 100%; }

/* Services dropdown */
.nav__has-menu { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; width: 320px;
  opacity: 0; visibility: hidden; transition: all 0.18s var(--ease);
}
.nav__has-menu:hover .nav__menu, .nav__has-menu:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__menu-group + .nav__menu-group { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.nav__menu-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 4px 10px; }
.nav__menu a { display: block; padding: 8px 10px; border-radius: 8px; font-weight: 550; color: var(--ink); }
.nav__menu a:hover { background: var(--blue-050); color: var(--blue-700); }
.nav__cta { flex-shrink: 0; }
/* Partner Login sits in the nav but must not compete with Request a Quote —
   a quote is the page's job, the portal is for people who already work with us. */
.nav__links a.nav__portal { color: var(--muted); font-weight: 500; }
.nav__links a.nav__portal:hover { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s var(--ease); }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.2s var(--ease);
  }
  .nav[data-open="true"] .nav__links { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links > li > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links > li > a::after { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; width: auto; padding: 4px 0 8px 12px; }
  .nav__cta { margin-top: 12px; }
  .nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 18, 32, 0.86) 0%, rgba(6, 18, 32, 0.55) 42%, rgba(6, 18, 32, 0.12) 78%),
    linear-gradient(0deg, rgba(6, 18, 32, 0.72) 0%, rgba(6,18,32,0) 45%);
}
.hero__inner { position: relative; min-height: clamp(560px, 82vh, 820px); display: flex; align-items: center; padding-block: 96px; }
.hero__content { max-width: 680px; color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero__lead { font-size: clamp(1.12rem, 1.7vw, 1.4rem); color: rgba(255,255,255,0.92); line-height: 1.55; margin-bottom: 2rem; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.5rem; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.logos { padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 22px; }
.logos__row { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; gap: clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 40px); max-width: 940px; margin-inline: auto; }
@media (max-width: 720px) { .logos__row { grid-template-columns: repeat(2, 1fr); } }
.logos__link { display: inline-flex; align-items: center; justify-content: center; }
.logos__link:hover .logos__img { opacity: 1; filter: none; }
.logos__link:hover .logos__word { color: var(--blue); }
.logos__word {
  color: #8a929e; font-weight: 700; font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.005em; white-space: nowrap; transition: color 0.2s var(--ease);
}
.logos__word:hover { color: var(--blue); }
.logos__img { max-height: 42px; max-width: 148px; width: auto; height: auto; object-fit: contain; opacity: 0.62; filter: grayscale(1); transition: opacity 0.2s var(--ease), filter 0.2s var(--ease); }
.logos__img:hover { opacity: 1; filter: none; }

/* ============================================================
   ADVANTAGES (numbered cards) — colored section w/ square motif
   ============================================================ */
.adv { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--blue-050) 100%); }
.adv .container { position: relative; z-index: 2; }
/* faint engineering grid */
.adv__grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-100) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 78%);
}
/* decorative accent squares */
.adv__sq { position: absolute; z-index: 1; border-radius: 10px; pointer-events: none; }
.adv__sq--a { width: clamp(70px,10vw,130px); aspect-ratio: 1; background: var(--blue); opacity: 0.09; top: 9%; right: 6%; transform: rotate(12deg); }
.adv__sq--b { width: clamp(40px,6vw,70px); aspect-ratio: 1; background: var(--amber); opacity: 0.18; top: 24%; right: 15%; transform: rotate(-8deg); }
.adv__sq--c { width: clamp(56px,8vw,96px); aspect-ratio: 1; border: 3px solid var(--blue); opacity: 0.14; bottom: 12%; left: 5%; transform: rotate(-10deg); }
.adv__sq--d { width: clamp(34px,5vw,50px); aspect-ratio: 1; background: var(--amber); opacity: 0.16; bottom: 22%; left: 13%; transform: rotate(14deg); }

.adv__panel { position: relative; z-index: 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.adv__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.adv__item { display: grid; grid-template-columns: 66px 1fr; gap: 16px; align-items: start; padding: clamp(28px, 3.2vw, 44px) clamp(22px, 2.6vw, 40px); position: relative; }
.adv__item::after { content: ""; position: absolute; inset: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none; }
.adv__grid .adv__item:nth-child(2n)::after { border-right: 0; }
.adv__grid .adv__item:nth-last-child(-n+2)::after { border-bottom: 0; }
.adv__n {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-050); border: 1px solid var(--blue-100);
  color: var(--blue); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em;
  display: grid; place-items: center;
}
.adv__item:nth-child(4n+2) .adv__n, .adv__item:nth-child(4n+3) .adv__n {
  background: rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.4); color: var(--amber-ink);
}
.adv__title { font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.01em; margin: 0.3rem 0 0.4rem; line-height: 1.15; }
.adv__body { color: var(--muted); margin: 0; font-size: 1.02rem; }
@media (max-width: 720px) { .adv__grid { grid-template-columns: 1fr; } .adv__grid .adv__item:nth-child(2n)::after { border-right: 0; } .adv__grid .adv__item:nth-last-child(-n+2)::after { border-bottom: 1px solid var(--line); } .adv__grid .adv__item:last-child::after { border-bottom: 0; } }

/* ============================================================
   SPLIT (quality / precision)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--media-right { direction: rtl; }
.split--media-right > * { direction: ltr; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__badge { position: absolute; left: 18px; bottom: 18px; background: rgba(12,43,71,0.9); color:#fff; padding: 10px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(4px); }
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 0.9rem; color: var(--body); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-050); border: 1.5px solid var(--blue);
}
.checklist li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--media-right { direction: ltr; } .split__media img { aspect-ratio: 3 / 2; } }

/* ============================================================
   PROOF BAND (navy)
   ============================================================ */
.proof { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.proof::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 400px at 80% -10%, rgba(28,117,188,0.35), transparent 60%); }
.proof__inner { position: relative; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.proof__stat { text-align: center; }
.proof__value { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.proof__value.is-amber { color: var(--amber); }
.proof__label { display: block; margin-top: 0.6rem; font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.proof__note { text-align: center; margin-top: clamp(28px, 4vw, 44px); color: rgba(255,255,255,0.86); font-size: 1.05rem; }
@media (max-width: 720px) { .proof__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.svc__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc__card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.svc__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.svc__domain { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 0.8rem; }
.svc__card h3 { margin-bottom: 0.5rem; }
.svc__card p { color: var(--muted); margin: 0 0 1.3rem; font-size: 1rem; }
.svc__more { margin-top: auto; font-weight: 650; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }
.svc__card:hover .svc__more .btn__arrow { transform: translateX(3px); }
@media (max-width: 720px) { .svc__grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proj__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.proj__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.proj__media { aspect-ratio: 16 / 10; background: var(--blue-050); position: relative; overflow: hidden; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; }
.proj__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 12px, #e7ecf4 12px, #e7ecf4 24px); }
.proj__metric { position: absolute; left: 14px; top: 14px; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; }
.proj__body { padding: clamp(20px, 2.4vw, 30px); }
.proj__type { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.proj__card h3 { margin: 0.5rem 0 0.4rem; font-size: 1.3rem; }
.proj__meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.proj__scope { color: var(--body); font-size: 0.98rem; margin: 0; }
@media (max-width: 720px) { .proj__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CREDENTIALS
   ============================================================ */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.cred { text-align: center; padding: 12px; }
.cred img { height: 88px; width: auto; margin: 0 auto 12px; }
.cred__big { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.cred h4 { margin: 8px 0 4px; font-size: 1.02rem; }
.cred p { font-size: 0.88rem; color: var(--muted); margin: 0; }
@media (max-width: 720px) { .creds { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote { background: var(--band); }
.quote__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote__intro h2 { margin-bottom: 0.6rem; }
.quote__contact { margin-top: 1.8rem; display: grid; gap: 14px; }
.quote__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.quote__contact .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8em 0.9em; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-050); }
.field.is-error input, .field.is-error select { border-color: #d64545; }
.field__err { color: #d64545; font-size: 0.82rem; margin-top: 4px; display: none; }
.field.is-error .field__err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success { display: none; text-align: center; padding: 20px; }
.form__success.is-visible { display: block; }
.form__success .tick { width: 60px; height: 60px; border-radius: 50%; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.8rem; }
.form.is-submitted .form__body { display: none; }
@media (max-width: 560px) { .quote__grid { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } }

/* ============================================================
   MODAL (native <dialog>)
   ============================================================ */
.modal {
  width: min(660px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  padding: 0;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--body);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal::backdrop { background: rgba(12, 43, 71, 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn 0.22s var(--ease); }
.modal[open]::backdrop { animation: modalFade 0.22s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes modalFade { from { opacity: 0; } }

.modal__head { display: flex; align-items: flex-start; gap: 16px; padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 34px) 0; }
.modal__title { margin: 6px 0 0; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.modal__close {
  margin-left: auto; flex-shrink: 0; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.7rem; line-height: 1; padding: 2px 10px 6px;
  border-radius: 10px; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover { background: var(--blue-050); color: var(--ink); }
.modal__lede { color: var(--muted); margin: 0 0 20px; }
.modal__form { padding: 18px clamp(20px, 3vw, 34px) clamp(24px, 3vw, 34px); overflow-y: auto; }
.modal__form.is-submitted .form__body { display: none; }
.modal__form .form__success { padding: 28px 8px; }

body.has-modal { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .modal[open], .modal[open]::backdrop { animation: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.72); padding-block: clamp(48px, 6vw, 80px) 32px; }
.footer a { color: rgba(255,255,255,0.72); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: clamp(28px, 4vw, 56px); }
.footer__brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 16px; }
.footer__brand p { font-size: 0.95rem; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; font-size: 0.95rem; }
.footer__crest img { height: 96px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
/* Attribution sits on its own line so it reads as a credit, not a nav item. */
.footer__credit { flex-basis: 100%; color: rgba(255,255,255,0.42); font-size: 0.8rem; }
.footer__credit a { color: rgba(255,255,255,0.62); text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: #fff; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__crest { grid-column: span 2; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__crest { grid-column: auto; } }

/* ============================================================
   CHATBOT + QUOTE BUBBLE
   ============================================================ */
.qbubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
  padding: 14px 20px 14px 16px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-family: inherit; font-weight: 650; font-size: 0.98rem;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.qbubble:hover { background: var(--blue-700); transform: translateY(-2px); }
.qbubble.is-hidden { opacity: 0; visibility: hidden; transform: scale(0.9); }
.qbubble-ic { font-size: 1.2rem; line-height: 1; }
@media (max-width: 520px) { .qbubble-tx { display: none; } .qbubble { padding: 16px; } }

.chat {
  position: fixed; right: 22px; bottom: 22px; z-index: 210;
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 44px));
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transition: all 0.22s var(--ease); border: 1px solid var(--line);
}
.chat.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat__head { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.chat__title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.chat__sub { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.chat__close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,0.8); cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.chat__close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.chat__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; animation: msgIn 0.25s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg--bot { background: var(--white); border: 1px solid var(--line); color: var(--body); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat__foot { border-top: 1px solid var(--line); padding: 12px; background: var(--white); }
.chat__form { display: flex; gap: 8px; }
.chat__input { flex: 1; font-family: inherit; font-size: 0.95rem; padding: 0.7em 0.9em; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.chat__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-050); }
.chat__send { background: var(--blue); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; font-size: 1.1rem; }
.chat__send:hover { background: var(--blue-700); }
.chat__progress { height: 3px; background: var(--line); }
.chat__progress span { display: block; height: 100%; background: var(--amber); width: 0; transition: width 0.3s var(--ease); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Interior page hero (services etc.) ---- */
.phero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.phero__media { position: absolute; inset: 0; z-index: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,46,0.82) 0%, rgba(9,28,46,0.5) 52%, rgba(9,28,46,0.28) 100%); z-index: 1; }
.phero__inner { position: relative; z-index: 2; padding-block: clamp(64px, 10vw, 128px); max-width: 720px; }
.phero .eyebrow { color: var(--amber); }
.phero h1 { color: #fff; }
.phero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 52ch; }

/* Video hero (Our Advantage) */
.vhero { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.vhero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vhero__overlay { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,18,32,0.88) 0%, rgba(6,18,32,0.6) 45%, rgba(6,18,32,0.25) 82%),
    linear-gradient(0deg, rgba(6,18,32,0.72) 0%, rgba(6,18,32,0) 45%); }
.vhero__inner { position: relative; min-height: clamp(520px, 76vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-block: 96px; max-width: 680px; color: #fff; }
.vhero .eyebrow { color: var(--amber); }
.vhero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.vhero p { color: rgba(255,255,255,0.92); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; max-width: 46ch; }

/* prose helpers for interior pages */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.callout { background: var(--blue-050); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 1.5rem 0; }
.callout strong { color: var(--blue-700); }

/* ============================================================
   OUR ADVANTAGE PAGE — bold, visual
   ============================================================ */
/* Benefit selector cards */
.oa-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.oa-benefit { --accent: var(--blue); --accent-bg: var(--blue-050); position: relative; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 32px; text-decoration: none; overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.oa-benefit::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent); }
.oa-benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.oa-benefit--flex { --accent: var(--navy); --accent-bg: #e7eef5; }
.oa-benefit--cost { --accent: var(--amber); --accent-bg: rgba(245,166,35,0.14); }
.oa-benefit__ic { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); margin-bottom: 20px; }
.oa-benefit__ic svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 2; }
.oa-benefit h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: 0.4rem; }
.oa-benefit p { color: var(--muted); margin: 0; }
.oa-benefit__more { margin-top: 20px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.oa-benefit--cost .oa-benefit__more { color: var(--amber-ink); }
@media (max-width: 780px) { .oa-benefits { grid-template-columns: 1fr; } }

/* Featured truck infographic panel (navy) */
.truckfig { background: linear-gradient(135deg, var(--navy) 0%, #123c5e 100%); color: #fff; border-radius: var(--radius-lg); overflow: hidden; position: relative; padding: clamp(32px, 5vw, 64px); }
.truckfig::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(28,117,188,0.5), transparent 68%); pointer-events: none; }
.truckfig__grid { position: relative; display: grid; grid-template-columns: 0.8fr 1.35fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.truckfig h2 { color: #fff; }
.truckfig p { color: rgba(255,255,255,0.86); font-size: 1.1rem; }
.truckfig .eyebrow { color: var(--amber); }
.truckfig svg { width: 100%; height: auto; }
.truckfig img { width: 116%; max-width: none; margin: -4% -8% -4% -4%; }
@media (max-width: 860px) { .truckfig img { width: 100%; margin: 0; } }
.truckfig__tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,166,35,0.16); color: var(--amber); font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 860px) { .truckfig__grid { grid-template-columns: 1fr; } }

/* Big numbered steps with connecting line */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-100) 0 10px, transparent 10px 20px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step__n { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); color: var(--blue); font-size: 1.6rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--bg); }
.step:nth-child(2) .step__n { border-color: var(--amber); color: var(--amber-ink); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps::before { display: none; } }

/* Icon feature cards (reduce waste) */
.feat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); display: flex; gap: 20px; align-items: flex-start; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-card__ic { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; }
.feat-card__ic svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2; }
.feat-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.feat-card p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .feat-cards { grid-template-columns: 1fr; } }

/* Flexibility band (deep blue) */
.flexband { background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue) 100%); color: #fff; }
.flexband .eyebrow { color: #fff; opacity: 0.85; }
.flexband h2 { color: #fff; }
.flexband__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.flexlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.flexlist li { position: relative; padding-left: 40px; color: rgba(255,255,255,0.95); font-weight: 500; line-height: 1.4; }
.flexlist li::before { content: ""; position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.16); }
.flexlist li::after { content: ""; position: absolute; left: 9px; top: 6px; width: 9px; height: 15px; border-right: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(40deg); }
@media (max-width: 860px) { .flexband__grid { grid-template-columns: 1fr; } .flexlist { grid-template-columns: 1fr; } }

/* Cost cards with big numbers */
.cost-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: cost; }
.cost-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 34px); overflow: hidden; }
.cost-card::before { counter-increment: cost; content: "$"; position: absolute; right: 18px; top: 6px; font-size: 5rem; font-weight: 800; color: rgba(245,166,35,0.14); line-height: 1; }
.cost-card__bar { width: 46px; height: 5px; border-radius: 3px; background: var(--amber); margin-bottom: 18px; }
.cost-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cost-card p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 780px) { .cost-cards { grid-template-columns: 1fr; } }

/* Reload bay diagram panel */
.baydiag { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.baydiag__fig { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 44px); box-shadow: var(--shadow); }
.baydiag__fig svg { width: 100%; height: auto; }
@media (max-width: 860px) { .baydiag { grid-template-columns: 1fr; } }

/* ---- Service diagram card (intro split) ---- */
.diagram-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(26px, 3.5vw, 52px); margin: 0; }
.diagram-card svg { width: 100%; height: auto; display: block; }
.diagram-card figcaption { margin-top: 16px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); text-align: center; }
