/* ============================================================================
   Evanston Concrete Co — styles.css
   Palette: deep navy #16324f + steel blue #2f6da8 + sky #8fbee8
   Fonts: Poppins (display) / Inter (body), loaded via <link> in head partial
   Breakpoints: 640 / 768 / 1024
   Component CSS uses semantic tokens only; raw values live in :root.
   ========================================================================== */

:root {
  /* brand */
  --navy-900: #0e2237;
  --navy-800: #16324f;
  --navy-700: #1f4368;
  --steel-700: #275d90;
  --steel-600: #2f6da8;
  --steel-500: #3d7fbf;
  --sky-300: #8fbee8;
  --sky-100: #dcebf7;
  --gold-400: #e8a33d;

  /* semantic */
  --c-primary: var(--navy-800);
  --c-primary-deep: var(--navy-900);
  --c-cta: var(--steel-600);
  --c-cta-hover: var(--steel-700);
  --c-accent: var(--sky-300);
  --c-accent-soft: var(--sky-100);
  --c-text: #243342;
  --c-muted: #55677a;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f7fb;
  --c-border: rgba(22, 50, 79, 0.14);
  --c-border-strong: rgba(22, 50, 79, 0.24);
  --c-error: #b03a2e;
  --c-error-bg: #fbeeec;
  --c-success: #22663a;
  --c-success-bg: #eaf6ee;

  /* type */
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* 4px spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 8px 24px rgba(14, 34, 55, 0.1);
  --shadow-header: 0 2px 12px rgba(14, 34, 55, 0.12);
  --shadow-elevated: 0 16px 40px rgba(14, 34, 55, 0.16);
  --focus-ring: 0 0 0 3px rgba(61, 127, 191, 0.45);

  --container: 1140px;
  --container-pad: 20px;
  --header-height: 76px;
  --transition: 160ms ease;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-primary);
  line-height: 1.2;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
li { margin-bottom: var(--s-2); }
a { color: var(--c-cta); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-cta-hover); }
strong { font-weight: 600; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-primary); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: var(--s-8) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding: var(--s-7) 0; }
.section__lead { max-width: 720px; color: var(--c-muted); font-size: 1.06rem; }
.prose { max-width: 820px; }
.prose h2 { margin-top: var(--s-6); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); }
.text-center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-cta); margin-bottom: var(--s-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1.2;
}
.btn--primary { background: var(--c-cta); color: #fff; }
.btn--primary:hover { background: var(--c-cta-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--c-cta); border-color: var(--c-cta); }
.btn--outline:hover { background: var(--c-cta); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 1.06rem; }
.btn .btn-loading { display: none; }
.btn[aria-busy="true"] .btn-text { display: none; }
.btn[aria-busy="true"] .btn-loading { display: inline; }
.btn[disabled] { opacity: 0.7; cursor: default; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: var(--header-height);
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand img { flex: 0 0 auto; border-radius: 8px; }
.brand__text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  color: var(--c-primary); line-height: 1.15; display: flex; flex-direction: column;
  white-space: nowrap;
}
.brand__text small {
  font-family: var(--font-body); font-weight: 500; font-size: 0.72rem;
  color: var(--c-muted); letter-spacing: 0.04em;
}
.nav { display: none; }
.header__cta { display: flex; align-items: center; gap: var(--s-4); flex: 0 0 auto; }
.header__btn { white-space: nowrap; }
.header__phone { display: none; text-decoration: none; text-align: right; line-height: 1.2; white-space: nowrap; }
.header__phone .label { display: block; font-size: 0.72rem; font-weight: 500; color: var(--c-muted); }
.header__phone .num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--c-primary); }
.header__phone:hover .num { color: var(--c-cta); }
.header__btn { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--c-primary);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav panel */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14, 34, 55, 0.5);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
@media (max-width: 1023px) {
  .nav {
    display: flex; flex-direction: column; gap: var(--s-1);
    position: fixed; top: var(--header-height); left: 0; right: 0; z-index: 95;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    padding: var(--s-4) var(--container-pad) var(--s-5);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    max-height: calc(100vh - var(--header-height)); overflow-y: auto;
  }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link {
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
    color: var(--c-primary); text-decoration: none;
    padding: var(--s-3) var(--s-2); border-radius: var(--radius-sm);
  }
  .nav__link:hover { background: var(--c-bg-alt); color: var(--c-cta); }
  .nav__mobile-cta { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
}
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: var(--s-4); }
  .nav__link {
    font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
    color: var(--c-primary); text-decoration: none; padding: var(--s-2) 2px;
    border-bottom: 2px solid transparent; white-space: nowrap;
  }
  .nav__link:hover { color: var(--c-cta); border-bottom-color: var(--c-cta); }
  .nav__mobile-cta { display: none; }
  .header__phone { display: block; }
  .header__btn { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 420px; color: #fff; overflow: hidden;
  background: var(--c-primary-deep);
}
.hero--tall { min-height: 540px; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(14, 34, 55, 0.9) 0%, rgba(22, 50, 79, 0.74) 46%, rgba(22, 50, 79, 0.42) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: var(--s-8) 0; width: 100%; }
.hero__content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: var(--s-4); }
.hero__sub { font-size: 1.12rem; color: rgba(255, 255, 255, 0.92); max-width: 620px; margin-bottom: var(--s-5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-4); }
.g-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  padding: 6px 14px; border-radius: 999px;
}
.g-chip:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.g-chip .star { color: var(--gold-400); }

/* ---------- trust bar ---------- */
.value-prop { display: flex; align-items: flex-start; gap: var(--s-4); }
.value-prop__icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); color: var(--c-cta);
  font-size: 1.35rem; font-weight: 700;
}
.value-prop h3 { margin-bottom: var(--s-1); font-size: 1.08rem; }
.value-prop p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }

/* ---------- service cards ---------- */
.service-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: var(--s-5);
  box-shadow: none; transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.service-card h3 { margin-bottom: var(--s-2); }
.service-card p { color: var(--c-muted); font-size: 0.96rem; flex: 1; }
.service-card .card-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
}
.service-card .card-link::after { content: " \2192"; }

/* ---------- media split ---------- */
.media-split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) {
  .media-split { grid-template-columns: 1.1fr 0.9fr; }
  .media-split--flip { grid-template-columns: 0.9fr 1.1fr; }
  .media-split--flip .media-split__media { order: -1; }
}
.media-split__media img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); width: 100%; }

/* ---------- figures / galleries ---------- */
.figure { margin: 0; }
.figure img { border-radius: var(--radius-md); width: 100%; }
.figure figcaption { font-size: 0.85rem; color: var(--c-muted); margin-top: var(--s-2); }
.pattern-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .pattern-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pattern-grid { grid-template-columns: repeat(4, 1fr); } }
.pattern-grid .figure img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- process steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; max-width: 820px; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 var(--s-5) 64px; margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px;
  width: 2px; background: var(--c-border-strong);
}
.steps h3 { margin-bottom: var(--s-1); font-size: 1.1rem; }
.steps p { margin-bottom: 0; color: var(--c-text); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 var(--s-5); }
.data-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.96rem; }
.data-table th, .data-table td {
  text-align: left; padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.data-table thead th {
  background: var(--c-primary); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.data-table tbody tr:nth-child(even) { background: var(--c-bg-alt); }
.data-table td strong { color: var(--c-primary); }

/* ---------- checklist ---------- */
.check-list { list-style: none; padding: 0; max-width: 820px; }
.check-list > li { position: relative; padding-left: 34px; margin-bottom: var(--s-3); }
.check-list > li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); color: var(--c-cta);
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- callout ---------- */
.callout {
  background: var(--c-accent-soft); border-left: 4px solid var(--c-cta);
  border-radius: var(--radius-sm); padding: var(--s-4) var(--s-5);
  margin: 0 0 var(--s-5); max-width: 820px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: var(--s-3); background: var(--c-bg); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--c-primary); padding: var(--s-4) var(--s-5);
}
.faq-question::after {
  content: "\002B"; font-size: 1.3rem; color: var(--c-cta); flex: 0 0 auto;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"]::after { content: "\2212"; }
.faq-answer { padding: 0 var(--s-5) var(--s-4); color: var(--c-text); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- reviews ---------- */
.review-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: var(--s-5);
}
.review-card .stars { color: var(--gold-400); font-size: 1rem; letter-spacing: 2px; margin-bottom: var(--s-3); }
.review-card blockquote { margin: 0 0 var(--s-3); font-size: 1.02rem; }
.review-card .review-meta { color: var(--c-muted); font-size: 0.88rem; margin: 0; }
.review-card .review-meta strong { color: var(--c-text); }

/* ---------- CTA block ---------- */
.cta-block { background: var(--c-primary); color: #fff; padding: var(--s-7) 0; }
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255, 255, 255, 0.88); max-width: 640px; }
.cta-block .cta-phone {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--c-accent);
  text-decoration: none; margin: var(--s-3) 0 var(--s-4);
}
.cta-block .cta-phone:hover { color: #fff; }
.cta-block--center { text-align: center; }
.cta-block--center p, .cta-block--center h2 { margin-left: auto; margin-right: auto; }
.cta-block .hero__ctas { justify-content: center; margin-bottom: 0; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--c-muted); padding: var(--s-4) 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "\203A"; margin-right: var(--s-2); color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-cta); }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 500; }

/* ---------- lead form ---------- */
.lead-form-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: var(--s-6); max-width: 720px;
  scroll-margin-top: calc(var(--header-height) + var(--s-4));
}
.lead-form-head h3 { font-size: 1.5rem; margin-bottom: var(--s-2); }
.lead-form-head p { color: var(--c-muted); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: var(--s-4); }
.form-row .field { margin-bottom: 0; }
.form-row { margin-bottom: var(--s-4); }
.field label {
  display: block; font-weight: 600; font-size: 0.92rem;
  margin-bottom: var(--s-2); color: var(--c-primary);
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--c-text);
  background: var(--c-bg); border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-cta); box-shadow: var(--focus-ring);
}
.field .is-invalid { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: 0.85rem; margin: var(--s-2) 0 0; }
.hp-field { display: none !important; }
.lead-form__note { text-align: center; color: var(--c-muted); font-size: 0.88rem; margin: var(--s-3) 0 0; }
.form-message {
  border-radius: var(--radius-sm); padding: var(--s-4) var(--s-5); margin-top: var(--s-4);
}
.form-message--success { background: var(--c-success-bg); color: var(--c-success); }
.form-message--error { background: var(--c-error-bg); color: var(--c-error); }
.form-message a { color: inherit; font-weight: 600; }

/* estimate section wrapper */
.estimate-section { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) {
  .estimate-section { grid-template-columns: 0.9fr 1.1fr; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--c-primary-deep); color: rgba(255, 255, 255, 0.85); padding: var(--s-8) 0 var(--s-5); }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: var(--s-3); }
.site-footer h4 {
  color: #fff; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer__links, .footer__hours { list-style: none; padding: 0; margin: 0; }
.footer__links li, .footer__hours li { margin-bottom: var(--s-2); font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.footer__nap { font-size: 0.95rem; line-height: 1.8; }
.footer__area { font-size: 0.95rem; }
.footer__gbp { display: inline-block; margin-top: var(--s-3); font-weight: 600; color: var(--c-accent) !important; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: var(--s-7); padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
}

/* ---------- mobile CTA bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-3);
  background: var(--c-primary-deep); padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
}
.mobile-bar .btn { padding: 12px 10px; font-size: 0.95rem; }
@media (min-width: 768px) { .mobile-bar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 72px; } }

/* ---------- misc ---------- */
.phone-inline { white-space: nowrap; font-weight: 600; }
.hero__note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); margin: 0; }
