/* ═══════════════════════════════════════════════════════
   OPENING SOON — shared styles
   Used by /opening/ (full page) and the homepage popup.
   Builds on the design tokens defined in style.css.
   ═══════════════════════════════════════════════════════ */

/* ─── Title ─── */
.opening-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--green);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
}
.opening-title em {
  font-style: italic;
  color: var(--rust);
}

/* ─── Countdown ─── */
.countdown {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  min-width: 76px;
  box-shadow: 0 4px 24px rgba(26,74,53,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}
.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.countdown__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.countdown__done {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-style: italic;
  color: var(--rust);
  text-align: center;
}

/* ─── Date line ─── */
.opening-date {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ─── Buttons ─── */
.opening-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--primary {
  background: var(--rust);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--rust-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139,53,32,0.25);
}
.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26,74,53,0.18);
}

/* ═══ /opening/ — full page ═══ */
.opening-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 56px 24px;
  gap: clamp(20px, 4vw, 32px);
  background: var(--cream);
}
.opening-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(26,74,53,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139,53,32,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.opening-hero > * {
  position: relative;
  z-index: 1;
}
.opening-hero__logo {
  width: min(240px, 56vw);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.08));
  animation: fadeUp 1s var(--ease-smooth) both;
}
.opening-hero .opening-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

/* ═══ Homepage popup ═══ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-smooth), visibility 0.35s;
}
.popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.popup {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 40px);
  max-width: 420px;
  width: 100%;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease-spring);
}
.popup-overlay.is-open .popup {
  transform: translateY(0) scale(1);
}
.popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-smooth);
}
.popup__close:hover {
  background: var(--rust);
  color: var(--white);
  transform: rotate(90deg);
}
.popup__logo {
  width: 88px;
  height: auto;
}
.popup .opening-title {
  font-size: clamp(1.4rem, 6vw, 2rem);
  gap: 0.3em;
}
.popup .countdown {
  gap: 8px;
}
.popup .countdown__item {
  padding: 10px 12px;
  min-width: 54px;
  gap: 4px;
  border-radius: var(--radius-sm);
}
.popup .countdown__value {
  font-size: clamp(1.1rem, 5vw, 1.5rem);
}
.popup .countdown__label {
  font-size: 9px;
}
.popup .opening-date {
  font-size: 0.85rem;
}
.popup .opening-actions {
  width: 100%;
}
.popup .btn {
  padding: 12px 24px;
  font-size: 0.85rem;
  flex: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  .countdown__item { padding: 12px 14px; min-width: 64px; }
  .opening-actions { flex-direction: column; width: 100%; max-width: 280px; }
  .opening-actions .btn { width: 100%; }
  .popup { padding: 28px 20px; }
  .popup .opening-actions { flex-direction: row; }
}
