*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ──────────────────────────── */
:root {
  --outer-bg:    #062227;
  --inner-bg:    #083138;
  --text:        #FFFFFF;
  --muted:       rgba(255, 255, 255, 0.7);
  --gold:        #D9CDA7;
  --col-border:  rgba(217, 205, 167, 0.2);
  --card-bg:     rgba(217, 205, 167, 0.03);
  --card-border: rgba(217, 205, 167, 0.18);
  --card-hover:  rgba(217, 205, 167, 0.07);
}

body.dark {
  --outer-bg:   #141414;
  --inner-bg:   #1c1c1c;
}

/* ── Base ───────────────────────────────────── */
html, body { height: 100%; }

body {
  min-height: 100%;
  background: var(--outer-bg);
  color: var(--text);
  font-family: "quasimoda", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout shell ───────────────────────────── */
/* 1. 40px top/bottom padding on the page (desktop) */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.inner {
  background: var(--inner-bg);
  border: 0.5px solid var(--col-border);
  width: 100%;
  max-width: 680px;
  flex: 1;                    /* fills page height minus 40px top+bottom */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* 5. Fluid horizontal padding */
  padding: 80px clamp(28px, 8.8vw, 60px) 32px;
  position: relative;
}

/* ── Back button ────────────────────────────── */
.back-btn {
  position: absolute;
  left: clamp(20px, 5.9vw, 40px);
  top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

.back-btn:hover { opacity: 0.7; }

/* ── Main content block ─────────────────────── */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 5. Fluid section gaps */
  gap: clamp(32px, 7.4vw, 50px);
  width: 100%;
}

/* ── Header ─────────────────────────────────── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4.7vw, 32px);
}

/* 5. Fluid logo sizes */
.hub-logo {
  display: block;
  width: clamp(160px, 38.5vw, 262px);
  height: auto;
  object-fit: contain;
}

.brand-logo {
  display: block;
  width: clamp(88px, 18.8vw, 128px);
  height: auto;
  object-fit: contain;
}

.subtitle {
  font-size: clamp(9px, 1.5vw, 10px);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* ── Divider ────────────────────────────────── */
.divider {
  width: clamp(120px, 27.2vw, 185px);
  height: 5px;
  flex-shrink: 0;
}

/* ── Tagline + cards block ──────────────────── */
.main-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5.9vw, 40px);
  width: 100%;
}

/* 5. Fluid tagline */
.tagline {
  font-size: clamp(12px, 2.4vw, 16px);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

/* ── Cards ──────────────────────────────────── */
.cards {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.8vw, 12px);
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  /* 5. Fluid card padding */
  padding: clamp(14px, 2.9vw, 20px) clamp(20px, 4.7vw, 32px) clamp(20px, 4.7vw, 32px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: background 0.18s ease;
  overflow: hidden;
}

.card--menu {
  padding: clamp(20px, 4.7vw, 32px);
}

.card:hover,
.card:focus-visible {
  background: var(--card-hover);
  outline: none;
}

.card:active { background: rgba(217, 205, 167, 0.1); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.card-label {
  font-size: clamp(10px, 1.8vw, 12px);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(217, 205, 167, 0.5);
}

/* 5. Fluid card name */
.card-name {
  font-family: "minerva-modern", Georgia, serif;
  font-size: clamp(24px, 5.3vw, 36px);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}

.card-arrow {
  width: clamp(8px, 1.5vw, 10px);
  height: clamp(8px, 1.5vw, 10px);
  flex-shrink: 0;
}

.card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.card--reservation {
  background: var(--gold);
  border-color: var(--gold);
}

.card--reservation:hover,
.card--reservation:focus-visible {
  background: #e8ddb8;
}

.card--reservation:active {
  background: #cfc09a;
}

.card--reservation .card-name {
  color: var(--inner-bg);
}

/* ── Calendly embed wrapper ─────────────────────── */
.calendly-wrap {
  width: 100%;
}

.calendly-inline-widget {
  width: 100% !important;
}

/* ── Footer ─────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.footer-line {
  width: 100%;
  height: 0;
  border-top: 0.5px solid rgba(217, 205, 167, 0.25);
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: clamp(10px, 1.8vw, 12px);
  color: var(--muted);
  line-height: 1.6;
}

/* ── Ignoto logo — 2. desaturate + screen blend ─ */
.ignoto-logo-wrap {
  width: clamp(88px, 18.8vw, 128px);
  height: clamp(65px, 13.8vw, 94px);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.ignoto-logo-wrap img {
  position: absolute;
  width: 131.3%;
  height: 179.17%;
  left: -18.83%;
  top: -39.58%;
  /* 2. White logo via desaturation + screen blend */
  filter: saturate(0) brightness(3);
  mix-blend-mode: screen;
}

/* ── Modal ──────────────────────────────────── */
/* 3. 90% opaque overlay */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-panel {
  background: var(--outer-bg);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  position: relative;
}

@media (min-height: 600px) {
  .modal-panel {
    height: 90dvh;
    max-height: 90dvh;
  }
}

.modal-header {
  height: 58px;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px 0 39px;
}

.modal-title {
  font-family: "minerva-modern", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  right: 23px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0.5px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover { background: rgba(217, 205, 167, 0.1); }

.modal-scroll {
  background: var(--inner-bg);
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 4. Gap between menu image pages */
.modal-images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.modal-images img {
  width: 100%;
  display: block;
}

.modal-state {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "quasimoda", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: none;
}

.modal-hint {
  height: 34px;
  flex-shrink: 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Mobile — remove column border, adjust padding */
@media (max-width: 680px) {
  .page {
    padding: 0;
  }

  .inner {
    border: none;
    min-height: 100dvh;
    padding-left: 25px;
    padding-right: 25px;
  }

  .inner--brand {
    padding-top: 97px;
  }

  .content {
    gap: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal { transition: none; }
  .card  { transition: none; }
}
