/* ================================================================
   LAYOUT.CSS — Header, Hero, Footer, Modal, Selection Bar, Cookie
   ================================================================ */

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 245, 238, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 26, 74, .08);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--plum);
  font-weight: 400;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border: 1.5px dashed var(--lav-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-body);
}

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.header-nav a:hover  { color: var(--plum); background: var(--lav-pale); }
.header-nav a.active { color: var(--plum); font-weight: 600; }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.countdown-mini {
  font-size: .76rem;
  color: var(--text-soft);
  font-weight: 400;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid rgba(61, 26, 74, .15);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 61px;
  background: rgba(251, 245, 238, .98);
  backdrop-filter: blur(16px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--plum);
  padding: 10px 0;
  text-decoration: none;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--lavender); }
.mobile-nav .btn { margin-top: 20px; font-size: 1rem; }

@media (max-width: 900px) {
  .header-nav  { display: none; }
  .nav-toggle  { display: flex; }
  .countdown-mini { display: none; }
}
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

/* ===== HERO — 16:9 BG IMAGE ===== */
.hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .hero {
    aspect-ratio: unset;
    min-height: 90vh;
    padding: 90px 0 60px;
  }
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2A1233 0%, #3D1A4A 40%, #5C2A70 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Imaginea reală înlocuiește .hero-bg-ph:
   .hero-bg img { width:100%; height:100%; object-fit:cover; } */
.hero-bg-ph-label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  color: rgba(255,255,255,.18);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(42,18,51,.93) 0%,
    rgba(42,18,51,.82) 38%,
    rgba(42,18,51,.45) 65%,
    rgba(42,18,51,.15) 100%
  );
}
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(42,18,51,.6)  0%,
      rgba(42,18,51,.88) 55%,
      rgba(42,18,51,.97) 100%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
}

.hero-left { color: var(--cream); }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-date-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lav-light);
  font-family: var(--font-body);
}
.hero h1 { color: var(--white); margin-bottom: 6px; }
.hero h1 span { color: var(--lav-light); font-style: italic; }
.hero-subtitle {
  font-size: .92rem;
  color: rgba(251,245,238,.78);
  margin-bottom: 26px;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: .68rem;
  color: var(--lav-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
  font-weight: 500;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-right { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 768px) { .hero-right { display: none; } }

/* Countdown box (în hero, desktop) */
.countdown-box {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  text-align: center;
}
.countdown-title {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lav-light);
  margin-bottom: 16px;
  font-weight: 500;
  font-family: var(--font-body);
}
.countdown-digits { display: flex; gap: 10px; justify-content: center; }
.cd-unit { text-align: center; }
.cd-num {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 52px;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  display: block;
}
.cd-lbl {
  font-size: .62rem;
  color: var(--lav-light);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

/* ===== EVENT TEASER ===== */
.event-teaser { text-align: center; padding: 64px 0; }
.event-teaser .lead {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--text-soft);
  max-width: 700px;
  margin: 20px auto 28px;
  font-weight: 400;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--plum-dark);
  color: var(--cream);
  padding: 52px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand p {
  font-size: .8rem;
  color: rgba(251,245,238,.55);
  margin-top: 8px;
  max-width: 240px;
  line-height: 1.65;
  font-weight: 300;
}
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links-col h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lav-light);
  margin-bottom: 14px;
  font-weight: 500;
  font-family: var(--font-body);
}
.footer-links-col a {
  display: block;
  font-size: .8rem;
  color: rgba(251,245,238,.55);
  margin-bottom: 8px;
  transition: color .2s;
  font-weight: 300;
}
.footer-links-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .74rem;
  color: rgba(251,245,238,.35);
  font-weight: 300;
}

/* ===== SELECTION BAR (sticky bottom) ===== */
.selection-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--plum);
  color: var(--white);
  padding: 14px 24px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(61, 26, 74, .3);
}
.selection-bar.visible { transform: translateY(0); }
.selection-bar-left { display: flex; align-items: center; gap: 12px; }
.sel-count-badge {
  background: var(--lavender);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .9rem;
  flex-shrink: 0;
}
.sel-classes-preview {
  font-size: .78rem;
  color: rgba(251,245,238,.78);
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 300;
}
.selection-bar-right { display: flex; align-items: center; gap: 10px; }
.btn-view-cart {
  background: var(--lavender);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .82rem;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font-body);
}
.btn-view-cart:hover { background: var(--lav-light); }
.btn-clear-sel {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.65);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
}
.btn-clear-sel:hover { border-color: rgba(255,255,255,.55); color: var(--white); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 15, 34, .72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal.modal-wide { max-width: 760px; }
.modal-close {
  position: sticky;
  top: 12px;
  left: 100%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  margin: 12px 12px 0 auto;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--plum); color: var(--white); }
.modal-body { padding: 10px 30px 30px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--plum-dark);
  color: var(--cream);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text {
  font-size: .78rem;
  color: rgba(251,245,238,.75);
  flex: 1;
  min-width: 200px;
  font-weight: 300;
}
.cookie-text a { color: var(--lav-light); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--lavender);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-cookie-decline {
  background: transparent;
  color: rgba(251,245,238,.55);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  cursor: pointer;
  font-family: var(--font-body);
}
