@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Capital Carpet Cleaners — design system
   Identity carried over from the existing brand:
   Instrument Sans, periwinkle accent #7A82FF, ink #31343B, muted #747989 */

:root {
  --ink: #31343B;
  --body: #4a4e58;
  --muted: #747989;
  --accent: #bf2626;
  --accent-dark: #971d1d;
  --accent-tint: #fdecec;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --border: #e4e6ee;
  --green: #1f8a5b;
  --navy: #23262d;
  --navy-2: #2f333c;
  --navy-deep: #1a1d23;
  --radius: 14px;
  --shadow: 0 2px 24px rgba(49, 52, 59, 0.08);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.015em; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
p + p { margin-top: 0.9em; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.logo img { height: 40px; width: 40px; }
.logo:hover { text-decoration: none; }
nav.main-nav { display: flex; gap: 26px; align-items: center; }
nav.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.header-phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-phone span { color: var(--muted); font-weight: 400; font-size: 0.8rem; display: block; line-height: 1.1; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Hero */
.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero .kicker, .hero .kicker a { color: #a9b4c6; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: #d5deea; }
.hero p.lede { color: #c9d2e5; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn-secondary:hover { border-color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero .kicker {
  font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.hero p.lede { font-size: 1.15rem; margin-top: 18px; }
.hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Trust strip */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); padding: 22px 0; }
.trust-strip .wrap { display: flex; gap: 12px 30px; flex-wrap: nowrap; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 1100px) {
  .trust-strip .wrap { flex-wrap: wrap; }
  .trust-item { white-space: normal; }
}
.trust-item .tick { color: var(--green); font-weight: 700; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 3px rgba(49,52,59,0.04);
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card .icon { color: var(--green); font-size: 1.05rem; }
section.soft .card { box-shadow: none; }

/* Case studies */
.case { display: flex; flex-direction: column; }
.case img { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.case .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }

/* Pricing table */
table.pricing { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
table.pricing th, table.pricing td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
table.pricing th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.92rem; }
table.pricing tr:last-child td { border-bottom: none; }
table.pricing td.rate { font-weight: 700; color: var(--ink); white-space: nowrap; }
.pricing-note { font-size: 0.88rem; color: var(--muted); }

/* Estimator */
.estimator {
  background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #d9dbe3; border-radius: var(--radius);
  padding: 40px; margin: 32px 0;
}
.estimator h2, .estimator h3 { color: #fff; }
.estimator label { display: block; font-weight: 600; color: #fff; margin: 22px 0 8px; font-size: 0.95rem; }
.estimator input[type="range"] { width: 100%; accent-color: var(--accent); }
.estimator .sqm-readout { font-size: 1.6rem; font-weight: 700; color: #fff; }
.estimator select {
  width: 100%; padding: 12px; border-radius: 8px; border: none;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.estimator .result {
  margin-top: 28px; padding: 24px; background: rgba(191,38,38,0.16);
  border: 1px solid rgba(235,105,95,0.5); border-radius: 10px;
}
.estimator .result .range { font-size: 2rem; font-weight: 700; color: #fff; }
.estimator .result .caveat { font-size: 0.85rem; color: #b9bdd0; margin-top: 6px; }

/* FAQ */
.faq details {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px;
  margin-bottom: 12px; background: #fff;
}
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 1.02rem; }
.faq details p { margin-top: 12px; }

/* Quote form */
.quote-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%; padding: 13px 15px; border-radius: 9px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.quote-form textarea { min-height: 110px; resize: vertical; }

/* Method comparison */
.method { border-left: 3px solid var(--accent); padding-left: 22px; }
.method .best-for { font-size: 0.88rem; color: var(--muted); }

/* Founder */
.founder { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.founder img { width: 100%; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9bdd0; padding: 56px 0 32px; font-size: 0.92rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #d9dbe3; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.8rem; color: #8d92a5; }

/* Mobile nav toggle + sticky call bar */
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
  font-size: 1.1rem; line-height: 1;
}
.mobile-cta { display: none; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(49,52,59,0.25);
}
.wa-float:hover { background: #1ebe5b; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap, .founder { grid-template-columns: 1fr; }
  .hero .wrap > *:nth-child(2) { order: -1; margin-bottom: 28px; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 8px 0;
    box-shadow: 0 12px 24px rgba(49,52,59,0.10);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 13px 24px; border-bottom: 1px solid var(--bg-soft); }
  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(49,52,59,0.12);
  }
  .mobile-cta a {
    flex: 1; text-align: center; padding: 15px 8px; font-weight: 700;
    font-size: 0.95rem; text-decoration: none;
  }
  .mobile-cta .call { background: var(--navy); color: #fff; }
  .mobile-cta .quote { background: var(--accent); color: #fff; }
  body { padding-bottom: 52px; }
  .wa-float { bottom: 68px; right: 16px; }
}

/* Image placeholder — slot awaiting hand-picked photography */
.img-placeholder {
  width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 1.6rem;
}
.case .img-placeholder { height: 190px; aspect-ratio: auto; margin-bottom: 16px; border-radius: 10px; }

/* Client logo wall */
.logo-wall { text-align: center; padding: 72px 0 48px; }
.logo-wall p { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 26px; }
.logo-wall .logos { display: flex; flex-wrap: wrap; gap: 32px 52px; align-items: center; justify-content: center; }
.logo-wall .logos img { width: auto; opacity: 0.92; }

/* Review badge in trust strip */
.trust-item .stars { color: #f5a623; letter-spacing: 1px; }

/* Testimonials */
.quote-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.quote-card .stars { color: #f5a623; letter-spacing: 2px; font-size: 0.95rem; }
.quote-card blockquote { font-size: 0.98rem; color: var(--body); }
.quote-card cite { font-style: normal; font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.quote-card cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
a.trust-item:hover { text-decoration: none; opacity: 0.8; }

/* Dropdown navigation */
nav.main-nav .nav-group { position: relative; }
.nav-parent {
  color: var(--ink); font-weight: 500; font-size: 0.95rem; cursor: pointer;
  padding: 8px 0; display: inline-block;
}
.nav-parent::after { content: " \25BE"; font-size: 0.7em; color: var(--muted); }
.sub-menu {
  display: none; position: absolute; top: 100%; left: -14px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; min-width: 250px;
  box-shadow: 0 14px 30px rgba(49,52,59,0.13); padding: 8px 0; z-index: 70;
}
.nav-group:hover .sub-menu, .nav-group.open .sub-menu { display: block; }
.sub-menu a { display: block; padding: 9px 18px; font-size: 0.92rem; }
.sub-menu a:hover { background: var(--bg-soft); text-decoration: none; }
@media (max-width: 860px) {
  nav.main-nav .nav-group { width: 100%; }
  .nav-parent { display: block; padding: 12px 24px 4px; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
  .nav-parent::after { content: ""; }
  .sub-menu { display: block; position: static; border: none; box-shadow: none;
    border-radius: 0; padding: 0; min-width: 0; }
  .sub-menu a { padding: 11px 24px 11px 36px; border-bottom: 1px solid var(--bg-soft); }
  nav.main-nav > a { border-bottom: 1px solid var(--bg-soft); }
}

/* Inline photo inside content sections */
.inline-photo { display: block; width: min(520px, 100%); margin: 36px auto 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Labelled slot awaiting a supplied photo */
.img-slot {
  width: min(520px, 100%); margin-left: auto; margin-right: auto;
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; text-align: center; padding: 16px;
  margin-top: 36px;
}

/* Floating review card */
.hero-media { position: relative; }
.review-float {
  position: absolute; left: -20px; bottom: 24px; background: #fff;
  border-radius: 12px; padding: 12px 18px; box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  line-height: 1.35;
}
.review-float .stars { color: #f5a623; letter-spacing: 2px; font-size: 0.9rem; display: block; }
.review-float b { color: var(--ink); font-size: 0.92rem; }
.review-float span { color: var(--muted); font-size: 0.75rem; display: block; }
.review-float:hover { text-decoration: none; }
@media (max-width: 860px) { .review-float { left: 10px; } }

/* Eyebrow section labels */
.eyebrow {
  display: flex; align-items: center; gap: 10px; color: var(--accent-dark);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

/* Photo service cards */
.svc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc-card .thumb { position: relative; }
.svc-card .thumb img { width: 100%; height: 195px; object-fit: cover; display: block; }
.svc-card .icon-chip {
  position: absolute; top: 14px; left: 14px; width: 40px; height: 40px;
  background: #fff; color: var(--green); border-radius: 10px; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
}
.svc-card .body { padding: 22px 24px 26px; }
.svc-card .body h3 { margin-bottom: 6px; }
.svc-card .more { display: inline-block; margin-top: 12px; font-weight: 600; }

/* Header quote button */
.btn-header {
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 9px;
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}
.btn-header:hover { background: var(--accent-dark); text-decoration: none; }
@media (max-width: 1250px) { .btn-header { display: none; } }

/* Dark conversion sections */
section#quote { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
section#quote h2 { color: #fff; }
section#quote > .wrap > p { color: #c9d2e5; }
section#quote .eyebrow { color: #a9b4c6; }
section#quote .eyebrow::before { background: #a9b4c6; }
section#quote .pricing-note, section#quote .pricing-note a { color: #a9b4cf; }
section#quote a { color: #f5a199; }

/* Long-form legal / prose pages */
.prose { max-width: 780px; }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 24px; font-size: 1.05rem; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 12px 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.prose .muted { color: var(--muted); font-size: 0.9rem; }

/* Cookie consent bar */
.cookie-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 80; max-width: 420px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22); padding: 20px 22px;
}
.cookie-bar p { font-size: 0.9rem; margin-bottom: 14px; color: var(--body); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 20px; font-size: 0.9rem; }
@media (max-width: 860px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 64px; max-width: none; }
}

/* Footer legal links row */
.site-footer .legal-links { margin-bottom: 12px; font-size: 0.82rem; }
.site-footer .legal-links a { color: #d9dbe3; }

/* Wide (2-column) dropdown for the long Areas list */
.sub-menu-wide { columns: 2; column-gap: 0; min-width: 470px; }
.sub-menu-wide a { break-inside: avoid; }
@media (max-width: 860px) { .sub-menu-wide { columns: 1; min-width: 0; } }

/* Scroll-reveal (JS adds .reveal; skipped for reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; will-change: opacity, transform; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
