/* ============================================================
   Summer @ De Club
   ------------------------------------------------------------
   Strictly brandbook (General/design.md):
   - Palette: White #FFFFFF, Black #000000, Stone #8F8B7E,
     Celadon #D1DCBD. No dark green. Night-mode text: cream
     #f5f0e8, muted #b0aba3.
   - Figtree primary, IBM Plex Mono for short Latin all-caps only.
   - Mono floor 0.8rem, UI text floor 0.8rem, errors >= 0.88rem.
   - Pills: border-radius 100px.
   Form follows the Nevo Peretz idiom: body-font labels, radio-mark
   tier rows, segmented choice pills, per-field salmon errors.
   ============================================================ */

:root {
  --black:      #000000;
  --white:      #ffffff;
  --stone:      #8F8B7E;
  --celadon:    #D1DCBD;
  --celadon-hi: #bccaa0;

  --surface:    #1a1a17;
  --cream:      #f5f0e8;
  --muted:      #b0aba3;
  --salmon:     #e8a599;

  --line:        rgba(245, 240, 232, 0.12);
  --line-strong: rgba(245, 240, 232, 0.26);

  --font: 'Figtree', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 100px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--celadon); color: var(--black); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─────────── shared type ─────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--celadon);
}
.eyebrow--center { text-align: center; }

.section__title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--white);
  margin-top: 18px;
}

.section__note {
  max-width: 46ch;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 620px; }

.section { padding: clamp(72px, 12vw, 128px) 0; }

/* ═══════════════ HERO ═══════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 168px 24px 88px;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 45%, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.82) 55%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.14) 35%, rgba(0,0,0,0.96) 100%);
}

.hero__brand {
  position: absolute;
  top: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}
.hero__mark { width: 88px; opacity: 0.92; margin: 0 auto; }

.floors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 24px);
  margin-top: 18px;
}
.floors img { height: 26px; width: auto; opacity: 0.9; }

.hero__inner { position: relative; z-index: 1; max-width: 860px; width: 100%; }

.hero__title {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
}
.hero__word {
  font-size: clamp(52px, 13vw, 118px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--white);
}
.hero__logo {
  width: clamp(230px, 50vw, 430px);
  height: auto;
}

.hero__sub {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: clamp(0.8rem, 2.4vw, 0.88rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero__sub i { color: var(--celadon); font-style: normal; padding: 0 8px; }

/* date block: bold type, no container */
.when { margin-top: 36px; }
.when span { display: block; }
.when__day,
.when__time {
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  line-height: 1.28;
}
.when__date {
  font-size: clamp(34px, 6.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--celadon);
  line-height: 1.1;
  margin: 2px 0 4px;
}

.hero__cta { margin-top: 38px; }

/* ═══════════════ BUTTONS ═══════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 44px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .2s;
}
.btn--primary { background: var(--celadon); color: var(--black); }
.btn--primary:hover { background: var(--celadon-hi); }
.btn--ghost { background: transparent; color: var(--celadon); border-color: var(--line-strong); padding: 15px 24px; }
.btn--ghost:hover { border-color: var(--celadon); color: var(--white); }
.btn--full { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--celadon); outline-offset: 3px; }

/* ═══════════════ LINE UP ═══════════════ */

.section--lineup {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: clamp(64px, 10vw, 104px) 0;
}

.lineup { list-style: none; margin-top: 30px; }
.lineup li {
  font-size: clamp(32px, 7vw, 66px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--white);
  transition: color .3s var(--ease);
}
.lineup li:hover { color: var(--celadon); }

.lineup__note {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ═══════════════ SPACES ═══════════════ */

.spaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 56px;
}

.space {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.space:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.space__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.space__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.space__body { padding: 30px 28px 34px; }

.space__no {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}

.space__name {
  margin-top: 12px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.space__open {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--celadon);
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li {
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 7px 15px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ═══════════════ RSVP FORM ═══════════════ */

.section--rsvp { border-top: 1px solid var(--line); }

.card {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 5vw, 40px);
}

.form-block { border: 0; display: flex; flex-direction: column; gap: 20px; }
.form-block + .form-block { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }

.block-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0;
  margin-bottom: 2px;
}

/* labels are content, so body font at a readable size (Nevo idiom) */
.label {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.label i { font-style: normal; color: var(--celadon); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field input,
.field select {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  padding: 14px 15px;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--surface); color: var(--cream); }
.field input::placeholder { color: rgba(176,171,163,0.45); }
.field input:focus, .field select:focus {
  border-color: var(--celadon);
  background: rgba(0,0,0,0.62);
  box-shadow: 0 0 0 3px rgba(209,220,189,0.15);
}
.field.invalid input,
.field.invalid select { border-color: rgba(232,165,153,0.55); }
.field.invalid input:focus,
.field.invalid select:focus { box-shadow: 0 0 0 3px rgba(232,165,153,0.15); }
.field input.is-code { font-family: var(--mono); letter-spacing: 0.5em; text-align: center; }

.prefixed { display: flex; align-items: stretch; }
.prefixed span {
  display: flex; align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: rgba(0,0,0,0.4);
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--stone);
}
.prefixed input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.field.invalid .prefixed span { border-color: rgba(232,165,153,0.55); }

/* errors are content: body font, >= 0.88rem */
.field-error {
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--salmon);
  min-height: 0;
}
.field-error:empty { display: none; }
.field-error--form { margin-top: 18px; text-align: center; }
.field-error.is-ok { color: var(--celadon); }

.form-footnote {
  font-family: var(--font);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--stone);
}
.form-footnote--center { text-align: center; margin-top: 16px; }

/* ── tier rows ── */

.tier-chooser { display: flex; flex-direction: column; gap: 12px; }

.tier-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.tier-option:hover { border-color: var(--line-strong); }
.tier-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.tier-mark {
  flex-shrink: 0;
  position: relative;
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .25s var(--ease);
}
.tier-option input:checked ~ .tier-mark { border-color: var(--celadon); }
.tier-option input:checked ~ .tier-mark::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--celadon);
}
.tier-option:has(input:checked) { border-color: var(--celadon); background: rgba(209,220,189,0.07); }
.tier-option:has(input:checked) .tier-label { color: var(--celadon); }
.tier-option input:focus-visible ~ .tier-mark { box-shadow: 0 0 0 3px rgba(209,220,189,0.2); }

.tier-body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.tier-label { font-size: 1.02rem; font-weight: 600; color: var(--white); letter-spacing: -0.01em; }
.tier-note { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

.tier-price {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--celadon);
  white-space: nowrap;
}
.tier-price s { text-decoration: none; color: var(--stone); padding: 0 2px; }
.tier-price.is-free { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; }

/* ── segmented choices ── */

.choices { display: flex; gap: 10px; }
.choice { flex: 1; position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.choice:hover span { border-color: var(--line-strong); }
.choice input:checked + span { background: var(--celadon); color: var(--black); border-color: var(--celadon); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(209,220,189,0.2); }

/* ── otp ── */

.otp { display: flex; flex-direction: column; gap: 14px; }
.otp-row { display: flex; align-items: flex-end; gap: 10px; }
.otp-row .field { flex: 1; }
.otp-row .btn { flex-shrink: 0; }

/* ── consent checkbox ── */

.consent { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }

.check { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex-shrink: 0;
  position: relative;
  width: 21px; height: 21px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.check input:checked + .check__box { background: var(--celadon); border-color: var(--celadon); }
.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  top: 4px; left: 7px;
  width: 5px; height: 10px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(45deg);
}
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(209,220,189,0.2); }
.check__text { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.check__text i { font-style: normal; color: var(--celadon); }
.consent.invalid .check__box { border-color: rgba(232,165,153,0.7); }

/* ── confirmation ── */

.card--confirm { text-align: center; padding: 48px 32px; }

.confirm__mark {
  display: block;
  width: 52px; height: 52px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--celadon);
  position: relative;
}
.confirm__mark::after {
  content: '';
  position: absolute;
  top: 46%; left: 50%;
  width: 15px; height: 8px;
  border-left: 1.5px solid var(--celadon);
  border-bottom: 1.5px solid var(--celadon);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.confirm__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.confirm__sub { margin-top: 14px; font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.confirm__when {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--celadon);
}

/* ── info ── */

.info { list-style: none; margin-top: 40px; }
.info li {
  display: flex;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.info li span {
  flex-shrink: 0;
  width: 84px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 2px;
}
.info li b { font-weight: 400; color: var(--cream); }

/* ═══════════════ FOOTER ═══════════════ */

.footer {
  padding: 56px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer__logo { width: 72px; margin: 0 auto 20px; opacity: 0.6; }

.footer__address {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.socials { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 24px 0 26px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--stone);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.socials a:hover { color: var(--celadon); border-color: var(--celadon); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:focus-visible { outline: 2px solid var(--celadon); outline-offset: 3px; }

.footer__legal,
.footer__credit {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--stone);
  line-height: 2.1;
}
.footer__credit { margin-top: 8px; }
.footer .sep { color: var(--celadon); padding: 0 9px; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--celadon); }
.footer__legal a[hreflang], .footer__legal a:last-child { font-family: var(--font); font-size: 0.88rem; letter-spacing: 0; }

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 780px) {
  .spaces { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 176px; }
  .floors img { height: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .choices { flex-direction: column; }
  .otp-row { flex-direction: column; align-items: stretch; }
  .otp-row .btn { width: 100%; }
  .tier-option { align-items: flex-start; gap: 13px; padding: 16px; }
  .tier-price { padding-top: 2px; }
  .info li { flex-direction: column; gap: 6px; }
  .info li span { width: auto; }
  .footer .sep { padding: 0 6px; }
  .socials { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
