/* ============================================================
   HEARTH — Family Restaurant Template
   Warm, personal, heritage feel. Zero corporate.
   Theme set via config.js → CSS custom properties.
   ============================================================ */

/* ── CUSTOM PROPERTIES ────────────────────────────────────── */
:root {
  --primary:      #8B3A3A;
  --primary-dark: #6B2A2A;
  --accent:       #C4733B;
  --bg:           #FAF3E8;
  --surface:      #FFFFFF;
  --dark:         #1C0F0A;
  --text:         #2C1810;
  --muted:        #8A6E5A;
  --border:       #E8D8C8;
  --font-head:    'Lora', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --info-h:       40px;
  --nav-h:        72px;
  --total-top:    calc(var(--info-h) + var(--nav-h));
  --pad-x:        clamp(1.5rem, 5vw, 4rem);
  --pad-y:        clamp(4rem, 8vw, 7rem);
  --max-w:        1180px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --dur:          0.35s;
  --shadow-sm:    0 1px 4px rgba(44,24,16,0.07);
  --shadow-md:    0 4px 18px rgba(44,24,16,0.11);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }
figure { margin: 0; }

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.section-header { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-header--center { text-align: center; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.88rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: white;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
/* Call button — the most important action on the whole site */
.btn--call {
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.25rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(139,58,58,0.3);
  transition: all var(--dur) var(--ease);
}
.btn--call:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139,58,58,0.4);
}
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  padding: 0.95rem 2rem;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}
.btn--outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: white; }

/* ═══════════════════════════════════════════════════════════
   INFO BAR
═══════════════════════════════════════════════════════════ */
.info-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--info-h);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  flex-wrap: wrap;
  justify-content: center;
}
.info-bar__item { display: flex; align-items: center; gap: 0.4rem; }
.info-bar__sep  { opacity: 0.3; }
.info-bar__phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  font-weight: 600;
  transition: opacity 0.25s;
}
.info-bar__phone:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: var(--info-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(250,243,232,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  font-style: italic;
}
.nav__links {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--dark); }
.nav__call {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.52rem 1.25rem;
  transition: all 0.25s;
}
.nav__call:hover { background: var(--primary); color: white; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav__hamburger span {
  height: 1.5px;
  background: var(--dark);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.48s var(--ease);
}
.mobile-menu:not([hidden]) { transform: translateX(0); }
.mobile-menu[hidden] { display: flex !important; }
.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: var(--pad-x);
  font-size: 1.4rem;
  color: var(--muted);
}
.mobile-menu__name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
}
.mobile-menu ul { text-align: center; }
.mobile-menu ul li + li { margin-top: 1.25rem; }
.mobile-menu ul a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  transition: color 0.25s;
}
.mobile-menu ul a:hover { color: var(--primary); }
.mobile-call-btn { margin-top: 0.5rem; }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--total-top);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 10s ease;
}
.hero:hover .hero__bg { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28,15,10,0.82) 0%,
    rgba(28,15,10,0.5)  50%,
    rgba(28,15,10,0.2)  100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem var(--pad-x) 3rem;
  max-width: 680px;
  animation: heroIn 1s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.hero__badge[hidden] { display: none; }
.hero__badge {
  display: inline-block;
  border: 1px solid rgba(196,115,59,0.6);
  color: #E8A87C;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}
.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: white;
  white-space: pre-line;
  margin-bottom: 1.4rem;
}
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   SPECIAL BAR
═══════════════════════════════════════════════════════════ */
.special-bar {
  background: var(--accent);
  padding: 1rem 0;
  color: white;
}
.special-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.special-bar__left { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.special-bar__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  flex-shrink: 0;
}
.special-bar__dish { font-family: var(--font-head); font-size: 1.05rem; font-style: italic; }
.special-bar__desc { font-size: 0.84rem; opacity: 0.85; }
.special-bar__price {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   MENU
═══════════════════════════════════════════════════════════ */
.menu-section { padding: var(--pad-y) 0; }
.menu__note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.6rem;
}
.menu__order-btn { margin: 1.5rem 0 2rem; }

/* When the toggle is present, JS wraps the btn in .menu-controls */
.menu-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}
.menu-controls .menu__order-btn { margin: 0; }
.menu-toggle {
  display: inline-flex;
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.menu-toggle__btn {
  padding: 0.65rem 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.menu-toggle__btn--active {
  background: var(--primary);
  color: white;
}

.menu__pdf-wrap { margin-bottom: 2rem; }
.menu__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu__tabs::-webkit-scrollbar { display: none; }
.menu__tab {
  padding: 0.85rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}
.menu__tab:hover { color: var(--dark); }
.menu__tab[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.menu__panel { display: none; }
.menu__panel[aria-hidden="false"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3.5rem;
}
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--border);
}
.menu-row:last-child { border-bottom: none; }
.menu-row__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.menu-row__desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.menu-row__price {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   STORY
═══════════════════════════════════════════════════════════ */
.story {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 600px;
  background: var(--surface);
}
.story__image-col {
  overflow: hidden;
  position: relative;
}
.story__image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.story:hover .story__image-col img { transform: scale(1.03); }
.story__image-col figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(28,15,10,0.75), transparent);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-style: italic;
  padding: 2rem 1.5rem 1rem;
}
.story__content-col {
  padding: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story__content-col .section-title { margin-bottom: 1.75rem; }
.story__body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.9;
}
.story__body p + p { margin-top: 1.1rem; }
.story__callout {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 2rem;
  line-height: 1.55;
}
.story__callout-by {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
  margin-top: 0.6rem;
  padding-left: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.gallery { padding: var(--pad-y) 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 0.75rem;
}
.gallery__item {
  overflow: hidden;
  cursor: pointer;
}
.gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 1;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }

/* ═══════════════════════════════════════════════════════════
   REVIEWS
═══════════════════════════════════════════════════════════ */
.reviews { padding: var(--pad-y) 0; background: var(--dark); }
.reviews .section-label { color: var(--accent); }
.reviews .section-title { color: white; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  transition: border-color 0.25s;
}
.review-card:hover { border-color: rgba(196,115,59,0.35); }
.review-text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.review-text::before { content: '\201C'; color: var(--accent); font-size: 1.5rem; line-height: 0; vertical-align: -0.4rem; margin-right: 0.1rem; }
.review-text::after  { content: '\201D'; color: var(--accent); font-size: 1.5rem; line-height: 0; vertical-align: -0.4rem; margin-left: 0.1rem;  }
.review-author { font-size: 0.85rem; font-weight: 600; color: white; margin-bottom: 0.2rem; }
.review-since  { font-size: 0.72rem; color: rgba(255,255,255,0.4); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   LOCATION
═══════════════════════════════════════════════════════════ */
.location { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.location__map {
  background: #c8b89a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.location__map iframe { width: 100%; height: 100%; border: none; }
.location__map-placeholder {
  text-align: center;
  padding: 3rem;
}
.map-dot { font-size: 3rem; display: block; margin-bottom: 1rem; }
.location__map-placeholder p { font-size: 0.9rem; color: var(--dark); margin-bottom: 1rem; }
.map-directions {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
  transition: opacity 0.25s;
}
.map-directions:hover { opacity: 0.7; }
.location__info {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location__info .section-title { margin-bottom: 2rem; }
.location__contact { margin-bottom: 2rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-icon { color: var(--accent); flex-shrink: 0; }
.contact-text { color: var(--muted); }
.contact-text a { color: var(--muted); transition: color 0.25s; }
.contact-text a:hover { color: var(--dark); }
.hours-title {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hours-list { margin-bottom: 1.5rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day  { color: var(--muted); }
.hours-row .time { font-weight: 600; }
.hours-row.closed .time { color: var(--muted); font-weight: 400; }
.location__note {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.location__big-call {
  align-self: flex-start;
  font-size: 1rem;
  padding: 1rem 2rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.75rem;
}
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer__name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: white;
  margin-bottom: 0.35rem;
}
.footer__est { font-size: 0.78rem; color: rgba(255,255,255,0.38); margin-bottom: 1.25rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 1px;
}
.footer__social a:hover { color: white; border-color: white; }
.footer__nav h4,
.footer__contact-block h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.footer__nav ul li + li { margin-top: 0.65rem; }
.footer__nav a { font-size: 0.86rem; color: rgba(255,255,255,0.6); transition: color 0.25s; }
.footer__nav a:hover { color: white; }
.footer__contact-block > div {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.footer__contact-block a { transition: color 0.25s; }
.footer__contact-block a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .story                  { grid-template-columns: 1fr; }
  .story__image-col       { min-height: 380px; max-height: 460px; }
  .reviews__grid          { grid-template-columns: repeat(2, 1fr); }
  .footer__main           { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --total-top: var(--nav-h); }
  .nav__links, .nav__call { display: none; }
  .nav__hamburger         { display: flex; }
  .info-bar               { display: none; }

  .menu__panel[aria-hidden="false"] { grid-template-columns: 1fr; }
  .gallery__grid          { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery__item:first-child { grid-column: span 2; }
  .location               { grid-template-columns: 1fr; }
  .location__map          { min-height: 260px; }
  .footer__main           { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 540px) {
  .hero__actions          { flex-direction: column; }
  .reviews__grid          { grid-template-columns: 1fr; }
  .gallery__grid          { grid-template-columns: 1fr; }
  .gallery__item:first-child { grid-column: span 1; }
  .footer__bottom         { flex-direction: column; align-items: flex-start; }
}
