/*
  Template: Local Restaurant
  Author: OdleWorks Web Solutions
  License: See LICENSE.txt

  Notes:
  - CSS is intentionally framework-free for portability.
  - The hero uses CSS gradients as image placeholders so the template works out of the box.
  - Replace `.hero-bg` and `.food-photo` backgrounds with real restaurant photography for production.
*/

:root {
  --bg: #f7f8f6;
  --bg-alt: #eef3ef;
  --text: #102027;
  --muted: #66747a;
  --brand: #3f786d;
  --brand-dark: #28564e;
  --accent: #d96c5f;
  --accent-soft: #f7dfdc;
  --surface: #ffffff;
  --surface-soft: #f1f6f3;
  --line: rgba(16, 32, 39, 0.12);
  --shadow: 0 22px 60px rgba(16, 32, 39, 0.12);
  --shadow-soft: 0 14px 36px rgba(16, 32, 39, 0.10);
  --radius: 24px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 14px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.preview-banner {
  background: #102027;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.preview-banner-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0;
}

.preview-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.preview-banner-text strong {
  color: #fff;
  font-weight: 850;
}

.preview-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #102027;
  font-size: 0.85rem;
  font-weight: 800;
}

.preview-banner-link-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--text); color: #fff; font-size: 0.82rem; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 750; color: var(--muted); }
.site-nav a:hover { color: var(--brand); }
.nav-cta { color: #fff !important; background: var(--text); padding: 10px 16px; border-radius: 999px; }
.nav-cta:hover { background: var(--brand); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; }

/* Editorial hero: intentionally different from a standard split-content landing hero. */
.hero-editorial {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  padding: 44px 0;
  isolation: isolate;
}
.hero-bg,
.hero-shade { position: absolute; inset: 0; z-index: -2; }
.hero-bg {
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,.35), transparent 13%),
    radial-gradient(circle at 62% 40%, rgba(217,108,95,.78), transparent 9%),
    radial-gradient(circle at 72% 62%, rgba(63,120,109,.95), transparent 14%),
    linear-gradient(135deg, #102027 0%, #20393f 42%, #718b85 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto auto;
  width: min(54vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 38%, #f8fbf9 0 10%, #d96c5f 11% 28%, #3f786d 29% 45%, #102027 46% 60%, transparent 61%),
    radial-gradient(circle at 58% 60%, rgba(255,255,255,.85), transparent 7%);
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.3));
  opacity: .92;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 78%);
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16,32,39,.92) 0%, rgba(16,32,39,.74) 42%, rgba(16,32,39,.25) 100%),
    linear-gradient(0deg, rgba(16,32,39,.78) 0%, transparent 55%);
}
.hero-editorial-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto 1fr;
  gap: 28px;
  min-height: min(720px, calc(100vh - 164px));
  align-items: end;
}
.hero-kicker {
  grid-column: 1 / -1;
  align-self: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.76);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 850;
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 18px;
}
.hero-title-block { max-width: 780px; padding-bottom: 22px; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-weight: 850; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.eyebrow-light { color: rgba(255,255,255,.78); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(4.2rem, 13vw, 9.75rem); line-height: 0.82; letter-spacing: -0.095em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.05em; margin-bottom: 16px; }
h3 { line-height: 1.15; }
.hero-copy { font-size: clamp(1.05rem, 1.8vw, 1.32rem); color: rgba(255,255,255,.78); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 850; border: 1px solid transparent; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--surface-soft); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.full { width: 100%; }

.reservation-float {
  align-self: end;
  background: rgba(255,255,255,.94);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  padding: 24px;
}
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-soft); color: var(--muted); border-radius: 999px; padding: 8px 12px; font-size: .86rem; font-weight: 800; margin-bottom: 18px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.reservation-float h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.hero-details { display: grid; gap: 14px; margin: 22px 0; }
.hero-details div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.hero-details dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.hero-details dd { margin: 0; font-weight: 850; text-align: right; }

.info-strip { padding: 18px 0; border-block: 1px solid var(--line); background: var(--text); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.strip-label { display: block; color: rgba(255,255,255,.58); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.11em; font-weight: 850; }
.strip-grid strong { display: block; margin-top: 4px; }

.section { padding: 86px 0; }
.section-alt { background: var(--bg-alt); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.menu-heading { display: grid; grid-template-columns: 1fr 0.75fr; gap: 28px; max-width: none; align-items: end; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dish-card, .panel, .reservation-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.dish-card-body { padding: 20px; }
.dish-title-row, .menu-item { display: flex; justify-content: space-between; gap: 20px; }
.dish-title-row h3, .menu-item h3 { margin-bottom: 6px; }
.dish-title-row span, .menu-item strong { color: var(--brand); font-weight: 900; white-space: nowrap; }
.dish-card p, .menu-item p { color: var(--muted); margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { font-size: 0.78rem; font-weight: 850; background: var(--surface-soft); color: var(--brand-dark); padding: 6px 10px; border-radius: 999px; }
.food-photo { min-height: 230px; background: linear-gradient(135deg, #102027, #3f786d 52%, #d96c5f); position: relative; }
.food-photo::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #d96c5f 38%, #102027 72%); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.dish-1 { background: linear-gradient(135deg, #102027, #3f786d, #d8ebe6); }
.dish-2 { background: linear-gradient(135deg, #263f48, #d96c5f, #f7dfdc); }
.dish-3 { background: linear-gradient(135deg, #1c3437, #7ca79d, #f1f6f3); }

.menu-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 850; color: var(--muted); cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.menu-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.menu-item.is-hidden { display: none; }

.reservation { padding: 70px 0; background: var(--text); color: #fff; }
.reservation-grid { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: center; }
.reservation p { color: rgba(255,255,255,.66); }
.reservation-card { padding: 22px; box-shadow: none; display: grid; gap: 12px; }
.small-note { font-size: 0.9rem; margin: 0; color: var(--muted) !important; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: 28px; box-shadow: none; }
.hours-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hours-list li { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.hours-list li.is-today { color: var(--brand); font-weight: 900; }
.address { font-weight: 850; font-size: 1.16rem; }
.map-card { min-height: 230px; border: 1px dashed rgba(16,32,39,.32); border-radius: 18px; background: linear-gradient(135deg, #dfeae6, #f8fbf9); display: grid; place-items: center; text-align: center; color: var(--muted); margin-top: 20px; }
.map-card span { display: block; font-weight: 900; color: var(--text); }
.map-card small { display: block; }

.review-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 34px; align-items: center; }
blockquote { margin: 0; font-size: clamp(1.35rem, 3vw, 2.25rem); line-height: 1.18; letter-spacing: -0.035em; }
cite { display: block; font-style: normal; color: var(--muted); font-size: 1rem; margin-top: 18px; letter-spacing: 0; }

.site-footer { padding: 48px 0; background: #0f1b20; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.footer-grid p { color: rgba(255,255,255,.62); margin-bottom: 0; }
.footer-brand { margin-bottom: 16px; }
code { background: rgba(255,255,255,.12); padding: 2px 5px; border-radius: 6px; }

@media (max-width: 900px) {
  .preview-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-banner-actions {
    width: 100%;
  }

  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 76px; display: none; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .hero-editorial { min-height: auto; padding: 56px 0 34px; }
  .hero-editorial-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-kicker { align-self: auto; }
  .reservation-float { max-width: 520px; }
  .menu-heading, .reservation-grid, .split-grid, .review-grid { grid-template-columns: 1fr; }
  .strip-grid, .featured-grid, .menu-list, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--container)); }
  .hero-editorial { padding-top: 40px; }
  .hero-kicker { display: none; }
  h1 { font-size: clamp(3.55rem, 19vw, 5.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-details div { display: block; }
  .hero-details dd { text-align: left; margin-top: 3px; }
  .strip-grid, .featured-grid, .menu-list, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
