/* =============================================================================
   Harrisburg Book Donations — styles
   Identity: a reader's service. Deep "ink" blue lineage from the old sky-blue,
   warmed with paper tones. Fraunces (literary serif) for display, Inter for body.
   Signature: the "take / pass on" sorting panel.
   ============================================================================= */

:root {
  /* Palette */
  --paper:      #f3f6f8;   /* barely-blue paper */
  --paper-2:    #e9eff3;   /* tinted section background */
  --card:       #ffffff;
  --ink:        #11242f;   /* deep blue-black text */
  --ink-soft:   #46606e;   /* secondary text */
  --line:       #d6e0e6;   /* hairlines / borders */
  --blue:       #1b7fa8;   /* confident primary (evolved from #7EC8E3) */
  --blue-deep:  #145f7f;   /* hover */
  --sky:        #8fd3e8;   /* soft accent from original brand */
  --sky-tint:   #dcf0f7;   /* light fill */
  --green:      #2e9e6b;   /* accepted */
  --green-tint: #e3f4ec;
  --brick:      #c2543b;   /* passed on */
  --brick-tint: #f7e6e1;
  --gold:       #b9842c;   /* the "buy / value" accent */
  --gold-tint:  #f6ecd6;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(17,36,47,.05), 0 10px 30px rgba(17,36,47,.07);
  --shadow-sm:  0 1px 2px rgba(17,36,47,.06), 0 4px 14px rgba(17,36,47,.06);

  --maxw:       1120px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1rem; }
a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243,246,248,.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--blue); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.brand-loc { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: .9rem; font-weight: 500; padding: 8px 11px; border-radius: 8px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
  content: ''; display: block; height: 2px; background: var(--blue);
  margin: 3px 6px 0; border-radius: 2px;
}
.site-nav a.nav-sell {
  color: var(--gold); border: 1px solid var(--gold-tint); background: var(--gold-tint);
}
.site-nav a.nav-sell:hover { background: #f0e0bf; color: #7c5a14; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 38px;
  background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ----------------------------------------------------------------- Hero */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 76px); }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-deep); font-weight: 600; margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow-gold { color: var(--gold); }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 600; }
.hero-sub { font-size: 1.16rem; color: var(--ink-soft); max-width: 36ch; margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero card — a stylized box of book spines, no external assets */
.hero-card {
  background: linear-gradient(160deg, var(--sky-tint), #fff);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 26px; box-shadow: var(--shadow);
}
.porch-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 0; position: relative; overflow: hidden;
}
.spines {
  display: flex; align-items: flex-end; gap: 7px; height: 190px;
  padding-bottom: 0; border-bottom: 14px solid #cfa06b;
  border-image: linear-gradient(#d9b07c, #b07e44) 1;
}
.spines span {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17,36,47,.1), 2px 0 4px rgba(0,0,0,.18);
  background-image: linear-gradient(
    to right,
    rgba(255,255,255,.28) 0%,
    rgba(255,255,255,.07) 18%,
    transparent 45%,
    rgba(0,0,0,.1) 100%
  );
}
/* Left-edge light reflection */
.spines span::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: rgba(255,255,255,.45);
  border-radius: 3px 0 0 0;
}
/* Horizontal decorative band */
.spines span::after {
  content: ''; position: absolute;
  left: 0; right: 0; top: var(--band); height: 4px;
  background: rgba(255,255,255,.18);
}
.spines span:nth-child(1) { background: #1b7fa8; }
.spines span:nth-child(2) { background: #2e9e6b; }
.spines span:nth-child(3) { background: #c2543b; }
.spines span:nth-child(4) { background: #11242f; }
.spines span:nth-child(5) { background: #b9842c; }
.spines span:nth-child(6) { background: #8fd3e8; }
.spines span:nth-child(7) { background: #46606e; }
.box-label {
  position: absolute; right: 14px; bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 9px;
  color: var(--ink-soft);
}
.hero-card-note { margin: 16px 4px 0; font-size: .92rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- Sections */
.section { padding: clamp(46px, 6vw, 80px) 0; }
.section-tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.section-lead.center { margin-left: auto; margin-right: auto; }
.section-foot, .sort-foot { margin-top: 26px; color: var(--ink-soft); }

.page-head { padding: clamp(40px, 5.5vw, 70px) 0 0; }
.page-title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; }
.page-lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 62ch; }
.page-head-sell { background: linear-gradient(180deg, var(--gold-tint), transparent); }

/* ------------------------------------------------- Sorting (signature) */
.sorting { padding: clamp(46px, 6vw, 84px) 0; }
.sort-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px;
}
.sort-col {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px; box-shadow: var(--shadow-sm);
}
.sort-col.take { border-top: 5px solid var(--green); }
.sort-col.pass { border-top: 5px solid var(--brick); }
.sort-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sort-head h3 { font-size: 1.3rem; }
.sort-icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; flex: none;
}
.take .sort-icon { background: var(--green-tint); color: var(--green); }
.pass .sort-icon { background: var(--brick-tint); color: var(--brick); }
.sort-col ul { list-style: none; margin: 0; padding: 0; }
.sort-col li {
  padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-soft);
}
.sort-col li:last-child { border-bottom: 0; }
.sort-col li::before {
  position: absolute; left: 0; top: 9px; font-weight: 700;
}
.take li::before { content: '✓'; color: var(--green); }
.pass li::before { content: '✕'; color: var(--brick); }

/* ----------------------------------------------------------------- Steps */
.steps { list-style: none; margin: 34px 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.steps-lg { margin: 8px 0 0; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.step-n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sky-tint); color: var(--blue-deep); font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 1.15rem; margin-bottom: 14px;
}
.steps h3 { font-size: 1.22rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); margin: 0; }
.steps-strip { padding: clamp(46px,6vw,80px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------- Service cards */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.service-icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky-tint); color: var(--blue-deep); margin-bottom: 18px;
}
.service-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); flex: 1; }
.service-card .btn { margin-top: 18px; align-self: flex-start; }

/* ----------------------------------------------------------------- Criteria (sell page) */
.criteria { max-width: 760px; }
.criteria-list {
  list-style: none; margin: 18px 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.criteria-list li {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink-soft);
}
.criteria-list strong { color: var(--ink); }
.criteria-note { color: var(--ink-soft); }

/* ----------------------------------------------------------------- Forms */
.booking-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field-block { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field > span, .field-block > span { font-weight: 600; font-size: .92rem; }
.field em, .field-block em { font-weight: 400; color: var(--ink-soft); font-style: normal; }
.field input, .field-block input, .field textarea, .field-block textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.field input:focus, .field-block input:focus, .field textarea:focus, .field-block textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field-hint { color: var(--ink-soft); font-size: .82rem; }
.form-foot { margin: 16px 0 0; font-size: .88rem; color: var(--ink-soft); }
.booking-submit { margin-top: 22px; }

/* ----------------------------------------------------------------- Scheduler */
.scheduler { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 24px; background: var(--paper); }
.scheduler legend {
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 600; padding: 0 8px; margin-left: -8px;
}
.cal { max-width: 380px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-weight: 600; }
.cal-nav {
  width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  cursor: pointer; font-size: 1rem; color: var(--ink);
}
.cal-nav:hover { background: var(--paper-2); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.cal-cell {
  aspect-ratio: 1 / 1; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .12s var(--ease), border-color .12s var(--ease);
}
.cal-cell:hover:not(:disabled) { border-color: var(--blue); background: var(--sky-tint); }
.cal-cell.is-disabled, .cal-cell:disabled { color: #b6c4cc; cursor: default; background: var(--paper); border-color: transparent; }
.cal-blank { border: 0; background: none; }
.cal-cell.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.slots { margin-top: 22px; }
.slots-label { font-weight: 600; margin: 0 0 12px; }
.slots-empty, .slots-loading { color: var(--ink-soft); margin: 0; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.slot-chip {
  font: inherit; font-size: .9rem; padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.slot-chip:hover:not(:disabled) { border-color: var(--blue); background: var(--sky-tint); }
.slot-chip.is-chosen { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.slot-chip.is-taken { color: #b6c4cc; background: var(--paper); cursor: default; text-decoration: line-through; }
.chosen {
  margin: 18px 0 0; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--green-tint); color: #1c6e49; font-weight: 600;
}
.chosen.chosen-error { background: var(--brick-tint); color: #8f3422; }

/* ----------------------------------------------------------------- Confirm / contact */
.confirm-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-tint); color: var(--green); display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 700;
}
.confirm-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); max-width: 460px; margin: 0 auto 28px;
}
.confirm-when { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; margin: 0 0 8px; }
.confirm-meta { color: var(--ink-soft); margin: 0 0 6px; }
.contact-direct { margin-top: 26px; text-align: center; color: var(--ink-soft); }

/* ----------------------------------------------------------------- Admin */
.stat-bar {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.stat-item {
  flex: 1; min-width: 90px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-total { border-color: var(--blue); }
.stat-num { font-size: 1.7rem; font-weight: 700; font-family: 'Fraunces', serif; line-height: 1; }
.stat-label { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }

.admin-warn {
  background: var(--gold-tint); border: 1px solid #e7cd97; color: #6f5113;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; max-width: 70ch;
}
.admin-warn code { background: #fff; padding: 1px 6px; border-radius: 5px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  text-decoration: none; font-size: .88rem; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-soft); background: #fff;
}
.chip:hover { border-color: var(--blue); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 880px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper); position: sticky; top: 0; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .muted { color: var(--ink-soft); }
.admin-table .details { max-width: 320px; color: var(--ink-soft); }
.admin-table tr.status-cancelled { opacity: .55; }
.admin-table tr.status-completed { background: #f4faf7; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.type-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.type-donation_pickup { background: var(--sky-tint); color: var(--blue-deep); }
.type-large_donation { background: #e7e0f5; color: #5a4596; }
.type-book_buy { background: var(--gold-tint); color: #7c5a14; }
.type-contact { background: var(--paper-2); color: var(--ink-soft); }
.admin-section-head { font-size: 1rem; font-weight: 700; margin: 28px 0 10px; color: var(--ink); }
.admin-section-head--done { color: var(--ink-soft); }
.admin-section-count { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--paper-2); color: var(--ink-soft); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.status-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-form select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; }
.status-update-btn { font: inherit; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 7px; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; white-space: nowrap; }
.status-update-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-delete { font: inherit; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1.5px solid #f0c0c0; background: #fff5f5; color: #b03030; cursor: pointer; }
.btn-delete:hover { background: #fde8e8; border-color: #e08080; }
.note-cell { min-width: 180px; }
.note-textarea { width: 100%; font: inherit; font-size: .82rem; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; resize: vertical; min-height: 60px; box-sizing: border-box; }
.note-textarea:focus { outline: none; border-color: var(--blue); }
.note-save { margin-top: 5px; font: inherit; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; }
.note-save:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.note-saved { font-size: .72rem; color: #2e9e6b; margin-left: 6px; opacity: 0; transition: opacity .3s; }
.note-saved.show { opacity: 1; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: #cdd9e0; margin-top: 10px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 48px 22px 30px;
}
.footer-name { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600; color: #fff; }
.footer-tagline { margin: 8px 0 0; color: #9fb3bd; max-width: 30ch; }
.footer-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #7d96a2; margin: 0 0 8px; }
.footer-contact p { margin: 0 0 4px; }
.footer-contact a { color: #eaf2f6; }
.footer-area { color: #9fb3bd; margin-top: 8px; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { color: #9fb3bd; display: inline-flex; transition: color .2s; }
.footer-social a:hover { color: #eaf2f6; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.1); padding: 16px 22px; font-size: .85rem; color: #8fa5b0;
}
.footer-admin { color: #8fa5b0; text-decoration: none; }
.footer-admin:hover { color: #fff; }

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .sort-cols, .steps, .service-cards { grid-template-columns: 1fr; }
  .criteria-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 14px 14px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; border-radius: 8px; }
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { background: var(--paper-2); }
  .site-nav a.nav-sell { margin-top: 6px; text-align: center; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 8px; }

  /* Booking form mobile polish */
  .slot-chip { padding: 12px 15px; }          /* bigger touch targets (≥44px) */
  .slot-chips { gap: 8px; }
  .booking-submit { width: 100%; }             /* full-width submit on phone */
  .scheduler { padding: 16px; }               /* tighter scheduler padding */

  /* Calendar cells: larger tap area on small screens */
  .cal-cell { padding: 10px 0; font-size: .9rem; }
  .cal { max-width: 100%; }                   /* prevent any calendar overflow */

  /* Stat bar wraps to 2-per-row on phone */
  .stat-bar { gap: 8px; }
  .stat-item { min-width: calc(50% - 4px); flex: none; }

  /* Confirm card readable on phone */
  .confirm-card { padding: 18px; }
  .confirm-when { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
