/* ============================================================
   Gilbert's 17th Street Grill — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&display=swap');

:root {
  --red:        #A31F1B;
  --red-dark:   #7e1714;
  --cream:      #FEFAE0;
  --light-gray: #F6F6F6;
  --white:      #FFFFFF;
  --black:      #111111;
  --text:       #333333;
  --muted:      #666666;

  --font-script: 'Dancing Script', cursive;
  --font-body:   'Times New Roman', Times, serif;
  --font-nav:    Arial, Helvetica, sans-serif;

  --nav-h: 72px;
  --max-w: 1100px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 2px solid var(--red);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img {
  height: 62px;
  width: auto;
  /* keep white-bg logo crisp on white nav */
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover,
.nav-link.active { background: var(--red); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 41px; height: 41px;
  background: none;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}
/* Animated X — bars move to center then rotate (gap 5px + half bar = 8px) */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Page offset for fixed nav ───────────────────────────── */
main { padding-top: var(--nav-h); }

/* ── Hero Slideshow ──────────────────────────────────────── */
.slideshow {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #131519;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.6);
  transform: scale(1.2);
  z-index: 0;
}
.slide img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

/* Text/buttons reused by welcome section below slideshow */
.hero-body {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); }

/* ── Section shared styles ───────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-header { text-align: center; margin-bottom: 2.75rem; }
.section-label {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--red);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}
.section-divider {
  width: 56px; height: 3px;
  background: var(--red);
  margin: 0.9rem auto 0;
  border-radius: 2px;
}

/* ── Welcome / Intro (below slideshow) ───────────────────── */
.welcome-section {
  background: var(--white);
  padding: 3.5rem 1.5rem;
}
.welcome-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: var(--text);
  position: relative;
  padding: 3rem 2.5rem;
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 0 0 6px rgba(254, 250, 224, 0.6);
  /* warm cream base + very faint dot grid */
  background-color: var(--cream);
  background-image: radial-gradient(rgba(163, 31, 27, 0.07) 1px, transparent 1.4px);
  background-size: 16px 16px;
}
/* small decorative diamond accents top & bottom */
.welcome-content::before,
.welcome-content::after {
  content: "\25C6";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--red);
  background: var(--cream);
  font-size: 14px;
  line-height: 1;
  padding: 0 10px;
}
.welcome-content::before { top: -9px; }
.welcome-content::after  { bottom: -9px; }
.welcome-content .hero-body { color: var(--text); }
/* btn-outline sits on the card here — give it brand-red contrast */
.welcome-content .btn-outline { color: var(--red); border-color: var(--red); }
.welcome-content .btn-outline:hover { background: var(--red); color: var(--white); }

/* ── Partners ────────────────────────────────────────────── */
.partners-section { background: var(--light-gray); padding: 2.5rem 0; }
.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.partner-badge:hover { background: var(--red); color: var(--white); }
.partner-badge svg { flex-shrink: 0; }
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s var(--ease);
}
.partner-logo:hover img { transform: scale(1.05); }
/* clip the water-taxi logo to a circle so its white square corners don't show */
.partner-logo-circle { border-radius: 50%; }
/* partner logos placed inside the reviews section, above the cards */
.partners-grid--inline { margin-bottom: 3.5rem; }

/* red "rubber stamp" phrase under the Burger Beast logo */
.partner-logo--bb { position: relative; overflow: visible; }
.press-stamp {
  position: absolute;
  left: -42px;
  bottom: -40px;
  transform: rotate(-9deg);
  font-family: var(--font-nav);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 4px;
  padding: 4px 8px;
  opacity: 0.78;
  background: transparent;
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .press-stamp { left: -20px; bottom: -36px; font-size: 0.5rem; }
}

/* ── Reviews Section ─────────────────────────────────────── */
.reviews-section { background: var(--light-gray); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid rgba(163, 31, 27, 0.15);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}
.review-quote {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}
.review-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-nav);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}
.review-source svg { flex-shrink: 0; }

/* ── Social Strip ────────────────────────────────────────── */
.social-strip { background: var(--white); padding: 2.5rem 0; }
.social-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social-heading {
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-icons {
  display: flex;
  gap: 1.25rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}
.social-icon:hover { background: var(--red-dark); transform: scale(1.1); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  position: relative;
  color: var(--white);
  background-color: var(--red);
  /* faint dot texture over the red */
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.4px);
  background-size: 16px 16px;
}
.footer-main {
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.footer-col h4 {
  font-family: var(--font-script);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.footer-col p, .footer-col address {
  font-size: 0.9rem;
  line-height: 1.8;
  font-style: normal;
  opacity: 0.88;
}
.footer-col a {
  opacity: 0.88;
  transition: opacity 0.2s;
  background-image: linear-gradient(var(--cream), var(--cream));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: opacity 0.2s, background-size 0.25s var(--ease);
}
.footer-col a:hover { opacity: 1; background-size: 100% 1px; }
.footer-taglines li {
  font-size: 0.88rem;
  opacity: 0.9;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
/* diamond bullets */
.footer-taglines li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-size: 0.7rem;
  color: var(--cream);
  opacity: 0.85;
}
.footer-taglines li:last-child { border-bottom: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 1rem 0;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}
.page-hero-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
}
.page-hero-sub {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.85;
  font-style: italic;
}

/* ── Menu Cards ──────────────────────────────────────────── */
.menu-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.menu-card {
  background: var(--cream);
  border: 1px solid #d6c98a;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.menu-section-heading {
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  position: relative;
}
.menu-section-heading:first-child { margin-top: 0; }
/* Decorative three-part divider: line — diamond — line */
.menu-section-heading::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
}
.menu-section-heading::before {
  content: "\25C6"; /* ◆ */
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  font-size: 12px;
  line-height: 1;
  color: var(--red);
  background: var(--cream);
  padding: 0 8px;
  z-index: 1;
}
.menu-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.menu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.menu-table tr {
  border-bottom: 1px solid rgba(163,31,27,0.1);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.menu-table tr:last-child { border-bottom: none; }
.menu-table tr:hover {
  background-color: rgba(163, 31, 27, 0.05);
  border-bottom-color: rgba(163, 31, 27, 0.4);
}
.menu-table td { padding: 0.5rem 0.4rem; vertical-align: top; }
.menu-table .item-name {
  font-weight: 700;
  width: 40%;
  transition: transform 200ms ease;
}
.menu-table tr:hover .item-name { transform: translateX(4px); }
.menu-table .item-desc { color: var(--muted); font-size: 0.88rem; }
.menu-table .item-price {
  text-align: right;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  width: 70px;
}
.menu-addons {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-style: italic;
}
.menu-sides-list {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.dressings-list {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}
.payment-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.payment-badge {
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}
.food-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ── Food photo strips (Menu + About) ────────────────────── */
.menu-photos,
.about-photos {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.menu-photos { grid-template-columns: repeat(4, 1fr); }
.about-photos { grid-template-columns: repeat(3, 1fr); }
.about-photos--single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.about-photos--single img { height: 320px; }
.menu-photos img,
.about-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.menu-photos img:hover,
.about-photos img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .menu-photos { grid-template-columns: 1fr 1fr; }
  .about-photos { grid-template-columns: 1fr 1fr; }
  .menu-photos img,
  .about-photos img { height: 150px; }
}

/* ── About Page ──────────────────────────────────────────── */
.about-photo {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.about-body p { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.8; }
.about-sidebar {
  background: var(--cream);
  border: 1px solid #d6c98a;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.sidebar-title {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 1rem;
}
.sidebar-info p, .sidebar-info address {
  font-size: 0.9rem;
  line-height: 1.8;
  font-style: normal;
  color: var(--text);
}
.sidebar-info a { color: var(--red); }
.sidebar-info a:hover { text-decoration: underline; }
/* keep social-icon glyphs white on their red circle */
.sidebar-info a.social-icon { color: var(--white); }
.sidebar-info a.social-icon:hover { text-decoration: none; }
/* keep the primary button's label white (sidebar link rule was hiding it) */
.sidebar-info a.btn-primary { color: var(--white); }
.sidebar-info a.btn-primary:hover { text-decoration: none; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 0 0.5rem;
  margin-bottom: 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--light-gray);
}
.gallery-thumb {
  flex-shrink: 0;
  width: 160px; height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb:hover { border-color: var(--red); transform: scale(1.03); }

/* ── Location Page ───────────────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.directions-block h3 {
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}
.directions-block h3:first-child { margin-top: 0; }
.directions-block p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.5rem; }
.map-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow);
}
.map-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ── Fade-in animation ───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Page transition overlay ─────────────────────────────── */
#pageOverlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 1;
  z-index: 9999;
  pointer-events: none;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .social-icon:hover { transform: none; }
  .gallery-thumb:hover { transform: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 2px solid var(--red);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.65rem 0.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .reviews-grid { grid-template-columns: 1fr; gap: 1rem; }

  .about-grid,
  .location-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }

  .menu-card { padding: 1.5rem; }
  .menu-table .item-desc { display: none; }

  .slideshow { height: 300px; }
}

@media (max-width: 480px) {
  .partners-grid { gap: 1.5rem; }
}
