/* ============================================================
   Howardsville General Store — stylesheet
   Style: Nature-Distilled rustic + editorial asymmetric layout
   Background: pure white. Accent: toned-down brick red.
   Buttons: warm gold (the non-red third color).
   ============================================================ */

:root {
  --white:     #ffffff;   /* page background — white, not cream */
  --paper:     #f6f3ee;   /* faint warm panel, used sparingly  */
  --ink:       #241e18;   /* primary text                       */
  --muted:     #5c5248;   /* secondary text (7:1 on white)      */
  --line:      #e3ddd2;   /* hairline borders                   */
  --red:       #a33b2e;   /* toned-down brick / barn red        */
  --red-dark:  #7e2b22;   /* red hover                          */
  --gold:      #c0871f;   /* third color — buttons (not red)    */
  --gold-dark: #a06d12;   /* gold hover                         */
  --wood:      #3c2f23;   /* deep wood — footer / dark bands    */

  --maxw: 1120px;
  --gap: clamp(3.5rem, 8vw, 6rem);
  --radius: 4px;
  --shadow: 0 14px 38px -18px rgba(36, 30, 24, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3 { line-height: 1.12; font-weight: 700; }

.display {
  font-family: "Abril Fatface", "Merriweather", Georgia, serif;
  font-weight: 400;
  letter-spacing: .005em;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.35rem; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .9rem;
}

.section { padding-block: var(--gap); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 52px;
  padding: .85rem 1.6rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

/* Primary CTA = warm gold (the non-red third color), dark ink text for AA */
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }

/* Secondary = outlined brick red */
.btn--red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--red:hover { background: var(--red); color: var(--white); }

/* On dark / photo backgrounds */
.btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-color: rgba(255, 255, 255, .7);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.brand b { font-family: "Abril Fatface", Georgia, serif; font-weight: 400; font-size: 1.35rem; }
.brand span {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .35rem;
}
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--red); border-bottom-color: var(--red); }
.nav .nav-call { color: var(--red); }
.nav .nav-fb {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav .nav-fb svg { width: 33px; height: 33px; flex: none; }
.nav .nav-fb span { display: none; }
.nav .nav-fb:hover { color: #1877f2; border-bottom-color: transparent; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: .55rem;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--wood);
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 22, 17, .25) 0%,
    rgba(28, 22, 17, .10) 38%,
    rgba(24, 18, 13, .82) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 8.5vw, 5.4rem);
  letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
  max-width: 16ch;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-style: italic;
  margin: 1rem 0 1.9rem;
  color: #f3e8d8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Key info ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1.1rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.info-card .ic {
  width: 30px; height: 30px; color: var(--red); margin-bottom: .85rem;
}
.info-card h3 {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.info-card p { font-size: 1.18rem; font-weight: 700; line-height: 1.45; }
.info-card a { font-weight: 700; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card small { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 60ch; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
}
.sec-head p { color: var(--muted); margin-top: .9rem; font-size: 1.1rem; }

/* ---------- About (asymmetric split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split.flip .split-media { order: -1; }
.split-media img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-body p + p { margin-top: 1.1rem; }
.split-body .lead { font-size: 1.22rem; }

/* ---------- What we offer ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.offer {
  background: var(--white);
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  transition: background-color .2s ease;
}
.offer:hover { background: var(--paper); }
.offer svg { width: 26px; height: 26px; color: var(--red); flex: none; margin-top: 2px; }
.offer b { display: block; font-size: 1.08rem; }
.offer span { font-size: .92rem; color: var(--muted); }

/* ---------- Photo strip ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  min-height: 460px;
}
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(24, 18, 13, .8));
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1.6rem 1rem .85rem;
}

/* ---------- Deli callout ---------- */
.callout {
  background: var(--wood);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(2.6rem, 6vw, 4rem) 1.5rem;
}
.callout h2 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: .8rem;
}
.callout p { color: #e9ddcb; max-width: 48ch; margin: 0 auto 1.9rem; }
.callout p a { color: var(--gold); font-weight: 700; text-underline-offset: 3px; }
.callout p a:hover { color: #fff; }

/* ---------- Map ---------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wood);
  color: #d8cdbd;
  padding-block: 3.5rem 2.2rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.2rem;
  margin-bottom: 2.4rem;
}
.site-footer h4 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: .8rem;
}
.site-footer a { color: #f0e6d6; }
.site-footer p, .site-footer li { font-size: .98rem; line-height: 1.8; list-style: none; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 1.6rem;
  font-size: .86rem;
  color: #b6a994;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  justify-content: space-between;
}

/* ============================================================
   Deli page
   ============================================================ */
.page-banner {
  background: var(--wood);
  color: var(--white);
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5rem);
}
.page-banner h1 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
}
.page-banner p { color: #ecdfcb; margin-top: .9rem; font-size: 1.12rem; }
.hours-strip {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .95rem 1rem;
  font-size: 1.02rem;
}
.farm-note {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.order-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.9rem;
}
.order-call__lead {
  font-family: "Abril Fatface", Georgia, serif;
  font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
  color: var(--white);
  margin: 0;
}

.menu-section-title {
  text-align: center;
  margin-bottom: 2.2rem;
}
.menu-grid + .menu-section-title { margin-top: 4.5rem; }
.menu-section-title h2 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
}
.menu-section-title p {
  color: var(--muted);
  margin-top: .45rem;
  font-size: 1rem;
  letter-spacing: .02em;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
}
.menu-card.span-2 { grid-column: 1 / -1; }
.menu-card h2 {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  font-size: 1.65rem;
  color: var(--red);
  padding-bottom: .7rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--line);
}
.menu-card .sub { color: var(--muted); font-size: .95rem; margin: -.5rem 0 1.1rem; }
.menu-item {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .5rem 0;
}
.menu-item .name { font-weight: 700; }
.menu-item .name small { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.opt-row {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin: .4rem 0 1.2rem;
}
.opt-row span {
  font-size: 1rem;
  padding: .25rem 0;
  border-bottom: 1px solid var(--line);
}
.opt-row span:last-child { border-bottom: none; }
.opt-label {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 1rem 0 .4rem;
}
.legend {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-top: 2rem;
  font-size: .98rem;
  color: var(--muted);
}
.legend b { color: var(--ink); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 2.6rem;
}
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 18px; height: 18px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.35rem 1.2rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { border-bottom-color: var(--line); }
  .nav .nav-fb { border-bottom: 1px solid var(--line); }
  .nav .nav-fb span { display: inline; }
  .nav-toggle { display: inline-flex; }

  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .split-media img { max-height: 340px; }

  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .gallery figure:first-child { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero { min-height: 80vh; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; }
  .menu-card { padding: 1.5rem 1.3rem; }
}

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