/* =========================================================================
   IMS Screening Solutions of Kaufman County
   Professional, responsive stylesheet
   ---------------------------------------------------------------------------
   Brand palette (edit here to retune to the official logo colors):
   ========================================================================= */
:root {
  /* Brand palette — matched to the IMS logo (royal blue + leaf green + gold) */
  --navy:        #182a73;   /* deep royal blue (logo "M") */
  --navy-dark:   #111d56;
  --blue:        #2945ad;   /* royal blue accent */
  --blue-light:  #e9edfa;
  --blue-tint:   #f3f5fd;
  --green:       #5aa531;   /* leaf green — primary CTA / "go" accent (logo "I") */
  --green-dark:  #498a26;
  --gold:        #c7a24c;   /* gold accent (logo "S" / "SCREENING") */
  --gold-dark:   #a9863a;
  --ink:         #1c2536;
  --muted:       #5c657d;
  --line:        #e3e6f0;
  --bg:          #ffffff;
  --bg-alt:      #f5f6fb;
  --white:       #ffffff;
  --warning:     #f0a202;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 6px 22px rgba(24, 42, 115, .08);
  --shadow-lg:   0 18px 50px rgba(24, 42, 115, .16);
  --container:   1140px;
  --font:        'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --t:           .2s ease;
}

/* ------------------------------ Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--navy); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { color: var(--ink); }
.muted { color: var(--muted); }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #dbe7f1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }
.eyebrow {
  display: inline-block; font-family: var(--font); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-light); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section--navy .eyebrow { background: rgba(255,255,255,.12); color: #cfe2f2; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ------------------------------ Icons ----------------------------------- */
.icon { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.icon--sm { width: 17px; height: 17px; }
.icon--lg { width: 34px; height: 34px; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-weight: 600; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: transform var(--t), background var(--t), box-shadow var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--cta { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(90,165,49,.32); }
.btn--cta:hover { background: var(--green-dark); color: #fff; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------ Topbar ---------------------------------- */
.topbar { background: var(--navy-dark); color: #cfe0ee; font-size: .86rem; }
.topbar__inner { display: flex; gap: 26px; align-items: center; padding: 9px 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cfe0ee; }
.topbar__phone { margin-left: auto; font-weight: 700; color: #fff; }
.topbar__phone:hover { color: #9fe9bf; }

/* ------------------------------ Header ---------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow var(--t); }
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { max-height: 62px; width: auto; }
.brand__fallback { display: none; align-items: center; gap: 11px; } /* shown only if logo fails to load (see onerror) */
.brand__mark {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.05; font-size: 1.18rem; }
.brand__text small { font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.brand--footer .brand__text { color: #fff; }
.brand--footer .brand__text small { color: #9fb6c9; }

/* Nav */
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav__list { display: flex; align-items: center; gap: 4px; }
.primary-nav__item { position: relative; }
.primary-nav__link {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .96rem;
}
.primary-nav__link:hover, .primary-nav__link.is-active { color: var(--navy); background: var(--blue-light); }
.caret { font-size: .7rem; opacity: .7; }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; 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: all var(--t); z-index: 50;
}
.primary-nav__item.has-children:hover .submenu,
.primary-nav__item.has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 13px; border-radius: 7px; color: var(--ink); font-weight: 500; font-size: .94rem; }
.submenu a:hover { background: var(--blue-light); color: var(--navy); }
.primary-nav__cta { padding: 11px 18px; font-size: .94rem; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------------ */
.hero { position: relative; background: var(--navy-dark); color: #fff; overflow: hidden; }
.hero::before { /* truck photo */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/truck-hero-2.jpg") center center / cover no-repeat;
}
.hero::after { /* dark overlay so headline text stays readable over the photo */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(17,29,86,.94) 0%, rgba(17,29,86,.82) 42%, rgba(6,36,61,.55) 100%),
    radial-gradient(520px 360px at 8% 115%, rgba(90,165,49,.18), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 84px 0; }
.hero h1 { color: #fff; }
.hero__sub { font-size: 1.18rem; color: #cfe0ee; margin: 18px 0 28px; max-width: 560px; }
.hero .eyebrow { background: rgba(255,255,255,.12); color: #cfe2f2; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; color: #dceaf5; font-weight: 500; font-size: .96rem; }
.hero__points .icon { color: #4fd391; }

/* Hero call card */
.hero-card { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 30px; }
.hero-card__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.hero-card__phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy); margin: 8px 0 4px; }
.hero-card__phone .icon { color: var(--green); width: 30px; height: 30px; }
.hero-card ul { margin: 18px 0; display: grid; gap: 11px; }
.hero-card li { display: flex; align-items: flex-start; gap: 10px; font-size: .96rem; }
.hero-card li .icon { color: var(--green); margin-top: 2px; }
.hero-card .btn { width: 100%; }

/* ------------------------------ Cards ----------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform var(--t), box-shadow var(--t), border-color var(--t); height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ef; }
.card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--blue-light); color: var(--blue); margin-bottom: 18px; }
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 16px; }
.card__link .icon { width: 16px; height: 16px; transition: transform var(--t); }
.card:hover .card__link .icon { transform: translateX(4px); }

/* Feature / value list */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); flex: none; }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Checklist */
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist li .icon { color: var(--green); flex: none; margin-top: 3px; }

/* ------------------------------ Page hero (interior) -------------------- */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe0ee; margin-top: 12px; max-width: 680px; font-size: 1.1rem; }
.breadcrumb { font-size: .86rem; color: #9fc0dc; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #cfe0ee; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* ------------------------------ Split content --------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--media-first .split__media { order: -1; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 24px; color: var(--navy); }
.prose ul:not(.checklist) { padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.prose ul:not(.checklist) li { color: var(--ink); }
.prose ol { padding-left: 22px; display: grid; gap: 10px; }
.media-box { border-radius: var(--radius); background: linear-gradient(135deg, var(--blue-light), #fff); border: 1px solid var(--line); padding: 36px; box-shadow: var(--shadow); }

/* ------------------------------ Stats ----------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: #fff; }
.stat__label { color: #aecbe2; font-size: .95rem; margin-top: 4px; }

/* ------------------------------ Steps ----------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-family: var(--font-head); margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ------------------------------ FAQ / accordion ------------------------- */
.accordion { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.acc-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; font-size: 1.05rem; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font); }
.acc-q .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform var(--t); }
.acc-q .plus::before, .acc-q .plus::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; }
.acc-q .plus::before { top: 10px; left: 0; right: 0; height: 2px; }
.acc-q .plus::after { left: 10px; top: 0; bottom: 0; width: 2px; transition: transform var(--t); }
.acc-item.open .acc-q .plus::after { transform: scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc-item.open .acc-a { max-height: 1000px; } /* fallback before JS sets exact height (also keeps content open with JS disabled) */
.acc-a__inner { padding: 0 22px 20px; color: var(--muted); }

/* ------------------------------ Contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .feature__icon { width: 44px; height: 44px; }
.info-list strong { display: block; color: var(--navy); }
.info-list span { color: var(--muted); }

.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); }

/* Call card (replaces the contact form — phone-first) */
.call-card { text-align: center; background: linear-gradient(160deg, var(--navy), var(--navy-dark)); color: #dbe7f1; border-radius: var(--radius); padding: 38px 32px; box-shadow: var(--shadow-lg); }
.call-card h3 { color: #fff; margin-bottom: 8px; }
.call-card p { color: #c3d6e6; max-width: 360px; margin: 0 auto 18px; }
.call-card__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 18px; }
.call-card__phone { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: .01em; }
.call-card__phone:hover { color: #bff0d3; }
.call-card .btn--cta { width: 100%; }
.call-card .checklist li { color: #dbe7f1; }
.call-card .checklist .icon { color: #6ee0a0; }

/* ------------------------------ Blog ------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t), box-shadow var(--t); height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--blue)); display: grid; place-items: center; color: rgba(255,255,255,.85); }
.post-card__thumb .icon { width: 44px; height: 44px; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.article { max-width: 760px; margin: 0 auto; }
.article > * + * { margin-top: 20px; }
.article h2 { margin-top: 36px; }
.article h3 { margin-top: 26px; }
.article p, .article li { font-size: 1.06rem; line-height: 1.75; }
.article ul { padding-left: 22px; list-style: disc; display: grid; gap: 8px; }
.article ol { padding-left: 22px; display: grid; gap: 10px; }
.article blockquote { border-left: 4px solid var(--green); background: var(--blue-tint); padding: 16px 22px; border-radius: 0 8px 8px 0; color: var(--navy); font-style: italic; }
.article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }

/* ------------------------------ Trust strip ----------------------------- */
.trust-strip { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; padding: 26px 22px; }
.trust-strip__item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.trust-strip__item .icon { color: var(--green); }

/* ------------------------------ Area chips ------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--navy); }
.chip .icon { color: var(--blue); }

/* ------------------------ Testing-reasons strip & badges ---------------- */
.reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; justify-content: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.reasons__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.reasons__label .icon { color: var(--green); }
.chip--sm { padding: 7px 14px; font-size: .9rem; }

/* "Coming Soon" badge (used on More-Services cards) */
.soon-badge { display: inline-block; vertical-align: middle; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); background: #faf3e0; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.card--soon { opacity: .82; }
.card--soon .card__icon { background: #f1f1f4; color: var(--muted); }

.steps--3 { grid-template-columns: repeat(3, 1fr); }

/* ------------------- Services hero (nationwide-led) --------------------- */
.svc-hero { position: relative; background: var(--navy-dark); color: #fff; text-align: center; padding: 64px 0 72px; overflow: hidden; }
.svc-hero::before { /* truck photo */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/services-hero.jpg") center center / cover no-repeat;
}
.svc-hero::after { /* navy overlay so the centered headline stays readable */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17,29,86,.88) 0%, rgba(6,36,61,.80) 100%),
    radial-gradient(600px 380px at 50% 120%, rgba(90,165,49,.16), transparent 60%);
}
.svc-hero > .container { position: relative; z-index: 1; }
.svc-hero .breadcrumb { justify-content: center; }
.svc-hero .eyebrow { background: rgba(255,255,255,.12); color: #cfe2f2; }
.svc-hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; max-width: 920px; margin: 6px auto 0; }
.svc-hero__sub { color: #cfe0ee; font-size: 1.2rem; max-width: 660px; margin: 18px auto 0; }
.svc-hero__cta { justify-content: center; margin-top: 28px; }
.svc-hero__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 32px; }
.svc-hero__points li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: #dceaf5; }
.svc-hero__points .icon { color: #7fd3a4; }

/* ------------------------------ CTA band -------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 0; flex-wrap: wrap; }
.cta-band__title { color: #fff; }
.cta-band__text { color: rgba(255,255,255,.92); margin-top: 6px; }
.cta-band .btn--cta { background: #fff; color: var(--green-dark); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.cta-band .btn--cta:hover { background: #f0fff6; color: var(--green-dark); }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--navy-dark); color: #aecbe2; padding-top: 56px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.site-footer__heading { color: #fff; font-size: 1.05rem; margin-bottom: 16px; font-family: var(--font); font-weight: 700; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 60px; width: auto; display: block; }
.site-footer__about { color: #9fb6c9; font-size: .95rem; margin: 16px 0; }
.site-footer__parent { display: inline-flex; align-items: center; gap: 6px; color: #7fd3a4; font-weight: 600; font-size: .9rem; }
.site-footer__links li, .site-footer__contact li { margin-bottom: 11px; }
.site-footer__links a { color: #aecbe2; font-size: .95rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__links--two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.site-footer__links--two li { display: flex; align-items: center; gap: 7px; font-size: .92rem; }
.site-footer__links--two .icon { color: #5e87a6; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: #aecbe2; }
.site-footer__contact a { color: #aecbe2; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__contact .icon { color: #5e87a6; margin-top: 3px; flex: none; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 14px; padding: 20px 0; flex-wrap: wrap; font-size: .85rem; color: #7e9bb3; }

/* ------------------------------ Mobile call btn ------------------------- */
.mobile-call { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: var(--green); color: #fff; border-radius: 12px; padding: 15px; font-weight: 700; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 24px rgba(90,165,49,.4); }
.mobile-call:hover { color: #fff; }

/* ------------------------------ 404 ------------------------------------- */
.error-page { text-align: center; padding: 90px 0; }
.error-page__code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--navy); }
.error-page__code span { color: var(--green); }

/* ------------------------------ Utilities ------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 28px; }
.mb-2 { margin-bottom: 28px; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .grid--3, .grid--4, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--media-first .split__media { order: 0; }
  .topbar__item:not(.topbar__phone) { display: none; }
  .topbar__phone { margin-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 84px 20px 28px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; z-index: 95;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav__link { padding: 13px 14px; font-size: 1.05rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 14px; padding: 2px 0; max-height: 0; overflow: hidden; transition: max-height var(--t);
  }
  .primary-nav__item.has-children.open .submenu { max-height: 400px; }
  .primary-nav__cta { margin-top: 16px; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(17,29,86,.5); z-index: 94; opacity: 0; visibility: hidden; transition: var(--t); }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .mobile-call { display: flex; }
  .site-footer { padding-bottom: 84px; }
  .grid--3, .grid--4, .post-grid, .steps, .stats, .site-footer__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero-card__phone { font-size: 1.6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
