/* ==========================================================================
   Tommy's Pressure Washing — Design System
   Signature idea: the "clean line" — the literal diagonal swath a pressure
   washer cuts through grime. Used in the hero and as a recurring structural
   divider between sections, never as pure decoration.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #24272A;        /* charcoal — primary text, dark sections */
  --ink-soft: #4A4F52;   /* secondary text on light surfaces */
  --surface: #F5F6F3;    /* mineral white — main background */
  --surface-alt: #ECEEEA;
  --clean: #1F7A8C;      /* hose-teal — primary accent, "after" state */
  --clean-deep: #16606E;
  --grime: #6B7A3D;      /* algae green — "before" state, used sparingly */
  --concrete: #9A9D98;   /* mid gray — dividers, secondary UI */
  --spark: #E7A94C;      /* sunbleached yellow — CTA accent, used sparingly */
  --white: #FFFFFF;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 2px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  color: var(--ink);
  font-weight: 800;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--ink-soft); }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clean-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--spark);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-weight: 600;
}
.btn-primary {
  background: var(--clean);
  border-color: var(--clean);
  color: var(--white);
}
.btn-primary:hover { background: var(--clean-deep); border-color: var(--clean-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--surface); transform: translateY(-2px); }
.btn-spark { border-color: var(--spark); background: var(--spark); color: var(--ink); }
.btn-spark:hover { background: #d99a34; border-color: #d99a34; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 243, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(36, 39, 42, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand span { color: var(--clean); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--clean); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4px; }

@media (max-width: 860px) {
  .nav-links, .nav-phone-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(36,39,42,0.08);
  }
}

/* ---------- Hero: the clean-line reveal ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: var(--ink);
}
.hero-grime,
.hero-clean {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grime {
  background:
    linear-gradient(180deg, rgba(36,39,42,0.55), rgba(36,39,42,0.75)),
    repeating-linear-gradient(115deg, #5b6339 0 3px, #4d5430 3px 7px);
  clip-path: polygon(0 0, 46% 0, 30% 100%, 0 100%);
}
.hero-clean {
  background:
    linear-gradient(180deg, rgba(31,122,140,0.30), rgba(22,96,110,0.55)),
    linear-gradient(135deg, #1c8fa3, #145a68);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 30% 100%);
}
.hero-seam {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(46% - 2px);
  width: 4px;
  background: var(--spark);
  transform: skewX(-12deg);
  z-index: 1;
  box-shadow: 0 0 24px rgba(231, 169, 76, 0.6);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--spark);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); }
.hero h1 em {
  font-style: normal;
  color: var(--spark);
}
.hero-sub {
  color: rgba(245,246,243,0.85);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 18px 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { font-family: var(--font-mono); color: var(--white); }
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--spark);
  font-weight: 800;
}
.hero-stat span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,246,243,0.75); }

@media (max-width: 700px) {
  .hero-grime { clip-path: polygon(0 0, 100% 0, 100% 22%, 0 34%); }
  .hero-clean { clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); }
  .hero-seam { left: 0; right: 0; top: calc(28% - 2px); bottom: auto; height: 4px; width: auto; transform: skewY(-3deg); }
  .hero { min-height: 92vh; }
}

/* ---------- Section divider: the squeegee cut ---------- */
.section {
  position: relative;
  padding: 100px 0;
}
.section--alt { background: var(--surface-alt); }
.section--ink { background: var(--ink); color: var(--surface); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: rgba(245,246,243,0.75); }

.cut-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 46px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head p { font-size: 1.05rem; }

/* ---------- Services grid: spec-sheet cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--concrete);
  border: 2px solid var(--ink);
}
.service-card {
  background: var(--surface);
  padding: 32px 28px;
  position: relative;
}
.service-spec {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--clean-deep);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Gallery: before/after slots ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--concrete);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(36,39,42,0.3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-placeholder {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-left: 4px solid var(--spark);
  padding: 28px 26px;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(36,39,42,0.06);
}
.review-quote {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 16px;
}
.review-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- About / service area ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.area-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(245,246,243,0.15);
  display: flex;
  justify-content: space-between;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail {
  font-family: var(--font-mono);
  margin-bottom: 18px;
}
.contact-detail a { text-decoration: none; color: var(--clean-deep); font-weight: 600; }
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.2);
}

.form-grid { display: grid; gap: 16px; }
.form-grid label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.form-status { font-size: 0.85rem; font-weight: 600; margin-top: 4px; min-height: 1.2em; }
.form-status-success { color: var(--clean-deep); }
.form-status-error { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(245,246,243,0.7);
  padding: 48px 0 28px;
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand { font-family: var(--font-display); color: var(--white); font-size: 1.2rem; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(245,246,243,0.7); }
.footer-links a:hover { color: var(--spark); }
.footer-fine { border-top: 1px solid rgba(245,246,243,0.12); padding-top: 20px; font-family: var(--font-mono); font-size: 0.76rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--spark);
  outline-offset: 2px;
}
