/* ══════════════════════════════════════════════════════
   Mother Anna's Ristorante & Bar — Pembroke, MA
   ══════════════════════════════════════════════════════ */

:root {
  --wine:       #6B1A2A;
  --wine-dark:  #4D1020;
  --wine-light: #8B2E40;
  --gold:       #C4953A;
  --gold-light: #DDB96A;
  --cream:      #FAF7EF;
  --cream-dark: #F0EAD8;
  --dark:       #1A0D0D;
  --dark2:      #120808;
  --text:       #2C1810;
  --mid:        #7A6352;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── Typography helpers ── */
.section-eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-heading {
  font-family: 'Cormorant Garant', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--wine-dark);
  margin-bottom: 1.2rem;
}
.section-heading.light { color: #fff; }
.section-heading em { color: var(--gold); font-style: italic; }
.section-heading.light em { color: var(--gold-light); }

.body-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 1.1rem;
}

/* ── Ornamental dividers ── */
.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}
.ornament-line span {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.55);
}
.ornament-diamond {
  font-size: 0.55rem;
  color: var(--gold-light);
}

.ornament-short {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1.6rem;
}
.ornament-short.light {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin-bottom: 1.6rem;
}

/* ── Buttons ── */
.btn-gold-solid {
  background: var(--gold);
  color: var(--dark);
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}
.btn-gold-solid:hover { background: var(--gold-light); color: var(--dark); transform: translateY(-1px); }

.btn-outline-cream {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.8rem;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline-cream:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

.btn-reserve {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-reserve:hover { background: var(--gold); color: var(--dark); }

/* ══════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════ */
#mainNav {
  background: rgba(26, 13, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(196,149,58,0.15);
  transition: background 0.35s, box-shadow 0.35s;
}
#mainNav.nav-scrolled {
  background: rgba(26, 13, 13, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.nav-logo {
  border-radius: 3px;
  filter: brightness(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#mainNav .nav-link {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0.7rem;
  transition: color 0.2s;
}
#mainNav .nav-link:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2.5rem 2rem;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 700px;
  width: 90%;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: 'Cormorant Garant', serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-family: 'Cormorant Garant', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-tagline {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 0;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

/* ══════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════ */
.section-about {
  padding: 6rem 0;
  background: var(--cream);
}

.about-stats {
  border-top: 1px solid var(--cream-dark);
  padding-top: 1.5rem;
}
.stat-block { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Cormorant Garant', serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--wine);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  background: var(--cream-dark);
  align-self: stretch;
}

.about-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.about-photo-frame {
  position: relative;
  padding: 0.75rem;
  background: var(--cream-dark);
  border: 1px solid rgba(196,149,58,0.2);
}

/* Historical B&W founder photo — show face (top of portrait) */
.about-portrait-founder {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) contrast(1.08);
}

/* Alan's modern colour portrait */
.about-portrait-alan {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-photo-caption {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.6rem;
  font-family: 'Jost', sans-serif;
  line-height: 1.4;
}

@media (max-width: 575px) {
  .about-duo { grid-template-columns: 1fr; }
  .about-portrait-founder,
  .about-portrait-alan { height: 280px; }
}

/* ══════════════════════════════════════════════════════
   DINING
   ══════════════════════════════════════════════════════ */
.section-dining {
  background: var(--dark);
  padding-bottom: 0;
}
.section-dining .container-fluid { padding-top: 5rem; }

.dining-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 460px;
}

.dining-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dining-card--accent {
  background: linear-gradient(145deg, var(--wine-dark) 0%, var(--wine) 60%, var(--wine-light) 100%);
  align-items: center;
  justify-content: center;
}
.dining-card--accent .dining-card-inner { text-align: center; }

.dining-card--photo {
  background-size: cover;
  background-position: center;
}

.dining-card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,2,2,0.85) 0%, rgba(10,2,2,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.dining-card-inner {
  padding: 2.5rem 2rem;
  width: 100%;
}

.dining-icon {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.dining-card-title {
  font-family: 'Cormorant Garant', serif;
  font-weight: 600;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.7rem;
}

.dining-card-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.dining-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}
.dining-link:hover { color: #fff; }

@media (max-width: 767px) {
  .dining-grid { grid-template-columns: 1fr; }
  .dining-card { min-height: 300px; }
  .dining-card--photo .dining-card-photo-overlay { padding: 1.5rem; }
}

/* ══════════════════════════════════════════════════════
   MENU
   ══════════════════════════════════════════════════════ */
.section-menu {
  padding: 5.5rem 0;
  background: #fff;
}

.menu-tabs {
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-tab {
  background: transparent;
  border: 1px solid var(--cream-dark);
  color: var(--mid);
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.menu-tab:hover { border-color: var(--wine); color: var(--wine); }
.menu-tab.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.menu-note {
  font-size: 0.85rem;
  color: var(--mid);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Force single-column layout inside menu — the two-column Bootstrap split
   causes prices at the right of col-1 to visually fuse with names at the
   left of col-2 when there is no gutter between them. */
.section-menu .tab-pane .col-md-6 {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.menu-category-heading {
  font-family: 'Cormorant Garant', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--wine);
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 0.5rem;
  margin: 2rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.menu-cat-note {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.05em;
  font-style: normal;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream);
}
.menu-item:last-child { border-bottom: none; }

.mi-name {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Cormorant Garant', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.mi-desc {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.5;
  margin-top: 0.1rem;
}
.mi-desc:empty { display: none; }

.mi-price {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 2px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--wine);
  white-space: nowrap;
  text-align: right;
}

/* ══════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════ */
.section-gallery {
  background: var(--dark2);
  padding: 5rem 0 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.gallery-cell {
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-cell:hover img { transform: scale(1.04); }

@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════
   CATERING
   ══════════════════════════════════════════════════════ */
.section-catering { padding: 0; }

.catering-banner {
  position: relative;
  background: var(--dark2);
  padding: 5rem 0;
}

/* Subtle photo strip at the very top of catering, behind heading only */
.catering-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/gallery7.webp');
  background-size: cover;
  background-position: center top;
  opacity: 0.12;
  pointer-events: none;
}

.catering-banner > .container { position: relative; z-index: 1; }

.catering-lead {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.catering-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.catering-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.catering-table th {
  background: rgba(196,149,58,0.2);
  color: var(--gold-light);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(196,149,58,0.3);
  text-align: left;
}
.catering-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  text-align: left;
}
.catering-table tr:hover td { background: rgba(255,255,255,0.04); }

/* ══════════════════════════════════════════════════════
   LOCATION
   ══════════════════════════════════════════════════════ */
.section-location {
  padding: 5.5rem 0;
  background: var(--cream);
}

.location-card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.location-icon {
  width: 36px;
  height: 36px;
  background: var(--wine);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border-radius: 2px;
  margin-top: 0.15rem;
}

.location-label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.location-value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0;
}
.location-value a { color: var(--wine); text-decoration: none; }
.location-value a:hover { color: var(--wine-light); }

.hours-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.hours-table td { padding: 0.25rem 0.5rem 0.25rem 0; vertical-align: top; color: var(--text); }
.hours-table td:first-child { color: var(--mid); min-width: 120px; }
.hours-val { font-weight: 500; }

.location-photo-wrap { margin-top: auto; }
.location-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.map-frame {
  height: 100%;
  min-height: 400px;
  border: 1px solid var(--cream-dark);
  border-radius: 2px;
  overflow: hidden;
}
.map-frame iframe { display: block; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark2);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(196,149,58,0.18);
}

.footer-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}
.footer-sub {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.footer-addr {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.footer-phone { color: var(--gold-light); text-decoration: none; }
.footer-phone:hover { color: #fff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }

.footer-tagline {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 0;
}

.powered-by a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  margin-top: 0.5rem;
}
.powered-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  line-height: 1;
}
.powered-brand {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.powered-by a:hover .powered-brand { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 3rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .about-portrait { height: 400px; }
  .section-about { padding: 4rem 0; }
  .section-dining .container-fluid { padding-top: 4rem; }
  .section-menu, .section-location { padding: 4rem 0; }
  .powered-by a { align-items: flex-start; }
}

@media (max-width: 767px) {
  .section-heading { font-size: 2rem; }

  .location-card { padding: 1.5rem; }
  .map-frame { min-height: 300px; }

  .footer-links { gap: 0.3rem 1rem; }
  .powered-by a { align-items: center; }

  .catering-banner { padding: 3.5rem 0; }
}

@media (max-width: 575px) {
  .hero-content { padding: 2rem 1.25rem; }
  .stat-divider { display: none; }
  .about-stats { gap: 1rem; }
}
