/* Secret Garden Amsterdam — brand overrides */
/* @import must be first */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Brand color variables ────────────────────────────────────────────────── */
:root {
  --green:                  #1a3520;
  --brass:                  #c09428;
  --brass-light:            #d4aa48;
  --header-bg:              rgba(6,14,8,0.97);
  --accent:                 #c09428;
  --border:                 rgba(192,148,40,0.2);
  --gold:                   #c09428;
  --gold-subtle:            rgba(192,148,40,0.22);
  --gold-dim:               rgba(192,148,40,0.68);
  --category-label-border:  rgba(26,53,32,0.3);
  --border-inactive:        rgba(192,148,40,0.28);
  --border-inactive-strong: rgba(192,148,40,0.42);
  --focus-ring-color:       #d4aa48;
}

body.dinner-mode {
  --header-bg:        #060e06;
  --accent:           #d4aa48;
  --gold:             #d4aa48;
  --gold-subtle:      rgba(212,170,72,0.2);
  --gold-dim:         rgba(212,170,72,0.7);
  --focus-ring-color: #d4aa48;
}

body:not(.dinner-mode) {
  --accent:             #c09428;
  --gold:               #c09428;
  --gold-subtle:        rgba(192,148,40,0.22);
  --gold-dim:           rgba(192,148,40,0.68);
  --focus-ring-color:   #c09428;
  --sub-pill-active-fg: #1a1a1a;
}

/* ── Header crest: circular gold emblem ─────────────────────────────────── */
.header .crest-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  justify-self: start;
}

.header .crest-icon {
  width: auto !important;
  height: auto !important;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: screen;
  background: transparent;
}

@media (max-width: 768px) {
  .header .crest-icon {
    max-width: 42px;
    max-height: 42px;
  }
  .header .crest-block {
    gap: 2px;
    max-width: 52px;
  }
  .header .crest-venue {
    font-size: 0.5rem;
    letter-spacing: 0.22em;
    line-height: 1.2;
  }
}

@media (min-width: 769px) {
  .header .crest-icon {
    max-width: 54px;
    max-height: 54px;
  }
  .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(192, 148, 40, 0.85) !important;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 0;
  padding: 0 2px;
  line-height: 1.25;
}

/* ── Logo — Secret Garden in Cinzel ─────────────────────────────────────── */
.header-top .logo-block {
  max-width: min(240px, 44vw);
  margin: 0 auto;
}

.logo-main {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

@media (min-width: 769px) {
  .logo-main {
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    letter-spacing: 0.22em !important;
  }
}

@media (max-width: 768px) {
  .logo-main {
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: clamp(11px, 3.2vw, 16px) !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
  }
}

/* ── Splash screen ─────────────────────────────────────────────────────── */
.splash-inner {
  align-items: center !important;
  text-align: center;
  max-width: 92vw;
}

.splash-inner .splash-crest {
  display: block !important;
  width: 140px;
  height: auto;
  max-width: 56vw;
  filter: none;
  opacity: 1;
  mix-blend-mode: screen;
  background: transparent;
}

.splash-title {
  display: block !important;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.05rem, 3.8vw, 1.45rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1.3;
}

.splash-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: rgba(192, 148, 40, 0.9);
  margin-top: 6px;
  text-transform: uppercase;
}

/* ── Crest blend fix — override polish.css backface-visibility which creates a grey compositing layer in WebKit ── */
.crest-icon,
.splash-crest,
.modal-crest-img {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  background: transparent !important;
}

/* ── Wine & bottle images — white background for legibility ─────────────── */
.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;
}

#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;
}
