/* ============================================
   Dukes' Beach House — Marshfield, MA
   Palette: Deep Navy · Warm Sand · Crimson
   Fonts: Cormorant Garamond + Jost
   ============================================ */

:root {
  --navy:    #1b2d4a;
  --navy-dk: #111d30;
  --sand:    #f5edd6;
  --crimson: #8b1a1a;
  --crimson-lt: #b32020;
  --off-white: #faf8f4;
  --text:    #1a1a1a;
  --muted:   #6b6457;
  --border:  rgba(139,26,26,0.15);
}

/* ---- 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(--off-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

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

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(17, 29, 48, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.85rem 0;
  transition: background 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid rgba(245, 237, 214, 0.08);
}

#mainNav.scrolled {
  background: rgba(17, 29, 48, 0.98);
  padding: 0.55rem 0;
}

.navbar-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sand) !important;
  letter-spacing: 0.02em;
}

.nav-link {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 237, 214, 0.82) !important;
  padding: 0.4rem 0.85rem !important;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--sand) !important; }

.nav-cta {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(245, 237, 214, 0.5);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-cta:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

.navbar-toggler {
  border-color: rgba(245, 237, 214, 0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245,237,214,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center 40% / cover no-repeat;
  color: #fff;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2.5rem 2rem;
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 4px;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  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 Garamond', serif;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1.2rem;
  color: #fff;
  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: 'Jost', sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.6rem;
  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: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-style: italic;
  color: rgba(245, 237, 214, 0.88);
  margin-bottom: 2rem;
  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);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--crimson);
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  border: 2px solid var(--crimson);
  transition: all 0.25s;
}

.btn-hero-primary:hover {
  background: var(--crimson-lt);
  border-color: var(--crimson-lt);
  color: #fff;
}

.btn-hero-outline {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--sand);
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  border: 2px solid rgba(245,237,214,0.6);
  transition: all 0.25s;
}

.btn-hero-outline:hover {
  background: rgba(245,237,214,0.15);
  border-color: var(--sand);
  color: var(--sand);
}

/* ---- PILLARS ---- */
.pillars-section { background: var(--navy); }

.pillar {
  padding: 3.5rem 2.5rem;
  border-right: 1px solid rgba(245,237,214,0.08);
}

.pillar:last-child { border-right: none; }

.pillar--dark {
  background: var(--crimson);
}

.pillar-inner {
  text-align: center;
}

.pillar-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(245,237,214,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pillar--dark .pillar-num { color: rgba(255,255,255,0.2); }

.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,237,214,0.72);
  margin: 0;
}

/* ---- SECTION COMMON ---- */
.section-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}

.section-eyebrow--light { color: rgba(245,237,214,0.6); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.section-title--light { color: var(--sand); }

.section-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 0;
}

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

.menu-header {
  margin-bottom: 3.5rem;
}

.menu-cat {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.menu-cat:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.menu-cat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-cat-title span {
  position: relative;
}

.menu-cat-title span::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--crimson);
  margin-top: 4px;
}

.menu-cat--raw { background: var(--sand); padding: 2rem; border-radius: 4px; margin-bottom: 3rem; border: none; }
.menu-cat--raw .menu-cat-title { color: var(--navy); }

.raw-bar-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--crimson);
  margin-bottom: 1.25rem;
}

.mi-wrap { padding: 0 0.5rem; }

.mi {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.mi-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.mi-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.mi-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(0,0,0,0.2);
  margin: 0 0.4rem;
  position: relative;
  top: -4px;
}

.mi-price {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--crimson);
  white-space: nowrap;
}

.mi-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

.salad-adds {
  padding: 1rem 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.adds-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.add-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  background: rgba(27,45,74,0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* ---- GALLERY ---- */
.gallery-section {
  background: var(--off-white);
  padding: 4rem 0 0;
}

.gallery-header {
  padding: 0 1rem 2.5rem;
}

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

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

.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); }

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(17,29,48,0.85) 0%, transparent 100%);
  color: var(--sand);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1.5rem 1.25rem 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-cell:hover .gallery-label { opacity: 1; }

/* ---- PRIVATE EVENTS ---- */
.events-section {
  background: var(--navy);
  padding: 5.5rem 0;
}

.events-body {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245,237,214,0.78);
  margin-bottom: 1rem;
}

.events-body a {
  color: var(--sand);
  border-bottom: 1px solid rgba(245,237,214,0.4);
  transition: border-color 0.2s;
}

.events-body a:hover { border-color: var(--sand); }

.btn-events {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--sand);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: all 0.25s;
}

.btn-events:hover {
  background: #fff;
  color: var(--navy);
}

.events-quote-block {
  background: rgba(245,237,214,0.06);
  border: 1px solid rgba(245,237,214,0.15);
  padding: 2.5rem;
  border-radius: 4px;
}

.events-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--sand);
  line-height: 1.5;
  margin: 0 0 2rem;
  padding: 0;
  border: none;
}

.events-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(245,237,214,0.1);
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
}

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

.event-detail strong {
  color: var(--sand);
  font-weight: 500;
}

.event-detail span {
  color: rgba(245,237,214,0.6);
  font-weight: 300;
}

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

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.loc-block p, .loc-block a {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.loc-block a:hover { color: var(--crimson); }

.loc-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.4rem;
}

.hours-table {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.35rem 0;
  vertical-align: top;
  color: var(--text);
  font-weight: 300;
  line-height: 1.5;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--navy);
  padding-right: 1.5rem;
  white-space: nowrap;
}

.loc-socials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--navy);
  transition: color 0.2s;
}

.social-link:hover { color: var(--crimson); }

.map-wrap {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(17,29,48,0.12);
}

.map-wrap iframe { display: block; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy-dk);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245,237,214,0.08);
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 90px;
  height: auto;
  border-radius: 4px;
}

.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(245,237,214,0.55);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,237,214,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--sand); }

.footer-powered {
  text-align: right;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(245,237,214,0.45);
  line-height: 1.6;
  margin: 0;
}

.footer-powered a {
  color: rgba(245,237,214,0.7);
  font-weight: 500;
  border-bottom: 1px solid rgba(245,237,214,0.25);
  transition: all 0.2s;
}

.footer-powered a:hover {
  color: var(--sand);
  border-color: var(--sand);
}

.footer-copy {
  text-align: center;
}

.footer-copy p {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(245,237,214,0.3);
  margin: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .pillar { border-right: none; border-bottom: 1px solid rgba(245,237,214,0.08); }
  .pillar:last-child { border-bottom: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-powered { text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-cell { aspect-ratio: 16/9; }
  .gallery-label { opacity: 1; }

  .hero-title { font-size: 3.2rem; }

  .events-quote-block { margin-top: 1.5rem; }

  .events-section .row { gap: 2rem !important; }

  .pillar { padding: 2.5rem 1.5rem; }

  .mi-wrap { padding: 0; }
}

@media (max-width: 576px) {
  .hero-content { padding: 2rem 1.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 280px; text-align: center; }
  .menu-section { padding: 3.5rem 0; }
  .events-section { padding: 3.5rem 0; }
  .location-section { padding: 3.5rem 0; }

  .hours-table td:first-child { white-space: normal; }

  .nav-cta { display: none; }
}
