/* ==========================================================================
   PRESSURE — Core Stylesheet
   Mobile Pressure Washing | pressure.mobi
   --------------------------------------------------------------------------
   This file is the single source of truth for the brand system.
   Both the static HTML pillar pages AND the WordPress child theme in /blog/
   load this file, which is what keeps the two halves of the site in parity.
   Do not fork it. Extend it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — "Industrial Clean"
     Charcoal base = equipment, seriousness, before.
     Hydro cyan    = water, lift, after.
     Signal orange = safety cone. Reserved exclusively for CTAs. */
  --ink:         #0E1519;
  --ink-2:       #18232B;
  --ink-3:       #2A3A45;
  --hydro:       #16B8D9;
  --hydro-deep:  #0A7E99;
  --hydro-wash:  #E6F7FB;
  --signal:      #FF6B1A;
  --signal-deep: #E25200;

  --paper:       #FFFFFF;
  --mist:        #F4F7F9;
  --line:        #DDE5EA;
  --muted:       #5C6E7A;

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale — clamps mean no breakpoint juggling for headings */
  --fs-hero:  clamp(2.75rem, 7vw, 5.5rem);
  --fs-h2:    clamp(2rem, 4vw, 3.25rem);
  --fs-h3:    clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Space */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap:    1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Structure */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --radius: 4px;      /* Deliberately tight. Soft corners read consumer-soft;
                         this brand is a truck and a 4000 PSI machine. */
  --radius-lg: 8px;
  --shadow:    0 1px 2px rgba(14,21,25,.06), 0 8px 24px rgba(14,21,25,.08);
  --shadow-lg: 0 2px 4px rgba(14,21,25,.08), 0 20px 48px rgba(14,21,25,.14);

  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--gap-sm);
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); text-transform: uppercase; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); text-transform: uppercase; }
h3 { font-size: var(--fs-h3); font-weight: 600; text-transform: none; letter-spacing: 0; }

p { margin: 0 0 var(--gap-sm); }
p:last-child { margin-bottom: 0; }

a { color: var(--hydro-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

::selection { background: var(--hydro); color: #fff; }

:focus-visible {
  outline: 3px solid var(--hydro);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--ink  { background: var(--ink); color: #C7D4DC; }
.section--ink h2, .section--ink h3 { color: #fff; }

.stack > * + * { margin-top: var(--gap-sm); }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.section-head { max-width: 62ch; margin-bottom: var(--gap-lg); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); }
.section--ink .section-head p { color: #9DB0BC; }

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hydro-deep);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--hydro); flex: none;
}
.section--ink .eyebrow { color: var(--hydro); }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn { white-space: nowrap; }   /* stop "Free Estimate" breaking across lines */

.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-deep); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }

.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap-sm); }

/* --------------------------------------------------------------------------
   5. HEADER / NAV SHELL
   Ported verbatim into the WP child theme header.php.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--gap);
}

/* Logo image (header). Height-locked; width follows the PNG's aspect. */
.brand-img { height: 44px; width: auto; display: block; }
@media (max-width: 940px) { .brand-img { height: 36px; } }

/* Wordmark — set in the display face, tight, with the dot as a brand device.
   Still used in the footer, where the dark logo will not sit on dark ink. */
.brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  display: inline-flex; align-items: baseline;
}
.brand span { color: var(--hydro); }
.brand small {
  font-family: var(--font-body);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--muted);
  margin-left: .55rem;
  transform: translateY(-2px);
}

.nav { margin-left: auto; }
.nav ul {
  list-style: none; display: flex; align-items: center; gap: 1.15rem;
  margin: 0; padding: 0;
}
.nav a {
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; position: relative; padding-block: .35rem;
  white-space: nowrap;
}

/* Seasonal service (Christmas lights) holds a permanent nav slot so organic
   visitors in March still learn it exists. The dot marks it as the odd one
   out without shouting in July. */
.nav a.nav-seasonal { color: var(--signal-deep); }
.nav a.nav-seasonal::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal); margin-right: .4rem;
  vertical-align: middle;
}
.nav a.nav-seasonal::after { background: var(--signal); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--hydro);
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The CTA inside the nav list exists for the mobile drawer only. On desktop
   the header-cta block already carries one, so hide the duplicate. */
@media (min-width: 941px) {
  .nav ul > li:last-child { display: none; }
}

.header-cta { display: flex; align-items: center; gap: var(--gap-sm); margin-left: var(--gap); }
.header-phone {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--hydro-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--ink); border: 0; border-radius: var(--radius);
  width: 46px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: #fff; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--gap) 1.25rem var(--gap-lg);
    margin: 0;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 1rem 0; font-size: 1.0625rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: var(--gap); width: 100%; }
  .header-cta .btn { display: none; }
  .header-cta { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #C7D4DC;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 9rem);
}

/* The "clean sweep" — a diagonal wash of hydro across the dark field.
   Stands in for the hero photograph until real before/after imagery exists. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(22,184,217,.30), transparent 58%),
    radial-gradient(80% 70% at 12% 100%, rgba(10,126,153,.28), transparent 60%);
  pointer-events: none;
}
/* Faint diagonal streaks = spray pattern */
.hero::after {
  content: "";
  position: absolute; inset: -20% -10%;
  background: repeating-linear-gradient(
    118deg,
    rgba(255,255,255,.045) 0 2px,
    transparent 2px 26px
  );
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 { color: #fff; margin-bottom: var(--gap); }
.hero h1 em { font-style: normal; color: var(--hydro); }
.hero-lead {
  font-size: var(--fs-lead);
  color: #A9BCC7;
  max-width: 54ch;
  margin-bottom: var(--gap-lg);
}
.hero .btn-row { margin-bottom: var(--gap-lg); }

.hero-marks {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem;
  padding-top: var(--gap-lg);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-mark {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--fs-small); font-weight: 600; color: #B7C7D1;
}
.hero-mark svg { flex: none; color: var(--hydro); }

/* --------------------------------------------------------------------------
   7. CARDS — service pillars, clusters, generic
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg) var(--gap);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* Whole card is a link target, but the h3 anchor carries the SEO signal */
.card--link { text-decoration: none; color: inherit; }
.card--link:hover h3 { color: var(--hydro-deep); }

.card-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  background: var(--hydro-wash);
  color: var(--hydro-deep);
  border-radius: var(--radius);
  margin-bottom: var(--gap);
}
.card p { color: var(--muted); font-size: .9875rem; }

.card-link {
  margin-top: auto; padding-top: var(--gap);
  font-weight: 700; font-size: .9375rem; color: var(--hydro-deep);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card--link:hover .card-link { gap: .7rem; }
.card-link span { transition: transform .18s ease; }

/* --------------------------------------------------------------------------
   8. PROCESS STEPS
   -------------------------------------------------------------------------- */
.step { position: relative; padding-top: var(--gap-lg); }
.step::before {
  content: attr(data-step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 800; line-height: .8;
  color: var(--hydro);
  opacity: .28;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .9875rem; }
.section--ink .step p { color: #9DB0BC; }

/* --------------------------------------------------------------------------
   9. SERVICE AREA
   -------------------------------------------------------------------------- */
.area-list {
  list-style: none; margin: var(--gap) 0 0; padding: 0;
  display: grid; gap: .5rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.area-list li {
  font-size: .9375rem; color: var(--muted);
  padding-left: 1.1rem; position: relative;
}
.area-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--hydro);
}
.section--ink .area-list li { color: #9DB0BC; }

.radius-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; width: min(100%, 300px);
  border: 2px dashed var(--hydro);
  border-radius: 50%;
  background: var(--hydro-wash);
  padding: var(--gap);
  text-align: center;
}
.radius-badge strong {
  font-family: var(--font-display); font-size: 4rem; font-weight: 800;
  line-height: .85; color: var(--ink);
}
.radius-badge span { font-size: var(--fs-small); font-weight: 600; color: var(--hydro-deep); }

/* --------------------------------------------------------------------------
   10. CLUSTER BLOCK
   The bridge between static pillars and the WordPress blog. Every pillar page
   carries one of these; each link points at a /blog/ cluster post.
   -------------------------------------------------------------------------- */
.cluster {
  border-left: 3px solid var(--hydro);
  background: var(--mist);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--gap-lg);
}
.cluster ul { list-style: none; margin: var(--gap) 0 0; padding: 0; display: grid; gap: .85rem; }
.cluster li { border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
.cluster li:last-child { border-bottom: 0; padding-bottom: 0; }
.cluster a { font-weight: 600; text-decoration: none; }
.cluster a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   11. FAQ (renders the FAQPage schema visually)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.35rem 0; }
.faq summary {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--gap);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--hydro); flex: none; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: .85rem; color: var(--muted); max-width: 72ch; }

/* --------------------------------------------------------------------------
   12. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--hydro-deep);
  background-image: linear-gradient(135deg, var(--hydro-deep), #065f75);
  color: #fff;
  padding-block: var(--section-y);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBEBF4; font-size: var(--fs-lead); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--gap-lg); }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #8FA3AF;
  padding-block: var(--gap-xl) var(--gap-lg);
  font-size: var(--fs-small);
}
/* Explicit tracks, not auto-fit. A repeat(auto-fit, …) cannot be combined with
   an fr track elsewhere in the same track list — the whole declaration becomes
   invalid and the footer silently collapses to one column. */
.footer-grid {
  display: grid; gap: var(--gap-lg);
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: var(--gap-sm); }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: var(--gap-sm);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: #8FA3AF; text-decoration: none; }
.site-footer a:hover { color: var(--hydro); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--gap-sm) var(--gap);
  justify-content: space-between; align-items: center;
  padding-top: var(--gap-lg);
  font-size: var(--fs-micro);
}

/* --------------------------------------------------------------------------
   14. BREADCRUMBS (pillar pages)
   -------------------------------------------------------------------------- */
.crumbs { font-size: var(--fs-small); color: var(--muted); padding-block: 1.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--hydro-deep); }

/* --------------------------------------------------------------------------
   15. PROSE (long-form pillar body copy + WP post content)
   In the WP theme, scope this to .entry-content.
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--gap-xl); }
.prose h3 { margin-top: var(--gap-lg); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: var(--gap-sm); }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: var(--radius-lg); margin-block: var(--gap-lg); }
.prose blockquote {
  border-left: 3px solid var(--hydro);
  margin: var(--gap-lg) 0; padding: .25rem 0 .25rem var(--gap);
  font-size: var(--fs-lead); color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   16. UTILITIES
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
