/* =============================================================================
   Majesty · public site sections (tours / gifts / rides) + /tours/:id/ pages
   Mobile-first; shares the Alive palette. Standalone pages define the tokens
   themselves so this file works without alive.css.
   ========================================================================== */
:root {
  --bg-0: #0e0608; --bg-1: #1a0b10; --line: rgba(255, 232, 214, .13); --text: #f8efe7;
  --muted: rgba(248, 239, 231, .72); --faint: rgba(248, 239, 231, .5);
  --wine: #8c2239; --wine-hot: #c9405f; --amber: #e9a356; --gold: #f4cd82;
  --serif: "Fraunces", Georgia, serif; --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px; --gut: clamp(1rem, 4vw, 2.5rem);
}
body.page { margin: 0; background: radial-gradient(120% 60% at 50% 0%, #2a0f18 0%, var(--bg-0) 60%) fixed, var(--bg-0); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.page *, .site *, .foot * { box-sizing: border-box; }
.page a, .site a, .foot a { color: var(--gold); }
.page img, .site img { display: block; max-width: 100%; height: auto; }

/* Alive (/) — the guided experience fills the first screen; the site continues below. */
.topbar .pill.ghost { margin-left: auto; background: transparent; }
html.kiosk .site, body.kiosk .site, body.kiosk .topbar .pill.ghost { display: none !important; }
.site { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut) 2rem; }
.sec { padding: clamp(2rem, 6vw, 4rem) 0 1rem; border-top: 1px solid var(--line); }
.page .sec:first-child { border-top: 0; }
.sec h2, .page h1 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .6rem; }
.sec h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.sec h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.sec p { margin: 0 0 .8rem; }
.lead { color: var(--muted); max-width: 60ch; }
.note, .small { color: var(--faint); font-size: .9rem; }
.kick { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--gold); margin: 0 0 .4rem; }

/* buttons (also wraps Xola triggers) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--wine-hot), var(--wine)); color: #fff !important; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(201, 64, 95, .9); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn.alt { background: linear-gradient(135deg, var(--gold), var(--amber)); color: #2a160e !important; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text) !important; }
.btn.sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.xola-checkout, .xola-gift { display: inline-block; }
.is-loading .btn { opacity: .7; cursor: progress; }
.is-loading .btn::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mtspin .7s linear infinite; }
@keyframes mtspin { to { transform: rotate(360deg); } }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .9rem; }
.cta-row.center { justify-content: center; margin: 1.4rem 0; }
/* Xola renders its own button inside .xola-gift; the fallback link only shows until then. */
.xola-gift:not(:empty) + .gift-fallback { display: none; }

/* tour cards */
.tgrid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.2rem; }
@media (min-width: 640px) { .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tgrid { grid-template-columns: repeat(3, 1fr); } }
.tcard { display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tcard-ph { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.tcard-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tcard:hover .tcard-ph img { transform: scale(1.04); }
.badge { position: absolute; left: .7rem; top: .7rem; padding: .3rem .7rem; border-radius: 999px; background: var(--gold); color: #2a160e; font-weight: 800; font-size: .75rem; }
.badge.soft { left: auto; right: .7rem; background: rgba(14, 6, 8, .75); color: var(--gold); }
.tcard-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.tcard-body h3 a { color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.45rem; }
.tag { color: var(--gold); font-weight: 600; margin-bottom: .5rem !important; }
.tcard-body > p:not(.tag) { color: var(--muted); font-size: .95rem; }
.tcard-body .cta-row { margin-top: auto; padding-top: .6rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0 0 .7rem; padding: 0; color: var(--muted); font-size: .88rem; }
.facts.col { flex-direction: column; }
.price b { font: 700 1.6rem/1 var(--serif); color: var(--text); }
.price small { color: var(--faint); }

/* gifts */
.gift { display: grid; gap: 1rem; align-items: center; }
.gift > div:first-child p { color: var(--muted); }
@media (min-width: 760px) { .gift { grid-template-columns: 1fr auto; } }
.gift.big { padding-top: 3rem; } .gift.big h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.gift-cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* rides */
.rgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 760px) { .rgrid { grid-template-columns: repeat(3, 1fr); } }
.rcard { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rcard img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.rcard > div { padding: .9rem 1rem 1rem; } .rcard p { color: var(--muted); font-size: .93rem; }

/* tour page */
.pbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem var(--gut);
  background: rgba(14, 6, 8, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pbrand { display: flex; align-items: center; gap: .55rem; color: var(--text) !important; text-decoration: none; font: 600 1.1rem var(--serif); }
.pbar nav { display: flex; align-items: center; gap: .9rem; font-weight: 600; font-size: .95rem; }
.pbar nav a:not(.btn) { color: var(--muted); text-decoration: none; }
@media (max-width: 480px) { .pbar nav a:not(.btn) { display: none; } }
.thero { position: relative; margin: 0 calc(var(--gut) * -1); min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.thero-ph, .thero-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 6, 8, .1) 20%, rgba(14, 6, 8, .92) 92%); }
.thero-tx { position: relative; z-index: 1; padding: 2rem var(--gut); max-width: 760px; }
.thero-tx h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
.thero-tx > p:not(.kick) { color: var(--muted); font-size: 1.1rem; }
.cols { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.4fr 1fr; } }
.cols > div p { color: var(--muted); max-width: 65ch; }
.box { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; align-self: start; }
.box h2 { font-size: 1.5rem; } .box h3 { margin-top: 1rem; font-size: 1rem; }
.ticks { margin: .3rem 0 .8rem; padding-left: 1.2rem; color: var(--muted); } .ticks li { margin: .2rem 0; }
.gal { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.gal img { border-radius: 14px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* footer */
.foot { position: relative; z-index: 2; display: grid; gap: 1rem; max-width: 1180px; margin: 2rem auto 0; padding: 1.6rem var(--gut) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--faint); font: .9rem/1.6 var(--sans); }
@media (min-width: 760px) { .foot { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .btn, .tcard-ph img { transition: none; } }
