/* ============================================================
   LOUGHEED LAUNDRY — Design System
   Eucalyptus & Putty · Single source of truth for all pages
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --bg:           #E8E2D6;
  --bg-soft:      #F2EEE4;
  --card:         #F4F1E9;
  --ink:          #22241D;
  --ink-soft:     #4C4E44;
  --accent:       #5C6E58;
  --accent-deep:  #3C4A39;
  --thread:       #A88A57;
  --line:         #C9C1B0;
  --dark-bg:      #2C3329;
  --dark-ink:     #EDE8DA;
  --dark-accent:  #A88A57;
  --radius:       2px;
  --radius-card:  6px;
  --section-pad:  clamp(56px, 8vw, 104px);
  --wrap-max:     1180px;
  --wrap-pad:     clamp(20px, 5vw, 64px);
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--accent);
}
h1, h2, h3, .display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-soft);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--accent);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn:hover    { transform: translateY(-2px); background: var(--accent-deep); border-color: var(--accent-deep); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.ghost    { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.dark     { background: var(--dark-accent); color: var(--dark-bg); border-color: var(--dark-accent); }
.btn.dark:hover { background: #c09a65; border-color: #c09a65; }
.btn.sm       { padding: 10px 20px; font-size: 0.84rem; }

/* ── Site header / nav ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-loc {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.mobile-nav.open { max-height: 400px; padding: 20px 0 24px; }
.mobile-nav a {
  display: block;
  padding: 12px var(--wrap-pad);
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 12px; padding-top: 16px; }
.mobile-nav .mobile-cta { margin: 8px var(--wrap-pad) 0; text-align: center; }

@media (max-width: 820px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .mobile-nav { display: flex; }
}
@media (max-width: 420px) { .brand-loc { display: none; } }

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ── Page hero (interior pages) ─────────────────────────── */
.page-hero {
  padding: clamp(52px, 7vw, 92px) 0 clamp(40px, 5.5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 18px;
  max-width: 22ch;
}
.page-hero p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ── Section defaults ───────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section-light { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark-bg); color: var(--dark-ink); }
.section-dark .eyebrow { color: var(--dark-accent); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 46ch; margin-top: 14px; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 14px auto 0; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.5vw, 40px);
}
.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 8%, transparent);
}

/* ── Price display ───────────────────────────────────────── */
.price-display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.price-display small {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ── Hairline divider rows (pricing tables) ─────────────── */
.table-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.table-row:first-child { border-top: 1px solid var(--line); }
.table-row-label { color: var(--ink); }
.table-row-sub { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.table-row-price { color: var(--accent); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* ── Checklist ────────────────────────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.checklist li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── FAQ accordion ───────────────────────────────────────── */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.18s;
}
.faq-q:hover { color: var(--accent); }
.faq-q-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding-bottom: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-a-inner a { color: var(--accent); }

/* ── The Lougheed Line (How It Works) ───────────────────── */
.route { padding: var(--section-pad) 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route-head { text-align: center; max-width: 44ch; margin: 0 auto clamp(40px, 6vw, 68px); }
.route-head h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); margin: 14px 0 0; }
.route-line { position: relative; }
.route-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.thread-svg { position: absolute; top: 30px; left: 0; width: 100%; height: 2px; z-index: 1; overflow: visible; }
.thread-svg path {
  fill: none; stroke: var(--thread); stroke-width: 1.5;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.route.in-view .thread-svg path { stroke-dashoffset: 0; }
.step { text-align: center; padding: 0 16px; position: relative; z-index: 2; }
.step-node {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem; color: var(--accent); position: relative; z-index: 3;
}
.step h3 { font-family: 'Hanken Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); max-width: 26ch; margin: 0 auto; }
@media (max-width: 720px) {
  .route-steps { grid-template-columns: 1fr; gap: 40px; }
  .thread-svg { display: none; }
  .step { padding: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
footer { background: var(--dark-bg); color: var(--dark-ink); border-top: 1px solid color-mix(in srgb, var(--dark-ink) 12%, transparent); }
.footer-main {
  padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}
.footer-brand-name { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.35rem; color: var(--dark-ink); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; color: color-mix(in srgb, var(--dark-ink) 60%, transparent); line-height: 1.65; max-width: 26ch; margin-bottom: 20px; }
.footer-contact a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: color-mix(in srgb, var(--dark-ink) 70%, transparent);
  text-decoration: none; margin-bottom: 10px; transition: color 0.18s;
}
.footer-contact a:hover { color: var(--dark-ink); }
.footer-col h4 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--dark-accent); margin-bottom: 18px;
}
.footer-col h4 + h4 { margin-top: 24px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.88rem; color: color-mix(in srgb, var(--dark-ink) 65%, transparent); text-decoration: none; transition: color 0.18s; }
.footer-col ul li a:hover { color: var(--dark-ink); }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--dark-ink) 10%, transparent);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: color-mix(in srgb, var(--dark-ink) 45%, transparent); }
.footer-bottom a { color: color-mix(in srgb, var(--dark-ink) 45%, transparent); text-decoration: none; font-size: 0.82rem; transition: color 0.18s; }
.footer-bottom a:hover { color: var(--dark-ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 820px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-main { grid-template-columns: 1fr; } }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .thread-svg path { transition: none; stroke-dashoffset: 0; }
  * { scroll-behavior: auto !important; }
}

/* ── Focus states ────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── PWA install banner ──────────────────────────────────── */
.pwa-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px);
  z-index: 200;
  background: var(--dark-bg); color: var(--dark-ink);
  border: 1px solid color-mix(in srgb, var(--dark-ink) 18%, transparent);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  max-width: 440px; width: calc(100% - 32px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}
.pwa-banner.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.pwa-banner-text { flex: 1; font-size: 0.88rem; line-height: 1.5; }
.pwa-banner-text strong { display: block; font-weight: 600; margin-bottom: 2px; color: var(--dark-ink); }
.pwa-banner-text span { color: color-mix(in srgb, var(--dark-ink) 65%, transparent); font-size: 0.82rem; }
.pwa-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pwa-dismiss { background: none; border: none; color: color-mix(in srgb, var(--dark-ink) 45%, transparent); font-size: 1.2rem; padding: 0 4px; transition: color 0.18s; }
.pwa-dismiss:hover { color: var(--dark-ink); }

/* iOS "Add to Home Screen" sheet */
.ios-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--dark-bg); color: var(--dark-ink);
  border-top: 1px solid color-mix(in srgb, var(--dark-ink) 18%, transparent);
  border-radius: 16px 16px 0 0;
  padding: 24px var(--wrap-pad) 36px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.3);
}
.ios-sheet.visible { transform: translateY(0); }
.ios-sheet h3 { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.4rem; margin-bottom: 12px; color: var(--dark-ink); }
.ios-sheet p { font-size: 0.9rem; color: color-mix(in srgb, var(--dark-ink) 70%, transparent); line-height: 1.6; margin-bottom: 16px; }
.ios-sheet ol { padding-left: 20px; color: color-mix(in srgb, var(--dark-ink) 70%, transparent); font-size: 0.9rem; line-height: 1.8; }
.ios-sheet-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: color-mix(in srgb, var(--dark-ink) 45%, transparent);
  font-size: 1.4rem; line-height: 1;
}
