/* Perino's Boiling Pot — shared stylesheet
   Same visual identity as the legacy site (canvas texture, brown/tan palette,
   orange links, cream accent text) rebuilt with flexbox/grid + media queries. */

:root {
  --color-bg-canvas: #A07C63;
  --color-panel: #FBF6EC;
  --color-panel-border: #493618;
  --color-text: #2B1E12;
  --color-accent-cream: #E2D0B8;
  --color-link: #FF9500;
  --color-link-hover: #F9C384;
  --color-header-bg: #3a2a1c;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-canvas) url("images/canvas.jpg") repeat top center;
}

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

a:link, a:visited { color: var(--color-link); text-decoration: none; }
a:hover, a:active { color: var(--color-link-hover); text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar (address / phone) ---------- */

.top-bar {
  background: #2b1e12;
  border-bottom: 1px solid #1a1109;
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 32px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent-cream);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.top-bar-item:hover {
  color: #fff;
  text-decoration: underline;
}
.top-bar-icon {
  font-size: 13px;
}

@media (max-width: 480px) {
  .top-bar-inner { gap: 2px 20px; padding: 6px 16px; }
  .top-bar-item { font-size: 12px; white-space: normal; text-align: center; }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-header-bg) url("images/sub.jpg") repeat-x top center;
  border-bottom: 4px solid #2b1e12;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  width: 220px;
  max-width: 40vw;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--color-accent-cream);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  margin: 0 7px;
  background: var(--color-accent-cream);
  border-radius: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  transition: color 0.18s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--color-link);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 780px) {
  .header-inner { position: relative; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 20px;
    width: auto;
    min-width: 230px;
    background: #2b1e12;
    border: 1px solid rgba(226, 208, 184, 0.15);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 60;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .site-nav.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    text-shadow: none;
  }
  .site-nav a::after { display: none; }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 149, 0, 0.22);
  }

  .nav-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 55;
  }
}

@media (min-width: 781px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
}

/* ---------- Hero (home page only) ---------- */

.hero {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 20px;
}
.hero img { border-radius: 6px; }

/* ---------- Layout ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.page-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 700px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-grid .sidebar-ad { order: 2; }
  .page-grid .content-panel { order: 1; }
}

.sidebar-ad img { border-radius: 4px; }

.content-panel {
  background: var(--color-panel);
  border: 1px solid var(--color-panel-border);
  border-radius: 6px;
  padding: 24px 28px;
}

.page-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #3a2a1c;
}

.body-copy p { margin: 0 0 16px; }
.body-copy p:last-child { margin-bottom: 0; }

/* ---------- Contact page ---------- */

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.contact-details > div { flex: 1 1 220px; }

.map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 82%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-panel-border);
}
.map-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-link { display: inline-block; margin-top: 8px; font-size: 13px; }

/* ---------- Menu page ---------- */

.menu-actions {
  margin-bottom: 20px;
}
a.button:link, a.button:visited {
  display: inline-block;
  background: var(--color-link);
  color: #2b1e12;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
}
a.button:hover, a.button:active { background: var(--color-link-hover); color: #2b1e12; text-decoration: none; }

.menu-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) {
  .menu-sections { grid-template-columns: 1fr; }
}

.menu-section { margin-bottom: 28px; }
.menu-section h2 {
  font-size: 20px;
  border-bottom: 2px solid var(--color-panel-border);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.menu-section .note {
  font-size: 13px;
  font-style: italic;
  margin: -6px 0 10px;
  color: #5a4632;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #c9b898;
}
.menu-item .name { flex: 1; }
.menu-item .name small { display: block; font-size: 12px; color: #5a4632; }
.menu-item .price { font-weight: bold; white-space: nowrap; }

.menu-disclaimer {
  font-size: 12px;
  margin-top: 24px;
  color: #5a4632;
}

/* ---------- Testimonials ---------- */

.testimonial { margin-bottom: 20px; }
.testimonial p { margin: 4px 0 0; }
.testimonial .quote-title { display: block; margin-bottom: 2px; }
.testimonial .attribution { display: block; margin-top: 6px; font-size: 14px; }

/* ---------- Photos ---------- */

.gallery-section { margin-bottom: 32px; }
.gallery-section h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 16px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.gallery-grid a {
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  border-radius: 2px;
  overflow: hidden;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border: 4px solid #fff;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer {
  color: var(--color-accent-cream);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  padding: 20px;
}
.site-footer a { color: var(--color-accent-cream); text-decoration: underline; }
