/* ==========================================================================
   AS No1 Body Work — Premium Bodyshop Stylesheet (v2)
   Direction: high-end accident repair & paint specialist.
   Dark charcoal · warm off-white · deep red accent · subtle silver/metal.
   Inter typography. No emoji. Minimal CSS line markers only.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #0e1013;   /* deepest — header/footer/hero base */
  --charcoal:   #14171b;   /* page background */
  --surface:    #191d22;   /* cards & panels */
  --surface-2:  #1f242b;   /* hover / elevated */

  /* Lines */
  --line:       rgba(255, 255, 255, 0.075);
  --line-2:     rgba(255, 255, 255, 0.14);
  --hairline:   rgba(255, 255, 255, 0.05);

  /* Text */
  --white:      #f1efeb;   /* warm off-white headings */
  --text:       #aab0b8;   /* body */
  --muted:      #7d838d;   /* captions / labels */
  --silver:     #c3c8cf;

  /* Accent — deep automotive red */
  --red:        #b41e27;
  --red-2:      #c9242e;   /* button hover */
  --red-deep:   #8c161d;
  --red-bright: #e0454d;   /* small accents/links on dark for legibility */

  /* WhatsApp — muted, professional */
  --wa:         #2f6f57;
  --wa-line:    rgba(96, 168, 132, 0.55);
  --wa-text:    #a8d8c1;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font-body);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --radius: 4px;
  --radius-lg: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 24px 50px -28px rgba(0,0,0,.85);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.9);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
video, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(180, 30, 39, 0.6); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.28rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--silver); font-weight: 600; }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--silver); line-height: 1.65; }
.text-red { color: var(--red-bright); }
code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}

/* Small uppercase label (the ONLY place we use all-caps) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.9rem; }
.center { text-align: center; }
.mt-2 { margin-top: 1.75rem; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--red-2); box-shadow: 0 10px 24px -10px rgba(180,30,39,.7); }

.btn--ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--line-2);
}
.btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.03); }

/* WhatsApp — muted, professional (subtle green, not toy-bright) */
.btn--wa {
  background: rgba(47, 111, 87, 0.12);
  color: var(--wa-text);
  border-color: var(--wa-line);
}
.btn--wa:hover { background: rgba(47, 111, 87, 0.24); color: #d6f0e3; border-color: rgba(120,190,155,.7); }

.btn--lg { padding: 1rem 1.9rem; font-size: 0.98rem; }
.btn--block { width: 100%; }

/* generic button row */
.btn-row, .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

/* ==========================================================================
   Header — stable 3-column row: logo (left) · nav (centre) · actions (right)
   Fixed 76px height; nothing wraps.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 16, 19, 0.8);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
/* Glass effect once the page is scrolled (toggled via JS at scrollY > 20). */
.site-header.is-scrolled {
  background: rgba(12, 14, 17, 0.6);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Max-width shell laid out as three columns. The outer 1fr columns are equal,
   so the centre nav stays optically centred regardless of logo/action widths. */
.nav-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.5rem;
}

/* Brand — compact, single line */
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.brand img { height: 34px; width: auto; }
.brand-text {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}
.brand-text b { color: var(--red-bright); font-weight: 800; }
/* Navbar wordmark: only the "S" in AS and the "1" in No1 are red. */
.brand-text .brand-accent { color: var(--red-bright); }
.brand-text small {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
/* Keep the header lockup to one clean line — tagline stays in the footer only. */
.site-header .brand-text small { display: none; }

/* Centre navigation */
.main-nav { justify-self: center; }
.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.1rem;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--silver);
  padding: 0 0.72rem;
  border-radius: var(--radius);
  transition: color .2s;
}
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.72rem; right: 0.72rem; bottom: 6px;
  height: 1.5px;
  background: var(--red);
}

/* Right-hand actions */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.nav-actions .btn {
  white-space: nowrap;
  padding: 0.55rem 1.15rem;
  font-size: 0.86rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--silver); transition: .25s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Photo placeholders / frames — made to look intentional, not empty
   ========================================================================== */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(130% 110% at 50% 0%, rgba(255,255,255,.045), transparent 55%),
    linear-gradient(158deg, #1d222a 0%, #14181d 55%, #0f1216 100%);
  box-shadow: var(--shadow);
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.85;
}
/* diagonal light sheen */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 32%, rgba(255,255,255,.035) 50%, transparent 68%);
  pointer-events: none;
}
/* viewfinder corner bracket — top-left */
.ph::after {
  content: "";
  position: absolute;
  left: 16px; top: 16px;
  width: 16px; height: 16px;
  border-left: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
  pointer-events: none;
}

/* Real photo dropped into a frame: fill the existing slot, drop the placeholder
   decoration. The .ph keeps its size (min-height / aspect-ratio), so layout is unchanged. */
.ph.has-img { padding: 0; }
.ph.has-img::before,
.ph.has-img::after { content: none; }
.ph > .media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Brand logo dropped into the hero frame: show the whole badge (contain, never crop)
   on a solid black backdrop so the logo's own black background blends seamlessly. */
.ph--logo { background: #000; }
.ph--logo > .media-img { object-fit: contain; background: #000; padding: clamp(0.75rem, 3vw, 2rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(180,30,39,.12), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--charcoal) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  gap: 2.75rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--silver); }
.hero .lead { max-width: 540px; margin-bottom: 0.5rem; }
.hero-trust {
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hero-trust span { color: var(--silver); }

/* Hero media panel */
.hero-media { position: relative; }
.hero-media .ph {
  min-height: 380px;
  aspect-ratio: 5 / 4;
}
.hero-media .frame-cap {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  background: rgba(14,16,19,.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.hero-badge {
  position: absolute;
  right: -10px; bottom: -18px;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 0.95rem 1.2rem;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.hero-badge strong { display: block; color: var(--white); font-size: 0.98rem; font-weight: 700; }
.hero-badge span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Trust strip (subtle, not bright) ---------- */
.trust-strip { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-block: 0;
}
.trust-item {
  padding: 1.5rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}
.trust-item h3::before {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--red);
  margin-bottom: 0.7rem;
}
.trust-item p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

/* ---------- Editorial service cards ---------- */
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 1.7rem; right: 1.7rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
a.svc:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--line-2); }
.svc:hover::before { transform: scaleX(1); }
.svc__index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.svc__index b { color: var(--red-bright); font-weight: 700; }
.svc h3 { margin-bottom: 0.55rem; }
.svc p { font-size: 0.92rem; color: var(--text); margin-bottom: 1.5rem; flex: 1; }
.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}
.svc__link::after {
  content: "";
  width: 20px; height: 1px;
  background: currentColor;
  transition: width .25s var(--ease), background .25s;
}
a.svc:hover .svc__link { color: #fff; }
a.svc:hover .svc__link::after { width: 30px; background: var(--red-bright); }

/* ---------- Split / feature section ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split .ph { min-height: 340px; }
.feature-list { display: grid; gap: 0.85rem; margin: 1.5rem 0; }
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.96rem;
  color: var(--text);
}
/* CSS-drawn check marker (no emoji) */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--red-bright);
  border-bottom: 2px solid var(--red-bright);
  transform: rotate(-45deg);
}

/* ---------- Mini numbered steps (Send photos section) ---------- */
.mini-steps { display: grid; gap: 1.4rem; margin: 1.8rem 0; }
.mini-steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.mini-steps .n {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-bright);
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.mini-steps h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.mini-steps p { font-size: 0.9rem; margin: 0; }

/* Estimate side card */
.estimate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
}
.estimate-card h3 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.estimate-card .feature-list { margin: 0 0 1.5rem; }
.estimate-foot {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.estimate-foot a { color: var(--silver); font-weight: 600; }
.estimate-foot a:hover { color: #fff; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.6rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red-bright);
  margin-bottom: 1rem;
}
.step::after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: var(--line-2);
  margin-bottom: 1rem;
  position: absolute;
  top: 2.2rem; left: 1.5rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; margin: 0; }

/* ---------- Gallery / before-after ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.ba {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.ba .ph { min-height: 200px; border: 0; border-radius: 0; box-shadow: none; }
.ba .ph::after { display: none; }
.ba-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ba-label .before { color: var(--muted); }
.ba-label .after { color: var(--red-bright); font-weight: 600; }

/* ---------- Prose / local SEO ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--text); }
.prose h3 { margin: 1.8rem 0 0.7rem; }
.prose a { color: var(--red-bright); text-decoration: none; border-bottom: 1px solid rgba(224,69,77,.4); padding-bottom: 1px; transition: border-color .2s; }
.prose a:hover { border-color: var(--red-bright); }

/* Tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.4rem; }
.chip {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--silver);
  background: rgba(255,255,255,.02);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--line-2); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 1.15rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .sign { color: var(--red-bright); font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform .25s var(--ease); flex: 0 0 auto; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 1.35rem 1.25rem; font-size: 0.95rem; color: var(--text); }
.faq-a-inner a { color: var(--red-bright); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(180,30,39,.1), transparent 65%),
    var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.85rem; }
.cta-band .lead { max-width: 620px; margin: 0 auto; }
.cta-band .hero-cta, .cta-band .btn-row { justify-content: center; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% -25%, rgba(180,30,39,.1), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--charcoal));
  border-bottom: 1px solid var(--line);
  padding: clamp(2.8rem, 7vw, 4.75rem) 0;
}
.breadcrumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.02em; }
.breadcrumbs a { color: var(--silver); }
.breadcrumbs a:hover { color: var(--red-bright); }
.page-hero h1 { max-width: 850px; }
.page-hero p { max-width: 660px; margin-top: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.25rem; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
}
.contact-card h2 { margin-bottom: 0.6rem; }
.contact-card h3 { margin-bottom: 0.4rem; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a, .contact-list span { color: var(--silver); font-size: 1.02rem; word-break: break-word; }
.contact-list a:hover { color: #fff; }

/* Form */
.form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5d636c; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(180,30,39,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(3.25rem, 6vw, 4.75rem); }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; padding-bottom: 2.75rem; }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer-col p { font-size: 0.9rem; color: var(--text); }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--silver); font-size: 0.9rem; transition: color .2s; }
.footer-col a:hover { color: var(--red-bright); }
.footer-brand .brand-text { font-size: 1.25rem; }
.footer-brand .brand-text small { letter-spacing: 0.22em; }

/* Footer contact (label + value, no icons) */
.footer-contact li { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.9rem; }
.footer-contact .label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-contact span:not(.label) { color: var(--silver); font-size: 0.9rem; }
/* Long values (email address, street address) must be able to wrap on narrow screens. */
.footer-contact a, .footer-contact span:not(.label) { overflow-wrap: anywhere; }

/* Footer "Our Network" links (external partner sites) */
.footer-col .footer-network-title { margin-top: 1.75rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Mobile contact bar (no emoji) ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(14, 16, 19, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2);
}
.mobile-bar a {
  padding: 0.95rem 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--silver);
  border-right: 1px solid var(--line);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar a.wa { color: var(--wa-text); }
.mobile-bar a.quote { background: var(--red); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 820px) {
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0; }
  .trust-item:nth-child(odd) { border-right: 0; }
  .trust-item:not(:last-child) { border-right: 1px solid var(--line); }
}

@media (min-width: 920px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; }
  .hero-media .ph { min-height: 460px; }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.reverse .ph { order: 2; }
  .split.estimate-split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
}

/* Mobile nav + bottom bar */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  /* Collapse the 3-col grid to a simple row: logo left, actions right. */
  .nav-shell { display: flex; justify-content: space-between; }
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-2);
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; flex-wrap: wrap; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .main-nav a { height: auto; padding: 0.95rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 60px; }
  .hero-badge { position: static; max-width: none; margin-top: 1.5rem; }
}

@media (max-width: 460px) {
  .nav-actions .btn--ghost { display: none; }
}

/* Mobile overflow guards — only where layouts are stacked (desktop >=920px unchanged).
   Grid items default to min-width:auto, so an item's intrinsic minimum can inflate the
   column past the viewport. Two real cases: the hero .ph (aspect-ratio 5/4 + min-height
   380px transfers a 475px min-width) and the contact form selects (longest option). */
@media (max-width: 919px) {
  .hero-inner > *, .split > *, .contact-grid > *, .grid > *, .footer-grid > *,
  .gallery-grid > *, .steps > *, .trust-strip .container > *, .ba-imgs > * { min-width: 0; }
  /* The hero frame's 5/4 ratio + min-height:380px makes the browser hold the frame at
     475px wide (380 x 5/4) no matter the viewport. Below 475px of track the ratio is
     unattainable anyway (min-height always wins), so drop it while the hero is stacked:
     the frame keeps the exact same 380px height and simply fills the available width. */
  .hero-media .ph { aspect-ratio: auto; min-width: 0; }
}

/* Very narrow phones: the nowrap header row (brand + Quote + burger) needs ~342px.
   Compact it slightly below 360px so nothing pushes past the viewport. */
@media (max-width: 359px) {
  .nav-shell { padding-inline: 1rem; }
  .brand-text { font-size: 0.92rem; }
  .nav-actions { gap: 0.4rem; }
  .nav-actions .btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
