/* Jolene's Country Kitchen
   Palette: barn red, enamel white, cast iron, denim, egg yolk.
   Signature: the red gingham tablecloth band. */

:root {
  --barn: #a3282b;
  --barn-deep: #7f1d20;
  --enamel: #fffdf8;
  --iron: #2b2622;
  --iron-soft: #5b534c;
  --denim: #2e4762;
  --denim-deep: #22364b;
  --yolk: #f2b632;
  --rule: #e7ded2;

  --display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--enamel);
  color: var(--iron);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--barn); text-underline-offset: 0.18em; }
a:hover { color: var(--barn-deep); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--iron); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); color: var(--barn); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Gingham tablecloth ---------- */
.gingham {
  height: 36px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(163, 40, 43, .55) 50%, transparent 50%),
    linear-gradient(rgba(163, 40, 43, .55) 50%, transparent 50%);
  background-size: 18px 18px;
}
.gingham--thin { height: 20px; background-size: 10px 10px; }

/* ---------- Top strip ---------- */
.strip { background: var(--barn); color: #fff; font-size: .92rem; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding-block: .5rem; }
.strip a { color: #fff; font-weight: 600; text-decoration: none; }
.strip a:hover { text-decoration: underline; }

.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #c9bfb3; flex: none; }
.status.is-open::before { background: var(--yolk); box-shadow: 0 0 0 3px rgba(242, 182, 50, .3); }

/* ---------- Notice (holiday closures etc.) ---------- */
.notice { background: var(--yolk); color: var(--iron); font-weight: 600; text-align: center; padding: .6rem var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: .9rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--iron); }
.brand img { height: 64px; width: auto; }
.brand .wordmark { display: none; font-family: var(--display); font-size: 1.45rem; line-height: 1; color: var(--barn); }
.brand.no-logo img { display: none; }
.brand.no-logo .wordmark { display: inline; }

.nav { display: flex; align-items: center; gap: .3rem 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--iron); font-weight: 600; text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--barn); }
.nav a[aria-current="page"] { border-bottom-color: var(--barn); }
.nav .nav-order { background: var(--barn); color: #fff; padding: .55rem 1rem; border-radius: 6px; border: 0; }
.nav .nav-order:hover { background: var(--barn-deep); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1.2 var(--body);
  padding: .85rem 1.3rem; border-radius: 6px; text-decoration: none;
  border: 2px solid var(--barn); background: var(--barn); color: #fff;
  min-height: 48px;
}
.btn:hover { background: var(--barn-deep); border-color: var(--barn-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--barn); }
.btn--ghost:hover { background: var(--barn); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--barn); }
.btn--light:hover { background: var(--enamel); border-color: var(--enamel); color: var(--barn-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); background: #fff; }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; }
.hero .tagline { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--denim); margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.2rem; color: var(--iron-soft); margin-bottom: 1.75rem; }

.today {
  background: var(--enamel);
  border: 2px solid var(--iron);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 6px 6px 0 var(--barn);
}
.today h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.today .status { font-size: 1.05rem; margin-bottom: .9rem; }
.today dl { margin: 0 0 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; }
.today dt { font-weight: 700; }
.today dd { margin: 0; }
.today .btn { width: 100%; }
.today .btn + .btn { margin-top: .6rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--white { background: #fff; }

/* Photos */
.photos { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 1.5rem; }
.photos figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--rule); }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* Promise */
.promise .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.promise h2 { color: var(--barn); }
.served h3 { color: var(--denim); margin-bottom: .35rem; }
.served ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.served li { padding: .4rem 0; border-bottom: 1px dashed var(--rule); }

/* Reviews */
.reviews { text-align: center; }
.reviews h2 { color: var(--barn); }
.reviews p { margin-inline: auto; }
.reviews .btn-row { justify-content: center; margin-top: 1.5rem; }
#reviews-widget { margin: 1.75rem auto 0; max-width: 64rem; text-align: left; }

/* Order band */
.order-band { background: var(--barn); color: #fff; padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.order-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.order-band h2 { margin: 0 0 .25rem; color: #fff; }
.order-band p { margin: 0; opacity: .92; }

/* ---------- Menu page ---------- */
.page-head { background: #fff; padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head p { color: var(--iron-soft); font-size: 1.15rem; }

.jump { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 248, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.jump .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-block: .7rem; scrollbar-width: thin; }
.jump a { flex: none; white-space: nowrap; text-decoration: none; color: var(--iron); font-weight: 600; font-size: .95rem; padding: .4rem .85rem; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; }
.jump a:hover { border-color: var(--barn); color: var(--barn); }

.menu-group { padding: clamp(2.25rem, 5vw, 3.5rem) 0 .5rem; }
.menu-group > .wrap > h2 { color: var(--barn); padding-bottom: .4rem; border-bottom: 4px double var(--barn); margin-bottom: 1.75rem; }
.menu-cols { columns: 3 17rem; column-gap: 3rem; }
.menu-section { break-inside: avoid; margin-bottom: 2.25rem; scroll-margin-top: 4.5rem; }
.menu-section h3 { color: var(--denim); font-size: 1.3rem; margin-bottom: .5rem; }
.menu-section ul { list-style: none; padding: 0; margin: 0; }
.menu-section li { padding: .42rem 0; border-bottom: 1px dashed var(--rule); }
.menu-note { color: var(--iron-soft); font-size: .98rem; }

/* ---------- Visit page ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.5rem 3.5rem; align-items: start; }
.visit-block { margin-bottom: 2.25rem; }
.visit-block h2 { font-size: 1.6rem; color: var(--barn); margin-bottom: .5rem; }
.address { font-style: normal; font-size: 1.2rem; line-height: 1.5; margin-bottom: 1.1rem; }
.hours-table { width: 100%; max-width: 26rem; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: .5rem 0; border-bottom: 1px dashed var(--rule); font-weight: 400; }
.hours-table td { text-align: right; }
.hours-table tr.is-today th, .hours-table tr.is-today td { font-weight: 700; color: var(--barn); }
.map-frame { border: 2px solid var(--iron); border-radius: 10px; overflow: hidden; box-shadow: 6px 6px 0 var(--denim); background: var(--rule); aspect-ratio: 4 / 3.4; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--denim); color: #e9eef4; padding: 3rem 0 2rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer .brand img { height: 72px; }
.site-footer .brand .wordmark { color: #fff; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.site-footer p { margin-bottom: .35rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.fine { max-width: none; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 2.25rem; padding-top: 1.25rem; font-size: .88rem; color: #c6d1dd; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .promise .wrap, .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .brand img { height: 52px; }
  .nav { gap: .2rem 1.1rem; font-size: .98rem; }
  .nav .nav-order { display: none; }
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--iron);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(43, 38, 34, .25);
  }
  .action-bar a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 64px; }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
  .action-bar a.primary { background: var(--barn); }
  .action-bar svg { width: 22px; height: 22px; }
  .jump { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Menu items with descriptions and badges */
.menu-cols { columns: 2 22rem; column-gap: 3.5rem; }
.section-note { font-size: .95rem; font-style: italic; color: var(--iron-soft); margin: -.1rem 0 .6rem; }
.menu-section li { padding: .55rem 0; }
.menu-section .item { font-weight: 700; }
.menu-section .desc { display: block; font-size: .95rem; color: var(--iron-soft); line-height: 1.45; margin-top: .1rem; }
.tag { display: inline-block; margin-left: .45rem; padding: .05rem .5rem; border-radius: 4px; background: var(--barn); color: #fff; font-size: .74rem; font-weight: 700; vertical-align: .12em; white-space: nowrap; }
