/* G & G Carpet & Tile Cleaning — "the desert after the clean"
   SPLIT: dark dusk-night hero / light dune-sand body. ONE accent: dusk plum. */

:root {
  --dusk: #1f1510;
  --dusk-deep: #130d08;
  --sand: #f4ead3;
  --sand-wash: #e9d7b3;
  --ink: #251c12;
  --muted: #7c6a4e;
  --hairline: #c9b78d;
  --plum: #8e2f5c;
  --plum-deep: #6e2347;
  --sand-text: #f2e7cd;
  --sand-muted: #bfae8d;
  --display: "Bahianita", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
  --hero: clamp(3.5rem, 1rem + 11vw, 9rem);
  --pad-section: clamp(5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section[id] { scroll-margin-top: 84px; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-wrap: balance;
  margin: 0 0 1rem 0;
}

p { text-wrap: pretty; margin: 0 0 1rem 0; max-width: 68ch; }

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--plum);
  margin: 0 0 1.25rem 0;
}

.section-title { font-size: var(--step-5); }
.section-title em, .hero-title em, .final-cta h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0;
}
.section-title em { color: var(--plum); }

.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 21, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 183, 141, 0.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 24px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--sand-text);
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { font-size: 1rem; color: var(--sand-muted); letter-spacing: 0.08em; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  color: var(--sand-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--sand-text); }
.header-call {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sand-text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-call:hover { color: var(--sand-text); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(142, 47, 92, 0.28), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(142, 47, 92, 0.14), transparent 60%),
    linear-gradient(180deg, var(--dusk) 0%, var(--dusk-deep) 100%);
  color: var(--sand-text);
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
}
.ripple-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow { color: #d89ab8; }
.hero-title {
  font-size: var(--hero);
  color: var(--sand-text);
  margin: 0 0 1.5rem 0;
  max-width: 12ch;
}
.hero-title em { color: #e39ec2; }
.hero-sub { font-size: var(--step-1); color: var(--sand-muted); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0; }
.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.5rem 0 0 0;
  padding: 1.25rem 0 0 0;
  border-top: 1px solid rgba(201, 183, 141, 0.3);
  color: var(--sand-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-row li { display: flex; align-items: center; gap: 0.5rem; }
.trust-row li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 0 10px rgba(142, 47, 92, 0.9);
}

/* hero entrance choreography */
.mask { display: block; overflow: hidden; }
.mask > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.8s var(--ease-out) forwards;
}
.mask:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  border-radius: 5px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
  min-height: 44px;
}
.btn-primary {
  background: var(--plum);
  color: var(--sand-text);
  box-shadow: 0 6px 24px rgba(142, 47, 92, 0.35);
}
.btn-primary:hover { background: var(--plum-deep); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(142, 47, 92, 0.45); }
.btn-ghost {
  border: 2px solid rgba(242, 231, 205, 0.45);
  color: var(--sand-text);
}
.btn-ghost:hover { border-color: var(--sand-text); transform: translateY(-3px); }
.btn-ink {
  background: var(--dusk);
  color: var(--sand-text);
}
.btn-ink:hover { background: var(--dusk-deep); transform: translateY(-3px); }

/* ---------- grain ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- proof strip ---------- */
.proof { background: var(--sand); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.proof-item { border-left: 3px solid var(--plum); padding-left: 1.1rem; }
.proof-num {
  display: block;
  font-family: var(--display);
  font-size: var(--step-5);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.proof-label { color: var(--muted); font-size: 0.95rem; font-weight: 600; }

/* ---------- ripple divider ---------- */
.ripple-divider { background: var(--sand); line-height: 0; }
.ripple-divider svg { width: 100%; height: 90px; display: block; }
.ripple-divider .draw {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
}
.js .ripple-divider.inview .draw {
  animation: drawline 1.6s var(--ease-out) forwards;
}
.js .ripple-divider.inview .draw:nth-child(2) { animation-delay: 0.25s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* ---------- services ---------- */
.services { background: var(--sand); padding: var(--pad-section) 0; }
.services-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
  align-items: start;
}
.service-rows { list-style: none; margin: 0; padding: 0; }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
}
.service-row:first-child { border-top: 1px solid var(--hairline); }
.row-num {
  font-family: var(--display);
  font-size: var(--step-3);
  color: var(--plum);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.service-row h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.service-row p { color: var(--muted); margin: 0; }

/* grout-line photo frames */
.grout-frame {
  margin: 0;
  padding: 10px;
  background: var(--sand);
  border: 1px solid var(--hairline);
  outline: 1px solid var(--hairline);
  outline-offset: 5px;
}
.grout-frame img { width: 100%; }
.grout-frame figcaption {
  padding: 0.8rem 0.25rem 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- george ---------- */
.george { background: var(--sand-wash); padding: var(--pad-section) 0; }
.george-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.george-copy p { color: var(--muted); }
.george-copy strong { color: var(--ink); }
.george-copy .btn { margin-top: 1rem; }

/* ---------- dune band ---------- */
.dune-band { position: relative; overflow: hidden; line-height: 0; background: var(--dusk-deep); }
.dune-band img {
  width: 100%;
  height: clamp(320px, 45vw, 560px);
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.dune-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  line-height: 1.6;
  padding-bottom: 2rem;
}
.dune-caption p {
  color: var(--sand-text);
  font-size: var(--step-1);
  font-weight: 600;
  max-width: 40ch;
  text-shadow: 0 2px 18px rgba(19, 13, 8, 0.8);
  margin: 0;
}

/* ---------- reviews ---------- */
.reviews { background: var(--sand); padding: var(--pad-section) 0; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0 3rem 0;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--hairline);
  background: var(--sand-wash);
  padding: 1rem 1.4rem;
  border-radius: 5px;
}
.badge-stars { color: var(--plum); font-size: 1.2rem; letter-spacing: 0.1em; }
.badge-text { font-size: 0.95rem; color: var(--ink); }
.badge-text strong { font-variant-numeric: tabular-nums; }
.review-photo { max-width: 860px; }

/* ---------- process ---------- */
.process { background: var(--sand-wash); padding: var(--pad-section) 0; }
.process-strip {
  list-style: none;
  margin: 3rem 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-strip li {
  padding: 0 1.5rem 0 0;
  margin-right: 1.5rem;
  border-right: 1px solid var(--hairline);
}
.process-strip li:last-child { border-right: 0; margin-right: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--plum);
  color: var(--sand-text);
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.process-strip h3 { font-size: var(--step-1); letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.process-strip p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- service area ---------- */
.area { background: var(--sand); padding: var(--pad-section) 0; }
.town-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2.5rem 0 0 0;
  padding: 0;
}
.town-chips li {
  border: 1.5px solid var(--plum);
  color: var(--plum);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.98rem;
}

/* ---------- faq ---------- */
.faq { background: var(--sand-wash); padding: var(--pad-section) 0; }
.faq-narrow { max-width: 860px; }
.accordion { margin-top: 2.5rem; border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.35rem 0;
  font-family: var(--display);
  font-size: var(--step-1);
  letter-spacing: 0.03em;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}
.acc-btn:hover { color: var(--plum); }
.acc-icon {
  font-family: var(--body);
  font-size: 1.6rem;
  color: var(--plum);
  font-weight: 300;
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.acc-btn[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel p { color: var(--muted); padding: 0 0 1.5rem 0; margin: 0; max-width: 62ch; }

/* ---------- final cta ---------- */
.final-cta {
  position: relative;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: var(--sand-text);
  text-align: center;
  padding: var(--pad-section) 0;
  overflow: hidden;
}
.final-cta .eyebrow { color: #f0c6da; }
.final-cta h2 { font-size: var(--step-5); }
.final-cta h2 em { color: var(--sand-text); }
.final-phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.2rem + 7vw, 5.5rem);
  color: var(--sand-text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin: 1rem 0;
  line-height: 1;
}
.final-phone:hover { text-decoration: underline; }
.final-note { color: #f0c6da; font-weight: 600; }
.final-cta .container { position: relative; z-index: 2; }
.final-cta .btn-ink { margin-top: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--dusk-deep); color: var(--sand-muted); padding: 3rem 0; }
.site-footer a { color: var(--sand-text); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; align-items: flex-start; }
.site-footer p { margin: 0; font-size: 0.95rem; }
.site-footer strong { color: var(--sand-text); }
.footer-note { font-size: 0.85rem; }

/* ---------- mobile call bar ---------- */
.mobile-callbar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  background: var(--plum);
  color: var(--sand-text);
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(19, 13, 8, 0.4);
}

/* ---------- scroll reveals ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.js .reveal.inview { opacity: 1; transform: none; }
.js .reveal-hero { opacity: 0; animation: fadeup 0.7s var(--ease-out) forwards; }
.js .reveal-hero:nth-child(2) { animation-delay: 0.15s; }
.js .reveal-hero:nth-child(3) { animation-delay: 0.3s; }
.js .reveal-hero:nth-child(4) { animation-delay: 0.45s; }
.js .reveal-hero:nth-child(5) { animation-delay: 0.6s; }
@keyframes fadeup {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .services-layout, .george-layout { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .process-strip { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .process-strip li:nth-child(2) { border-right: 0; }
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .mobile-callbar { display: block; }
  body { padding-bottom: 76px; }
  .process-strip { grid-template-columns: 1fr; }
  .process-strip li { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 0 0 1.5rem 0; margin: 0 0 1.5rem 0; }
  .process-strip li:last-child { border-bottom: 0; margin-bottom: 0; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .header-call { font-size: 1.05rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-hero { opacity: 1 !important; transform: none !important; }
  .mask > span { transform: none !important; }
  .js .ripple-divider .draw { stroke-dashoffset: 0 !important; }
  .dune-band img { animation: none !important; }
  html { scroll-behavior: auto; }
}
