/* ============================================================
   RJ Carpet & Floor Cleaning — Design System
   Warm-dark luxury: espresso ink, champagne gold, cream type.
   Display: Fraunces · Body: Hanken Grotesk
   ============================================================ */

:root {
  --ink: #16120d;
  --ink-deep: #100d09;
  --surface: #1f1a13;
  --surface-2: #282117;
  --cream: #f5edde;
  --cream-dim: #cfc2ab;
  --cream-faint: #a89a82;
  --gold: #c89c5e;
  --gold-bright: #e3bb7d;
  --gold-deep: #9a7440;
  --line: rgba(245, 237, 222, 0.12);
  --line-strong: rgba(245, 237, 222, 0.22);
  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --wand-stripes: repeating-linear-gradient(
    115deg,
    transparent 0 42px,
    rgba(245, 237, 222, 0.022) 42px 84px
  );
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

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

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--cream); }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

p { color: var(--cream-dim); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Layout ---------- */

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface); }
.section-stripes { background-image: var(--wand-stripes); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 1.4rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.4rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold));
  color: var(--ink-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px -12px rgba(200, 156, 94, 0.55);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(200, 156, 94, 0.7);
  color: var(--ink-deep);
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  font-weight: 600;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(200, 156, 94, 0.06); }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.2rem; }

.icon-phone { flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 18, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--cream);
  line-height: 1.1;
}
.logo:hover { color: var(--cream); }
.logo .mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  color: var(--cream-dim);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-bright); }
.nav .btn { padding: 0.62rem 1.4rem; font-size: 0.92rem; }
/* .nav a's cream color outranks .btn — force dark text on the gold pill */
.nav a.btn, .nav a.btn:hover { color: var(--ink-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--cream);
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > a::after { content: " ▾"; font-size: 0.7em; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  min-width: 240px;
  display: grid;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.nav-drop-menu a:hover { background: rgba(200, 156, 94, 0.08); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  /* NOTE: header's backdrop-filter makes .site-header the containing block,
     so the panel is positioned absolute below the header bar. */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 6vw 2rem;
    gap: 1.3rem;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; }
  .nav-drop-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 1px solid var(--line);
    border-radius: 0;
    margin: 0.4rem 0 0 0.4rem;
    padding: 0 0 0 0.6rem;
    min-width: 0;
  }
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.5rem 1rem;
}
.topbar a { color: var(--ink-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  background-image: var(--wand-stripes), radial-gradient(1100px 520px at 85% -10%, rgba(200, 156, 94, 0.13), transparent 65%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-photos {
  position: relative;
  min-height: 420px;
}
.hero-photos .ph {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos .ph-main {
  width: 78%;
  height: 82%;
  top: 0;
  right: 0;
}
.hero-photos .ph-accent {
  width: 46%;
  height: 52%;
  bottom: 0;
  left: 0;
  outline: 6px solid var(--ink);
  z-index: 2;
}
.hero-photos::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 82%;
  top: 22px;
  right: -22px;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  z-index: 0;
}
@media (max-width: 940px) {
  .hero-photos { min-height: 0; height: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
  .hero-photos .ph { position: static; }
  .hero-photos .ph-accent { outline: none; height: auto; }
  .hero-photos .ph-main { height: auto; }
  .hero-photos::before { display: none; }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-bright);
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--cream-faint); letter-spacing: 0.05em; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(200, 156, 94, 0.45); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(200, 156, 94, 0.1);
  border: 1px solid rgba(200, 156, 94, 0.3);
  margin-bottom: 1.3rem;
  color: var(--gold-bright);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.97rem; }
.card .from {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.card-link .arrow { transition: transform 0.2s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

a.card-wrap { display: block; color: inherit; }

/* photo cards */
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.photo-card:hover { transform: translateY(-5px); border-color: rgba(200, 156, 94, 0.45); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card.square img { aspect-ratio: 1 / 1; }
.photo-card figcaption {
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--cream-dim);
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.97rem; }

/* ---------- Checklist ---------- */

.checklist { list-style: none; display: grid; gap: 0.85rem; }
.checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--cream-dim);
}
.checklist li::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(200, 156, 94, 0.12);
  border: 1px solid rgba(200, 156, 94, 0.35);
  margin-top: 2px;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.9rem; max-width: 820px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: rgba(200, 156, 94, 0.4); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  color: var(--cream);
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.5rem 1.3rem; color: var(--cream-dim); font-size: 0.98rem; }

/* ---------- Google reviews ---------- */

.rating-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
  margin-bottom: 2.4rem;
}
.rating-banner .score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--cream);
}
.stars {
  color: var(--gold-bright);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(227, 187, 125, 0.45);
}
.rating-banner .sub { color: var(--cream-faint); font-size: 0.92rem; }

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.review-card .stars { font-size: 1rem; }
.review-card blockquote {
  color: var(--cream-dim);
  font-size: 0.98rem;
  border: none;
  margin: 0;
}
.review-card .reviewer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--cream);
  font-size: 0.95rem;
}
.review-card .reviewer .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(200, 156, 94, 0.14);
  border: 1px solid rgba(200, 156, 94, 0.4);
  color: var(--gold-bright);
  font-family: var(--font-display);
}
.review-card .reviewer time {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--cream-faint);
}
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--cream-faint);
}

/* ---------- Area chips ---------- */

.area-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.area-chips a, .area-chips span {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cream-dim);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.area-chips a:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Banner CTA ---------- */

.cta-banner {
  background:
    var(--wand-stripes),
    linear-gradient(135deg, #2b2114, #1a150d);
  border: 1px solid rgba(200, 156, 94, 0.35);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 0.8rem; }
.cta-banner p { max-width: 54ch; margin-inline: auto; }
.cta-banner .cta-row { justify-content: center; }

/* ---------- Guarantee strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.trust-strip > div {
  background: var(--ink);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.trust-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}
.trust-strip span { font-size: 0.88rem; color: var(--cream-faint); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background-image: var(--wand-stripes), radial-gradient(900px 420px at 90% -20%, rgba(200, 156, 94, 0.12), transparent 65%);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--cream-faint);
  margin-bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumbs a { color: var(--cream-faint); }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs .sep { color: var(--gold-deep); }

/* ---------- Price table ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.price-table th {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--surface-2);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child {
  font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
}
.price-note { font-size: 0.85rem; color: var(--cream-faint); margin-top: 0.9rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer ul a { color: var(--cream-dim); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--gold-bright); }
.site-footer .about p { font-size: 0.95rem; margin-top: 1rem; max-width: 36ch; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--cream-faint);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Floating call button (mobile) ---------- */

.float-call {
  display: none;
  position: fixed;
  bottom: 1.2rem;
  left: 1rem;
  right: 1rem;
  z-index: 60;
  gap: 0.8rem;
}
@media (max-width: 700px) {
  .float-call { display: flex; }
  .float-call .btn, .float-call .btn-ghost {
    flex: 1;
    justify-content: center;
    padding: 0.9rem 1rem;
  }
  .float-call .btn-ghost { background: var(--ink-deep); }
  body { padding-bottom: 5.2rem; }
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.center .lede { margin-inline: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.gold { color: var(--gold-bright); }
.muted { color: var(--cream-faint); }
.small { font-size: 0.9rem; }
