/* ================================================================
   THE LOFT TAVERN — style.css
   Shared styles for all pages. Edit here; all pages update.
   ================================================================ */

/* ── EDIT: brand colors & fonts ────────────────────────────────── */
:root {
  --barn: #350a08;
  /* dark charcoal — nav, footer bg */
  --amber: #D4891A;
  /* gold accent — buttons, highlights */
  --parch: #F2EDE4;
  /* off-white parchment — page bg */
  --slate: #8A8680;
  /* muted gray — secondary text */
  --snow: #FFFFFF;
  --go: #2E7D32;
  /* open status green */
  --closed: #B03A2E;
  /* closed status red */
  --border: #E0DAD0;
  /* card/divider border color */

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 6px;
  --max-w: 900px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--parch);
  color: var(--barn);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-content {
  min-height: calc(100vh - 56px);
  /* keeps footer at bottom on short pages */
  padding: 2.5rem 0 3.5rem;
}

/* ── NAV ─────────────────────────────────────────────────────────
   To add a page: copy a <li> in the nav HTML of each file.
   ──────────────────────────────────────────────────────────────── */
nav {
  background: var(--barn);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--amber);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  line-height: 0;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  color: var(--parch);
  font-size: .825rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .4rem .7rem;
  opacity: .8;
  transition: opacity .15s, color .15s;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--amber);
}

.nav-links a.active {
  color: var(--amber);
  opacity: 1;
}

.nav-links .gift-cards a {
  background: var(--amber);
  color: var(--barn);
  border-radius: var(--radius);
  opacity: 1;
  margin-left: .5rem;
  padding: .35rem .75rem;
  font-weight: 700;
}

.nav-links .gift-cards a:hover {
  background: #e09820;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--snow);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--barn);
    flex-direction: column;
    padding: .5rem 0 1rem;
    border-bottom: 2px solid var(--amber);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: .75rem 1.5rem;
    font-size: .95rem;
    letter-spacing: .04em;
  }

  .nav-links .gift-cards a {
    margin: .5rem 1.5rem 0;
    display: block;
    text-align: center;
    padding: .6rem 1rem;
  }
}

/* ── SECTION TITLES ─────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--amber);
  margin-bottom: .6rem;
  border-radius: 2px;
}

.section-title.centered {
  text-align: center;
}

.section-title.centered::before {
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  color: var(--slate);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--barn);
}

.btn-primary:hover {
  background: #e09820;
}

.btn-outline {
  border: 1.5px solid var(--amber);
  color: var(--amber);
  background: transparent;
}

.btn-outline:hover {
  background: var(--amber);
  color: var(--barn);
}

/* ── FOOTER ──────────────────────────────────────────────────────
   EDIT: update hours text, address, phone, map iframe, social links
   ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--barn);
  color: var(--parch);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .75rem;
}

.footer-col p,
.footer-col address {
  font-size: .85rem;
  line-height: 1.7;
  opacity: .75;
  font-style: normal;
}

.footer-col a {
  opacity: .75;
  transition: opacity .15s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--amber);
}

.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
  filter: grayscale(30%);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.footer-logo span {
  color: var(--amber);
}

.footer-copy {
  font-size: .78rem;
  opacity: .45;
}

/* ── UTILITY ─────────────────────────────────────────────────────── */
.mt-1 {
  margin-top: .5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.amber {
  color: var(--amber);
}

.muted {
  color: var(--slate);
  font-size: .9rem;
}

/* ── CARD (used on hours page) ───────────────────────────────────── */
.card {
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

/* ── STATUS PILL ─────────────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 500;
  padding: .3rem .8rem;
  border-radius: 99px;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill.open {
  background: #e8f5e9;
  color: var(--go);
}

.status-pill.open .dot {
  background: var(--go);
}

.status-pill.closed {
  background: #fdecea;
  color: var(--closed);
}

.status-pill.closed .dot {
  background: var(--closed);
}

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

/* ── INDEX: IMAGE PANELS ─────────────────────────────────────────
   Four stacked panels: image on top, text below.
   On wider screens (≥600px) they go side-by-side: image left, text right.
   ──────────────────────────────────────────────────────────────── */
.panels {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.panel:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* On wider screens: alternate image left/right */
@media (min-width: 600px) {
  .panel {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  /* Even panels: flip image to the right */
  .panel:nth-child(even) .panel-img,
  .panel:nth-child(even) .panel-img-placeholder {
    order: 2;
  }

  .panel:nth-child(even) .panel-text {
    order: 1;
  }
}

/* Real image — add this class to your <img> tags */
.panel-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Placeholder shown until you add real photos */
.panel-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #2B2017;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A7050;
  font-size: .85rem;
  font-family: var(--font-body);
  letter-spacing: .03em;
  border: 1px dashed #5A4020;
}

.panel-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.panel-text p {
  color: #4A4440;
  font-size: .95rem;
  line-height: 1.7;
}

/* ── MENU EMBED PAGES ────────────────────────────────────────────
   Wrapper for iMenuPro (or any) embed snippet.
   The embed itself fills this container.
   ──────────────────────────────────────────────────────────────── */
.embed-wrap {
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 400px;
}

.embed-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  color: var(--slate);
  font-size: .9rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.embed-placeholder code {
  background: #EDE8DF;
  padding: .25rem .6rem;
  border-radius: 4px;
  font-size: .8rem;
  color: var(--barn);
}

/* ── HOURS PAGE ──────────────────────────────────────────────────── */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.hours-card {
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.hours-card h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .3rem;
}

.hours-card .time {
  font-size: 1.05rem;
  font-weight: 500;
}

.hours-card .note {
  font-size: .8rem;
  color: var(--slate);
  margin-top: .2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 580px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--snow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--amber);
  margin-bottom: .6rem;
}

.info-card p,
.info-card ul {
  font-size: .875rem;
  color: #4A4440;
  line-height: 1.7;
}

.info-card ul {
  padding-left: 1.1rem;
}

.info-card ul li {
  margin-bottom: .25rem;
}

.big-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.big-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}