/* Moreno Carpet Cleaners — "The site IS the deep pile."
   Dark pile-ink page, work-lamp copper accent, Andada Pro display. */

:root {
  --ink: #1c130b;
  --ink-deep: #110b05;
  --band: #2a1c10;
  --bone: #ece0c9;
  --muted: #b0946e;
  --hair: #3d2c1a;
  --copper: #c47a33;
  --copper-deep: #9a5c22;
  --copper-soft: rgba(196, 122, 51, 0.14);

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --step-5: clamp(2.4rem, 1.9rem + 3.4vw, 4rem);
  --step-hero: clamp(2.9rem, 1.7rem + 6vw, 5.8rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Andada Pro", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--copper); flex: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }

h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-5); margin-bottom: 1rem; }
h2 .it, h1 .it { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--copper); }

.lede { color: var(--muted); max-width: 62ch; font-size: var(--step-1); line-height: 1.55; }
p { text-wrap: pretty; }

/* ---------- grain ---------- */
.grain::after {
  content: "";
  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");
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 11, 5, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem); max-width: 1280px; margin: 0 auto; }
.wordmark { text-decoration: none; line-height: 1; display: flex; flex-direction: column; }
.wordmark strong { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; }
.wordmark small { font-size: 0.62rem; letter-spacing: 0.3em; color: var(--copper); font-weight: 700; margin-top: 0.15rem; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); position: relative; transition: color 0.18s ease-out; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--copper); transition: width 0.2s ease-out; }
.nav a:hover { color: var(--bone); }
.nav a:hover::after { width: 100%; }
.header-phone {
  text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  border: 2px solid var(--copper); border-radius: 6px; padding: 0.45rem 1rem;
  transition: background 0.18s ease-out, color 0.18s ease-out, transform 0.18s ease-out;
}
.header-phone:hover { background: var(--copper); color: var(--ink-deep); transform: translateY(-2px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 800; font-size: 1.05rem;
  padding: 0.95rem 1.7rem; border-radius: 6px;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out, color 0.18s ease-out;
  position: relative; overflow: hidden;
}
.btn-solid { background: var(--copper); color: var(--ink-deep); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-110%); transition: transform 0.5s var(--ease);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(196, 122, 51, 0.35); }
.btn-solid:hover::before { transform: translateX(110%); }
.btn-ghost { border: 2px solid var(--hair); color: var(--bone); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-3px); }
.btn .num { font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--ink-deep);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transform: scale(1.06); animation: heroSettle 2.4s var(--ease) forwards; }
@keyframes heroSettle { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(196, 122, 51, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(17, 11, 5, 0.55) 0%, rgba(17, 11, 5, 0.25) 40%, rgba(17, 11, 5, 0.88) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); width: 100%; }
.hero h1 { max-width: 12ch; margin-bottom: 1.4rem; }
.hero .sub { color: var(--bone); opacity: 0.88; max-width: 58ch; font-size: var(--step-1); line-height: 1.55; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.trust-row { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); flex: none; }
.trust-row strong { color: var(--bone); font-variant-numeric: tabular-nums; }

/* hero entrance: word masks */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: inline-block; transform: translateY(110%); }
html.js .hero [data-hero] { opacity: 0; }
html.js .hero.play [data-hero] { opacity: 1; transition: opacity 0.5s var(--ease); }
html.js .hero.play .mask > span { animation: rise 0.75s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- hose divider ---------- */
.hose { display: block; width: 100%; height: 90px; margin: 0 auto; max-width: 1200px; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.hose path { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linecap: round; opacity: 0.85; }
.hose circle { fill: var(--ink); stroke: var(--copper); stroke-width: 3; }
html.js .hose .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
html.js .hose.drawn .draw { animation: hoseDraw 1.6s var(--ease) forwards; }
@keyframes hoseDraw { to { stroke-dashoffset: 0; } }

/* ---------- proof strip ---------- */
.proof { background: var(--ink-deep); padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { border-left: 2px solid var(--hair); padding-left: 1.4rem; transition: border-color 0.25s ease-out, transform 0.25s ease-out; }
.stat:hover { border-color: var(--copper); transform: translateY(-4px); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: var(--copper); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ---------- services ---------- */
.services { background: var(--ink); }
.svc-row {
  display: grid; grid-template-columns: 5.5rem 1fr 1fr; gap: clamp(1.2rem, 3vw, 3rem);
  padding: 2.6rem 0; border-top: 1px solid var(--hair); align-items: center;
  transition: background 0.25s ease-out;
}
.svc-row:last-child { border-bottom: 1px solid var(--hair); }
.svc-row:hover { background: rgba(196, 122, 51, 0.04); }
.svc-num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-5);
  color: transparent; -webkit-text-stroke: 1.5px var(--copper); opacity: 0.9; line-height: 1;
}
.svc-row h3 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.svc-row p { color: var(--muted); max-width: 52ch; }
.svc-row p strong { color: var(--bone); font-weight: 600; }
.svc-photo { border-radius: 20px; overflow: hidden; border: 1px solid var(--hair); position: relative; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.6s var(--ease); filter: sepia(0.25) saturate(0.9) brightness(0.85); }
.svc-row:hover .svc-photo img { transform: scale(1.04); }
.svc-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 1rem; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); background: linear-gradient(transparent, rgba(17, 11, 5, 0.9)); }

/* ---------- clean line slider ---------- */
.cleanline { background: var(--ink-deep); }
.ba {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--hair);
  aspect-ratio: 16 / 9; margin-top: 2.5rem; user-select: none; touch-action: pan-y;
  --pos: 50%;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--copper);
  transform: translateX(-50%); pointer-events: none;
  box-shadow: 0 0 24px rgba(196, 122, 51, 0.6);
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--copper); color: var(--ink-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.ba-tag {
  position: absolute; top: 1.1rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em;
  padding: 0.4rem 0.9rem; border-radius: 4px; pointer-events: none;
}
.ba-tag.before { left: 1.1rem; background: rgba(17, 11, 5, 0.75); color: var(--muted); }
.ba-tag.after { right: 1.1rem; background: var(--copper); color: var(--ink-deep); }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- photo band ---------- */
.photoband { padding: 0; height: clamp(320px, 48vw, 520px); overflow: hidden; position: relative; }
.photoband img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.photoband .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%); }
.photoband figcaption {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: 0.85rem; letter-spacing: 0.14em; color: var(--bone); white-space: nowrap;
  background: rgba(17, 11, 5, 0.72); padding: 0.55rem 1.2rem; border-radius: 4px; border: 1px solid var(--hair);
}

/* ---------- process ---------- */
.process { background: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.step { border-top: 2px solid var(--hair); padding-top: 1.4rem; transition: border-color 0.25s ease-out, transform 0.25s ease-out; }
.step:hover { border-color: var(--copper); transform: translateY(-5px); }
.step b {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3);
  color: transparent; -webkit-text-stroke: 1.5px var(--copper); line-height: 1; margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.98rem; }
.step p .num { color: var(--copper); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- copper wipe divider ---------- */
.wipe { height: 10px; background: var(--copper); transform: scaleX(0); transform-origin: left; }
html.js .wipe.on { animation: wipeIn 0.9s var(--ease) forwards; }
@keyframes wipeIn { to { transform: scaleX(1); } }

/* ---------- commercial ---------- */
.commercial { background: var(--band); }
.commercial blockquote {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-3);
  line-height: 1.3; max-width: 26ch; margin: 1.6rem 0; text-wrap: balance;
}
.commercial blockquote .it { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: var(--copper); }
.commercial p { color: var(--muted); max-width: 62ch; }

/* ---------- area ---------- */
.area { background: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.chip {
  border: 1.5px solid var(--hair); border-radius: 999px; padding: 0.7rem 1.5rem;
  font-weight: 600; color: var(--bone); text-decoration: none;
  transition: border-color 0.2s ease-out, background 0.2s ease-out, transform 0.2s ease-out;
}
.chip:hover { border-color: var(--copper); background: var(--copper-soft); transform: translateY(-3px); }

/* ---------- faq ---------- */
.faq { background: var(--ink-deep); }
.faq-list { margin-top: 2.5rem; border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--bone); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.5rem 0.25rem; font-size: var(--step-1); font-family: var(--font-display); font-weight: 700;
  text-align: left; transition: color 0.18s ease-out, padding-left 0.25s var(--ease);
}
.faq-q:hover { color: var(--copper); padding-left: 0.75rem; }
.faq-q .plus { flex: none; width: 34px; height: 34px; border: 2px solid var(--copper); border-radius: 50%; position: relative; transition: transform 0.3s var(--ease), background 0.2s ease-out; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--copper); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(135deg); background: var(--copper-soft); }
.faq-a { color: var(--muted); max-width: 68ch; padding: 0 0.25rem; }
.faq-a p { padding-bottom: 1.6rem; }
.faq-a .num { color: var(--copper); font-weight: 700; font-variant-numeric: tabular-nums; }
html.js .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
html.js .faq-a > div { overflow: hidden; }
html.js .faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- final CTA ---------- */
.final { background: var(--copper); color: var(--ink-deep); text-align: left; overflow: hidden; }
.final .eyebrow { color: var(--ink-deep); }
.final .eyebrow::before { background: var(--ink-deep); }
.final h2 { font-size: clamp(2.6rem, 2rem + 5vw, 4.6rem); max-width: 14ch; }
.final h2 .it { font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.final .bignum {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 1.4rem + 5.5vw, 4.8rem); letter-spacing: -0.02em;
  color: var(--ink-deep); text-decoration: none; margin: 1.6rem 0 0.6rem;
  font-variant-numeric: tabular-nums; border-bottom: 4px solid var(--ink-deep);
  transition: transform 0.2s ease-out;
}
.final .bignum:hover { transform: translateY(-3px); }
.final .hours { font-weight: 700; font-size: 1.05rem; }
.final .hose { padding: 0; margin-bottom: 2.5rem; }
.final .hose path, .final .hose circle { stroke: var(--ink-deep); }
.final .hose circle { fill: var(--copper); }

/* ---------- footer ---------- */
footer { background: var(--ink-deep); border-top: 1px solid var(--hair); padding: 3rem 0 7rem; color: var(--muted); font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { color: var(--bone); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.8rem; }
.foot-grid a { color: var(--copper); text-decoration: none; font-variant-numeric: tabular-nums; }
.foot-grid a:hover { text-decoration: underline; }
.fine { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); font-size: 0.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 0.75rem; padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(17, 11, 5, 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair);
}
.callbar a {
  flex: 1; text-align: center; text-decoration: none; font-weight: 800; font-size: 1.02rem;
  padding: 0.85rem 0.5rem; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.callbar .call { background: var(--copper); color: var(--ink-deep); }
.callbar .quote { border: 2px solid var(--hair); color: var(--bone); }

/* ---------- reveal ---------- */
html.js .rv { opacity: 0; transform: translateY(16px); }
html.js .rv.in { opacity: 1; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 3.6rem 1fr; }
  .svc-photo { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-phone { font-size: 1.02rem; padding: 0.4rem 0.7rem; }
  .callbar { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .ba { aspect-ratio: 4 / 3; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; }
  html.js .hero [data-hero] { opacity: 1; }
  html.js .mask > span { transform: none; }
  html.js .hose .draw { stroke-dashoffset: 0; }
  html.js .wipe { transform: scaleX(1); }
  html.js .faq-a { display: block; }
  .hero-bg img { transform: none; }
}
