/* Countryside Diner — demo site styles
   Warm, retro home-cooking palette (barn red + cream + charcoal).
   Built by L4 Consulting for client demo. */

:root {
  /* Palette drawn from the diner's own menu: parchment cream, brown lettering,
     and the green + blue wave border. "--red" is kept as the primary-accent
     variable name but now carries the brand green so markup needn't change. */
  --red: #3f7a4f;          /* brand green (primary buttons / accents) */
  --red-dark: #2c5c3a;     /* deeper green */
  --cream: #f6efdd;        /* parchment background */
  --cream-2: #efe1c4;
  --char: #3a2417;         /* brown "ink" (dark text / dark sections) */
  --char-soft: #6a5140;
  --gold: #e0a82e;         /* warm highlight */
  --teal: #2f6d9e;         /* menu-border blue (table headers / accents) */
  --ink: #2f2418;
  --line: #e4d6ba;
  --shadow: 0 12px 30px rgba(58, 36, 23, 0.14);
  --radius: 16px;
  /* Accent stripe echoing the menu's green + blue wave border */
  --checker: repeating-linear-gradient(90deg, var(--red) 0 22px, var(--teal) 22px 44px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

/* Display titles use Playfair Display (warm serif, like the menu lettering);
   script accents use Sacramento (the flowing menu-header script); body stays Nunito. */
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; letter-spacing: .1px; }
h3, .logo { font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
.script { font-family: "Sacramento", cursive; font-weight: 400; }

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1100px, 92%); margin: 0 auto; }

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 245, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--checker);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.4rem; font-weight: 800; color: var(--char);
}
.logo:hover { text-decoration: none; }
.logo-img { height: 58px; width: auto; display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt .lg-main { font-size: 1.5rem; color: var(--char); font-weight: 800; letter-spacing: .3px; }
.logo-txt .lg-sub { font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--char-soft); font-weight: 700; margin-top: 3px; }
@media (max-width: 820px) { .logo-img { height: 42px; } .logo-txt .lg-main { font-size: 1.1rem; } }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--char-soft); font-weight: 700; font-size: 0.98rem; }
.nav-links a.active, .nav-links a:hover { color: var(--red-dark); text-decoration: none; }

.btn {
  display: inline-block; background: var(--red); color: #fff;
  padding: 11px 22px; border-radius: 999px; font-weight: 800;
  box-shadow: var(--shadow); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--red-dark); text-decoration: none; transform: translateY(-2px); color:#fff; }
.btn.ghost { background: #fff; color: var(--red-dark); border: 2px solid var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }
.btn.gold { background: var(--gold); color: var(--char); }
.btn.gold:hover { background: #cd961f; color: var(--char); }
.nav-toggle { display: none; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--char); }
.section-head h2::after {
  content: ""; display: block; width: 110px; height: 7px; margin: 16px auto 0;
  border-radius: 999px; background: var(--checker); border: 1px solid var(--line);
}
.section-head[style*="text-align:left"] h2::after { margin-left: 0; margin-right: auto; }
.section-head p { color: var(--char-soft); margin-top: 10px; font-size: 1.05rem; }
.alt { background: #fff; }

/* ---------- Buttons group / hero ---------- */
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-sm { padding: 10px 16px; font-size: .93rem; display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.btn-sm svg { width: 17px; height: 17px; flex: none; }
.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-dark); color:#fff; text-decoration: none; }
.btn-dir { background: #fff; color: var(--red-dark); border: 2px solid var(--red); }
.btn-dir:hover { background: var(--red); color: #fff; text-decoration: none; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--red-dark); outline-offset: 2px; border-radius: 8px;
}

/* --- Full-bleed photo hero --- */
.hero-full { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 560px; color: #fff; }
.hero-full .hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--char); }
.hero-full .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.hero-full::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(28,22,19,.88) 0%, rgba(28,22,19,.66) 44%, rgba(28,22,19,.18) 100%);
}
.hero-full .wrap { position: relative; z-index: 2; padding: 70px 0; }
.hero-full h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; }
.hero-full h1 .script { color: var(--gold); display: inline-block; font-size: 1.35em; line-height: .8; font-weight: 400; }
.hero-full p.lead { color: #fff; opacity: .96; font-size: 1.2rem; max-width: 46ch; margin: 18px 0 26px; }
.hero-full .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-full.compact { min-height: 340px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--char); font-weight: 800;
  padding: 8px 18px; border-radius: 999px; font-size: .82rem; letter-spacing: .6px;
  margin-bottom: 18px; text-transform: uppercase;
}
.hero-badge svg { width: 16px; height: 16px; }

/* ---------- Info / hours strip ---------- */
.hours-strip { background: var(--char); color: #fbefe0; }
.hours-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.hours-strip .col { text-align: left; }
.hours-strip h3 { color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; font-size: 1.12rem; }
.hours-strip h3 svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.hours-strip .hours-lines { color: #fbefe0; font-weight: 600; font-size: .98rem; line-height: 1.7; }
.hours-strip .hours-lines strong { color: var(--gold); }
.hours-strip .bkfast { color: var(--gold); font-weight: 800; }
.hours-strip .addr { color: #f1dfca; font-size: .98rem; line-height: 1.55; }
.hours-strip a { color: #fff; }
.hours-strip a:hover { color: var(--gold); text-decoration: none; }
.hours-strip .strip-cta { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; color: var(--gold); }
.hours-strip .strip-cta svg { width: 16px; height: 16px; flex: none; }

/* ---------- Delivery badges ---------- */
.delivery-band { background: var(--gold); color: var(--char); text-align: center; padding: 16px 0; }
.delivery-band .wrap { display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap; font-weight: 800; }
.delivery-band .dv { display: inline-flex; align-items: center; gap: 8px; }
.delivery-band svg { width: 20px; height: 20px; }
.delivery-band .chip { background: var(--char); color: var(--gold); padding: 5px 14px; border-radius: 999px; font-size: .9rem; letter-spacing:.3px; transition: background .15s, transform .15s; }
.delivery-band a.chip:hover { background: #000; color: var(--gold); text-decoration: none; transform: translateY(-1px); }

/* ---------- Favorites photo cards ---------- */
.fav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fav-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: center; padding-bottom: 22px; transition: transform .15s;
}
.fav-card:hover { transform: translateY(-4px); }
.fav-card .fav-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); position: relative; display: grid; place-items: center; color: var(--red-dark); }
.fav-card .fav-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fav-card .fav-photo .ph { font-size: 2rem; }
.fav-card h3 { margin: 16px 0 6px; color: var(--red-dark); }
.fav-card p { color: var(--char-soft); font-size: .95rem; padding: 0 16px; }

/* ---------- Photo placeholder (auto-swaps to real photo) ---------- */
.photo {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(45deg, #f6e6cd, #f6e6cd 14px, #f0dcbd 14px, #f0dcbd 28px);
  border: 2px dashed var(--red); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; color: var(--red-dark);
  min-height: 220px; padding: 20px; font-weight: 700;
}
.photo small { display: block; color: var(--char-soft); font-weight: 600; margin-top: 6px; }
.photo small code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .85em; color: var(--red-dark); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; object-position: center; }
.photo.has-img { border: none; }
.photo--scene { min-height: 0; aspect-ratio: 4 / 3; }

/* ---------- About + photo ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Menu ---------- */
.menu-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 40px; }
.menu-pills a {
  background: #fff; border: 2px solid var(--red); color: var(--red-dark); font-weight: 800;
  padding: 11px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
}
.menu-pills a:hover { background: var(--red); color: #fff; text-decoration: none; }

.menu-block { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; scroll-margin-top: 90px; margin-bottom: 56px; }
.menu-block .menu-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; position: sticky; top: 96px; }
.menu-block .menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-block > div { min-width: 0; }

.menu-section > h3 { font-size: 1.55rem; color: var(--red-dark); margin-bottom: 6px; display:flex; align-items:center; gap:10px; }
.menu-section > h3::after { content: ""; display: block; flex: 1; height: 4px; border-radius: 999px; background: var(--checker); border: 1px solid var(--line); opacity:.8; }
.menu-section .sub { color: var(--char-soft); margin-bottom: 20px; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: right; font-size: .78rem; letter-spacing: .5px; text-transform: uppercase;
  color: var(--teal); padding: 0 0 10px; font-weight: 800;
}
.price-table th:first-child { text-align: left; color: var(--red-dark); }
.price-table td { padding: 11px 0; border-bottom: 1px dotted var(--line); text-align: right; font-weight: 800; color: var(--red-dark); white-space: nowrap; }
.price-table td:first-child { text-align: left; color: var(--char); font-weight: 800; white-space: normal; }
.price-table th:not(:first-child), .price-table td:not(:first-child) { padding-left: 26px; text-align: right; white-space: nowrap; width: 1%; }
.price-table td .desc { display: block; font-weight: 600; color: var(--char-soft); font-size: .85rem; }
.price-table td.muted { color: #c3ad93; font-weight: 700; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 48px; align-items: start; min-width: 0; }
.note { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 18px; color: var(--char-soft); font-size: .95rem; margin-top: 12px; }
.flavor-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flavor-chips span { background: #fff; border: 1px solid var(--line); color: var(--char-soft); padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.loc-card .loc-photo { min-height: 0; aspect-ratio: 16/10; border: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.loc-card .loc-body { padding: 26px; }
.loc-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
.loc-card h3 { color: var(--char); font-size: 1.35rem; }
.loc-row { display: flex; gap: 11px; margin-top: 14px; color: var(--char-soft); font-size: .98rem; }
.loc-row svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--red-dark); }
.loc-row strong { color: var(--char); }
.loc-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.loc-actions .btn { flex: 1; padding: 11px 8px; font-size: .93rem; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.loc-actions .btn svg { width: 16px; height: 16px; flex: none; }

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

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red), var(--gold)); color: #fff; text-align: center; border-radius: var(--radius); padding: 48px 24px; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.cta-band p { margin: 12px 0 24px; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--red-dark); }
.cta-band .btn:hover { background: var(--char); color: #fff; }

/* ---------- Footer ---------- */
footer { position: relative; background: var(--char); color: #f1dccb; padding: 50px 0 28px; margin-top: 20px; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--checker); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; margin-bottom: 12px; }
footer a { color: #f1dccb; }
footer a:hover { color: var(--gold); }
.foot-brand .lg-main { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 1.5rem; color: #fff; }
.foot-brand .lg-sub { font-size: .7rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.foot-contact { margin-top: 14px; }
.foot-contact .row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #ecd5c2; font-size: .95rem; }
.foot-contact .row svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-bottom { border-top: 1px solid #4a3d35; margin-top: 30px; padding-top: 18px; text-align: center; font-size: .85rem; color: #c8b2a2; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fav-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-block { grid-template-columns: 1fr; }
  .menu-block .menu-photo { position: static; aspect-ratio: 16/9; margin-bottom: 8px; }
  .loc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hours-strip .wrap, .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .menu-cols { grid-template-columns: 1fr; }
  .price-table th:not(:first-child), .price-table td:not(:first-child) { padding-left: 14px; }
  .nav-right { gap: 10px; }
  .btn-call .txt, .btn-dir .txt { display: none; }
  .btn-sm { padding: 10px 12px; }
  .hero-full { min-height: 480px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--cream); padding: 16px; gap: 14px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav-toggle svg { width: 28px; height: 28px; color: var(--char); }
}
@media (max-width: 560px) { .fav-grid { grid-template-columns: 1fr; } }
