/* Metro Detroit Book Donation Pickup — styles
   Palette: Honolulu Blue (primary), Harbor (deep blue), Signal Yellow (action), Fog (tint), Ink (text)
   Type: Archivo (variable: weight + width) */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&display=swap');

:root {
  --blue: #0076B6;
  --blue-deep: #003F63;
  --blue-ink: #002B45;
  --yellow: #FFD23F;
  --yellow-deep: #E6B700;
  --fog: #EEF4F8;
  --fog-2: #DCE8F0;
  --ink: #0F1B2A;
  --ink-soft: #3E4C5A;
  --paper: #FFFFFF;
  --red: #C8102E;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 6px;
  --radius-pill: 999px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 4.6rem);
  --step-5: clamp(2.6rem, 1.5rem + 4.2vw, 4.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: 'wdth' 100;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.02em; font-weight: 900; font-variation-settings: 'wdth' 112; color: var(--blue-ink); }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.1; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: var(--step-1); line-height: 1.4; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font: inherit; font-weight: 700; font-size: var(--step-0);
  border-radius: var(--radius-pill);
  border: 3px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-yellow { background: var(--yellow); color: var(--blue-ink); border-color: var(--yellow); }
.btn-yellow:hover { background: #FFDC63; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-white { background: #fff; color: var(--blue-ink); border-color: #fff; }
.btn-white:hover { background: var(--fog); border-color: var(--fog); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue-ink); border-color: var(--blue-ink); }
.btn-outline:hover { background: var(--blue-ink); color: #fff; }
.btn-lg { padding: 20px 32px; font-size: var(--step-1); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--blue); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-ink); font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.05; font-variation-settings: 'wdth' 110; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 10px 14px; border-radius: var(--radius-pill); color: var(--blue-ink); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--fog); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .btn { padding: 11px 18px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--blue-ink); border-radius: var(--radius); cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; margin: auto; }
.mobile-nav { display: none; background: #fff; border-bottom: 3px solid var(--blue); padding: 8px var(--gutter) 16px; }
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a { padding: 14px 10px; font-weight: 700; color: var(--blue-ink); text-decoration: none; border-bottom: 1px solid var(--fog-2); }
.mobile-nav .btn { margin-top: 10px; justify-content: center; border-bottom: 0; }

@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- hero ---------- */
.hero { background: var(--blue); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 46ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-sub { margin-top: 18px; color: rgba(255,255,255,.78); font-size: var(--step--1); }
.hero-sub a { color: #fff; font-weight: 700; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 8px auto 0; }
}

/* ---------- proof strip ---------- */
.proof { background: var(--blue-ink); color: #fff; }
.proof .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof div { padding: 22px 18px 22px 0; border-right: 1px solid rgba(255,255,255,.18); margin-right: 18px; }
.proof div:last-child { border-right: 0; margin-right: 0; }
.proof strong { display: block; font-size: var(--step-2); font-weight: 900; font-variation-settings: 'wdth' 112; line-height: 1; letter-spacing: -0.02em; color: var(--yellow); }
.proof span { display: block; margin-top: 6px; color: rgba(255,255,255,.82); font-size: var(--step--1); }
@media (max-width: 760px) {
  .proof .container { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(2) { border-right: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-alt { background: var(--fog); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 14px; }

/* what we take */
.take-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); }
.take-col { border-top: 6px solid var(--blue); padding-top: 22px; }
.take-col.no { border-top-color: var(--red); }
.take-col h3 { display: flex; align-items: center; gap: 12px; }
.take-col h3 .mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.take-col.yes h3 .mark { background: var(--blue); color: #fff; }
.take-col.no h3 .mark { background: var(--red); color: #fff; }
.take-col h3 .mark svg { width: 24px; height: 24px; }
.take-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: var(--step-0); }
.take-list li { position: relative; padding-left: 20px; }
.take-list li strong { font-weight: 700; }
.take-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.take-col.yes .take-list li::before { background: var(--blue); }
.take-col.no .take-list li::before { background: var(--red); }
.take-note { margin-top: 28px; padding: 18px 22px; background: var(--yellow); color: var(--blue-ink); font-weight: 700; border-radius: var(--radius); max-width: none; }
@media (max-width: 760px) { .take-grid { grid-template-columns: 1fr; } }

/* how it works — a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps .num { font-size: var(--step-4); font-weight: 900; font-variation-settings: 'wdth' 120; line-height: 1; color: var(--blue); letter-spacing: -0.03em; }
.steps h3 { margin-top: 12px; }
.steps p { margin-top: 10px; color: var(--ink-soft); }
.steps .warn { color: var(--blue-ink); font-weight: 700; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* service area */
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cities a { display: inline-block; padding: 12px 20px; border-radius: var(--radius-pill); border: 2px solid var(--blue-ink); color: var(--blue-ink); text-decoration: none; font-weight: 700; font-size: var(--step-0); }
.cities a:hover, .cities a[aria-current="page"] { background: var(--blue-ink); color: #fff; }
.area-note { margin-top: 24px; color: var(--ink-soft); }

/* faq */
.faq { display: grid; gap: 0; border-top: 2px solid var(--blue-ink); max-width: 820px; }
.faq details { border-bottom: 2px solid var(--blue-ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 0; font-weight: 700; font-size: var(--step-1); position: relative; color: var(--blue-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- request form ---------- */
.request { background: var(--blue); color: #fff; }
.request .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.request h2 { color: #fff; }
.request .lead { color: rgba(255,255,255,.88); }
.request-aside { position: sticky; top: 100px; }
.talk { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.28); }
.talk p { color: rgba(255,255,255,.88); }
.talk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--blue-ink); }
.form-hint { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--fog-2); border-radius: var(--radius);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,118,182,.18); }
.form-input.error, .form-select.error, .form-textarea.error, .checkbox-confirm.error, .form-file.error { border-color: var(--red); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23003F63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 110px; }
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.35; }
.checkbox-label input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; cursor: pointer; }
.checkbox-confirm { padding: 14px 16px; border: 2px solid var(--fog-2); border-radius: var(--radius); background: var(--fog); }
.form-file { padding: 10px 12px; cursor: pointer; }
.form-file::file-selector-button { font: inherit; font-weight: 700; padding: 8px 14px; margin-right: 12px; color: #fff; background: var(--blue-ink); border: 0; border-radius: var(--radius-pill); cursor: pointer; }
.form-help { margin: 8px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.photo-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--step--1); color: var(--ink-soft); }
.error-message { color: var(--red); font-size: var(--step--1); margin: 6px 0 0; font-weight: 600; }
.form-disclaimer { margin: 14px 0 0; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .request .container { grid-template-columns: 1fr; }
  .request-aside { position: static; }
}
@media (max-width: 560px) { .form-row, .checkbox-group { grid-template-columns: 1fr; } }

/* ---------- game ---------- */
.play { background: var(--fog); }
.play .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.play p { margin: 8px 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { background: var(--blue-ink); color: rgba(255,255,255,.85); padding: 48px 0 28px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .logo { color: #fff; }
.footer h4 { margin: 0 0 12px; color: #fff; font-size: var(--step-0); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: var(--step--1); color: rgba(255,255,255,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .footer .container { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page { padding: clamp(40px, 6vw, 80px) 0; }
.page .prose { max-width: 720px; }
.page .prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.page .prose ul { padding-left: 1.2em; }
.thanks { text-align: center; padding: clamp(56px, 8vw, 110px) 0; }
.thanks h1 { font-size: var(--step-4); }
.thanks .lead { margin: 18px auto 0; }
.thanks-box { margin: 32px auto; max-width: 640px; text-align: left; background: var(--fog); padding: 24px 28px; border-radius: 10px; border-left: 6px solid var(--blue); }
.thanks-box h3 { font-size: var(--step-1); margin-bottom: 10px; }
.thanks-box ol { margin: 0; padding-left: 1.3em; }
.thanks-warn { background: var(--yellow); border-left-color: var(--yellow-deep); }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* city pages */
.city-hero { background: var(--blue); color: #fff; padding: clamp(40px, 6vw, 80px) 0; }
.city-hero h1 { color: #fff; max-width: 16ch; font-size: var(--step-4); }
.city-hero .lead { color: rgba(255,255,255,.88); margin-top: 18px; }
.city-hero .hero-actions { margin-top: 28px; }
.city-body .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 72px); }
.city-body h2 { font-size: var(--step-3); }
.city-body h3 { font-size: var(--step-1); margin-top: 1.4em; }
.city-side { background: var(--fog); padding: 24px; border-radius: 10px; align-self: start; }
.city-side h3 { margin-top: 0; }
.city-side ul { padding-left: 1.2em; margin: 0; }
@media (max-width: 900px) { .city-body .container { grid-template-columns: 1fr; } }

/* Retell widget: we trigger it from our own buttons, hide its floating button on desktop header area */
#retell-widget-fab { }
