/*
 * styles.css — Dear Maud (dearmaud.com)
 * Lift-and-shift, restyled to the official brand guide (DM_BRD_GDE_07.2026):
 * Deep Sea + Cream palette with Pink as a spot accent, Cyrene / Baskervville
 * type, Lamar Pen script used sparingly. See MIGRATION.md project notes.
 */

@font-face {
  font-family: 'Cyrene';
  src: url('fonts/Cyrene-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baskervville';
  src: url('fonts/Baskervville-Regular.woff2') format('woff2-variations'),
       url('fonts/Baskervville-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baskervville';
  src: url('fonts/Baskervville-Italic.woff2') format('woff2-variations'),
       url('fonts/Baskervville-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lamar Pen';
  src: url('fonts/LamarPen-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Official brand palette (DM_BRD_GDE_07.2026 — Visual Identity, Color Palette) */
  --green: #11302A;       /* Deep Sea — primary */
  --green-deep: #0A211C;  /* darker shade of Deep Sea, for the footer */
  --cream: #FFF7E7;       /* Cream — page background */
  --cream-soft: #FFFBF3;  /* lighter tint of Cream, for raised surfaces/cards */
  --maud: #300104;        /* Maud — used sparingly, paired with Cream/Pink */
  --pink: #FF7E61;        /* Pink — spot accent only, never a background/large block */
  --sage: #C8D29D;        /* Sage — soft secondary accent */

  --line: rgba(17, 48, 42, 0.14);
  --line-on-green: rgba(255, 247, 231, 0.18);

  /* Aliases used by the shared nav / promo popup snippets (MIGRATION.md §2.1, §12) */
  --brand-nav: var(--cream-soft);
  --brand-panel: var(--green);
  --brand-surface: var(--cream-soft);
  --brand-accent: var(--pink);

  --radius: 6px;
  --radius-lg: 22px;
  --pill: 999px;

  --font-display: 'Cyrene', Georgia, 'Times New Roman', serif;
  --font-body: 'Baskervville', Georgia, 'Times New Roman', serif;
  --font-script: 'Lamar Pen', var(--font-display), cursive;

  /* MenuSystem tokens (menu.js/menu.css — component itself is never edited, MIGRATION.md §5) */
  --menu-text: var(--green);
  --menu-surface: var(--cream-soft);
  --menu-accent: var(--pink);
  --menu-font-heading: var(--font-display);
  --menu-font-body: var(--font-body);
  --menu-skeleton-base: rgba(17, 48, 42, 0.06);
  --menu-skeleton-shimmer: rgba(17, 48, 42, 0.13);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--green);
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

p { margin: 0 0 1em; }

a { color: inherit; }

.eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: .25em;
}

/* Plain section label — use for repeated sub-headings on a page; the script
   font (.eyebrow) is a brand accent and should stay to one per page. */
.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .5em;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.section--tight { max-width: 780px; }
.section--full { max-width: none; padding-left: 0; padding-right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: .85em 1.8em;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--cream-soft);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--pink); border-color: var(--pink); color: var(--green-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--cream-soft); color: var(--green) !important; border-color: var(--cream-soft); }
.btn--on-dark { background: var(--pink); border-color: var(--pink); color: var(--green-deep); }
.btn--on-dark:hover { background: var(--cream-soft); border-color: var(--cream-soft); color: var(--green); }

/* ---------- header / mobile nav (MIGRATION.md §2.1) ---------- */
.topnav-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Transparent-over-hero variant — for pages whose hero fills the full
   screen right below the nav (index.html). Fixed (not sticky) so it
   overlays the hero instead of pushing it down; .is-scrolled (toggled by
   a small scroll listener) swaps in the solid brand background once the
   page has scrolled off the hero photo. */
.topnav-container--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  transition: background-color .3s ease;
}
.topnav-container--overlay.is-scrolled {
  background: var(--green);
}

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

.topnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-soft);
  position: relative;
}
.nav-link:hover { color: var(--pink); }

.nav-link-reserve {
  padding: .6em 1.4em;
  border-radius: var(--pill);
  background: var(--pink);
  color: var(--green-deep) !important;
}
.nav-link-reserve:hover { background: var(--cream-soft); color: var(--green) !important; }

.nav-link-order {
  padding: .6em 1.4em;
  border-radius: var(--pill);
  border: 1px solid var(--cream-soft);
  color: var(--cream-soft) !important;
}
.nav-link-order:hover { background: var(--cream-soft); color: var(--green) !important; }

/* Hamburger button — hidden on desktop */
.icon { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  background: none; border: none; appearance: none; cursor: pointer;
  align-items: center; justify-content: center; color: var(--brand-nav); }
.icon svg { width: 34px; height: auto; overflow: visible; }
.icon svg path { transition: transform .3s ease, opacity .2s ease;
  transform-box: fill-box; transform-origin: center; }
.icon[aria-expanded="true"] svg path:nth-of-type(1) { transform: translateY(12px) rotate(45deg); }
.icon[aria-expanded="true"] svg path:nth-of-type(2) { opacity: 0; }
.icon[aria-expanded="true"] svg path:nth-of-type(3) { transform: translateY(-12px) rotate(-45deg); }

.no-scroll { overflow: hidden; }

@media (max-width: 760px) {
  .icon { display: inline-flex; z-index: 40; }

  body::before { content: ""; position: fixed; inset: 0;
    background: rgba(0,0,0,.28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 15; }
  body.no-scroll::before { opacity: 1; pointer-events: auto; }

  .topnav { position: fixed; inset: 0 -100% 0 auto; width: min(85vw, 360px); height: 100dvh;
    flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 2.2rem; padding: 6.5rem 2rem 2.5rem;
    background: var(--brand-panel); backdrop-filter: blur(8px);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    margin-left: 0; transition: right .3s ease; z-index: 30; }
  .topnav.show { right: 0; }
  .topnav a.nav-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--cream-soft); }
  .topnav a.nav-link:hover { color: var(--pink); }
  .nav-link-reserve { background: var(--pink); color: var(--green-deep) !important; }
}

/* ---------- hero (index) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--green);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,33,28,.55) 0%, rgba(10,33,28,.35) 45%, rgba(10,33,28,.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  color: var(--cream-soft);
  padding: 2rem;
  max-width: 720px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hero-content h1 { margin-bottom: 0; color: var(--cream-soft); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-wordmark { width: min(72vw, 420px); margin: 0 auto 1.2rem; }
.hero-tagline { font-family: var(--font-script); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--pink); margin: 0; overflow-wrap: break-word; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; width: 100%; margin: 0; }
.hero-actions .btn { flex: 0 1 auto; }

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- teaser rows (index) ---------- */
.teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.teaser img { border-radius: var(--radius-lg); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.teaser-copy { text-align: left; }
@media (min-width: 760px) {
  .teaser { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .teaser--reverse .teaser-copy { order: 2; }
}

.band {
  background: var(--green);
  color: var(--cream-soft);
}
.band h2, .band h3 { color: var(--cream-soft); }
.band .eyebrow { color: var(--pink); }

/* ---------- info / hours strip ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 700px) {
  .info-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; }
}
.info-grid h3 { font-size: 1.2rem; margin-bottom: .4em; }
.info-grid .hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .25em 0; border-bottom: 1px solid var(--line-on-green); font-size: .95rem; }
.info-grid .hours-row:last-child { border-bottom: none; }
.contact-link { display: flex; align-items: center; gap: .6em; text-decoration: none; color: inherit; margin-bottom: .5em; }
.contact-link img { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- about page ---------- */
.pull-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--green);
  border-left: 3px solid var(--pink);
  padding-left: 1.2rem;
  margin: 1.5em 0;
}
.pull-quote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--maud); margin-top: .6em; }

/* Horizontal-scroll gallery — same pattern as the menu's .tabs-scroll
   (MIGRATION.md §2): scrolls inside its own container, hidden scrollbar,
   snap-to-image, "Swipe for more" hint on mobile. */
.gallery-swipe-hint {
  display: none;
  margin: 0 0 .6em;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  opacity: .6;
}
.gallery-swipe-hint span { display: inline-block; animation: gallerySwipeArrow 1.6s ease-in-out infinite; }
@keyframes gallerySwipeArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
@media (max-width: 699px) {
  .gallery-swipe-hint { display: block; }
}

.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 auto;
  width: min(80vw, 320px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Click-to-scroll arrows — desktop only (mobile relies on the swipe hint above). */
.gallery-wrap { position: relative; }
.gallery-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--green);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 48, 42, .18);
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.gallery-arrow:hover { background: var(--pink); color: var(--green-deep); }
.gallery-arrow[disabled] { opacity: 0; pointer-events: none; }
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }
@media (min-width: 700px) {
  .gallery-arrow { display: inline-flex; }
}

/* Sister-brand mark strip ("Our Group") — each mark ships full colour in its
   own source art, but a dozen unrelated brand palettes side by side would
   fight this page's cream/Deep Sea stock; recoloured to a single house-green
   silhouette via mask instead. Every sibling lockup shares the same
   639.89 x 243.6 viewBox, so one aspect-ratio fits all. Logo only, no
   caption — the row reads as one unified group mark, not a directory. */
.group-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 1.2rem;
}
.group-logo {
  display: block;
  flex: 0 1 calc(50% - .6rem);
  aspect-ratio: 639.89 / 243.6;
  background-color: var(--green);
  -webkit-mask-image: var(--logo);
  mask-image: var(--logo);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: .8;
  transition: opacity .2s ease;
}
.group-logo:hover { opacity: 1; }
@media (min-width: 700px) { .group-logo { flex-basis: calc(25% - .9rem); } }

/* ---------- events page ---------- */
.space-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 700px) { .space-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .space-cards { grid-template-columns: repeat(4, 1fr); } }
.space-card {
  background: var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.space-card h3 { margin-bottom: .3em; }
.space-card p { margin: 0; font-size: .95rem; opacity: .85; }

.package-list {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.package-list li {
  background: var(--sage);
  color: var(--green-deep);
  border-radius: var(--pill);
  padding: .6em 1.3em;
  font-size: .92rem;
}

.faq {
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1em 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green);
  cursor: pointer;
}
.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.3em;
  color: var(--pink);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-item.is-open .faq-question::after { content: '\2212'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer p { padding-bottom: 1.1em; opacity: .9; }
.faq-item.is-open .faq-answer { max-height: 320px; }

.inquire-card {
  background: var(--green);
  color: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.inquire-card h2 { color: var(--cream-soft); }
.inquire-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.2rem; }

/* ---------- menu page ---------- */
.menu-intro { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.menu-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  font-size: .85rem;
  opacity: .8;
}

/* ---------- jobs page ---------- */
.jobs-card {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.jobs-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- occasion cards (index + landing-page cross-links) ---------- */
.occasion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}
@media (min-width: 700px) { .occasion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .occasion-grid { grid-template-columns: repeat(4, 1fr); } }
.occasion-card {
  display: block;
  text-decoration: none;
  color: var(--green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sage);
  transition: transform .2s ease;
}
.occasion-card:hover { transform: translateY(-3px); }
.occasion-card img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.occasion-card__label {
  display: block;
  padding: 1rem .5rem 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.occasion-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.occasion-links a { text-decoration: none; color: var(--green); border-bottom: 1px solid transparent; }
.occasion-links a:hover { color: var(--pink); border-bottom-color: var(--pink); }

/* ---------- responsive embed frame (Matterport tour, PDF guides, etc.) ---------- */
.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-soft);
  border: 1px solid var(--line);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: var(--cream-soft);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer-logo { height: 30px; width: auto; margin: 0 auto 1.2rem; opacity: .95; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-bottom: 1.5rem; }
.footer-links a { text-decoration: none; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--cream-soft); opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--pink); }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.footer-social a { display: inline-flex; opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.footer-social a:hover { opacity: 1; transform: translateY(-1px); }
.footer-social img { width: 22px; height: 22px; }
.footer-copyright { font-size: .78rem; opacity: .6; margin: 0; }

/* ---------- promo popup (MIGRATION.md §12) ---------- */
.promo-popup[hidden] { display: none; }
.promo-popup { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.promo-popup__backdrop { position: absolute; inset: 0; background: rgba(10,33,28,.55); }
.promo-popup__card { position: relative; z-index: 1; width: min(90vw, 420px);
  padding: 2.2rem 2rem; border-radius: var(--radius-lg); background: var(--brand-surface);
  text-align: center; font-family: var(--font-body); }
.promo-popup__title { font-family: var(--font-display); }
.promo-popup__close { position: absolute; top: .5rem; right: .75rem; width: 44px; height: 44px;
  background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--green); }
.promo-popup__cta { display: inline-block; margin-top: 1rem; padding: .75em 1.5em;
  border-radius: var(--pill); background: var(--brand-accent); color: var(--green-deep);
  text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .promo-popup__card { animation: promo-in .3s ease; }
  @keyframes promo-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
