/* =========================================================
   Microsite Base — 2026
   System UI font, elevated cards, trust strip, pill buttons
   ========================================================= */

:root {
  --brand: #b03a2e;
  --brand-dark:  color-mix(in srgb, var(--brand) 80%, #000);
  --brand-alpha: color-mix(in srgb, var(--brand) 14%, transparent);
  --ink:         #0d1b2a;
  --ink-soft:    #4a5a6a;
  --line:        #e2e8f0;
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --bg-dark:     #0d1b2a;
  --max:         1180px;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 1px 3px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --shadow-up:   0 4px 14px rgba(0,0,0,.09), 0 16px 40px rgba(0,0,0,.10);
  --font: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.72;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { font-family: var(--font); line-height: 1.16; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -.015em; margin-bottom: .65em; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .42em; }
h4 { font-size: .95rem; font-weight: 700; }
p  { margin-bottom: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font);
  font-size: .97rem;
  border: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  letter-spacing: .005em;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,.18); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 18px 44px; font-size: 1.08rem; }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { font-size: 1rem; font-weight: 800; color: var(--ink); }
.nav__logo strong { color: var(--ink); }
.nav__logo img { max-height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .93rem; transition: color .12s; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 240px; padding: 8px 0; box-shadow: 0 8px 32px rgba(0,0,0,.10);
}
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none; }
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 10px 18px; font-size: .91rem; color: var(--ink-soft); }
.dropdown a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }

.nav__call {
  background: var(--brand); color: #fff !important;
  padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: .93rem;
  transition: background .15s;
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }

.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav__links li:last-child { border-bottom: 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; }
  .nav__toggle { display: block; }
}

/* --- Trust strip --- */
.trust-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 9px 0; }
.trust-strip__list {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; list-style: none; gap: 0;
}
.trust-strip__list li {
  font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em;
  padding: 3px 20px; border-right: 1px solid var(--line);
}
.trust-strip__list li:last-child { border-right: 0; }
.trust-strip__list li::before { content: "✓ "; color: var(--brand); }

/* --- Hero --- */
.hero { position: relative; color: #fff; min-height: 540px; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(10,16,28,.80) 0%, rgba(10,16,28,.52) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 100px 24px; width: 100%; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .77rem; font-weight: 700; opacity: .8; margin-bottom: 14px; }
.hero h1 { color: #fff; margin: 0 0 18px; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 44ch; margin-bottom: 0; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.8); }
.section__lead { max-width: 65ch; margin: 0 auto; }
.center { text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* --- Cards --- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

/* --- Link list --- */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: block; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem;
  transition: border-color .15s, color .15s;
}
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* --- Table --- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th,td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* --- FAQ --- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; padding: 18px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.5rem; line-height: 1; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* --- CTA Band --- */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; text-align: center; padding: 80px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.06rem; }
.cta-band .btn { background: #fff; color: var(--brand); font-weight: 700; }
.cta-band .btn:hover { background: #f0f5ff; box-shadow: 0 8px 28px rgba(0,0,0,.16); }

/* --- Estimate form --- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .78rem; margin-bottom: 6px; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-alpha);
}
.field textarea { min-height: 130px; resize: vertical; }

/* --- Footer --- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.65); padding: 64px 0 28px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: .79rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.58); font-size: .9rem; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,.36); }
.footer-disclaimer { font-size: .79rem; color: rgba(255,255,255,.4); margin-top: 10px; line-height: 1.6; }

/* --- Intro split: heading left, body right --- */
.intro-split { display: grid; grid-template-columns: 2fr 3fr; gap: 72px; align-items: start; }
.intro-split > h2 { margin-bottom: 0; position: sticky; top: 84px; }
@media (max-width: 780px) { .intro-split { grid-template-columns: 1fr; gap: 20px; } .intro-split > h2 { position: static; margin-bottom: .5em; } }

/* phone link — class is a stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; }
