/* RATIONALE: Ground is bright white with a cool #eef3f9 wash for alternate sections, because the customer asked for "clean, bright" and was shown exactly that. The accent is the logo's #3e94ff, rationed to prices, one button per band and rules; a darker #0a5fc9 carries it on text so it passes AA. Chivo stays for both jobs as the direction binds: its Black weight reads like lettering on a detailer's van door, and its regular weight disappears into reading. The one bold move is the closing navy band, cut with a single diagonal gloss streak, because this business sells polish, wax and ceramic coating, which is light across clear coat. */

/* ---------- Tokens ---------- */
:root {
  --r-bg: #ffffff;
  --r-surface: #eef3f9;
  --r-fg: #01172e;
  --r-muted: #4f5e73;
  --r-line: #d6e0eb;
  --r-accent: #3e94ff;
  --r-accent-text: #0a5fc9;
  --r-on-accent: #01172e;

  --r-inverse-bg: #01172e;
  --r-inverse-fg: #ffffff;
  --r-inverse-muted: #a8b7c9;
  --r-inverse-line: #1e3957;
  --r-inverse-accent: #3e94ff;

  --r-display-weight: 900;
  --r-display-tracking: -0.028em;
  --r-case-display: none;
  --r-case-label: uppercase;

  --cx-body: 1.0625rem;
  --cx-h1: clamp(2.5rem, 1.3rem + 5vw, 4.75rem);
  --cx-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --cx-h3: 1.25rem;
  --cx-gap: clamp(20px, 5vw, 44px);
  --cx-band: clamp(64px, 8vw, 116px);
  --cx-wrap: 1200px;
  --cx-measure: 32em;
  --cx-radius: 6px;
  --cx-radius-media: 3px;

  --sp-navy-2: #0b2a4d;
  --sp-gloss: rgba(62, 148, 255, 0.17);
  --sp-micro: 0.78rem;
  --sp-track: 0.14em;
  --sp-grade: saturate(0.9) contrast(1.06) brightness(1.02);
}

/* ---------- Grounds ---------- */
[data-theme="light"] {
  --r-bg: #ffffff;
  --r-surface: #eef3f9;
  --r-fg: #01172e;
  --r-muted: #4f5e73;
  --r-line: #d6e0eb;
  --r-accent: #3e94ff;
  --r-accent-text: #0a5fc9;
  --r-on-accent: #01172e;
}

[data-theme="dark"] {
  --r-bg: #041c36;
  --r-surface: var(--sp-navy-2);
  --r-fg: #ffffff;
  --r-muted: #b4c2d3;
  --r-line: #1e3957;
  --r-accent: #3e94ff;
  --r-accent-text: #6aafff;
  --r-on-accent: #01172e;
}

[data-theme="brand"] {
  --r-bg: #01172e;
  --r-surface: var(--sp-navy-2);
  --r-fg: #ffffff;
  --r-muted: #a8b7c9;
  --r-line: #1e3957;
  --r-accent: #3e94ff;
  --r-accent-text: #6aafff;
  --r-on-accent: #01172e;
}

[data-theme="accent"] {
  --r-bg: #3e94ff;
  --r-surface: #5aa4ff;
  --r-fg: #01172e;
  --r-muted: #0b2a4d;
  --r-line: rgba(1, 23, 46, 0.25);
  --r-accent: #01172e;
  --r-accent-text: #01172e;
  --r-on-accent: #ffffff;
}

/* Two light sections in a row are split by a hard hairline, never by padding alone. */
[data-theme="light"] + [data-theme="light"] {
  border-top: 1px solid var(--r-line);
}

/* ---------- Type ---------- */
body {
  font-family: var(--r-body);
  color: var(--r-fg);
  -webkit-font-smoothing: antialiased;
}

.r-section h1,
.r-section h2,
.r-section h3,
.r-display {
  font-family: var(--r-display);
  font-weight: var(--r-display-weight);
  letter-spacing: var(--r-display-tracking);
  text-transform: var(--r-case-display);
  color: var(--r-fg);
}

.r-section h1 {
  font-size: var(--cx-h1);
  line-height: 0.98;
  text-wrap: balance;
}

.r-section h2 {
  font-size: var(--cx-h2);
  line-height: 1.04;
  text-wrap: balance;
}

.r-section h3 {
  font-size: var(--cx-h3);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 800;
}

.r-section p {
  line-height: 1.62;
}

.r-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--r-muted);
  max-width: 54ch;
}

/* Micro labels: tracked, uppercase, ink-muted; only the rule carries blue. */
.r-eyebrow {
  font-family: var(--r-body);
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: var(--sp-track);
  text-transform: var(--r-case-label);
  color: var(--r-muted);
}

.r-eyebrow-rule {
  background: var(--r-accent);
  height: 3px;
  width: 28px;
  border: 0;
}

.r-head {
  text-align: left;
}

.r-head--center {
  text-align: left;
  margin-inline: 0;
}

.r-hairline {
  background: var(--r-line);
  border-color: var(--r-line);
}

/* ---------- Buttons ---------- */
.r-btn {
  min-height: 48px;
  border-radius: var(--cx-radius);
  font-family: var(--r-body);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.r-btn:hover {
  transform: translateY(-1px);
}

.r-btn--solid {
  background: var(--r-fg);
  color: var(--r-bg);
  border-color: var(--r-fg);
}

.r-btn--solid:hover {
  background: var(--r-accent-text);
  border-color: var(--r-accent-text);
  color: #ffffff;
}

.r-btn--accent {
  background: var(--r-accent);
  color: var(--r-on-accent);
  border-color: var(--r-accent);
}

.r-btn--accent:hover {
  background: #69adff;
  border-color: #69adff;
  color: var(--r-on-accent);
}

.r-btn--ghost,
.r-btn--outline {
  background: transparent;
  color: var(--r-fg);
  border: 1.5px solid var(--r-line);
}

.r-btn--ghost:hover,
.r-btn--outline:hover {
  border-color: var(--r-fg);
  background: transparent;
}

:where(a, button, summary, input, select, textarea, .r-btn):focus-visible {
  outline: 3px solid var(--r-accent-text);
  outline-offset: 3px;
}

.r-textlink,
.r-ledger-link {
  color: var(--r-accent-text);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color 0.18s ease;
}

.r-textlink:hover,
.r-ledger-link:hover {
  color: var(--r-fg);
}

/* ---------- Header, nav, action bar ---------- */
.cx-head {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--r-line);
  backdrop-filter: saturate(1.4) blur(10px);
}

.cx-nav a:not(:where(.r-btn)) {
  color: var(--r-fg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.cx-nav a:not(:where(.r-btn)):hover,
.cx-nav a[aria-current="page"] {
  color: var(--r-accent-text);
}

.cx-navbtn {
  color: var(--r-fg);
  border-color: var(--r-line);
  border-radius: var(--cx-radius);
}

.cx-bar {
  background: #01172e;
  color: #ffffff;
  border-top: 2px solid #3e94ff;
}

.cx-bar a:not(:where(.r-btn)) {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Photograph treatment: one cool, clean grade and hairline-thin radius everywhere ---------- */
.r-paper img,
.r-hero img,
.r-split-img,
.r-split-media img,
.r-zig img,
.r-tile-img,
.r-tile-img img,
.r-svc-img,
.r-svc-img img,
.r-ctaband-img,
.r-carousel img {
  filter: var(--sp-grade);
}

.r-paper img,
.r-split-img,
.r-split-media img,
.r-zig img {
  border-radius: var(--cx-radius-media);
  object-fit: cover;
}

/* ---------- Home hero: split paper, words left, photo right ---------- */
.r-paper {
  background: var(--r-bg);
}

.r-paper h1 {
  max-width: 11ch;
}

.r-paper p {
  color: var(--r-muted);
  max-width: 46ch;
}

.r-paper:not(.r-paper--photo) img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
}

/* ---------- Photo-band heroes: directional navy scrim ---------- */
.r-hero {
  background-color: #041c36;
}

.r-hero-scrim {
  background: linear-gradient(180deg, rgba(1, 23, 46, 0.64) 0%, rgba(1, 23, 46, 0.88) 100%);
}

@media (min-width: 820px) {
  .r-hero-scrim {
    background: linear-gradient(90deg, rgba(1, 23, 46, 0.92) 0%, rgba(1, 23, 46, 0.74) 45%, rgba(1, 23, 46, 0.3) 100%);
  }
}

.r-hero-in,
.r-hero-col {
  text-align: left;
}

.r-hero h1,
.r-poster-h1,
.r-statement-h1 {
  color: #ffffff;
  max-width: 14ch;
}

.r-hero-sub {
  color: #c9d5e3;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  max-width: 48ch;
}

.r-hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.r-hero-stat-n,
.r-stat-n {
  font-family: var(--r-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--r-fg);
}

.r-hero-stat-n {
  color: #ffffff;
}

.r-hero-stat-l,
.r-stat-l {
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: var(--sp-track);
  text-transform: uppercase;
  color: var(--r-muted);
}

.r-hero-stat-l {
  color: #b4c2d3;
}

/* ---------- Proof strip: a quiet tracked ledger line on the cool wash ---------- */
.r-proof {
  background: var(--r-surface);
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--r-line);
}

.r-proof-list {
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: var(--sp-track);
  text-transform: uppercase;
  color: var(--r-fg);
}

.r-proof-list > * + * {
  border-left: 1px solid var(--r-line);
}

.r-proof-mark {
  color: var(--r-accent-text);
}

/* ---------- Priced package cards: the price is the one blue thing ---------- */
.r-pcards {
  background: var(--r-bg);
}

.r-pcards .r-pcard {
  background: var(--r-bg);
  border: 1px solid var(--r-line);
  border-top: 3px solid var(--r-fg);
  border-radius: var(--cx-radius);
  box-shadow: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.r-pcards .r-pcard:hover {
  border-color: var(--r-accent-text);
  transform: translateY(-2px);
}

.r-pcards [class*="price"] {
  font-family: var(--r-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--r-accent-text);
  line-height: 1;
}

.r-pcards [class*="time"],
.r-pcards [class*="meta"] {
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: var(--sp-track);
  text-transform: uppercase;
  color: var(--r-muted);
  font-variant-numeric: tabular-nums;
}

.r-pcards li {
  border-top: 1px solid var(--r-line);
  color: var(--r-muted);
}

.r-chip {
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--r-surface);
  color: var(--r-fg);
  border: 1px solid var(--r-line);
  border-radius: 999px;
}

/* ---------- Gallery: a tight, uniform 4:3 grid ---------- */
.r-gallery-grid {
  gap: 6px;
}

.r-tile {
  border-radius: var(--cx-radius-media);
  overflow: hidden;
  background: var(--r-surface);
}

.r-tile-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

img.r-tile-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.r-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.r-tile:hover img {
  transform: scale(1.035);
}

.r-tile-cap {
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Why: sticky rail on the cool wash, numbered ruled list ---------- */
.r-why {
  background: var(--r-surface);
}

.r-why-row {
  border-top: 1px solid var(--r-line);
}

.r-why-row:last-child {
  border-bottom: 1px solid var(--r-line);
}

.r-why-n,
.r-ledger-n {
  font-family: var(--r-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: var(--sp-micro);
  letter-spacing: var(--sp-track);
  color: var(--r-accent-text);
}

.r-ledger-row {
  border-top: 1px solid var(--r-line);
}

/* ---------- Reviews ---------- */
.r-reviews-note {
  color: var(--r-muted);
  font-size: 0.9rem;
}

.r-reviews-links a:not(:where(.r-btn)) {
  color: var(--r-accent-text);
  font-weight: 700;
}

/* ---------- FAQ: a ruled list on the wash, no boxes ---------- */
.r-faq {
  background: var(--r-surface);
}

.r-faq-item {
  border: 0;
  border-bottom: 1px solid var(--r-line);
  border-radius: 0;
  background: transparent;
}

.r-faq-item:first-child {
  border-top: 1px solid var(--r-fg);
}

.r-faq-item summary {
  font-family: var(--r-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--r-fg);
  min-height: 44px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.r-faq-item summary:hover {
  color: var(--r-accent-text);
}

.r-faq-item p {
  color: var(--r-muted);
}

/* ---------- Splits, zigzag, heritage ---------- */
.r-split-card {
  background: var(--r-bg);
  border: 1px solid var(--r-line);
  border-left: 3px solid var(--r-accent);
  border-radius: var(--cx-radius);
  box-shadow: none;
}

.r-zig img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
}

.r-heritage .r-display {
  color: var(--r-accent-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

/* ---------- Process: ghost numerals as outlines on the same glyphs ---------- */
.r-step {
  border-top: 1px solid var(--r-line);
}

.r-step-n {
  font-family: var(--r-display);
  font-weight: 900;
  font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--r-accent-text);
}

.r-triad [class*="circle"] {
  border-color: var(--r-line);
  background: var(--r-surface);
  color: var(--r-fg);
}

/* ---------- Services grid fallback ---------- */
.r-svc-card {
  border-radius: var(--cx-radius);
  border: 1px solid var(--r-line);
  box-shadow: none;
}

.r-svc-index {
  font-variant-numeric: tabular-nums;
  font-size: var(--sp-micro);
  letter-spacing: var(--sp-track);
  font-weight: 700;
}

.r-svc-desc {
  color: var(--r-muted);
}

/* ---------- Areas and prose ---------- */
.r-areas-list li,
.r-terr li {
  border-bottom: 1px solid var(--r-line);
  font-weight: 700;
  color: var(--r-fg);
}

.r-prose-in p,
.r-prose-in li {
  color: var(--r-muted);
}

.r-prose-in h2,
.r-prose-in h3 {
  color: var(--r-fg);
}

/* ---------- Contact ---------- */
.r-contact-num,
.r-contact-tel {
  font-family: var(--r-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--r-fg);
  transition: color 0.18s ease;
}

.r-contact-tel:hover {
  color: var(--r-accent-text);
}

.r-contact-expect {
  border-left: 3px solid var(--r-accent);
  color: var(--r-muted);
}

.cx-field label {
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-fg);
}

.cx-field input,
.cx-field select,
.cx-field textarea {
  border-color: var(--r-line);
  color: var(--r-fg);
  background-color: #ffffff;
  font-family: var(--r-body);
  transition: border-color 0.18s ease;
}

.cx-field input:focus,
.cx-field select:focus,
.cx-field textarea:focus {
  border-color: var(--r-accent-text);
}

.r-placeholder {
  background: var(--r-surface);
  color: var(--r-muted);
  border: 1px dashed var(--r-line);
}

/* ---------- The bold move: the closing navy band with one gloss streak ---------- */
.r-ctaband {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #01172e;
  padding-block: clamp(72px, 10vw, 140px);
}

/* A single diagonal highlight, the way light runs across fresh clear coat. */
.r-ctaband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 58%, var(--sp-gloss) 58% 66%, transparent 66% 69%, rgba(62, 148, 255, 0.09) 69% 70.5%, transparent 70.5%),
    radial-gradient(120% 90% at 100% 0%, rgba(62, 148, 255, 0.14), transparent 60%);
}

.r-ctaband-in {
  text-align: left;
}

.r-ctaband h2 {
  color: #ffffff;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  max-width: 14ch;
}

.r-ctaband p {
  color: #c2cfdd;
  max-width: 46ch;
}

.r-ctaband .r-btn--ghost,
.r-ctaband .r-btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.r-ctaband .r-btn--ghost:hover,
.r-ctaband .r-btn--outline:hover {
  border-color: #ffffff;
}

.r-ctaband-img {
  opacity: 0.18;
}

/* ---------- Footer: back to a light ground, because the logo needs one ---------- */
.cx-foot,
.r-foot,
.r-foot2 {
  --r-bg: var(--sp-navy-2);
  --r-surface: #01172e;
  --r-fg: #ffffff;
  --r-muted: #c9d5e3;
  --r-line: #1e3957;
  --r-accent-text: #6aafff;
  background: var(--sp-navy-2);
  color: #ffffff;
  border-top: 1px solid #1e3957;
}

.cx-fh {
  font-size: var(--sp-micro);
  font-weight: 700;
  letter-spacing: var(--sp-track);
  text-transform: uppercase;
  color: #a8b7c9;
}

.cx-foot a:not(:where(.r-btn)),
.r-foot a:not(:where(.r-btn)) {
  color: #ffffff;
  transition: color 0.18s ease;
}

.cx-foot a:not(:where(.r-btn)):hover,
.r-foot a:not(:where(.r-btn)):hover {
  color: #6aafff;
}

.r-foot-sub {
  color: #a8b7c9;
  font-size: 0.9rem;
}

.cx-util-head {
  border-bottom: 1px solid var(--r-line);
}

@media (max-width: 600px) {
  .r-proof-list > * + * {
    border-left: 0;
  }

  .r-gallery-grid {
    gap: 4px;
  }
}

/* ---- repair ---- */
@media (min-width: 900px) {
  .r-terr-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .r-terr-grid > * {
    grid-column: span 2;
  }

  .r-terr-grid > :nth-child(3n+1):nth-last-child(2),
  .r-terr-grid > :nth-child(3n+1):nth-last-child(2) + * {
    grid-column: span 3;
  }
}

/* ---- repair ---- */
.r-foot .cx-fcol p,
.r-foot .cx-fcol address,
.r-foot .cx-fcol li {
  color: #c9d5e3;
}

.r-foot .cx-fcol a:not(:where(.r-btn)) {
  color: #ffffff;
}

.r-foot .cx-fcol a:not(:where(.r-btn)):hover {
  color: #6aafff;
}
.booking-fallback a:not(:where(.r-btn)) {
  color: var(--r-accent-text);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color 0.18s ease;
}

.booking-fallback a:not(:where(.r-btn)):hover {
  color: var(--r-fg);
}

/* normalizer: a head re-aligned to the left keeps its lead with it */
.r-head--center.r-head--center p, .r-head--center.r-head--center .r-lead { margin-inline: 0; }
