/* =========================================================
   Delmonico Gourmet Food Market — styles.css
   Tokens: Deli Maroon / Butcher Paper / Ink / Brass Gold
   ========================================================= */

:root {
  /* Color */
  --maroon: #7C1F2A;
  --maroon-deep: #5E1620;
  --paper: #F4EEE1;
  --cream: #FBF8F1;
  --ink: #2B2420;
  --ink-soft: #52463c;
  --gold: #B8862F;
  --gold-soft: #d9b877;
  --green: #3E5240;
  --line: #dfd3bd;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 12px 32px -16px rgba(43, 36, 32, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--maroon-deep); margin: 0 0 0.4em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--maroon);
  color: var(--cream);
}
.btn-primary:hover { background: var(--maroon-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--maroon-deep);
  border-color: var(--maroon-deep);
}
.btn-ghost:hover { background: var(--maroon-deep); color: var(--cream); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 238, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--maroon-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.brand-mark {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--maroon);
}

.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--maroon-deep);
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { color: var(--maroon); border-color: var(--gold); }
.nav-phone {
  background: var(--maroon);
  color: var(--cream) !important;
  padding: 8px 16px !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 600;
}
.nav-phone:hover { background: var(--maroon-deep); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    border-bottom: 0 solid var(--line);
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-phone { margin-top: 12px; text-align: center; border-bottom: none !important; }
  .nav-toggle-input:checked ~ .site-nav {
    max-height: 420px;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(124,31,42,0.08), transparent 60%),
    var(--paper);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1.2em;
}
.hero-seal {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}
.hero .hero-ctas { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; scroll-margin-top: 76px; }
#market, #catering, #menu-board, #visit { scroll-margin-top: 76px; }
.section-alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.section-grid-reverse .section-copy { order: 2; }
.section-grid-reverse .section-photo { order: 1; }

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
}
.section-copy p { color: var(--ink-soft); }
.section-copy p:first-of-type { color: var(--ink-soft); }

.honest-note {
  font-size: 0.94rem;
  border-left: 3px solid var(--gold);
  padding: 0.2em 0 0.2em 1em;
  color: var(--ink-soft);
}
.honest-note a { color: var(--maroon); font-weight: 600; text-decoration: underline; }

.section-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.section-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: grayscale(35%) sepia(22%) saturate(160%) hue-rotate(-8deg) brightness(0.92);
}
.section-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(124,31,42,0.18), rgba(94,22,32,0.32));
  mix-blend-mode: multiply;
}
.section-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(43,36,32,0.72);
  color: var(--cream);
  font-size: 0.72rem;
  padding: 8px 14px;
  line-height: 1.3;
}

/* ---------- Menu board ---------- */
.menu-board-section .wrap { max-width: 900px; }
.menu-board-intro { color: var(--ink-soft); max-width: 640px; }
.menu-board-intro a { color: var(--maroon); font-weight: 600; }

.menu-board {
  border-top: 2px solid var(--maroon-deep);
  margin-top: 32px;
}
.menu-cat {
  border-bottom: 1px solid var(--line);
}
.menu-cat summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--maroon-deep);
}
.menu-cat summary::-webkit-details-marker { display: none; }
.menu-cat summary:hover { color: var(--maroon); }

.menu-cat-toggle {
  width: 22px;
  height: 22px;
  flex: none;
  position: relative;
}
.menu-cat-toggle::before,
.menu-cat-toggle::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.2s ease;
}
.menu-cat-toggle::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.menu-cat-toggle::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.menu-cat[open] > summary .menu-cat-toggle::after { transform: translateX(-50%) scaleY(0); }

.menu-cat-body {
  padding: 4px 4px 28px;
}

.menu-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line);
}
.mi-name { font-weight: 600; color: var(--ink); }
.mi-desc {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.mi-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--maroon-deep);
  white-space: nowrap;
}
.menu-list-flat .mi-name { font-weight: 600; }

.mi-sub-head {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--maroon);
  margin: 20px 0 8px;
  font-size: 1.02rem;
}
.mi-sub-note {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.mi-freeform { color: var(--ink-soft); font-size: 0.96rem; }
.mi-note { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }

.menu-board-footnote {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.menu-board-footnote a { color: var(--maroon); font-weight: 600; }

/* ---------- Policy grid ---------- */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.policy-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.policy-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}
.policy-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}
.policy-card a { color: var(--maroon); font-weight: 600; }

/* ---------- Hours table ---------- */
.hours-table {
  width: 100%;
  max-width: 380px;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.98rem;
}
.hours-table tr { border-bottom: 1px dotted var(--line); }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 9px 6px;
  font-weight: 500;
}
.hours-table th { color: var(--ink); font-weight: 600; }
.hours-table td { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }

address { font-style: normal; color: var(--ink-soft); margin-bottom: 0.8em; }
.fax { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-deep);
  color: var(--paper);
  padding: 40px 0 32px;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-brand img { border-radius: 50%; }
.footer-meta { font-size: 0.92rem; opacity: 0.85; margin-bottom: 6px; }
.footer-meta a { color: var(--gold-soft); text-decoration: underline; }
.footer-copy { font-size: 0.8rem; opacity: 0.6; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-grid-reverse .section-copy,
  .section-grid-reverse .section-photo { order: initial; }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0 44px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-ctas .btn, .btn { width: 100%; text-align: center; }
  .hero-ctas { flex-direction: column; }
  .menu-list li { flex-direction: column; gap: 2px; }
  .mi-price { align-self: flex-start; }
}
