/* =====================================================
   Florence by the Water — Navy & Salt
   Disciplined navy + cream, BigShoulders display,
   InstrumentSans body, InstrumentSerif italic accent.
   ===================================================== */

:root {
  --navy:        #062133;
  --navy-deep:   #03182a;
  --cream:       #f5f0e6;
  --cream-soft:  #ede6d6;
  --white:       #fafbfb;
  --terracotta:  #b54e36;
  --rule-light:  rgba(245, 240, 230, 0.22);
  --rule-dark:   rgba(6, 33, 51, 0.16);

  --display: 'Big Shoulders Display', 'Helvetica Neue', Arial, sans-serif;
  --sans:    'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif-i: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --container: 1240px;
  --gutter:    clamp(24px, 5vw, 80px);
  --section-y: clamp(90px, 12vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--terracotta); }

::selection { background: var(--navy); color: var(--cream); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type primitives ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 28px;
}
.eyebrow-dark { color: var(--navy); }

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 32px;
}
.display.center { text-align: center; margin-left: auto; margin-right: auto; }

.serif-italic {
  font-family: var(--serif-i);
  font-style: italic;
  font-weight: 400;
}

p { margin: 0 0 18px; }
p em { font-family: var(--serif-i); font-style: italic; }

.section { padding: var(--section-y) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid var(--cream);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}
.btn-primary:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.btn-ghost { color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--navy); }

.btn-light {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-light:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}
.nav.nav-solid {
  background: var(--navy);
  padding: 14px var(--gutter);
  border-bottom-color: var(--rule-light);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-mark img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-cta {
  border: 1.5px solid var(--cream);
  padding: 11px 18px;
}
.nav-cta:hover {
  background: var(--cream);
  color: var(--navy) !important;
}

@media (max-width: 760px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-mark img { height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background: url('images/hero-bar.jpg') center/cover no-repeat;
  filter: brightness(0.55) saturate(0.95);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: var(--navy);
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 940px;
  width: 100%;
}
.hero-mark {
  width: clamp(260px, 48vw, 540px);
  margin: 18px auto 28px;
}
.hero-italic {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  margin: 0 0 46px;
  color: var(--cream);
  line-height: 1.4;
}
/* On mobile, drop "on Figueroa." onto its own line */
@media (max-width: 760px) {
  .hero-italic .tagline-tail { display: block; }
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: block;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 56px;
  background: var(--cream);
  opacity: 0.55;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
.hero-scroll:hover { opacity: 1; }

/* ---------- Story ---------- */
.story {
  background: var(--cream);
  color: var(--navy);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.split-copy p {
  font-size: 18px;
  margin: 0 0 22px;
  max-width: 50ch;
}
.signature {
  margin-top: 40px;
  font-size: 22px;
  color: var(--navy);
}
.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { order: -1; }
  .split-photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Menu Preview ---------- */
.menu-preview {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}
.menu-preview .display {
  max-width: 25ch;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 72px);
  margin: 64px 0 56px;
  text-align: left;
}
.menu-card h3 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-light);
}
.menu-card ul {
  margin: 0; padding: 0;
  list-style: none;
}
.menu-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
}
.menu-card li:last-child { border-bottom: none; }
.menu-card li span {
  font-size: 17px;
  font-weight: 500;
}
.menu-card li b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.menu-cta { margin-top: 40px; }

@media (max-width: 760px) {
  .menu-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Atmosphere / Gallery ---------- */
.atmosphere {
  background: var(--cream);
  color: var(--navy);
  padding-bottom: 0;
  text-align: center;
}
.atmosphere-head { padding-bottom: var(--section-y); }
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1.2fr;
  gap: 6px;
  width: 100%;
  background: var(--cream);
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
@media (max-width: 1024px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 320px; }
}

/* ---------- Visit ---------- */
.visit {
  background: var(--navy);
  color: var(--cream);
}
.visit .split { grid-template-columns: 1fr 1fr; }
.visit table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}
.visit table tr {
  border-bottom: 1px solid var(--rule-light);
}
.visit table tr:first-child {
  border-top: 1px solid var(--rule-light);
}
.visit table td {
  padding: 20px 0;
  vertical-align: baseline;
}
.visit table td:first-child {
  font-weight: 500;
  letter-spacing: 0.04em;
}
.visit table td:last-child {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.visit-note {
  margin-top: 28px;
  font-size: 19px;
  color: var(--cream-soft);
  opacity: 0.92;
}
.visit address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
}
.visit address p { margin: 0 0 6px; }
.address-line {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 18px !important;
  line-height: 1.05;
}
.visit-where .btn { margin-top: 32px; }

/* ---------- Visit — mobile ---------- */
@media (max-width: 760px) {
  /* Collapse the 2-column grid (overrides .visit .split specificity) */
  .visit .split { grid-template-columns: 1fr; gap: 56px; }
  /* Keep hours rows on a single line each */
  .visit table { font-size: 17px; }
  .visit table td { white-space: nowrap; }
  .visit table td:last-child { font-size: 20px; }
  /* Full-width reservation button so the label never overflows */
  .visit-where .btn {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    letter-spacing: 0.1em;
    font-size: 12px;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
  padding: 80px var(--gutter) 56px;
  border-top: 1px solid var(--rule-light);
}
.foot-mark {
  width: 280px;
  margin: 0 auto 28px;
  opacity: 0.95;
}
.foot-italic {
  font-size: 20px;
  margin: 0 0 32px;
  color: var(--cream);
}
.foot-rule {
  width: 60px;
  height: 1px;
  background: var(--rule-light);
  margin: 0 auto 32px;
}
.foot-meta {
  margin: 6px 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
}
.foot-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==================== Caroline's updates ==================== */

/* Menus — multi-button row (navy section) */
.menu-links {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.menu-links .btn {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  min-width: 150px;
}
.menu-links .btn:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

/* The Room — interior photo between heading and gallery */
.atmosphere-head { padding-bottom: clamp(40px, 6vw, 68px); }
.room-photo {
  max-width: var(--container);
  margin: 0 auto clamp(44px, 6vw, 72px);
  padding: 0 var(--gutter);
}
.room-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule-dark);
}

/* Private Events (cream section) */
.events {
  background: var(--cream);
  color: var(--navy);
  text-align: center;
}
.events-copy {
  max-width: 48ch;
  margin: 4px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy);
}
.events .menu-cta { margin-top: 36px; }

/* Instagram — nav icon + footer */
.nav-ig {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
  padding: 0 2px;
}
.nav-ig:hover { color: var(--terracotta); }
.foot-social { margin: 4px 0 2px; }
.foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.foot-social a:hover { color: var(--terracotta); }


/* ============ Auto-scrolling reel (replaces static strip) ============ */
.reel {
  width: 100%;
  overflow: hidden;
  background: var(--cream);
  margin-top: 6px;
}
.reel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: reel-scroll var(--reel-dur, 120s) linear infinite;
}
.reel-cell { display: block; height: 460px; flex: 0 0 auto; margin-right: 8px; cursor: pointer; }
.reel-cell img { height: 100%; width: auto; display: block; }
@keyframes reel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 1024px) { .reel-cell { height: 300px; } }
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .reel-track { animation: none; }
}

/* ============ Full gallery (masonry) ============ */
.gallery-section { background: var(--navy); color: var(--cream); }
.gallery-head { margin-bottom: 42px; text-align: center; }
.masonry {
  column-count: 4;
  column-gap: 8px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
}
.masonry .ph {
  margin: 0 0 8px;
  break-inside: avoid;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 230, 0.30);
}
.masonry .ph img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .55s ease, filter .55s ease;
}
.masonry .ph:hover img { transform: scale(1.035); filter: brightness(1.05); }
@media (max-width: 1024px) { .masonry { column-count: 3; } }
@media (max-width: 680px)  { .masonry { column-count: 2; padding: 0 12px; } }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 33, 51, .95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: none;
  color: var(--cream); cursor: pointer; padding: 14px;
  font-family: inherit; line-height: 1; opacity: .82; transition: opacity .2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 10px; right: 20px; font-size: 40px; }
.lb-prev  { left: 10px;  top: 50%; transform: translateY(-50%); font-size: 56px; }
.lb-next  { right: 10px; top: 50%; transform: translateY(-50%); font-size: 56px; }
@media (max-width: 680px) {
  .lb-prev, .lb-next { font-size: 40px; padding: 8px; }
}


/* ---------- Newsletter / email capture ---------- */
.signup { background: var(--cream); color: var(--navy); text-align: center; }
.signup-inner { max-width: 640px; }
.signup-copy { font-size: 18px; max-width: 46ch; margin: 0 auto 34px; }
.signup-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.signup-email {
  flex: 1 1 280px;
  -webkit-appearance: none;
  appearance: none;
  padding: 17px 20px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: 0;
}
.signup-email::placeholder { color: rgba(6, 33, 51, 0.62); }
.signup-email:focus { outline: none; border-color: var(--terracotta); }
.signup-form .btn { flex: 0 0 auto; }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-ok { font-size: 21px; margin: 6px 0 0; }
.signup-note { font-size: 15px; color: rgba(6, 33, 51, 0.6); margin-top: 22px; }
@media (max-width: 520px) {
  .signup-form { flex-direction: column; }
  .signup-email { flex: 0 0 auto; width: 100%; }
  .signup-form .btn { width: 100%; }
}
