/* =====================================================
   The Knotty Pine Restaurant — Stylesheet
   Mobile-first, plain CSS, no framework/build step
   ===================================================== */

:root {
  --pine: #2F4A3C;
  --pine-dark: #223529;
  --wood: #8B5E3C;
  --wood-dark: #6f4a2f;
  --cream: #FAF6EF;
  --cream-dark: #F0E8D8;
  --charcoal: #2B2B28;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(43, 43, 40, 0.12);
  --shadow-md: 0 8px 24px rgba(43, 43, 40, 0.18);
  --max-width: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; color: var(--pine-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--wood); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--wood-dark); }
.btn--secondary { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--secondary:hover { background: rgba(250, 246, 239, 0.15); }
.btn--call {
  background: var(--pine);
  color: var(--cream);
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn--call:hover { background: var(--pine-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--pine);
  box-shadow: var(--shadow-sm);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__toggle {
  background: transparent;
  border: none;
  width: 36px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}
.nav__menu {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--pine);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.nav__menu.is-open {
  max-height: 320px;
  padding: 20px;
}
.nav__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav__links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}
.nav__links a:hover { text-decoration: underline; }

.nav__social {
  display: flex;
  gap: 16px;
}
.nav__social a {
  color: var(--cream);
  display: inline-flex;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.nav__social a:hover { opacity: 1; }
.footer-social {
  margin-top: 12px;
}
.footer-social a { color: var(--cream-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 53, 41, 0.35) 0%, rgba(34, 53, 41, 0.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 20px 56px;
  max-width: 760px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-dark);
  margin: 0 0 10px;
}
.hero__headline {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 14px;
}
.placeholder-tag {
  background: var(--wood);
  color: var(--cream);
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.6em;
  vertical-align: middle;
}
.hero__sub {
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 26px;
  color: var(--cream-dark);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Info strip ---------- */
.info-strip {
  background: var(--wood);
  color: var(--cream);
}
.info-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .icon { margin-top: 4px; }
.info-item__title {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.info-item p { margin: 0 0 2px; }
.info-item a { text-decoration: underline; color: var(--cream); font-weight: 600; }

/* ---------- Sections shared ---------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px;
}
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wood);
  margin: 0 0 6px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.section-note {
  color: #6b6b63;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ---------- Menu ---------- */
.menu-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--cream-dark);
}
.menu-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #8a8a80;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.menu-tab.is-active,
.menu-tab:hover {
  color: var(--pine);
  border-bottom-color: var(--wood);
}

.menu-panel { display: none; }
.menu-panel.is-active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-group { margin-bottom: 40px; }
.menu-group:last-of-type { margin-bottom: 24px; }
.menu-group-title {
  font-size: 1.3rem;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wood);
  display: inline-block;
}
.menu-group-note {
  font-size: 0.86rem;
  color: #6b6b63;
  font-style: italic;
  margin: 8px 0 18px;
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 40px;
}
@media (min-width: 700px) {
  .menu-list { grid-template-columns: 1fr 1fr; }
}
.menu-item {
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--cream-dark);
}
.menu-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.menu-item h4 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--charcoal);
  font-weight: 600;
  font-family: var(--font-body);
}
.menu-item .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--wood);
  white-space: nowrap;
}
.menu-item p { margin: 4px 0 0; font-size: 0.92rem; color: #666; }
.menu-addons {
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--cream-dark);
  padding: 14px 18px;
  border-radius: var(--radius);
}
.tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--cream-dark);
  color: var(--wood-dark);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
  white-space: nowrap;
}

/* ---------- Gallery ---------- */
.gallery-section { background: var(--cream-dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 800px) {
  .contact-inner { grid-template-columns: 1fr 1fr; }
}
.contact-line { margin: 0 0 10px; }
.contact-line a { color: var(--wood-dark); font-weight: 600; }
.map-embed {
  position: relative;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-dark);
  color: var(--cream-dark);
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
}
.footer-col h2 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-col p { margin: 0 0 4px; font-size: 0.92rem; }
.footer-col a { color: var(--cream-dark); text-decoration: underline; font-size: 0.92rem; }
.footer-copy {
  text-align: center;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  font-size: 0.82rem;
  color: #b9c2ba;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 20, 0.92);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(90vw, 900px);
  max-height: 72vh;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.lightbox__caption {
  color: var(--cream);
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 246, 239, 0.12);
  border: none;
  color: var(--cream);
  font-size: 2.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  line-height: 1;
}
.lightbox__nav:hover { background: rgba(250, 246, 239, 0.25); }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }

/* ---------- Desktop nav layout ---------- */
@media (min-width: 860px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    max-height: none;
    background: none;
    padding: 0;
    gap: 28px;
  }
  .nav__links { flex-direction: row; gap: 26px; }
}
