/* =========================================================
   Brite Wash Laundromat — styles.css
   Tokens first, then layout, then components, then pages.
   ========================================================= */

:root {
  /* Color */
  --ink: #0e2841;        /* primary text, headers */
  --ink-soft: #244764;   /* secondary dark / hover */
  --brite: #2e6fe0;      /* accent — CTAs, links, active states */
  --brite-dark: #2258ba; /* accent hover */
  --wash: #dceaf7;       /* light brand fill */
  --wash-soft: #f2f8fd;  /* page tint background */
  --white: #ffffff;
  --slate: #5c7387;      /* muted text */
  --line: #cfe1f0;       /* hairline borders on light bg */
  --line-dark: rgba(255, 255, 255, 0.14);
  --open: #2f9e5b;
  --closed: #c24444;

  /* Type */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(14, 40, 65, 0.08);
  --shadow-sm: 0 4px 14px rgba(14, 40, 65, 0.07);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}
p { margin: 0 0 1em; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--brite);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brite);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brite);
  color: var(--white);
}
.btn-primary:hover { background: var(--brite-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost.on-dark {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-ghost.on-dark:hover { background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.brand-text { display: none; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 32px; }
.nav-desktop a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--brite);
}
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: none;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 78px 0 0 0;
  background: var(--white);
  z-index: 49;
  padding: 24px;
  overflow-y: auto;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav-mobile .btn { margin-top: 24px; }

@media (min-width: 880px) {
  .brand-text { display: block; margin-left: 12px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; color: var(--ink); }
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Suds line (signature divider) ---------- */
.suds-line { display: block; width: 100%; height: auto; }
.suds-line--hero { margin-top: -2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--wash-soft) 0%, var(--wash) 100%);
  padding: 64px 0 0;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--brite); }
.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; max-width: 380px; height: auto; }

@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--wash-soft); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--slate); font-size: 17px; }
.section-foot { margin-top: 40px; display: flex; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; margin-bottom: 0; }

.value-list { display: grid; gap: 24px; }
@media (min-width: 760px) { .value-list { grid-template-columns: repeat(3, 1fr); } }
.value-item { display: flex; gap: 14px; }
.value-item .card-icon { flex: none; margin-bottom: 0; }
.value-item h3 { font-size: 17px; margin-bottom: 4px; }
.value-item p { font-size: 14.5px; color: var(--slate); margin: 0; }

/* ---------- Rollout / regions ---------- */
.region-list { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
@media (min-width: 640px) { .region-list { grid-template-columns: repeat(3, 1fr); } }
.region-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14.5px;
}
.region-chip svg { width: 16px; height: 16px; color: var(--brite); flex: none; }

/* ---------- Coming soon / empty state ---------- */
.empty-state {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.empty-state .card-icon { margin: 0 auto 20px; }
.empty-state h3 { font-size: 22px; }
.empty-state p { color: var(--slate); max-width: 46ch; margin-left: auto; margin-right: auto; }
.empty-state .btn { margin-top: 8px; }

/* ---------- Location cards ---------- */
.location-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.location-card h3 { font-size: 20px; margin-bottom: 2px; }
.location-addr { color: var(--slate); font-size: 14.5px; }
.status-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate); flex: none; }
.status-dot.is-open { background: var(--open); }
.status-dot.is-closed { background: var(--closed); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--wash);
  border-radius: 999px;
  padding: 5px 12px;
}
.location-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.location-actions .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 50ch; margin: 0 auto 24px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 36px; margin-bottom: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 14.5px; max-width: 34ch; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: var(--white); }
.footer-seller {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}
.footer-seller a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--wash-soft); padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); }
.page-hero p { color: var(--ink-soft); font-size: 17px; max-width: 56ch; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--brite); outline: none; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .card-icon { flex: none; margin-bottom: 0; }
.contact-info-item h3 { font-size: 16px; margin-bottom: 2px; }
.contact-info-item p { color: var(--slate); font-size: 14.5px; margin: 0; }
.contact-info-item a { color: var(--brite); font-weight: 600; }

/* ---------- Photo frames ---------- */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--wash) 0%, var(--wash-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.photo-frame.tall { aspect-ratio: 3 / 4; }
.photo-frame.wide { aspect-ratio: 16 / 10; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  text-align: center;
  padding: 24px;
}
.photo-pending svg { width: 30px; height: 30px; opacity: 0.55; }
.photo-pending span { font-size: 13px; font-weight: 600; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-item svg { width: 17px; height: 17px; color: var(--brite); flex: none; }

.community-layout { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .community-layout { grid-template-columns: 0.9fr 1.1fr; } }
.community-layout .value-list { grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.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;
}
