/* Capital City Stone & Cabinet Design — design system
   Display: Marcellus (stone-classical) · Body: Inter
   Palette: marble paper, warm charcoal ink, brass accent.
   Contrast (computed): --ink-soft on --paper 7.0:1 · --brass on --paper 5.0:1
   · --brass-bright on --deep 7.8:1 — all clear WCAG AA. */

:root {
  /* Brand palette from the LogoTournament sheet (Corrin, 2026-09-04):
     blue #0E5F8A, greens #7DAB22/#A4C565/#5D8019, font Futura MD (Jost
     is the web substitute). Token NAMES are legacy (--brass etc.) —
     values are brand; contrast computed in verify-schema notes:
     blue on paper 6.5:1, #7DAB22 is decorative-only (2.7:1 on white). */
  --paper: #f7f9f8;
  --stone: #eaf0ee;
  --line: #d9e2df;
  --ink: #1c2b33;
  --ink-soft: #4d5a63;
  --deep: #0d3d5c;
  --deep-soft: #9db6c6;
  --brass: #0e5f8a;        /* accent on light surfaces (brand blue) */
  --brass-bright: #a4c565; /* accent on dark surfaces (brand light green) */
  --green: #7dab22;        /* brand green — decorative only, never text on light */
  --green-deep: #5d8019;   /* passes 4.5:1 on pure white only */
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 61, 92, .10);
  --font-display: 'Jost', 'Futura', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass); }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; margin-bottom: .4em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.section-alt { background: var(--stone); }
.kicker {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

/* Top bar + nav */
.topbar {
  background: var(--deep); color: var(--deep-soft); font-size: .88rem;
  padding: 7px 0; text-align: center;
}
.topbar a { color: var(--brass-bright); font-weight: 600; text-decoration: none; }
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; } /* padding-block only: sits on .wrap, and `12px 0` zeroed its side gutter — the logo sat flush to the phone edge */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 8px; }
.brand .name { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2; }
.brand img.lockup { height: 50px; width: auto; display: block; }
@media (max-width: 520px) { .brand img.lockup { height: 40px; } }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--brass); }
.nav-cta {
  background: var(--brass); color: var(--white) !important; padding: 10px 18px;
  border-radius: 999px; box-shadow: var(--shadow);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 1.15rem; color: var(--ink); }

/* Hero */
.hero { position: relative; color: var(--white); padding: 0; }
/* On phones the hero is as tall as copy + form (~1700px). Covering all of it zoomed the 1344px photo until only a ceiling light showed, so the photo is pinned to the top band and fades into the navy background. */
.hero { background: #0a1924; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
/* Phone-only: desktop centers its copy vertically in a ~1000px hero, where full cover is right. */
@media (max-width: 900px) { .hero-media { inset: 0 0 auto 0; height: min(100%, 780px); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* Scrim kept light so the kitchen reads (Sean 9/19: 'the picture is not even visible really in the mobile view'); the text shadow carries legibility. */
  background: linear-gradient(100deg, rgba(10, 25, 36, .80) 0%, rgba(10, 25, 36, .56) 45%, rgba(10, 25, 36, .16) 100%);
}
/* copy column only — a bare `.hero p` also shadowed the dark text inside the white form card */
.hero-inner > div:first-child :is(h1, p, .stars) { text-shadow: 0 1px 14px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4); }
@media (max-width: 900px) { .hero-media::after { background: linear-gradient(rgba(10,25,36,.34) 0%, rgba(10,25,36,.60) 36%, rgba(10,25,36,.70) 100%); } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding-top: 84px; padding-bottom: 84px; align-items: center; } /* padding-block only: `84px 0` zeroed .wrap's side gutter, so hero copy sat flush to the phone edge */
.hero h1 { color: var(--white); }
.hero p { color: #e2ebf1; margin: 18px 0 24px; max-width: 56ch; }
.hero .stars { color: var(--brass-bright); font-weight: 700; letter-spacing: .02em; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: 14px 26px; font-size: 1rem;
}
.btn-primary { background: var(--brass-bright); color: var(--deep); }
.btn-ghost { border: 2px solid rgba(255,255,255,.65); color: var(--white); }

/* Form card (hero + inner-page contact) */
.form-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; border-top: 4px solid var(--brass);
}
.form-card h2, .form-card h3 { font-size: 1.3rem; }
.form-card .consent { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; }
.ms-form__loading { color: var(--ink-soft); padding: 18px 0; }
.form-fallback { padding: 10px 0; }
.form-fallback a { font-weight: 700; }

/* Trust bar */
.trustbar { background: var(--deep); color: var(--deep-soft); padding: 22px 0; }
.trustbar .wrap { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; text-align: center; }
.trustbar b { color: var(--white); }
.trustbar .gold { color: var(--brass-bright); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; }
.card .pad { padding: 20px; flex: 1; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card a.more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }

/* Before/after gallery */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ba-grid figure { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.ba-grid img { aspect-ratio: 1; object-fit: cover; }
.ba-grid figcaption { padding: 12px 16px; font-size: .9rem; color: var(--ink-soft); }
.ba-note { margin-top: 14px; font-size: .95rem; color: var(--ink-soft); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
blockquote.review {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brass);
  border-radius: var(--radius); padding: 22px; font-size: .98rem; color: var(--ink);
}
blockquote.review footer { margin-top: 12px; font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.review-cta { margin-top: 20px; }

/* Checklist */
ul.checks { list-style: none; margin-top: 14px; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brass); font-weight: 800; }
ul.checks b { color: var(--ink); }

/* Steps */
.steps { counter-reset: step; }
.steps li {
  list-style: none; counter-increment: step; padding-left: 56px; position: relative; margin-bottom: 22px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  border-radius: 50%; background: var(--deep); color: var(--brass-bright);
  font-family: var(--font-display); font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}

/* Service-area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chips span {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .92rem; color: var(--ink);
}

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; list-style: none; position: relative; padding-right: 30px; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--brass); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: var(--ink-soft); max-width: 72ch; }

/* Dark CTA band */
.cta-band { background: var(--deep); color: var(--deep-soft); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .btn-primary { margin-top: 18px; }
.cta-band a.tel { color: var(--brass-bright); font-weight: 700; text-decoration: none; }

/* Breadcrumbs / page hero for inner pages */
.page-hero { background: var(--deep); color: var(--white); padding: 56px 0 48px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #d9d4c8; max-width: 62ch; margin-top: 12px; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: var(--deep-soft); }
.crumbs a { color: var(--brass-bright); text-decoration: none; }

/* Two-column content blocks */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
footer.site { background: var(--deep); color: var(--deep-soft); padding: 56px 0 28px; font-size: .95rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
footer.site .footer-heading { color: var(--white); font-weight: 700; margin-bottom: 12px; }
footer.site a { color: var(--deep-soft); text-decoration: none; }
footer.site a:hover { color: var(--brass-bright); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center; font-size: .85rem; }
footer.site .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer.site .brandline img { width: 40px; height: 40px; border-radius: 8px; }
footer.site .brandline span { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .ba-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .topbar a, footer.site a, .crumbs a {
    display: inline-block;
    min-height: 24px;
    padding: .4rem 0;
  }
  .cta-band a.tel {
    display: inline-block;
    min-height: 24px;
    padding: .4rem 0;
  }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 18px 20px; gap: 14px;
    border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .ba-grid, .review-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
