/* ============================================================
   Nectar × CRC 2026 eCommerce Summit — Private Dinner RSVP
   Design tokens mirror thinknectar.com (Inter, #3a65ff, #021120)
   ============================================================ */

:root {
  --ink: #021120;
  --ink-90: #021120e6;
  --ink-80: #021120cc;
  --ink-60: #02112099;
  --ink-40: #02112066;
  --brand: #3a65ff;
  --brand-600: #2e50d8;
  --brand-100: #e8edff;
  --paper: #ffffff;
  --mist: #f5f7fb;
  --mist-line: #e6ebf4;
  --hero-1: #050b1a;
  --hero-2: #0a1836;
  --white-80: #ffffffcc;
  --white-60: #ffffff99;
  --white-40: #ffffff66;

  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(2, 17, 32, .06), 0 8px 24px rgba(2, 17, 32, .05);
  --shadow-md: 0 2px 6px rgba(2, 17, 32, .07), 0 24px 60px rgba(2, 17, 32, .10);
  --shadow-brand: 0 18px 44px rgba(58, 101, 255, .32);

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow.on-dark { color: #8ea8ff; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.01em; }
.serif { font-family: var(--ff-display); font-weight: 400; font-style: italic; letter-spacing: 0; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-80); line-height: 1.55; }
.muted { color: var(--ink-60); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 1.05rem 1.9rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--mist-line); }
.btn-ghost:hover { border-color: var(--ink-40); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: var(--white-40); }
.btn-ghost.on-dark:hover { border-color: #fff; background: #ffffff14; }
.btn-lg { padding: 1.2rem 2.3rem; font-size: 1.05rem; }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1.15rem; }
.site-header .logo { height: 22px; width: auto; }
.header-right { display: flex; align-items: center; gap: 1.25rem; }
.header-tag { font-size: .82rem; color: var(--white-80); letter-spacing: .02em; }
.site-header .btn { padding: .7rem 1.25rem; font-size: .9rem; box-shadow: none; }
/* scrolled state */
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--mist-line);
}
.site-header.scrolled .logo { filter: brightness(0); }
.site-header.scrolled .header-tag { color: var(--ink-60); }
.site-header.scrolled .btn-primary { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(58,101,255,.35), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(58,101,255,.14), transparent 55%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: #fff;
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero .wrap { position: relative; z-index: 2; max-width: 920px; }
.hero h1 { margin-top: 1.4rem; margin-bottom: 1.5rem; }
.hero .lead { color: var(--white-80); max-width: 40ch; }
.hero-note { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--white-60); margin-top: -.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--white-80);
  padding: .55rem 1rem; border: 1px solid var(--white-40); border-radius: var(--radius-pill);
  background: #ffffff0a; backdrop-filter: blur(4px);
}
.chip svg { width: 15px; height: 15px; opacity: .85; }

/* ---------- Context strip ---------- */
.context { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.context .wrap { display: flex; gap: 1.5rem 2.5rem; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; }
.context p { margin: 0; font-size: clamp(1.1rem, 1.9vw, 1.45rem); color: var(--white-80); max-width: 60ch; }
.context strong { color: #fff; font-weight: 600; }

/* ---------- Experience cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
  background: var(--paper); border: 1px solid var(--mist-line); border-radius: var(--radius-card);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-sm);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand); margin-bottom: 1.25rem;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .55rem; }
.card p { margin: 0; color: var(--ink-60); font-size: 1rem; }

.section-head { max-width: 46ch; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }

/* ---------- Dinner options ---------- */
.dinners { background: var(--mist); }
.dinner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.dinner {
  position: relative; background: var(--paper); border: 1px solid var(--mist-line);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.dinner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dinner-media { height: 200px; overflow: hidden; background: var(--mist); }
.dinner-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.dinner:hover .dinner-media img { transform: scale(1.04); }
.dinner-top { padding: 1.5rem 1.75rem 1.25rem; border-bottom: 1px solid var(--mist-line); }
.dinner-day {
  display: inline-flex; align-items: baseline; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
}
.dinner-date { font-size: .8rem; color: var(--ink-40); letter-spacing: .06em; }
.dinner h3 { margin-top: .9rem; font-size: 1.6rem; }
.dinner-venue-link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem;
  font-size: .92rem; color: var(--brand); font-weight: 500;
}
.dinner-venue-link:hover { text-decoration: underline; }
.dinner-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.dinner-meta { display: flex; flex-direction: column; gap: .7rem; }
.dinner-meta .row { display: flex; align-items: center; gap: .65rem; font-size: .95rem; color: var(--ink-80); }
.dinner-meta .row svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.dinner-desc { color: var(--ink-60); font-size: .95rem; margin: 0; }
.dinner .pick { margin-top: auto; }
.dinner .pick .btn { width: 100%; }

/* ---------- Getting there / map ---------- */
.getting-there { background: var(--mist); }
.map-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; margin-top: 3rem; align-items: stretch; }
.map-canvas { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--mist-line); box-shadow: var(--shadow-sm); min-height: 460px; }
#map { width: 100%; height: 100%; min-height: 460px; background: #dfe6f1; z-index: 1; }
.leaflet-container { font-family: var(--ff); }

.map-legend { background: var(--paper); border: 1px solid var(--mist-line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.legend-group { display: flex; flex-direction: column; gap: .5rem; }
.legend-title { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .15rem; }
.pin-key { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; flex: none; }
.pin-key.crc { background: var(--brand); }
.pin-key.dinner { background: #e0952b; }
.pin-key.hotel { background: var(--ink); font-weight: 600; }

.place { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .65rem; border-radius: 10px; transition: background .15s ease; text-decoration: none; }
a.place:hover { background: var(--mist); }
.place-name { font-size: .98rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.place-name .letter { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.place-sub { font-size: .85rem; color: var(--ink-60); }
.place-sub a { color: var(--brand); }
.place-sub a:hover { text-decoration: underline; }
.place-name .tag { font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #b5751a; background: #fbf0dc; padding: .15rem .5rem; border-radius: var(--radius-pill); }

/* Leaflet custom pins (no external images) */
.map-pin { display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(2,17,32,.35); }
.map-pin span { transform: rotate(45deg); color: #fff; font-weight: 700; line-height: 1; }
.map-pin.crc { width: 34px; height: 34px; background: var(--brand); }
.map-pin.crc span { font-size: .95rem; }
.map-pin.dinner { width: 30px; height: 30px; background: #e0952b; }
.map-pin.dinner span { font-size: .82rem; }
.map-pin.hotel { width: 26px; height: 26px; background: var(--ink); }
.map-pin.hotel span { font-size: .72rem; }
.leaflet-popup-content { font-size: .9rem; margin: .7rem .9rem; }
.leaflet-popup-content b { color: var(--ink); }

/* ---------- Hosts ---------- */
.hosts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 168px)); justify-content: center; gap: 2.25rem 1.75rem; margin-top: 3rem; }
.host { text-align: center; }
.host .avatar {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: linear-gradient(150deg, var(--brand-100), #fff);
  border: 1px solid var(--mist-line); display: grid; place-items: center;
  color: var(--brand); font-size: 1.8rem; font-weight: 600; letter-spacing: -.02em;
  overflow: hidden;
}
.host .avatar img { width: 100%; height: 100%; object-fit: cover; }
.host h3 { font-size: 1.15rem; }
.host .role { color: var(--ink-60); font-size: .95rem; margin-top: .2rem; }

/* ---------- Proof band ---------- */
.proof { background: var(--brand); color: #fff; border-radius: 0; }
.proof .wrap { text-align: center; }
.proof .quote { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; max-width: 22ch; margin: 0 auto; }
.proof .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.proof .stat .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; }
.proof .stat .lab { color: var(--white-80); font-size: .95rem; margin-top: .35rem; }
.proof .stat .lab strong { color: #fff; font-weight: 600; }

/* ---------- RSVP form ---------- */
.rsvp { background: var(--mist); }
.rsvp-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rsvp-copy { position: sticky; top: 6rem; }
.rsvp-copy h2 { margin-top: 1rem; }
.rsvp-copy p { margin-top: 1.1rem; color: var(--ink-60); }
.rsvp-assure { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .85rem; }
.rsvp-assure .row { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-80); }
.rsvp-assure .row svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: .15rem; }

.form-card { background: var(--paper); border: 1px solid var(--mist-line); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-80); margin-bottom: .45rem; }
.field .req { color: var(--brand); }
.field input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .9rem 1rem; border: 1px solid var(--mist-line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder { color: var(--ink-40); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(58,101,255,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

/* dinner choice radios */
.choice-label { font-size: .85rem; font-weight: 600; color: var(--ink-80); margin-bottom: .55rem; display: block; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.15rem; }
.choice {
  position: relative; border: 1px solid var(--mist-line); border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem 2.6rem; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  display: block;
}
.choice:hover { border-color: var(--brand); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .dot { position: absolute; left: 1rem; top: 1.15rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-40); transition: border-color .18s ease; }
.choice .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .18s ease; }
.choice .c-day { font-weight: 600; font-size: .95rem; }
.choice .c-venue { font-size: .82rem; color: var(--ink-60); margin-top: .15rem; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-100); box-shadow: 0 0 0 1px var(--brand); }
.choice:has(input:checked) .dot { border-color: var(--brand); }
.choice:has(input:checked) .dot::after { transform: scale(1); }
.choice input:focus-visible ~ .dot { box-shadow: 0 0 0 3px rgba(58,101,255,.25); }

.consent { font-size: .8rem; color: var(--ink-60); line-height: 1.5; margin: -.15rem 0 1.25rem; }
.consent a { color: var(--brand); text-decoration: underline; }
.form-submit { width: 100%; }
.form-foot { text-align: center; font-size: .82rem; color: var(--ink-40); margin-top: 1rem; }
.form-error { display: none; background: #fff2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.form-error.show { display: block; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 3rem auto 0; border-top: 1px solid var(--mist-line); }
.faq-item { border-bottom: 1px solid var(--mist-line); }
.faq-q { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit;
  font-size: 1.1rem; font-weight: 600; color: var(--ink); padding: 1.4rem 3rem 1.4rem 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .25s ease; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--ink-60); }
.faq-a p { padding-bottom: 1.4rem; margin: 0; }
.faq-a a { color: var(--brand); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white-60); padding-block: 3rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer .logo { height: 20px; }
.site-footer nav { display: flex; gap: 1.5rem; font-size: .9rem; }
.site-footer nav a:hover { color: #fff; }
.site-footer .copy { font-size: .85rem; }

/* ---------- Thank-you page ---------- */
.ty {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(58,101,255,.30), transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: #fff; padding: 7rem var(--gutter) 4rem;
}
.ty-inner { max-width: 640px; }
.ty .check { width: 78px; height: 78px; margin: 0 auto 1.75rem; border-radius: 50%; background: #ffffff12; border: 1px solid var(--white-40); display: grid; place-items: center; color: #8ea8ff; }
.ty .check svg { width: 38px; height: 38px; }
.ty h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.ty .lead { color: var(--white-80); }
.ty-card { background: #ffffff0f; border: 1px solid var(--white-40); border-radius: var(--radius-card); padding: 1.5rem 1.75rem; margin: 2.25rem 0; backdrop-filter: blur(6px); }
.ty-card .k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white-60); }
.ty-card .v { font-size: 1.35rem; font-weight: 600; margin-top: .4rem; }
.ty-card .v .sub { display: block; font-size: .95rem; font-weight: 400; color: var(--white-80); margin-top: .3rem; }
.ty-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.25rem 0; text-align: left; }
.ty-step { background: #ffffff0a; border: 1px solid var(--white-40); border-radius: var(--radius-sm); padding: 1.1rem; }
.ty-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 600; margin-bottom: .7rem; }
.ty-step p { margin: 0; font-size: .9rem; color: var(--white-80); }
.ty-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.ty .logo { height: 22px; margin: 0 auto 2.5rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .proof .stats { grid-template-columns: 1fr; }
  .dinner-grid { grid-template-columns: 1fr; }
  .rsvp-layout { grid-template-columns: 1fr; }
  .rsvp-copy { position: static; }
  .map-layout { grid-template-columns: 1fr; }
  .map-canvas, #map { min-height: 360px; }
  .ty-steps { grid-template-columns: 1fr; }
  .header-tag { display: none; }
}
@media (max-width: 560px) {
  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .hero-cta { width: 100%; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}
