/* The Hoxton Amsterdam — brand overrides for single-app (venue-router.js loads this dynamically) */
/* Paths are relative to this CSS file location (css/ folder) */

/* ── @import must be at the very top ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Great+Vibes&display=swap');

/* ── Brand color variables ────────────────────────────────────────────────── */
:root {
  --green:                  #000000;
  --brass:                  #e7a47d;
  --brass-light:            #f0b898;
  --header-bg:              rgba(0,0,0,0.97);
  /* Peach/salmon accents (lunch + pills); black stays on --green for skip-link etc. */
  --accent:                 #e7a47d;
  --border:                 rgba(231,164,125,0.2);
  --gold:                   #e7a47d;
  --gold-subtle:            rgba(231,164,125,0.22);
  --gold-dim:               rgba(231,164,125,0.68);
  --category-label-border:  rgba(0,0,0,0.3);
  --border-inactive:        rgba(231,164,125,0.28);
  --border-inactive-strong: rgba(231,164,125,0.42);
  --focus-ring-color:       #f0b898;
}
body.dinner-mode {
  --header-bg:        #000000;
  --accent:           #f0b898;
  --gold:             #f0b898;
  --gold-subtle:      rgba(240,184,152,0.2);
  --gold-dim:         rgba(240,184,152,0.7);
  --focus-ring-color: #f0b898;
}

/* Lunch (cream page): keep brass-forward labels + pills readable */
body:not(.dinner-mode) {
  --accent:                 #e7a47d;
  --gold:                   #e7a47d;
  --gold-subtle:            rgba(231,164,125,0.22);
  --gold-dim:               rgba(231,164,125,0.68);
  --focus-ring-color:       #e7a47d;
  --sub-pill-active-fg:     #1a1a1a;
}

/* Mobile WebKit: standards tab must match desktop (visibility + active panel) */
@media (max-width: 768px) {
  #standards.standards-section.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 120px;
  }
  #standards.active #standards-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    -webkit-transform: translateZ(0);
  }
  .standards-panel.standards-panel-active {
    display: block !important;
  }
}

/* ── Header crest: hoxton-logo.png — venue line centered under the mark (mobile + desktop) ─ */
.header .crest-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  justify-self: start;
}

/* Beat polish.css/global crest width so the mark stays proportional in the grid column */
.header .crest-icon {
  width: auto !important;
  height: auto !important;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header .crest-icon {
    max-width: 88px;
    max-height: 38px;
  }
  .header .crest-block {
    gap: 2px;
    max-width: 96px;
  }
  .header .crest-venue {
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    line-height: 1.2;
  }
}

@media (min-width: 769px) {
  .header .crest-icon {
    max-width: 142px;
    max-height: 48px;
  }
  .header .crest-block {
    gap: 4px;
  }
}

.header .crest-venue {
  text-align: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: rgba(240, 184, 152, 0.92) !important;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  padding: 0 2px;
  line-height: 1.25;
}

@media (min-width: 769px) {
  .header .crest-venue {
    font-size: 0.66rem;
    letter-spacing: 0.24em;
  }
}

/* ── Logo — Lotti's script ────────────────────────────────────────────────── */
.header-top .logo-block {
  max-width: min(260px, 48vw);
  margin: 0 auto;
}
.logo-main {
  font-family: 'Great Vibes', cursive;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  white-space: nowrap;
  /* Script extends above the box; hidden clips "Lotti's" ascenders on narrow headers */
  overflow: visible;
  line-height: 1.28;
  text-overflow: clip;
}
/* polish.css (loaded after this file) sets desktop .logo-main { font-weight:700 } — that breaks
   Great Vibes and forces a fallback sans; keep script weight and spacing on large screens. */
@media (min-width: 769px) {
  .logo-main {
    font-family: 'Great Vibes', cursive !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
  }
}
@media (max-width: 768px) {
  /* WebKit: backdrop-filter on .header (polish.css) can clip descendants that paint outside the line box */
  .header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    /* Extra air above script ascenders (L, t) after safe-area */
    padding-top: max(14px, calc(env(safe-area-inset-top, 0px) + 6px)) !important;
  }
  .header-top {
    overflow: visible !important;
  }
  .header .logo-block {
    overflow: visible;
    padding-top: 4px;
    align-self: center;
  }
  .header .logo-block .logo-main,
  #header-logo-main.logo-main {
    font-family: 'Great Vibes', cursive !important;
    font-size: clamp(22px, 6.5vw, 32px) !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    line-height: 1.45 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: min(200px, 46vw);
    margin: 0 auto;
    padding: 0.2em 0 0.06em !important;
    display: inline-block;
    vertical-align: middle;
  }
}

/* ── Splash screen ────────────────────────────────────────────────────────── */
/* Stack: Hoxton crest → Lotti’s → Amsterdam (applyHouseBranding). */
.splash-inner {
  align-items: center !important;
  text-align: center;
  max-width: 92vw;
}
.splash-inner .splash-crest {
  display: block !important;
  width: 200px;
  height: auto;
  max-width: 72vw;
  filter: none;
  opacity: 1;
}
.splash-title {
  display: block !important;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 5.5vw, 2.25rem);
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 90vw;
}
.splash-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: rgba(240, 184, 152, 0.95);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── Hero images ──────────────────────────────────────────────────────────── */
/* Background photos are set in venue-router.js → applyHouseHeroImages() so URLs resolve from the
   page root (works for npm start at repo root and for clients/the-hoxton/…/ builds). */
.hero.hero-cocktails {
  background-position: center 40%;
  min-height: 280px;
}
@media (min-width: 769px) {
  .hero.hero-cocktails {
    min-height: 380px;
  }
}
.hero.hero-cocktails::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
}

/* Lotti's daily run sheet — brass accents */
.general-info-item--lottis-daily-tasks-2026 > summary {
  border-left: 4px solid var(--brass, #e7a47d);
}
.daily-line-time {
  color: var(--brass, #e7a47d) !important;
}
.daily-filter-btn.is-active {
  background: rgba(231, 164, 125, 0.2) !important;
  border-color: rgba(231, 164, 125, 0.5) !important;
  color: var(--brass-light, #f0b898) !important;
}
.daily-seg-rows {
  border-color: rgba(231, 164, 125, 0.25) !important;
}

/* Food hero — Lotti's wordmark (same script as header logo) */
.hero.hero-food::after {
  z-index: 0;
}
#hero-title.hero-title--lottis {
  position: absolute;
  z-index: 2;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  margin: 0;
  line-height: 1.1;
}
/* Mobile hero.css uses smaller .hero-title + tight letter-spacing — override so Lotti's matches desktop treatment */
@media (max-width: 768px) {
  #hero-title.hero-title--lottis {
    font-size: clamp(2rem, 9vw, 3.5rem) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    max-width: 92%;
  }
}

/* Daily run sheet — dark panels for legibility */
.general-info-item-body--daily-tasks .daily-sheet {
  background: #0a0a0a;
  color: #ececec;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(231, 164, 125, 0.28);
}
.general-info-item-body--daily-tasks .daily-sheet-toolbar {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.08);
}
.general-info-item-body--daily-tasks .daily-sheet-hint {
  color: rgba(236, 236, 236, 0.88);
}
.general-info-item-body--daily-tasks .daily-filter-btn {
  background: #1a1a1a;
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, 0.12);
}
.general-info-item-body--daily-tasks .daily-sheet-search {
  background: #141414;
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.1);
}
.general-info-item-body--daily-tasks .daily-seg-title {
  color: rgba(240, 184, 152, 0.9);
}
.general-info-item-body--daily-tasks .daily-seg-rows {
  background: #050505;
  border-color: rgba(231, 164, 125, 0.22);
}
.general-info-item-body--daily-tasks .daily-line {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.general-info-item-body--daily-tasks .daily-line > summary:hover {
  background: rgba(255, 255, 255, 0.06);
}
.general-info-item-body--daily-tasks .daily-line-task {
  color: #fafafa !important;
}
.general-info-item-body--daily-tasks .daily-line-body p {
  color: #d8d8d8 !important;
}
.general-info-item-body--daily-tasks .daily-line-body {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Food modal: Lotti’s = same .logo-main as centre header (Great Vibes); light modal needs text colour override */
#item-modal .modal-header-eye .logo-main.modal-crest-wordmark--lottis {
  display: none;
  color: #1a1a1a;
}
body.dinner-mode #item-modal .modal-header-eye .logo-main.modal-crest-wordmark--lottis {
  color: #f0ebe2;
}
#item-modal .modal-header-eye .modal-crest-img--lottis-desktop {
  display: block;
}
@media (max-width: 768px) {
  #item-modal .modal-header-eye .logo-main.modal-crest-wordmark--lottis {
    display: inline-block;
    flex-shrink: 0;
    /* Same family/weight/letter-spacing as .logo-main above; slightly smaller than 40px so the modal strip matches the header proportionally */
    font-size: 26px;
    line-height: 1.15;
  }
  #item-modal .modal-header-eye .modal-crest-img--lottis-desktop {
    display: none !important;
  }
}
@media (min-width: 769px) {
  #item-modal .modal-header-eye .logo-main.modal-crest-wordmark--lottis {
    display: none !important;
  }
  #item-modal .modal-header-eye .modal-crest-img--lottis-desktop {
    display: block;
  }
}

/* Wine & sparkling — studio white (same treatment as Soho House staff app)
   All categories (sparkling, white, red, rosé, dessert) use .wine-detail-card */
.wine-detail-card .wine-card-image,
body.dinner-mode .wine-detail-card .wine-card-image {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

/* Detail modal: full white image strip (no fade into dark body in dinner mode) */
#item-modal .modal-image-area.is-wine,
body.dinner-mode #item-modal .modal-image-area.is-wine {
  background: #ffffff !important;
}

#item-modal .modal-image-area.is-wine::after,
body.dinner-mode #item-modal .modal-image-area.is-wine::after {
  display: none !important;
}
