/* ============================================================
   UNIBUD Connect & Celebrate — design tokens
   Palette: evening-gala ink & brass, not the usual cream/terracotta
   or near-black/neon defaults.
   ============================================================ */
:root{
  --ink:        #10131b;
  --ink-panel:  #171b26;
  --ink-panel-2:#1d2230;
  --line:       rgba(243,238,224,0.10);
  --line-soft:  rgba(243,238,224,0.06);
  --ivory:      #f3eee0;
  --ivory-dim:  rgba(243,238,224,0.62);
  --ivory-faint:rgba(243,238,224,0.38);
  --gold:       #c9a463;
  --gold-soft:  #e6cd97;
  --gold-dim:   rgba(201,164,99,0.35);
  --sage:       #3f5c4f;
  --sage-bright:#6b9c85;
  --error:      #d97a6a;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 24px 60px -20px rgba(0,0,0,0.55);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: radial-gradient(ellipse 120% 60% at 50% -10%, #1a2030 0%, var(--ink) 55%);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }
img{ max-width:100%; display:block; }

::selection{ background: var(--gold-dim); color: var(--ivory); }

:focus-visible{
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav / language switch ─────────────────────────────────────── */
.topbar{
  position: sticky; top:0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(16,19,27,0.72);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner{
  max-width: 880px; margin:0 auto; padding: 14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--display);
  font-size: 1.05rem; letter-spacing: 0.02em; color: var(--ivory);
  text-decoration:none;
}
.brand-mark{
  width: 30px; height:30px; border-radius:50%;
  border:1px solid var(--gold-dim);
  display:flex; align-items:center; justify-content:center;
  font-size: 0.62rem; letter-spacing: 0.04em; color: var(--gold-soft);
  font-family: var(--body); font-weight:700;
}
.langswitch{ display:flex; gap:4px; background: var(--ink-panel); border:1px solid var(--line); border-radius: 999px; padding:3px; }
.langswitch a{
  text-decoration:none; font-size:0.72rem; letter-spacing:0.06em; font-weight:600;
  padding: 6px 12px; border-radius:999px; color: var(--ivory-faint);
  transition: color .18s ease, background .18s ease;
}
.langswitch a.active{ background: var(--gold); color: #221a0c; }
.langswitch a:not(.active):hover{ color: var(--ivory); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero{ padding: 76px 0 40px; text-align:center; position:relative; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 22px;
}
.eyebrow::before, .eyebrow::after{ content:""; width:22px; height:1px; background: var(--gold-dim); }

.hero h1{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.06;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.hero .subtitle{
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  margin: 0 0 26px;
}
.hero p.lead{
  max-width: 560px; margin: 0 auto 30px;
  color: var(--ivory-dim); font-size: 1.02rem;
}

.deadline-pill{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid var(--gold-dim); background: rgba(201,164,99,0.08);
  padding: 10px 20px; border-radius: 999px; font-size: 0.85rem;
  color: var(--gold-soft); margin-bottom: 34px;
}
.deadline-pill strong{ color: var(--ivory); font-weight:600; }

.hero-ctas{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn{
  appearance:none; border:none; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--body); font-weight:600; font-size: 0.92rem;
  padding: 14px 30px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-gold{
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #241b0b;
  box-shadow: 0 12px 30px -10px rgba(201,164,99,0.55);
}
.btn-gold:hover{ box-shadow: 0 14px 36px -8px rgba(201,164,99,0.7); }
.btn-ghost{
  background: transparent; color: var(--ivory);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--gold-dim); color: var(--gold-soft); }
.btn-block{ width:100%; }

/* ── At a glance strip ─────────────────────────────────────────── */
.glance{
  display:grid; grid-template-columns: repeat(4,1fr); gap:1px;
  background: var(--line); border:1px solid var(--line);
  border-radius: var(--radius-md); overflow:hidden; margin: 46px 0 64px;
}
.glance-item{
  background: var(--ink-panel); padding: 22px 16px; text-align:center;
}
.glance-item .ico{ font-size:1.3rem; margin-bottom:10px; color: var(--gold-soft); }
.glance-item .label{ font-size: 0.8rem; color: var(--ivory-dim); }
@media (max-width: 720px){ .glance{ grid-template-columns: repeat(2,1fr);} }

/* ── Section headings ──────────────────────────────────────────── */
.section-head{ text-align:center; margin-bottom: 40px; }
.section-head .kicker{
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform:uppercase;
  color: var(--gold-soft); margin-bottom: 10px;
}
.section-head h2{
  font-family: var(--display); font-weight:600;
  font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 10px;
}
.section-head p{ color: var(--ivory-dim); max-width: 480px; margin: 0 auto; }

section.block{ padding: 20px 0 76px; }

/* ── Form card ──────────────────────────────────────────────────── */
.card{
  background: linear-gradient(180deg, var(--ink-panel-2), var(--ink-panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
@media (max-width: 640px){ .card{ padding: 26px 20px; } }

.form-section-title{
  font-family: var(--display); font-size: 1.15rem; font-weight:600;
  color: var(--gold-soft); margin: 34px 0 18px; display:flex; align-items:center; gap:12px;
}
.form-section-title:first-child{ margin-top:0; }
.form-section-title::after{ content:""; flex:1; height:1px; background: var(--line); }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .grid-2{ grid-template-columns: 1fr; } }

.field{ margin-bottom: 18px; }
.field label{
  display:block; font-size: 0.82rem; color: var(--ivory-dim); margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.field .hint{ font-size: 0.76rem; color: var(--ivory-faint); margin-top: 6px; }

.input, select, textarea{
  width:100%; background: rgba(0,0,0,0.22); color: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-family: var(--body); font-size: 0.95rem;
  transition: border-color .15s ease, background .15s ease;
}
.input::placeholder, textarea::placeholder{ color: var(--ivory-faint); }
.input:focus, select:focus, textarea:focus{
  border-color: var(--gold); background: rgba(0,0,0,0.32); outline:none;
}
textarea{ resize: vertical; min-height: 90px; }

/* custom select arrow */
select{ appearance:none; -webkit-appearance:none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' stroke='%23c9a463' stroke-width='1.6' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat:no-repeat; background-position: right 15px center; padding-right: 38px;
}

/* toggle group (Yes/No/Maybe) */
.toggle-group{ display:flex; gap:10px; flex-wrap:wrap; }
.toggle-group input{ position:absolute; opacity:0; pointer-events:none; }
.toggle-group label{
  cursor:pointer; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.88rem; color: var(--ivory-dim);
  transition: all .15s ease; margin:0;
}
.toggle-group input:checked + label{
  background: var(--gold); border-color: var(--gold); color: #241b0b; font-weight:600;
}
.toggle-group label:hover{ border-color: var(--gold-dim); }

.conditional{
  overflow:hidden; max-height:0; opacity:0; transition: max-height .35s ease, opacity .3s ease, margin .35s ease;
}
.conditional.open{ max-height: 480px; opacity:1; margin-top: 6px; }

.required-note{ font-size: 0.76rem; color: var(--ivory-faint); margin-top: 6px; }

.form-actions{ margin-top: 32px; }

/* ── Flash messages ─────────────────────────────────────────────── */
.flash{
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px;
  font-size: 0.88rem; border: 1px solid;
}
.flash-error{ background: rgba(217,122,106,0.1); border-color: rgba(217,122,106,0.4); color: #f0b3a6; }
.flash-success{ background: rgba(107,156,133,0.12); border-color: rgba(107,156,133,0.45); color: var(--sage-bright); }

/* ── FAQ accordion ──────────────────────────────────────────────── */
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  color: var(--ivory); font-family: var(--body); font-size: 1rem; font-weight:600;
  padding: 20px 4px; display:flex; align-items:center; justify-content:space-between; gap: 16px;
}
.faq-q .plus{
  flex:none; width:26px; height:26px; border-radius:50%; border:1px solid var(--gold-dim);
  color: var(--gold-soft); display:flex; align-items:center; justify-content:center;
  font-size: 1rem; transition: transform .25s ease;
}
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden; transition: max-height .35s ease;
  color: var(--ivory-dim); font-size: 0.94rem;
}
.faq-a-inner{ padding: 0 4px 22px; max-width: 640px; }
.faq-item.open .faq-a{ max-height: 400px; }

/* ── Ticket / QR card (signature element) ──────────────────────── */
.ticket{
  position: relative;
  background: linear-gradient(160deg, var(--ink-panel-2), var(--ink-panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display:grid; grid-template-columns: 1.3fr 1px 1fr;
  overflow:hidden;
}
@media (max-width: 640px){
  .ticket{ grid-template-columns: 1fr; }
  .ticket-perf{ display:none; }
}
.ticket-main{ padding: 38px; }
.ticket-perf{
  background-image: radial-gradient(circle, var(--line) 2px, transparent 2.4px);
  background-size: 100% 14px;
}
.ticket-stub{
  padding: 38px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap: 16px; background: rgba(0,0,0,0.15);
}
.ticket-seal{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--gold-dim);
  display:flex; align-items:center; justify-content:center; margin-bottom: 6px;
  color: var(--gold-soft); font-family: var(--display); font-size: 0.85rem; letter-spacing:0.02em;
}
.ticket-event{
  font-size: 0.68rem; letter-spacing: 0.16em; color: var(--gold-soft); margin-bottom: 14px;
}
.ticket-name{
  font-family: var(--display); font-size: 1.9rem; font-weight:600; margin: 0 0 22px;
}
.ticket-row{ display:flex; justify-content:space-between; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 0.88rem; }
.ticket-row:first-of-type{ border-top:none; }
.ticket-row .k{ color: var(--ivory-faint); }
.ticket-row .v{ color: var(--ivory); font-weight:600; }
.ticket-qr{ background:#fff; padding:12px; border-radius: 12px; }
.ticket-qr img{ width: 168px; height:168px; }
.ticket-ref{ font-size: 0.72rem; letter-spacing:0.08em; color: var(--ivory-faint); }

/* ── Misc content blocks ───────────────────────────────────────── */
.center{ text-align:center; }
.stack{ display:flex; flex-direction:column; gap: 14px; align-items:center; }
.small-note{ font-size:0.82rem; color: var(--ivory-faint); max-width: 460px; margin: 18px auto 0; text-align:center; }

.mini-card{
  background: var(--ink-panel); border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px; max-width: 460px; margin: 0 auto;
}

footer{
  border-top: 1px solid var(--line-soft); padding: 34px 0 60px; text-align:center;
}
footer p{ font-size: 0.78rem; color: var(--ivory-faint); max-width: 440px; margin: 0 auto; }

/* fade-in on load */
.fade-up{ animation: fadeUp .7s ease both; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform:none; } }
