/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bni-red:  #cc0000;
  --bni-red-h:#a80000;
  --dark:    #111111;
  --dark-m:  #1c1c1c;
  --dark-l:  #2a2a2a;
  --stone:   #f5f0e8;
  --stone-m: #ede7d9;
  --stone-l: #e2d9c8;
  --gold:    #c9a84c;
  --gold-l:  #e8c96a;
  --white:   #ffffff;
  --text:    #1a1a1a;
  --text-m:  #444444;
  --text-l:  #666666;
  --radius:  2px;
  --max-w:   760px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Legacy aliases kept for gradual migration */
  --green:   #111111;
  --green-m: #1c1c1c;
  --green-l: #2a2a2a;
  --brass:   #c9a84c;
  --red:     #cc0000;
  --red-h:   #a80000;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); }
a:focus-visible { outline: 2px solid var(--bni-red); outline-offset: 2px; }

/* ── Typography ───────────────────────────────────────── */
.serif { font-family: var(--font-serif); }

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--stone);
}

.divider {
  height: 1px;
  background: var(--gold);
  opacity: 0.25;
  margin: 0;
}

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  border-bottom: 2px solid var(--bni-red);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-brand-dot {
  width: 10px;
  height: 10px;
  background: var(--bni-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-cta {
  background: var(--bni-red);
  color: var(--white);
  padding: 0.4rem 1.1rem;
  border-radius: 1px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--bni-red-h); }
.nav-cta:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  background: #000;
  color: var(--stone);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://supabase.artdecocafe.ro/storage/v1/render/image/public/gallery/vila/Exterior/4-aacc1b.webp?width=1400&quality=20');
  background-size: cover;
  background-position: center 55%;
}

/* Fade the hero photo in once it has decoded, instead of letting it pop.
   #hero sits on solid black, so the pre-load state is a black panel and the
   headline stays readable throughout. */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    opacity: 0;
    transition: opacity 5s ease-out;
  }
  .hero-bg.loaded { opacity: 1; }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.82) 55%,
    rgba(0,0,0,0.68) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Red accent bar above the card */
.hero-accent-bar {
  width: 48px;
  height: 3px;
  background: var(--bni-red);
  margin-bottom: 1.75rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.hero-headline {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 580px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-meta-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-item strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.hero-seats {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  background: var(--bni-red);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 1px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.btn-primary:hover { background: var(--bni-red-h); }
.btn-primary:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Section: Ce este seara ───────────────────────────── */
#ce-este-seara {
  background: var(--white);
}

#ce-este-seara .lead {
  font-size: 1.12rem;
  color: var(--text-m);
  max-width: 620px;
  line-height: 1.8;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bni-red);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ── Section: Program ─────────────────────────────────── */
#program {
  background: var(--dark);
  color: var(--stone);
  padding: 0;
  overflow: hidden;
}

.programme-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.programme-text-col {
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Keep the agenda as a centred block inside its half, not edge-to-edge */
.programme-text-col > * {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.programme-photo-col {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}

.programme-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  opacity: 0.85;
}
#program h2 { color: var(--white); }
#program .section-label { color: var(--gold); }

.programme-list {
  list-style: none;
  border-left: 2px solid var(--bni-red);
  padding-left: 1.5rem;
  margin-top: 1.75rem;
}

.programme-list li {
  position: relative;
  padding: 0.65rem 0;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.programme-list li:last-child { border-bottom: none; }


.programme-list li::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  background: var(--bni-red);
  border-radius: 50%;
}

.prog-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--gold);
  min-width: 3.4rem;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prog-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

/* ── Section: Speaker ─────────────────────────────────── */
.speaker-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.speaker-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bni-red);
  flex-shrink: 0;
  background: var(--stone-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-l);
  font-size: 0.75rem;
  text-align: center;
  overflow: hidden;
}

.speaker-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.speaker-title {
  font-size: 0.82rem;
  color: var(--bni-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.speaker-bio {
  color: var(--text-m);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ── Section: Ce este BNI ─────────────────────────────── */
#bni { background: var(--stone); }

.bni-body {
  font-size: 1.05rem;
  color: var(--text-m);
  line-height: 1.8;
  max-width: 620px;
}

/* ── Section: Pentru cine ─────────────────────────────── */
.for-whom-note {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--bni-red);
  background: var(--stone);
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
}

/* ── Section: Locație ─────────────────────────────────── */
#locatie {
  background: var(--white);
  padding: 0;
  overflow: hidden;
}

.venue-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.venue-photo-col {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TODO-ORGANISER: add actual venue photo — replace placeholder */
.venue-photo-placeholder {
  color: rgba(255,255,255,0.15);
  font-family: var(--font-serif);
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
  letter-spacing: 0.08em;
}

.venue-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.venue-text-col {
  padding: 5rem 3rem;
  background: var(--dark);
  color: var(--stone);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-text-col h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.venue-text-col .section-label {
  color: var(--gold);
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.venue-address {
  font-size: 0.87rem;
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: 1.5rem;
}

.venue-desc {
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.8;
  font-size: 0.97rem;
}

@media (max-width: 680px) {
  .venue-split { grid-template-columns: 1fr; }
  .venue-photo-col { min-height: 260px; }
  .venue-text-col { padding: 3rem 1.5rem; }

  .programme-split { grid-template-columns: 1fr; }
  .programme-photo-col { min-height: 260px; }
  .programme-text-col { padding: 3rem 1.5rem; }
}

/* ── Section: Ce este inclus ──────────────────────────── */
#inclus { background: var(--white); }

.included-list {
  list-style: none;
  margin-top: 1.25rem;
}

.included-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.97rem;
}

.included-list li:last-child { border-bottom: none; }

.included-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--bni-red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Section: Înscriere ───────────────────────────────── */
#inscriere { background: var(--stone); }

.reg-steps {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}

.reg-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--bni-red);
  color: var(--white);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-family: var(--font-serif);
}

.step-content h3 { color: var(--dark); margin-bottom: 0.3rem; }
.step-content p { color: var(--text-m); font-size: 0.95rem; margin-bottom: 0; }

.pay-button-wrap { margin-bottom: 2rem; }

/* ── Form ─────────────────────────────────────────────── */
#reg-form {
  display: none;
  border-top: 1px solid var(--stone-m);
  padding-top: 2rem;
  margin-top: 2rem;
}

#reg-form.visible { display: block; }

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-full { grid-column: 1 / -1; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-m);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid #ccc;
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--bni-red);
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.form-field select { cursor: pointer; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-m);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--bni-red);
  cursor: pointer;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-l);
  margin-top: 0.5rem;
  font-style: italic;
}

.reg-confirm-note {
  background: var(--stone-m);
  border-left: 3px solid var(--bni-red);
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-m);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-locked-msg {
  padding: 1rem 1.25rem;
  background: var(--stone-m);
  border: 1px dashed #ccc;
  border-radius: var(--radius);
  color: var(--text-l);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Success state */
.form-success {
  display: none;
  padding: 2rem;
  background: #f0faf4;
  border: 1px solid #a8d5b5;
  border-radius: var(--radius);
  text-align: center;
  color: var(--green);
}

.form-success h3 { margin-bottom: 0.5rem; }
.form-success.visible { display: block; }

/* ── Section: FAQ ─────────────────────────────────────── */
#faq { background: var(--white); }

.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
}

.faq-q:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 0 1rem;
  color: var(--text-m);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item[open] .faq-a { display: block; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 2px solid var(--bni-red);
  color: rgba(245, 240, 232, 0.7);
  padding: 3rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover { color: var(--stone); }

.footer-entity {
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 0.5rem;
}

.footer-todo {
  color: #e88; /* visible flag for organiser review */
  font-style: italic;
}

/* ── Page reveal animation ────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── Responsive tweaks ────────────────────────────────── */
@media (max-width: 480px) {
  .speaker-wrap { flex-direction: column; }
  section { padding: 3.5rem 0; }
  .footer-links { gap: 0.4rem 1rem; }
  .hero-inner { padding: 4rem 1.25rem 3.5rem; }
}
