/* restaurantdepotdelivery.com
   BarBak palette: ink and gold. One animated moment (the route map), quiet everywhere else. */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --ink-2: #262626;
  --gold: #f4c430;
  --gold-deep: #d9a900;
  --paper: #ffffff;
  --mist: #f2f3f5;
  --line: #dcdfe3;
  --text: #1a1a1a;
  --muted: #565b62;
  --on-ink: #f5f5f3;
  --on-ink-muted: #b9bcc0;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.7em; }
h3 { font-family: var(--body); font-size: 1.06rem; font-weight: 650; line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 13px 26px;
  font: 650 1rem/1.2 var(--body); text-decoration: none; text-align: center;
  border-radius: 8px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-small { min-height: 42px; padding: 9px 16px; font-size: .94rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffd54a; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 74px; }
.brand-text { font-weight: 650; font-size: .98rem; line-height: 1.2; padding-left: 12px; border-left: 2px solid var(--gold); }
.top-nav { display: flex; gap: 22px; }
.top-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.top-phone { text-decoration: none; font-weight: 650; font-size: .98rem; line-height: 1.2; white-space: nowrap; }
.top-phone-label { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }

/* ── Hero ── */
.hero { background: var(--ink); color: var(--on-ink); padding-block: clamp(28px, 5vw, 60px) clamp(36px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy h1 { color: #fff; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--on-ink); margin-top: 20px; max-width: 54ch; }
.partner-tag { display: inline-block; color: var(--gold); font-weight: 650; font-size: .95rem; margin-bottom: 14px; padding-left: 14px; border-left: 3px solid var(--gold); line-height: 1.3; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.hero-terms { color: var(--on-ink-muted); font-size: .97rem; margin: 14px 0 0; }
.hero-cta .hero-terms { margin: 0; flex-basis: 100%; }
.hero-terms a { color: #fff; font-weight: 650; text-decoration-color: var(--gold); text-decoration-thickness: 2px; white-space: nowrap; }
.lost { padding-block: 70px; }
.lost .hero-copy { max-width: 640px; }

.crumbs { margin-bottom: 18px; font-size: .9rem; color: var(--on-ink-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #6d7075; }
.crumbs a { color: var(--on-ink-muted); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

.hero-map { margin: 0; }
.hero-map figcaption { color: #8d9096; font-size: .82rem; line-height: 1.45; margin-top: 8px; max-width: 46ch; }
.hero-home .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.hero-home .hero-map { max-width: 440px; justify-self: end; width: 100%; }
.hero:not(.hero-home) h1 { font-size: clamp(2rem, 4vw, 3.05rem); }

/* ── Route map ── */
.routemap { width: 100%; height: auto; overflow: hidden; font-family: var(--body); }
.routemap .rings circle { fill: none; stroke: #343434; stroke-width: 1; stroke-dasharray: 2 6; }
.routemap .route { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-opacity: .5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.routemap .route.is-focus { stroke-width: 3; stroke-opacity: 1; }
.routemap .stop { fill: var(--ink); stroke: var(--gold); stroke-width: 1.6; }
.routemap .stop.is-focus { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.routemap a .stop { cursor: pointer; }
.routemap a:hover .stop, .routemap a:focus-visible .stop { fill: var(--gold); }
.routemap .place { fill: #e6e6e3; font-size: 13.5px; font-weight: 500; paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.routemap .place.is-focus { fill: #fff; font-size: 16px; font-weight: 700; }
.routemap .store rect { fill: var(--gold); }
.routemap .store .pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; }
.routemap .store-name { fill: var(--gold); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; }
.routemap .truck { fill: #fff; offset-rotate: 0deg; offset-distance: 100%; opacity: 0; }

.routemap.overview { border-radius: 6px; }
.routemap.overview .land { stroke: none; }
.routemap.overview .coast { fill: none; stroke: #555; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.routemap.overview .route { stroke-width: 1; stroke-opacity: .7; }
.routemap.overview .stop { stroke-width: 1; fill: var(--gold); stroke: none; }
.routemap.overview .hub-pin { fill: var(--gold); }
.routemap.overview .hub-name { fill: #fff; font-size: 17px; font-weight: 700; paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.routemap.overview .hub-count { fill: var(--on-ink-muted); font-size: 12.5px; font-weight: 500; paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.routemap.overview .hub { text-decoration: none; }
.routemap.overview .hub:hover .hub-name, .routemap.overview .hub:focus-visible .hub-name { fill: var(--gold); }

/* The one orchestrated moment: routes draw out from the store on load. */
@media (prefers-reduced-motion: no-preference) {
  .routemap .route { animation: draw .9s cubic-bezier(.4, 0, .2, 1) var(--d, 0s) backwards; }
  .routemap .stop, .routemap .place { animation: appear .35s ease-out var(--d, 0s) backwards; }
  .routemap .store .pulse { animation: pulse 1.6s ease-out .1s 2; }
  .routemap .truck { animation: drive 2.2s cubic-bezier(.45, 0, .25, 1) 1.5s both; }
  .routemap.overview .hub-pin, .routemap.overview .hub-name, .routemap.overview .hub-count { animation: appear .4s ease-out var(--d, 0s) backwards; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes drive { 0% { offset-distance: 0%; opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* ── Bands ── */
.band { padding-block: clamp(44px, 7vw, 84px); }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-gold { background: var(--gold); color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

/* Delivery slip: the facts for this address, set like a docket. */
.slip { margin: 0; border-top: 3px solid var(--ink); }
.slip div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.slip dt { color: var(--muted); font-size: .93rem; }
.slip dd { margin: 0; font-weight: 600; }

/* Tonight → midnight → 7 AM */
.night { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: none; }
.night li { position: relative; padding-top: 26px; border-top: 2px solid var(--ink); }
.night li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; }
.night .when { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; margin-bottom: 10px; }
.night h3 { margin-bottom: 6px; }
.night p:last-child { color: var(--muted); margin: 0; font-size: .98rem; }
.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.how-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 62%; border-radius: 6px; }

/* Services table */
.table-scroll { overflow-x: auto; }
.services { width: 100%; border-collapse: collapse; font-size: .98rem; }
.services th, .services td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.services thead th { font-size: .88rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.services tbody th { font-weight: 650; width: 21%; }
.services td:nth-child(3) { font-weight: 600; width: 24%; }
.services td:last-child { width: 22%; padding-right: 0; }
.services td a { font-weight: 600; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; }
.services .is-off th, .services .is-off td { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding-bottom: 20px; color: #33373c; }

/* City link lists */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 0 32px; }
.links li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.links a { font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; }
.links span { color: var(--muted); font-size: .88rem; text-align: right; }
.groups { display: grid; gap: 34px; margin-top: 28px; }
.group h3 { font-family: var(--display); font-size: 1.3rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }

/* Home: areas by store */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px clamp(24px, 4vw, 48px); margin-top: 30px; }
.area header { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.area h3 { font-family: var(--display); font-size: 1.5rem; }
.area h3 a { text-decoration: none; }
.area h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold-deep); }
.area header p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.area ul { columns: 2; column-gap: 24px; padding-top: 10px; }
.area li { break-inside: avoid; padding: 5px 0; }
.area li a { text-decoration: none; font-weight: 500; }
.area li a:hover { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; }

/* Partner proof */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.partner { margin: 0; }
.partner blockquote { margin: 0; }
.partner blockquote p { font-family: var(--display); font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.25; color: #fff; max-width: 22ch; }
.partner figcaption { margin-top: 18px; color: var(--on-ink-muted); font-size: .95rem; }
.partner figcaption a { color: #fff; }
.proof-photo img { border-radius: 6px; }
.proof-note { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid #3a3a3a; color: var(--on-ink-muted); max-width: none; }

/* Closing band */
.closing h2 { margin-bottom: .4em; }
.closing p { font-size: 1.08rem; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding-block: 52px 36px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-title { color: #fff; font-weight: 650; margin-bottom: 12px; }
.foot li { padding: 4px 0; }
.foot a { color: var(--on-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-note { grid-column: 1 / -1; max-width: none; margin: 8px 0 0; padding-top: 22px; border-top: 1px solid #3a3a3a; font-size: .87rem; line-height: 1.6; }
.foot-note a { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .top-nav { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .hero-home .hero-grid, .split, .proof { grid-template-columns: minmax(0, 1fr); }
  .hero-home .hero-map { justify-self: start; max-width: 340px; }
  .night { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .night li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 28px 24px; }
  .night li:last-child { padding-bottom: 0; }
  .night li::before { top: 4px; left: -9px; }
  .how-photo img { aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top-row { gap: 12px; min-height: 60px; }
  .brand img { width: 58px; }
  .brand-text { display: none; }
  .top-phone-label { display: none; }
  .top-phone { font-size: .92rem; }
  .btn-small { padding: 9px 12px; font-size: .88rem; }
  .hero-cta .btn { width: 100%; }
  .closing-actions .btn { width: 100%; }
  .slip div { grid-template-columns: 7.5em minmax(0, 1fr); }
  .links span { display: none; }

  /* Services table becomes stacked cards */
  .services thead { position: absolute; left: -9999px; }
  .services, .services tbody, .services tr, .services th, .services td { display: block; width: auto !important; }
  .services tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .services tbody tr:first-child { border-top: 2px solid var(--ink); }
  .services th, .services td { border: 0; padding: 2px 0; }
  .services tbody th { font-size: 1.05rem; }
  .services td:last-child { padding-top: 8px; }
}
@media (max-width: 420px) {
  .top-phone { font-size: .86rem; }
  .btn-small { padding: 9px 10px; }
  .area ul { columns: 1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
