/* ==========================================================================
   Rug Cleaning Cincinnati — design system
   Warm, residential, editorial. Sage + amber, Playfair Display + Inter.
   Deliberately unlike the Ohio Valley (navy/clinical) sites.
   ========================================================================== */

:root {
  --primary:      #2D5016;  /* deep sage — nav, headlines, primary buttons */
  --primary-hover:#3D6B20;
  --accent:       #C4873A;  /* warm amber — CTAs, price callouts */
  --accent-hover: #A06A28;
  --bg:           #FAFAF7;  /* warm white — page background */
  --surface:      #F2F2EE;  /* light gray — cards, form fields */
  --border:       #D8D8D2;
  --text:         #2C2C2A;
  --text-muted:   #6B6B63;
  --sage-light:   #8FAF6E;
  --success:      #2D6A4F;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --maxw: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--primary); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 0 0 .4em; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

/* ---- layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--surface { background: var(--surface); }
.section--sage { background: var(--primary); color: #fff; }
.section--sage h2, .section--sage h3 { color: #fff; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hover); margin: 0 0 .75rem; font-weight: 500; }
.section--sage .eyebrow { color: var(--sage-light); }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.center .measure { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--accent); color: #fff; }
.btn--amber:hover { background: var(--accent-hover); color: #fff; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--lg { font-size: 1.08rem; padding: 1rem 1.9rem; }
.btn--block { width: 100%; }

/* ---- header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.nav__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--primary); display: inline-flex; flex-direction: column; line-height: 1.05; }
.nav__logo:hover { text-decoration: none; }
.nav__logo small { font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.logo-svg { height: 34px; width: auto; display: block; }
.footer-brand .logo-svg { height: 42px; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav__links a { color: var(--text); font-weight: 500; font-size: .97rem; }
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.nav__cta .btn { padding: .6rem 1.2rem; }
.nav__call { font-weight: 600; color: var(--primary); font-family: var(--font-mono); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .site-header { backdrop-filter: none; background: var(--bg); }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; height: 100dvh; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; gap: .25rem; z-index: 60;
    background: #fff; padding: 5rem 1.5rem 2rem; overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0,0,0,.14);
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav__links.is-open { transform: translateX(0); visibility: visible; }
  .nav__links a { padding: .7rem .25rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav__cta { margin-top: .75rem; }
  .nav__cta .btn { width: 100%; padding: .85rem; }
  body.nav-open { overflow: hidden; }
}

/* ---- hero (signature) ------------------------------------------------------
   Real close-up carpet/rug photography goes in .hero as background-image.
   Until then a warm layered texture stands in — looks intentional, not empty. */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: center;
  color: #fff; text-align: left; overflow: hidden;
  background-color: #2f3a25;
  background-image: url('/assets/images/hero-carpet.webp');
  background-size: cover;
  background-position: center;
}
/* Hero uses /assets/images/hero-carpet.webp (placeholder Unsplash photo until
   real customer photography is available). The dark overlay below stays. */
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: 720px; padding-block: 3rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.3); margin-bottom: .4em; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.94); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* ---- before / after -------------------------------------------------------- */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0; }
.ba { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.ba__label { position: absolute; top: .75rem; left: .75rem; z-index: 2; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(44,44,42,.82); color: #fff; padding: .25rem .6rem; border-radius: 4px; }
/* Texture placeholders — swap each .ph for a real <picture> before launch. */
.ph { width: 100%; height: 100%; }
.ph--before { background-color: #7d766a;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.10) 0 3px, transparent 3px 9px), radial-gradient(circle at 30% 40%, rgba(60,45,30,.5), transparent 45%), radial-gradient(circle at 70% 70%, rgba(40,30,20,.45), transparent 40%), linear-gradient(160deg, #8b8375, #6e675a); }
.ph--after { background-color: #b9c9a5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 3px, transparent 3px 9px), linear-gradient(160deg, #cdd9b8, #9fb582); }
.ph--card { aspect-ratio: 3/2; border-radius: var(--radius) var(--radius) 0 0;
  background-color: #b9c9a5; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 3px, transparent 3px 8px), linear-gradient(160deg, #cdd9b8, #8FAF6E); }

/* Real photography via <picture> (replaces .ph texture placeholders) */
.ba .ba-pic { position: absolute; inset: 0; display: block; }
.ba .ba-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-pic { display: block; }
.card-pic img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }

/* Slim photographic header banner for cost + location pages */
.page-banner { position: relative; height: clamp(150px, 24vw, 220px); background-size: cover; background-position: center; background-color: var(--surface); }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,80,22,.12), rgba(45,80,22,.32)); }

/* ---- cards / services ------------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.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: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card__body { padding: 1.25rem 1.35rem 1.4rem; }
.service-card h3 { margin-top: .1rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: .96rem; }
.service-card a { font-weight: 600; }

/* ---- cost callout ---------------------------------------------------------- */
.cost-callout { background: var(--surface); border: 2px solid var(--sage-light); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.cost-callout .num, .mono { font-family: var(--font-mono); color: var(--accent-hover); font-weight: 500; }
.answer-box { background: var(--surface); border: 2px solid var(--sage-light); border-left-width: 6px; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.answer-box .mono { font-size: 1.02em; }

/* ---- price table ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 460px; background: #fff; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
thead th { background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:nth-child(2) { font-family: var(--font-mono); color: var(--accent-hover); white-space: nowrap; }

/* ---- prose ----------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---- link grid / service area ---------------------------------------------- */
.area-group + .area-group { margin-top: 2rem; }
.link-grid { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem .9rem; }
.link-grid a { display: block; padding: .6rem .85rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; color: var(--text); }
.link-grid a:hover { border-color: var(--sage-light); color: var(--primary); text-decoration: none; }

/* ---- forms ----------------------------------------------------------------- */
.quote-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 4vw, 2rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage-light); outline-offset: 1px; border-color: var(--sage-light); background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .5rem 0 0; font-size: .95rem; }
.form-status.err { color: #B4232A; }
.form-status.ok { color: var(--success); }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: .75rem; }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); margin-top: 1rem; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--primary); position: relative; }
.faq__q::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq__item.is-open .faq__q::after { content: "\2013"; }
.faq__a { display: none; padding: 0 0 1.2rem; color: var(--text-muted); max-width: 68ch; }
.faq__item.is-open .faq__a { display: block; }

/* ---- breadcrumbs ----------------------------------------------------------- */
.crumbs { padding: 1rem 0 0; font-size: .85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--border); }

/* ---- wave divider ---------------------------------------------------------- */
.wave { display: block; width: 100%; height: auto; color: var(--surface); }
.wave--bg { color: var(--bg); }

/* ---- footer ---------------------------------------------------------------- */
.site-footer { background: #22380F; color: rgba(255,255,255,.82); padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-light); margin: 0 0 .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .95rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.25rem; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---- sticky mobile CTA ----------------------------------------------------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem; background: rgba(255,255,255,.97); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.sticky-cta .btn { padding: .8rem; font-size: 1rem; }
@media (max-width: 860px) {
  .sticky-cta.is-visible { display: grid; }
  body { padding-bottom: 4.5rem; }
}

/* ---- responsive grids ------------------------------------------------------ */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4, .beforeafter, .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { text-align: left; }
}

/* ---- misc ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.trust-inline { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: .9rem; color: var(--text-muted); }
.trust-inline li { position: relative; padding-left: 1.1rem; }
.trust-inline li::before { content: "\2713"; position: absolute; left: 0; color: var(--sage-light); font-weight: 700; }

/* ---- Split-screen before/after hero (Carpet Cleaning Dayton signature) ---- */
.hero--split { background-image: none; }
.hero--split .hero-split__panes { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero-split__pane { background-size: cover; background-position: center; }
.hero-split__pane--before { background-image: url('/assets/images/before-carpet.webp'); }
.hero-split__pane--after { background-image: url('/assets/images/after-carpet.webp'); box-shadow: -2px 0 0 rgba(255,255,255,.85); }
.hero-split__tag { position: absolute; bottom: 1.1rem; z-index: 2; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(44,44,42,.72); color: #fff; padding: .25rem .6rem; border-radius: 4px; }
.hero-split__tag--before { left: 1.1rem; }
.hero-split__tag--after { right: 1.1rem; }
.hero__inner--center { text-align: center; margin-inline: auto; max-width: 780px; }
.hero__inner--center .hero__ctas { justify-content: center; }

/* Footer tagline (Dayton) */
.footer-tagline { font-size: .875rem; color: var(--sage-light); margin-top: 6px; }
