/* Xtreme Commercial Services — decorating funnel stylesheet
   Variation picks: A4 · B4 (Manrope) · C3 stone + terracotta · D4 square with 4px rules
   Mobile-first from 390px. Swap brand values in :root once the client palette is confirmed. */

:root {
  --xcs-stone: #f4efe7;
  --xcs-stone-deep: #ebe4d8;
  --xcs-white: #ffffff;
  --xcs-ink: #1e1b18;
  --xcs-text: #221f1b;
  --xcs-muted: #645d54;
  --xcs-line: #d9d0c2;
  --xcs-accent: #b24f2c;       /* terracotta — buttons and rules only */
  --xcs-accent-dark: #a04728;  /* accent darkened 10% for hover */
  --xcs-on-dark: #f3eee6;
  --xcs-on-dark-muted: #b9b0a3;

  --xcs-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --xcs-gutter: 24px;
  --xcs-pad: 60px;
  --xcs-max: 1180px;
}
@media (min-width: 900px) {
  :root { --xcs-gutter: 48px; --xcs-pad: 100px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--xcs-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--xcs-text);
  background: var(--xcs-white);
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--xcs-accent); outline-offset: 3px; }
.xcs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.xcs-wrap { width: 100%; max-width: var(--xcs-max); margin: 0 auto; padding: 0 var(--xcs-gutter); }
.xcs-wrap--narrow { max-width: 820px; }
.xcs-section { padding: var(--xcs-pad) 0; }
.xcs-bg-stone { background: var(--xcs-stone); }
.xcs-bg-ink { background: var(--xcs-ink); color: var(--xcs-on-dark); }

/* Section titles: 4px accent rule above (D4) */
.xcs-title { font-size: 28px; }
.xcs-title::before {
  content: ""; display: block;
  width: 48px; height: 4px; margin-bottom: 20px;
  background: var(--xcs-accent);
}
@media (min-width: 900px) { .xcs-title { font-size: 40px; } }
.xcs-bg-ink .xcs-title { color: var(--xcs-white); }
.xcs-lede { margin: 14px 0 0; max-width: 640px; color: var(--xcs-muted); font-size: 1.05em; }
.xcs-bg-ink .xcs-lede { color: var(--xcs-on-dark-muted); }

/* ---------- Buttons (square, solid) ---------- */
.xcs-btn {
  display: block; width: 100%;
  padding: 18px 28px;
  border: 0; border-radius: 0;
  font: 800 17px/1.2 var(--xcs-font);
  letter-spacing: -0.01em;
  text-align: center; text-decoration: none;
  cursor: pointer;
  background: var(--xcs-accent); color: var(--xcs-white);
  transition: background-color .15s ease;
}
.xcs-btn:hover { background: var(--xcs-accent-dark); }
@media (min-width: 700px) { .xcs-btn { display: inline-block; width: auto; padding: 19px 36px; } }
.xcs-friction { margin: 12px 0 0; font-size: 14px; color: var(--xcs-muted); }
.xcs-stars { color: var(--xcs-accent); letter-spacing: 2px; }

/* ---------- Brand bar ---------- */
.xcs-bar { background: var(--xcs-stone); border-bottom: 1px solid var(--xcs-line); }
.xcs-bar__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 16px; padding-bottom: 16px;
}
.xcs-brand { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; }
.xcs-brand span { font-weight: 400; color: var(--xcs-muted); }
.xcs-bar__phone { font-weight: 800; text-decoration: none; white-space: nowrap; }
.xcs-bar__phone:hover { color: var(--xcs-accent); }

/* ---------- Hero (A4: photo, no overlay, solid block bottom-left) ---------- */
.xcs-hero { display: flex; flex-direction: column; background: var(--xcs-stone); }
.xcs-hero__photo { position: relative; height: 38vh; min-height: 240px; overflow: hidden; }
.xcs-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.xcs-hero__block { background: var(--xcs-stone); padding: 28px var(--xcs-gutter) 40px; }
.xcs-hero h1 { font-size: 36px; }
.xcs-hero__sub { margin: 14px 0 24px; color: var(--xcs-muted); font-size: 17px; max-width: 560px; }
.xcs-trust {
  list-style: none; padding: 20px 0 0; margin: 24px 0 0;
  border-top: 1px solid var(--xcs-line);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: 14px; font-weight: 600;
}
@media (min-width: 900px) {
  .xcs-hero { position: relative; display: block; height: calc(92vh - 58px); min-height: 640px; }
  .xcs-hero__photo { position: absolute; inset: 0; height: auto; }
  .xcs-hero__block {
    position: absolute; left: 0; bottom: 0;
    /* keep the copy's left edge in line with the brand bar */
    --xcs-edge: max(0px, (100vw - var(--xcs-max)) / 2);
    width: calc(min(640px, 52%) + var(--xcs-edge));
    padding: 52px 56px 44px calc(var(--xcs-edge) + var(--xcs-gutter));
  }
  .xcs-hero h1 { font-size: 56px; }
  .xcs-hero__sub { font-size: 18px; }
}

/* ---------- Form ---------- */
.xcs-form-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .xcs-form-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}
.xcs-form-intro p { max-width: 640px; }
.xcs-form-intro .xcs-lede + p { margin-top: 16px; }
.xcs-callline { font-weight: 800; }
.xcs-callline a { text-decoration-color: var(--xcs-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.xcs-stats { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.xcs-stats li { border-top: 4px solid var(--xcs-accent); padding-top: 12px; font-size: 13px; color: var(--xcs-muted); line-height: 1.4; }
.xcs-stats strong { display: block; font-size: 26px; font-weight: 800; color: var(--xcs-text); letter-spacing: -0.03em; }
/* Mobile: compact hero and form first, so the form starts inside the first screen */
@media (max-width: 899px) {
  .xcs-hero--lead .xcs-hero__photo { height: 16vh; min-height: 120px; }
  .xcs-hero--lead .xcs-hero__block { padding: 18px var(--xcs-gutter) 16px; }
  .xcs-hero--lead .xcs-hero__sub { margin: 10px 0 0; font-size: 15px; line-height: 1.55; }
  /* the form sits directly below, so the hero button and friction line are desktop-only */
  .xcs-hero--lead .xcs-btn, .xcs-hero--lead .xcs-friction { display: none; }
  .xcs-hero--lead .xcs-trust { margin-top: 12px; padding-top: 10px; font-size: 13px; gap: 4px 16px; }
  .xcs-hero--lead .xcs-trust li:nth-child(3) { display: none; }
  #quote { padding-top: 20px; }
  .xcs-form-grid { display: flex; flex-direction: column; gap: 0; }
  .xcs-form-intro { display: contents; }
  .xcs-form-intro .xcs-title { order: 1; font-size: 22px; }
  .xcs-form-intro .xcs-title::before { display: none; }
  .xcs-form-intro .xcs-lede { order: 2; margin: 4px 0 12px; font-size: 14px; }
  .xcs-embed { order: 3; }
  .xcs-form-intro > p:not(.xcs-lede), .xcs-stats { order: 4; }
  .xcs-form-intro > p:not(.xcs-lede) { margin: 20px 0 0; }
}
/* Reserve embed height to avoid layout shift */
.xcs-embed { min-height: 786px; border: 1px solid var(--xcs-line); background: var(--xcs-white); }
.xcs-embed iframe { display: block; width: 100%; min-height: 786px; }

/* ---------- Gallery (H2 asymmetric mosaic) ---------- */
.xcs-work__head { padding-top: var(--xcs-pad); padding-bottom: 40px; }
.xcs-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; gap: 0; }
.xcs-mosaic figure { position: relative; margin: 0; overflow: hidden; }
.xcs-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.xcs-mosaic .xcs-tile--lg { grid-column: span 2; grid-row: span 2; }
.xcs-mosaic .xcs-tile--wide { grid-column: span 2; }
.xcs-mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--xcs-white);
  background: linear-gradient(to top, rgba(20,18,16,.78), rgba(20,18,16,0));
}
@media (min-width: 900px) {
  .xcs-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 320px; }
  .xcs-mosaic figcaption { padding: 48px 24px 18px; font-size: 15px; }
}

/* ---------- Review wall (I4) ---------- */
.xcs-reviews { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 40px; }
@media (min-width: 900px) { .xcs-reviews { grid-template-columns: 1fr 1fr; gap: 56px 72px; } }
.xcs-reviews li { border-top: 4px solid var(--xcs-accent); padding-top: 22px; }
.xcs-reviews blockquote { margin: 10px 0 0; }
.xcs-reviews p { font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--xcs-white); }
.xcs-reviews footer { margin-top: 14px; font-size: 14px; color: var(--xcs-on-dark-muted); }

/* ---------- Problem (E3 quote wall) ---------- */
.xcs-sayings { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 36px; }
@media (min-width: 900px) { .xcs-sayings { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.xcs-sayings h3 { position: relative; font-size: 24px; padding-top: 44px; }
.xcs-sayings h3::before {
  content: "\201C"; position: absolute; top: -12px; left: -4px;
  font-size: 88px; line-height: 1; font-weight: 800; color: var(--xcs-accent);
}
.xcs-sayings p { margin-top: 10px; color: var(--xcs-muted); }

/* ---------- Mechanism (F3 alternating rows) ---------- */
.xcs-rows__head { padding-top: var(--xcs-pad); padding-bottom: 44px; }
.xcs-row { display: grid; }
.xcs-row__img { position: relative; min-height: 400px; }
.xcs-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xcs-row__text { padding: 40px var(--xcs-gutter) 56px; max-width: 640px; }
.xcs-row__num { display: block; font-size: 15px; font-weight: 800; color: var(--xcs-accent); margin-bottom: 10px; letter-spacing: .02em; }
.xcs-row__text h3 { font-size: 24px; margin-bottom: 10px; }
.xcs-row__text p { color: var(--xcs-muted); }
@media (min-width: 900px) {
  .xcs-row { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .xcs-row__text { align-self: center; padding: 64px 72px; }
  .xcs-row--flip .xcs-row__img { order: 2; }
  .xcs-row__text h3 { font-size: 30px; }
}

/* ---------- Call benefits ---------- */
.xcs-benefits { display: grid; gap: 32px; }
@media (min-width: 900px) { .xcs-benefits { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.xcs-benefits .xcs-btn { margin-top: 32px; }
.xcs-ticks { list-style: none; padding: 0; margin: 0; }
.xcs-ticks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--xcs-line); }
.xcs-ticks li:first-child { border-top: 1px solid var(--xcs-line); }
.xcs-ticks li::before {
  content: ""; position: absolute; left: 2px; top: 24px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--xcs-accent); border-bottom: 3px solid var(--xcs-accent);
  transform: rotate(-45deg);
}

/* ---------- Steps (G3 on a photo strip) ---------- */
.xcs-strip { position: relative; color: var(--xcs-white); overflow: hidden; }
.xcs-strip > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xcs-strip::after { content: ""; position: absolute; inset: 0; background: rgba(22, 19, 16, .68); }
.xcs-strip__inner { position: relative; z-index: 1; padding-top: var(--xcs-pad); padding-bottom: var(--xcs-pad); }
.xcs-strip .xcs-title { color: var(--xcs-white); }
.xcs-steps { list-style: none; padding: 0; margin: 40px 0 40px; display: grid; gap: 28px; }
@media (min-width: 900px) { .xcs-steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.xcs-steps li { border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; }
.xcs-steps__num { display: block; font-size: 15px; font-weight: 800; color: var(--xcs-white); margin-bottom: 8px; }
.xcs-steps h3 { color: var(--xcs-white); margin-bottom: 6px; }
.xcs-steps p { color: var(--xcs-on-dark); }

/* ---------- FAQ (J3 open list) ---------- */
.xcs-faq { margin: 40px 0 0; display: grid; gap: 0 72px; }
@media (min-width: 900px) { .xcs-faq { grid-template-columns: 1fr 1fr; } }
.xcs-faq > div { border-top: 1px solid var(--xcs-line); padding: 24px 0 28px; }
.xcs-faq dt h3 { font-size: 19px; }
.xcs-faq dd { margin: 8px 0 0; color: var(--xcs-muted); max-width: 640px; }

/* ---------- Final CTA (K3 split) ---------- */
.xcs-close { display: grid; background: var(--xcs-ink); color: var(--xcs-on-dark); }
.xcs-close__img { position: relative; min-height: 320px; }
.xcs-close__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xcs-close__body { padding: var(--xcs-pad) var(--xcs-gutter); max-width: 620px; }
.xcs-close h2 { font-size: 30px; color: var(--xcs-white); margin-bottom: 28px; }
.xcs-close .xcs-friction { color: var(--xcs-on-dark-muted); }
.xcs-close__call { margin-top: 20px; font-weight: 800; }
.xcs-close__call a { text-decoration-color: var(--xcs-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .xcs-close { grid-template-columns: 1fr 1fr; min-height: 620px; }
  .xcs-close__body { align-self: center; padding: 80px 72px; }
  .xcs-close h2 { font-size: 44px; }
}

/* ---------- Footer ---------- */
.xcs-foot { background: var(--xcs-ink); color: var(--xcs-on-dark-muted); padding: 48px 0; font-size: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.xcs-foot .xcs-brand { color: var(--xcs-white); display: block; margin-bottom: 8px; }
.xcs-foot .xcs-brand span { color: var(--xcs-on-dark-muted); }
.xcs-foot__links { display: flex; gap: 24px; margin-top: 18px; }
.xcs-foot__links a { color: var(--xcs-on-dark); }
.xcs-foot__copy { margin-top: 18px; font-size: 13px; }

/* ---------- Sticky top bar (L3, mobile only) ---------- */
.xcs-topcta {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: var(--xcs-ink); color: var(--xcs-white);
  transform: translateY(-110%);
  transition: transform .2s ease;
}
.xcs-topcta.is-on { transform: translateY(0); }
.xcs-topcta__quote {
  background: var(--xcs-accent); color: var(--xcs-white);
  padding: 10px 16px; font-weight: 800; font-size: 15px; text-decoration: none;
}
.xcs-topcta__quote:hover { background: var(--xcs-accent-dark); }
.xcs-topcta__phone { font-weight: 800; font-size: 15px; text-decoration: none; }
@media (min-width: 900px) { .xcs-topcta { display: none; } }

/* ---------- Thank-you page ---------- */
.xcs-hero--thanks h1 { font-size: 34px; }
@media (min-width: 900px) {
  .xcs-hero--thanks { height: calc(70vh - 58px); min-height: 520px; }
  .xcs-hero--thanks h1 { font-size: 46px; }
}
.xcs-next { list-style: none; padding: 0; margin: 0; }
.xcs-next li { border-top: 4px solid var(--xcs-accent); padding: 22px 0 30px; }
.xcs-next__num { display: block; font-size: 15px; font-weight: 800; color: var(--xcs-accent); margin-bottom: 6px; }
.xcs-next h2 { font-size: 24px; margin-bottom: 8px; }
.xcs-next p { color: var(--xcs-muted); }
.xcs-reinforce { margin-top: 20px; font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.xcs-helpline { margin-top: 16px; color: var(--xcs-muted); }
.xcs-helpline a { color: var(--xcs-text); font-weight: 800; }

/* ---------- Legal pages ---------- */
.xcs-legal h1 { font-size: 34px; margin-bottom: 8px; }
.xcs-legal h2 { font-size: 22px; margin: 36px 0 10px; }
.xcs-legal__date { color: var(--xcs-muted); font-size: 15px; }
.xcs-legal ul { padding-left: 20px; }
