/* Drake Supper Club — shared styles */

:root {
  --ink:        #0b1d2a;
  --ink-soft:   #1a3142;
  --sea:        #0e4258;
  --sea-deep:   #08293b;
  --foam:       #f4f1ea;
  --foam-soft:  rgba(244,241,234,0.85);
  --foam-mute:  rgba(244,241,234,0.55);
  --foam-dim:   rgba(244,241,234,0.35);
  --gold:       #c4a45d;
  --gold-soft:  rgba(196,164,93,0.85);
  --coral:      #d97a4f;
  --burgundy:   #4a1a1d;
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--foam);
  background: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover { color: var(--coral); }

/* ===== Top bar — Drake Supper Club logo ===== */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}
.topbar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foam);
  text-decoration: none;
}
.topbar .logo img,
.topbar .logo svg {
  height: 36px;
  width: auto;
}
.topbar .crumbs {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foam-mute);
}
.topbar .crumbs a { color: var(--foam-mute); text-decoration: none; }
.topbar .crumbs a:hover { color: var(--gold); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(1400px 700px at 80% 10%, rgba(196,164,93,0.18), transparent 60%),
    radial-gradient(1000px 600px at 10% 90%, rgba(217,122,79,0.16), transparent 55%),
    linear-gradient(165deg, var(--sea-deep) 0%, var(--sea) 55%, var(--ink) 100%);
}
.hero.photo {
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,29,42,0.30) 0%, rgba(11,29,42,0.70) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
h1 {
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--foam-soft);
  max-width: 60ch;
  margin: 0 0 2rem;
}
.kicker {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--gold-soft);
  margin: 0 0 2.5rem;
}

/* ===== Section ===== */
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section h2 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--foam);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.section h3 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--foam);
  margin: 2rem 0 0.75rem;
}
.section p {
  color: var(--foam-soft);
  max-width: 64ch;
  margin: 0 0 1.25rem;
}
.section ul { color: var(--foam-soft); max-width: 64ch; padding-left: 1.25rem; }
.section li { margin: 0.35rem 0; }

/* ===== Trip card grid ===== */
.trips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
}
.trip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid rgba(244,241,234,0.15);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14,66,88,0.4) 0%, rgba(11,29,42,0.6) 100%);
  text-decoration: none;
  color: var(--foam);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  overflow: hidden;
  min-height: 320px;
}
.trip-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.trip-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.badge-past   { background: rgba(244,241,234,0.12); color: var(--foam-mute); }
.badge-active { background: var(--gold); color: var(--ink); }
.badge-soon   { background: rgba(217,122,79,0.18); color: var(--coral); border: 1px solid rgba(217,122,79,0.4); }
.trip-card h3 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin: 1rem 0 0.4rem;
  letter-spacing: -0.01em;
  color: var(--foam);
}
.trip-card .where {
  font-size: 0.85rem;
  color: var(--foam-mute);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}
.trip-card p {
  font-size: 0.95rem;
  color: var(--foam-soft);
  margin: 0 0 1.5rem;
  flex: 1;
}
.trip-card .arrow {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trip-card:hover .arrow { color: var(--coral); }

/* ===== Parallax dividers ===== */
.divider {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@supports (-webkit-touch-callout: none) {
  .divider { background-attachment: scroll; }
}
.divider::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,29,42,0.40) 0%, rgba(11,29,42,0.65) 100%);
  pointer-events: none;
}
.divider blockquote {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  padding: 0 1rem;
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
  line-height: 1.3;
  color: var(--foam);
  text-align: center;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.divider blockquote::before {
  content: "“";
  display: block;
  font-size: 3.5rem;
  line-height: 0.4;
  margin-bottom: 1.5rem;
  color: var(--gold);
  opacity: 0.75;
}
.divider blockquote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.78rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--foam-mute);
}

/* Drake shield watermark on every photo divider */
.shield {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  left: 1.75rem;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 50%;
  background: rgba(11,29,42,0.35);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.shield::after {
  content: "";
  position: absolute;
  inset: 7px 11px 7px 9px;
  border-left: 1.5px solid rgba(196,164,93,0.95);
  border-top: 1.5px solid rgba(196,164,93,0.95);
  transform: skew(-14deg);
}

/* ===== CTA buttons ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(196,164,93,0.28);
  transition: transform 120ms ease, box-shadow 120ms ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(196,164,93,0.38);
  color: var(--ink);
}
.cta-ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid rgba(244,241,234,0.4);
  box-shadow: none;
}
.cta-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.cta-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ===== Itinerary table (day-by-day) ===== */
.itinerary {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 0.6rem 1.5rem;
  color: var(--foam-soft);
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
.itinerary .day {
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.itinerary .route { color: var(--foam); font-weight: 500; }
.itinerary .note { color: var(--foam-soft); }

/* ===== Multi-step form (dialog) ===== */
dialog.berth {
  border: none;
  border-radius: 16px;
  background: #14283a;
  color: var(--foam);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
dialog.berth::backdrop {
  background: rgba(8, 20, 30, 0.75);
  backdrop-filter: blur(4px);
}
dialog.berth form { padding: 2rem 2rem 1.5rem; }
dialog.berth h3 {
  font-family: "Iowan Old Style", Georgia, serif;
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}
dialog.berth .sub {
  color: var(--foam-soft);
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
dialog.berth label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--foam-mute);
  margin: 0 0 0.4rem;
}
dialog.berth input,
dialog.berth textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  margin: 0 0 1.1rem;
  background: rgba(11,29,42,0.6);
  border: 1px solid rgba(244,241,234,0.18);
  border-radius: 8px;
  color: var(--foam);
  font-family: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
dialog.berth textarea { resize: vertical; min-height: 90px; }
dialog.berth input:focus,
dialog.berth textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.steps {
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.5rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  height: 2px;
  background: rgba(244,241,234,0.12);
  z-index: 0;
}
.step-dot {
  position: relative;
  z-index: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(11,29,42,0.7);
  border: 2px solid rgba(244,241,234,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foam-mute);
}
.step-dot.active { border-color: var(--gold); color: var(--gold); }
.step-dot.done { border-color: var(--gold); background: var(--gold); color: var(--ink); }

.step-page { display: none; }
.step-page.active { display: block; }

.actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.status {
  font-size: 0.85rem;
  color: var(--foam-soft);
  margin: 0.75rem 0 0;
}
.status.ok { color: #9ad79a; }
.status.err { color: #f0a890; }

/* Mobile — bottom-sheet form */
@media (max-width: 600px) {
  .topbar { padding: 1rem 1.25rem; }
  .hero { padding: 6rem 1.25rem 4rem; min-height: 78vh; }
  .section { padding: 3.5rem 1.25rem; }
  .divider { padding: 4rem 1.25rem; min-height: 48vh; }
  .itinerary { grid-template-columns: max-content 1fr; }
  .itinerary .note { grid-column: 1 / -1; padding-left: 0; font-size: 0.88rem; }

  dialog.berth {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
    margin: 0 0 auto 0;
    position: fixed;
    bottom: 0; left: 0; top: auto;
    animation: sheet-up 220ms ease-out;
  }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
  dialog.berth form { padding: 1.5rem 1.25rem 1.25rem; }
  .cta-strip .cta { flex: 1 1 calc(50% - 0.5rem); justify-content: center; }
}

/* ===== Footer ===== */
footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(244,241,234,0.1);
  color: var(--foam-dim);
  font-size: 0.85rem;
  text-align: center;
}
footer a { color: var(--foam-mute); text-decoration: none; }
footer a:hover { color: var(--gold); }
