/* ============================================================
   De Palm · Restaurant & Bar
   Aesthetic: West-Coast coastal editorial × twilight bar glow
   ============================================================ */

:root {
  /* ── palette ─────────────────────────────── */
  --ink:        #0b1f2a;   /* deep ocean navy (dark sections) */
  --ink-2:      #0e2734;
  --teal:       #14495a;
  --led:        #2bb6e6;   /* the bar's electric LED blue */
  --led-soft:   #6fd2f0;
  --amber:      #e8a13a;   /* beer / lamplight */
  --gold:       #f2b54b;
  --rust:       #c4603c;   /* warm terracotta accent */
  --bone:       #faf5ec;   /* light canvas */
  --sand:       #f1e8d8;
  --sand-2:     #e7dcc7;
  --line:       #d8cbb4;

  --ink-70:     rgba(11, 31, 42, .70);
  --ink-55:     rgba(11, 31, 42, .55);
  --ink-40:     rgba(11, 31, 42, .40);
  --light-70:   rgba(250, 245, 236, .72);
  --light-45:   rgba(250, 245, 236, .45);

  /* ── type ────────────────────────────────── */
  --display: "Fraunces", "Hoefler Text", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* ── rhythm ──────────────────────────────── */
  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
::selection { background: var(--amber); color: var(--ink); }

/* ── grain overlay ─────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── shared layout ─────────────────────────── */
.section { padding: clamp(4.5rem, 10vw, 9rem) var(--pad); position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--amber); display: inline-block; }
.section__head--center .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--led-soft); }
.eyebrow--light::before { background: var(--led); }

h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.section__head p:not(.eyebrow), .story__copy p, .menu__intro p, .visit__lead {
  color: var(--ink-70); font-size: 1.06rem;
}

/* ── buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(232,161,58,.6); }
.btn--gold:hover { transform: translateY(-3px); background: var(--amber); box-shadow: 0 16px 38px -10px rgba(232,161,58,.7); }
.btn--ghost { border-color: var(--light-45); color: var(--bone); }
.btn--ghost:hover { background: rgba(250,245,236,.1); border-color: var(--bone); transform: translateY(-3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: .6rem 0;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--bone); }
.brand__mark { width: 38px; height: 38px; color: var(--led); flex: none;
  filter: drop-shadow(0 0 10px rgba(43,182,230,.35)); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__word { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  color: var(--light-70); font-weight: 500; font-size: .95rem; position: relative;
  transition: color .3s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--amber); transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--bone); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  padding: .55rem 1.2rem; border: 1.5px solid var(--light-45); border-radius: 100px;
  color: var(--bone) !important; transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }

/* scrolled state */
.nav.is-stuck {
  background: rgba(11, 31, 42, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(250,245,236,.08), 0 20px 40px -28px rgba(0,0,0,.7);
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(3.5rem, 8vw, 6rem);
  color: var(--bone); overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg .ph--hero { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.hero__bg .ph--hero img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,31,42,.55) 0%, rgba(11,31,42,.2) 32%, rgba(11,31,42,.78) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(11,31,42,.6), transparent 60%);
}
.hero__glow {
  position: absolute; left: 50%; bottom: -22%; width: 120%; height: 55%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(43,182,230,.55), rgba(43,182,230,0) 70%);
  filter: blur(20px); opacity: .8; z-index: -1; pointer-events: none;
}

.hero__content { max-width: 900px; position: relative; }
.eyebrow.eyebrow--light { margin-bottom: 1.4rem; }
.hero__title {
  font-size: clamp(2.9rem, 9vw, 6.6rem); font-weight: 500; line-height: .98;
  letter-spacing: -.025em; margin-bottom: 1.6rem;
}
.hero__title .line { display: block; }
.hero__title em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: var(--light-70); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* marquee */
.hero__marquee {
  position: relative; margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid rgba(250,245,236,.16); border-bottom: 1px solid rgba(250,245,236,.16);
  padding: .9rem 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--bone); }
.marquee__track i { color: var(--led); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   PLACEHOLDER / IMAGE SYSTEM
   ============================================================ */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(43,182,230,.22), transparent 55%),
    linear-gradient(160deg, var(--teal), var(--ink) 70%);
  isolation: isolate;
}
.ph img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; transition: opacity .6s var(--ease), transform .9s var(--ease); }
/* decorative palm + label only show when image missing/empty */
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%232bb6e6' stroke-opacity='.5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M31 56 C30 46 30 36 32 28'/%3E%3Cpath d='M32 27 C24 22 17 22 11 26'/%3E%3Cpath d='M32 27 C40 22 47 22 53 26'/%3E%3Cpath d='M32 27 C26 19 20 16 14 16'/%3E%3Cpath d='M32 27 C38 19 44 16 50 16'/%3E%3Cpath d='M32 27 C32 19 32 14 32 10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center 38%; background-size: 96px;
}
.ph::after {
  content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.4rem; text-align: center; opacity: 0; transition: opacity .4s;
  font-family: var(--body); font-size: .82rem; letter-spacing: .04em;
  color: var(--light-70); text-transform: uppercase;
}
.ph.is-empty img { opacity: 0; }
.ph.is-empty::before, .ph.is-empty::after { opacity: 1; }
/* subtle zoom on hover when a real image is present */
.ph:not(.is-empty):hover img { transform: scale(1.04); }

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--bone); }
.story__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.story__media { position: relative; }
.story__media .ph--tall { aspect-ratio: 4 / 5; box-shadow: 0 40px 70px -40px rgba(11,31,42,.6); }
.story__badge {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; padding: .7rem 1.2rem; border-radius: 100px;
  box-shadow: 0 14px 30px -12px rgba(232,161,58,.7); transform: rotate(-4deg);
}
.story__copy h2 { margin-bottom: 1.4rem; }
.story__copy p { margin-bottom: 1.1rem; }
.pullquote {
  font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.32; color: var(--teal); border-left: 3px solid var(--amber);
  padding-left: 1.4rem; margin-top: 2rem;
}

/* ============================================================
   OFFERINGS
   ============================================================ */
.offerings { background: var(--sand); }
.offerings .section__head { margin-inline: auto; text-align: center; }
.offerings .eyebrow { justify-content: center; }
.cards {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem;
}
.card {
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.8rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--led), var(--amber));
  transition: width .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(11,31,42,.45); border-color: transparent; }
.card:hover::after { width: 100%; }
.card__icon { font-size: 1.9rem; display: block; margin-bottom: 1rem; }
.card h3 { font-size: 1.4rem; margin-bottom: .55rem; }
.card p { color: var(--ink-70); font-size: .98rem; }

/* ============================================================
   MENU
   ============================================================ */
.menu { background: var(--bone); }
.menu__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.menu__intro { position: sticky; top: 120px; }
.menu__intro h2 { margin-bottom: 1.2rem; }
.menu__intro p { margin-bottom: 1rem; }
.menu__note { color: var(--rust) !important; font-weight: 600; }
.menu__list { list-style: none; }
.menu__item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.menu__item:first-child { padding-top: 0; }
.menu__row { display: flex; align-items: baseline; gap: 1rem; }
.menu__row h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); white-space: nowrap; }
.menu__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.menu__item p { color: var(--ink-70); margin-top: .5rem; font-size: 1rem; }
.menu__item--soft h3 { color: var(--teal); }

/* ============================================================
   GALLERY  (dark)
   ============================================================ */
.gallery { background: var(--ink); color: var(--bone); position: relative; }
.gallery::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, rgba(43,182,230,.18), transparent 70%);
}
.gallery .section__head { position: relative; }
.gallery__grid {
  max-width: var(--maxw); margin: 0 auto; position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 1rem;
}
.g { box-shadow: 0 30px 60px -40px rgba(0,0,0,.8); }
.g--1 { grid-column: span 4; grid-row: span 2; }
.g--2 { grid-column: span 2; grid-row: span 2; }
.g--3 { grid-column: span 2; grid-row: span 1; }
.g--4 { grid-column: span 2; grid-row: span 1; }
.g--5 { grid-column: span 2; grid-row: span 1; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--sand); }
.reviews__grid {
  max-width: var(--maxw); margin: 0 auto;
  columns: 3 300px; column-gap: 1.3rem;
}
.quote {
  break-inside: avoid; margin-bottom: 1.3rem;
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.quote::before {
  content: "\201C"; font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--amber);
  position: absolute; top: .2rem; right: 1.2rem; opacity: .35;
}
.quote:hover { transform: translateY(-5px); box-shadow: 0 28px 48px -30px rgba(11,31,42,.4); }
.quote p { font-family: var(--display); font-size: 1.12rem; line-height: 1.5; color: var(--ink); position: relative; z-index: 1; }
.quote footer { margin-top: 1.2rem; display: flex; flex-direction: column; }
.quote__name { font-family: var(--body); font-weight: 700; font-size: .95rem; }
.quote__from { font-size: .82rem; color: var(--ink-55); letter-spacing: .04em; }

/* ============================================================
   VISIT  (dark)
   ============================================================ */
.visit { background: var(--ink-2); color: var(--bone); position: relative; overflow: hidden; }
.visit::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 50%; height: 80%;
  background: radial-gradient(closest-side, rgba(43,182,230,.2), transparent 70%); pointer-events: none;
}
.visit__grid {
  max-width: var(--maxw); margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.visit__info h2 { margin-bottom: 1.2rem; }
.visit__lead { color: var(--light-70) !important; margin-bottom: 2rem; max-width: 44ch; }
.visit__details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.5rem; margin-bottom: 2.2rem; }
.visit__details dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--led-soft); margin-bottom: .3rem; }
.visit__details dd { font-size: 1.05rem; font-weight: 500; }
.visit__details .soon { color: var(--light-45); font-style: italic; font-weight: 400; }

.amenities { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.2rem; }
.amenities li {
  font-size: .82rem; padding: .42rem .9rem; border: 1px solid rgba(250,245,236,.2); border-radius: 100px;
  color: var(--light-70); transition: border-color .3s, color .3s, background .3s;
}
.amenities li:hover { border-color: var(--led); color: var(--bone); background: rgba(43,182,230,.12); }

.visit__map .ph--map { aspect-ratio: 4 / 3.4; box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); border: 1px solid rgba(250,245,236,.12); }
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.92) contrast(1.02); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--light-70); padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 2rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid rgba(250,245,236,.12);
}
.footer__brand .brand__word { color: var(--bone); font-size: 1.8rem; }
.footer__brand p { font-size: .9rem; margin-top: .4rem; max-width: 36ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer__links a { font-size: .95rem; transition: color .3s; }
.footer__links a:hover { color: var(--gold); }
.footer__base {
  max-width: var(--maxw); margin: 1.6rem auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .82rem; color: var(--light-45);
}
.footer__sign { font-family: var(--display); font-style: italic; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* hero loads with stagger immediately */
.hero .reveal { transition-delay: .05s; }
.hero .reveal:nth-child(2) { transition-delay: .15s; }
.hero .reveal:nth-child(3) { transition-delay: .28s; }
.hero .reveal:nth-child(4) { transition-delay: .42s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .story__grid, .menu__grid, .visit__grid { grid-template-columns: 1fr; }
  .menu__intro { position: static; }
  .story__media { max-width: 440px; margin-inline: auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g--1 { grid-column: span 2; grid-row: span 2; }
  .g--2, .g--3, .g--4, .g--5 { grid-column: span 1; grid-row: span 1; }
  .reviews__grid { columns: 2 280px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    background: rgba(11,31,42,.96); backdrop-filter: blur(16px);
    padding: 2rem var(--pad); transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(0,0,0,.8);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.25rem; }
  .nav__toggle { display: flex; z-index: 1001; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .visit__details { grid-template-columns: 1fr; }
  .reviews__grid { columns: 1; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g--1, .g--2, .g--3, .g--4, .g--5 { grid-column: span 1; grid-row: span 1; }
  .story__badge { right: 8px; }
}
