/* ==========================================================================
   House Extensions Filton — stylesheet
   Palette: brand red (#D6162F), charcoal (#221E22), white, warm grey (#F4F1EE)
   ========================================================================== */

:root {
  --red: #D6162F;
  --red-dark: #A9101F;
  --charcoal: #221E22;
  --charcoal-soft: #4A454A;
  --grey-100: #F7F5F2;
  --grey-200: #F0ECE7;
  --grey-300: #E2DBD3;
  --white: #FFFFFF;
  --ink: #221E22;
  --ink-soft: #524C51;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  padding-bottom: 60px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 0.7em;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--charcoal); color: var(--white);
  padding: 12px 20px; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal); color: var(--grey-200); font-size: 0.88rem; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: var(--grey-200); text-decoration: none; }
.topbar a:hover { color: var(--red); }
.topbar-phone { font-weight: 800; color: var(--white); }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--white); border-bottom: 3px solid var(--charcoal);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  color: var(--charcoal); text-decoration: none; display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.logo .logo-mark { flex-shrink: 0; }
.logo .logo-sub {
  display: block; font-family: var(--font-body); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--red);
}

nav.main-nav { display: none; }
nav.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
nav.main-nav a {
  text-decoration: none; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white) !important; text-decoration: none;
  font-weight: 800; padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: 0.95rem; white-space: nowrap; transition: background 0.15s ease;
}
.header-cta:hover { background: var(--red-dark); }

@media (min-width: 900px) { nav.main-nav { display: block; } }

.nav-toggle {
  display: inline-flex; background: none; border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--grey-300); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 0; }
.mobile-nav a {
  display: block; padding: 12px 24px; text-decoration: none; color: var(--ink);
  font-weight: 700; border-bottom: 1px solid var(--grey-200);
}
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; padding: 60px 0 52px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero-lede { font-size: 1.12rem; max-width: 48ch; color: var(--grey-200); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; padding: 14px 26px; border-radius: var(--radius-sm); font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* Hero photo grid — two real photos, native aspect ratio, no cropping/stretching */
.hero-photos { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hero-photo-card {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.hero-photo-card img { width: 100%; height: auto; display: block; }

.hero-strip { position: relative; z-index: 2; background: var(--white); color: var(--ink); }
.hero-strip .container { display: flex; flex-wrap: wrap; gap: 10px 30px; padding: 16px 24px; font-size: 0.92rem; font-weight: 700; }
.hero-strip .strip-item { display: flex; align-items: center; gap: 8px; }
.hero-strip svg { flex-shrink: 0; color: var(--red); }

/* ---------- Blueprint divider (signature element) ---------- */
.blueprint-divider { display: block; width: 100%; height: auto; line-height: 0; background: var(--white); }
.blueprint-divider svg { display: block; width: 100%; height: 64px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-tight { padding: 46px 0; }
.section-dark { background: var(--charcoal); color: var(--grey-200); }
.section-dark h2 { color: var(--white); }
.section-grey { background: var(--grey-100); }
.section-header { max-width: 62ch; margin-bottom: 38px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius-md);
  padding: 28px 24px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border-top: 4px solid transparent;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34,30,34,0.12); border-top-color: var(--red); }
.service-card .icon-wrap {
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--grey-100); border-radius: var(--radius-md); color: var(--red);
}
.service-card h3 { margin-bottom: 0; }
.service-card p { color: var(--ink-soft); margin-bottom: 0; flex-grow: 1; }
.service-card .card-link { font-weight: 800; color: var(--red); font-size: 0.92rem; }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 38px; align-items: center; }
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.reverse .col-media { order: 2; }
}
.col-media img { border-radius: var(--radius-md); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gallery-grid img { border-radius: var(--radius-md); width: 100%; height: auto; }

/* ---------- Trust list ---------- */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; }
.trust-list svg { flex-shrink: 0; margin-top: 3px; color: var(--red); }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; counter-reset: step; }
.process-step { position: relative; padding-top: 6px; }
.process-step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 2.3rem; color: var(--red); opacity: 0.4;
  display: block; margin-bottom: 4px;
}

/* ---------- Area chips / coverage ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.area-card {
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius-md);
  padding: 20px 22px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.area-card:hover { border-color: var(--red); box-shadow: 0 6px 16px rgba(34,30,34,0.1); }
.area-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.area-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 800px; }
.faq-item { background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius-md); padding: 4px 22px; }
.faq-item summary {
  cursor: pointer; font-weight: 800; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-size: 1.02rem; color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { transition: transform 0.2s ease; flex-shrink: 0; color: var(--red); }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item p { padding-bottom: 18px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 55ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--charcoal); }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--charcoal); color: var(--grey-200); padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--grey-200); text-decoration: none; font-size: 0.94rem; }
.footer-grid a:hover { color: var(--red); }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 10px; text-transform: uppercase; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; font-size: 0.85rem; color: #9A939A; }
.footer-bottom a { color: #9A939A; text-decoration: underline; }
.footer-bottom a:hover { color: var(--red); }

/* ---------- Sticky mobile call button ---------- */
.sticky-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--red); color: var(--white); text-align: center; padding: 14px;
  text-decoration: none; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
}
@media (min-width: 900px) { .sticky-call { display: none; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); padding: 16px 0; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { margin: 0 8px; color: var(--grey-300); }

/* ---------- Page intro (non-home pages) ---------- */
.page-intro { background: var(--charcoal); color: var(--grey-200); padding: 48px 0 58px; }
.page-intro h1 { color: var(--white); }
.page-intro .eyebrow { color: var(--red); }
.page-intro p { max-width: 60ch; color: var(--grey-200); font-size: 1.04rem; }

/* ---------- Content list checkmarks ---------- */
.check-list { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 4px; color: var(--red); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 110px 0; }
.error-page .error-code {
  font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem);
  color: var(--red); opacity: 0.9; line-height: 1;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
