/* COCO Guest List — light cream design from the developer handoff PDF (2026-10-19).
   Colours and fonts live in :root so they can be changed in one place. */
:root {
  --bg: #F6F1EC;          /* page background */
  --card: #FFFFFF;
  --ink: #161315;         /* text */
  --grey: #6E6668;        /* secondary text */
  --red: #E1252F;         /* red buttons, big red words */
  --red-text: #B5121D;    /* small red text (readable on cream) */
  --wa: #25D366;          /* WhatsApp green: top button and floating button */
  --wa-deep: #0E7A3E;     /* WhatsApp green: other buttons and text */
  --wa-tint: #E3F5E8;
  --line: #E6DDD5;
  --field: #F6F1EC;
  --error: #B5121D;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;   /* COCO logo and club names */
  --sans: "Jost", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

.wrap { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Logo ---------- */
/* font-optical-sizing off: at a big size Bodoni Moda would otherwise draw hairline-thin strokes. */
.logo { font-family: var(--display); font-style: italic; font-weight: 800; font-optical-sizing: none; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.logo-o { color: var(--red); }
.logo-sm { font-size: 26px; }

/* ---------- Top bar ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 16px 0 8px; }
.top-menu { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.top-menu a:not(.btn-wa) { text-decoration: none; }
.top-menu a:not(.btn-wa):hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 11px; border-radius: 999px;
  background: var(--wa); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.1; text-decoration: none;
  white-space: nowrap;
}
.btn-wa:hover { filter: brightness(0.96); }
.btn-wa svg { width: 16px; height: 16px; flex: none; }
.wa-float svg { width: 18px; height: 18px; flex: none; }

/* ---------- Top of the home page ---------- */
.hero { padding: 24px 0 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 700;
}
.badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.logo-xl { display: block; margin-top: 14px; font-size: clamp(96px, 31vw, 168px); }
.kicker { margin-top: 14px; font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--grey); }
.headline { margin-top: 18px; font-size: clamp(27px, 7.4vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.headline span { display: block; color: var(--red); }

/* ---------- Cards ---------- */
.card { margin-top: 24px; padding: 24px 18px; border-radius: 24px; background: var(--card); }
.card-title { font-size: 21px; font-weight: 700; line-height: 1.2; }
.card-sub { margin-top: 6px; font-size: 15px; color: var(--grey); }

/* ---------- Sign-up form ---------- */
.field { margin-top: 16px; }
label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
input {
  display: block; width: 100%; padding: 16px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--field);
  color: var(--ink); font: 400 17px/1.3 var(--sans);
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #8C8486; }
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 19, 21, 0.12); }
input[aria-invalid="true"] { border-color: var(--error); }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--field) inset; }
.err { margin-top: 6px; font-size: 14px; color: var(--error); }
.err:empty { display: none; }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  position: relative; display: block; width: 100%;
  padding: 18px 12px; border: 0; border-radius: 14px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform 0.12s ease, filter 0.2s ease;
}
.btn:hover { filter: brightness(0.95); }
.btn:active { transform: scale(0.99); }
.btn-red { background: var(--red); color: #fff; }
.btn-black { background: var(--ink); color: #fff; }
.btn-green { background: var(--wa-deep); color: #fff; }
.btn-white { background: #fff; color: var(--red-text); }
.btn[disabled] { cursor: progress; opacity: 0.85; }
#signup .btn { margin-top: 20px; }
.btn-spinner { display: none; width: 16px; height: 16px; margin-left: 10px; vertical-align: -3px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
.note { margin-top: 14px; text-align: center; font-size: 15px; color: var(--grey); }
.form-msg { margin-top: 12px; text-align: center; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--error); }
.consent { margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--grey); text-align: center; }

.done { padding: 16px 0; text-align: center; outline: none; }
.done-mark { display: block; position: relative; width: 60px; height: 60px; margin: 0 auto 18px; border: 2px solid var(--wa-deep); border-radius: 50%; animation: pop 0.6s cubic-bezier(.2,.9,.3,1.3) both; }
.done-mark::after { content: ""; position: absolute; left: 21px; top: 12px; width: 12px; height: 24px; border-right: 3px solid var(--wa-deep); border-bottom: 3px solid var(--wa-deep); transform: rotate(45deg); }

/* ---------- Phone picker (intl-tel-input, themed to match) ---------- */
:root {
  --iti-hover-color: rgba(22, 19, 21, 0.06);
  --iti-border-color: var(--line);
  --iti-country-selector-bg: #fff;
  --iti-icon-color: var(--grey);
  --iti-arrow-padding: 9px;
  --iti-strict-reject-flash-color: rgba(225, 37, 47, 0.12);
}
.iti { display: block; width: 100%; }
.iti__selected-country { font: 500 17px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.iti__selected-country:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 14px 0 0 14px; }
.iti__selected-country-primary { padding: 0 var(--iti-arrow-padding) 0 14px; }
.iti__selected-dial-code { margin-left: 2px; padding-right: 10px; border-right: 1px solid var(--line); }
.iti__country-selector { color-scheme: light; color: var(--ink); font: 400 16px/1.4 var(--sans); border-radius: 12px; }
.iti--inline-country-selector .iti__country-selector,
.iti--detached-country-selector .iti__country-selector { border: 1px solid var(--line); box-shadow: 0 18px 44px -16px rgba(22, 19, 21, 0.35); }
.iti--inline-country-selector .iti__country-list { max-height: 240px; }
.iti__country-list { overflow-x: hidden; white-space: normal; }
.iti__country-name { min-width: 0; overflow-wrap: anywhere; }
.iti__search-input { background: transparent; color: var(--ink); font: 400 16px/1.4 var(--sans); } /* 16px or more stops iPhones zooming in */
.iti__search-input::placeholder { color: var(--grey); }
.iti__search-input:focus { outline: none; }
.iti__country { padding-top: 9px; padding-bottom: 9px; }
.iti__country .iti__dial-code { margin-left: 8px; color: var(--grey); }
.iti__no-results { color: var(--grey); }
.iti--fullscreen-popup.iti--detached-country-selector { background-color: rgba(22, 19, 21, 0.55); }

/* ---------- The 3 steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 36px; text-align: center; }
.steps::before { content: ""; position: absolute; left: 16.7%; right: 16.7%; top: 26px; border-top: 2px dashed var(--red); }
.step-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--red); }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-no { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--red-text); }
.step-title { font-size: 16px; font-weight: 700; line-height: 1.2; }
.step-sub { margin-top: 2px; font-size: 13px; line-height: 1.25; color: var(--grey); }

/* ---------- Club tiles ---------- */
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 34px 0 12px; }
.group-title { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.group-where { font-size: 13px; color: var(--grey); text-align: right; }
.tiles { display: grid; gap: 8px; }
.tiles-beach { grid-template-columns: repeat(3, 1fr); }
.tiles-down { grid-template-columns: repeat(2, 1fr); }
.tile {
  display: grid; place-items: center; min-height: 54px; padding: 8px 4px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; text-decoration: none; line-height: 1.2;
}
.tile-beach { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile:hover { filter: brightness(0.94); }
.tile-all { display: inline-grid; margin-top: 8px; padding: 14px 18px; background: var(--ink); border-color: var(--ink); color: #fff; font-size: 13px; letter-spacing: 0.06em; }

/* ---------- Nights with COCO: photos of past events, swiped sideways (each opens the form) ---------- */
.shots {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 62%; max-width: 240px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: var(--line); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shots-nav { display: none; gap: 6px; }
.shots-btn {
  width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.shots-btn:hover { filter: brightness(0.94); }
/* Phones swipe; computers with a mouse get the ‹ › buttons instead of the "swipe →" hint. */
@media (hover: hover) and (pointer: fine) {
  .shots-hint { display: none; }
  .shots-nav { display: flex; }
}

/* ---------- Ticket preview: the real ticket image (the same file is emailed to guests) ---------- */
.section-label { margin: 38px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
/* Sizes use the card's own width (cqw), so it keeps the PDF's proportions from a small phone to a computer. */
.ticket {
  container-type: inline-size; display: grid; grid-template-columns: 1fr 33%; align-items: center;
  aspect-ratio: 790 / 338; border-radius: 6.5cqw; background: var(--ink); color: #fff; overflow: hidden;
}
@supports not (container-type: inline-size) { .ticket { border-radius: 22px; } }
.ticket-main { padding: 4cqw 3cqw 4cqw 6.5cqw; }
.ticket-brand { display: flex; align-items: baseline; gap: 3cqw; }
.ticket-brand .logo { font-size: clamp(22px, 8cqw, 40px); }
.ticket-brand .logo-o { color: var(--red); }
.ticket-sub { font-size: clamp(9px, 3cqw, 13px); letter-spacing: 0.26em; color: #b7afb1; }
.ticket-label { display: block; font-size: clamp(8px, 2.6cqw, 11px); letter-spacing: 0.2em; text-transform: uppercase; color: #a79fa1; }
.ticket-guest { margin-top: 3.4cqw; }
.ticket-name { font-family: var(--display); font-size: clamp(24px, 9.6cqw, 44px); line-height: 1.1; }
.ticket-facts { display: flex; gap: 5.5cqw; margin-top: 2.4cqw; }
.ticket-free, .ticket-time { display: block; font-size: clamp(15px, 5.3cqw, 24px); font-weight: 700; line-height: 1.25; }
.ticket-free { color: #ff5a62; }
.ticket-side { display: grid; place-items: center; align-content: center; gap: 3cqw; align-self: stretch; border-left: 2px dashed #4a4446; padding: 2cqw; text-align: center; }
.ticket-side svg { width: 19.6cqw; height: 19.6cqw; border: 1px solid #2e2a2c; }
.ticket-side span { font-size: clamp(8px, 2.6cqw, 11px); letter-spacing: 0.16em; text-transform: uppercase; color: #b7afb1; }

/* ---------- "Where are you going tonight?" ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 16px; }
.day {
  min-height: 44px; padding: 4px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.day[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.count { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--red-text); }
.rows { margin-top: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-club { font-family: var(--display); font-size: 22px; line-height: 1.15; }
.row-right { display: flex; align-items: center; gap: 10px; flex: none; }
.row-when { font-size: 14px; color: var(--grey); }
.pill { padding: 4px 8px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tag {
  display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 7px;
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); line-height: 1.5;
}
.tag-beach { border-color: #E9A9AD; color: var(--red-text); }
.arrive { margin: 16px 0 20px; font-size: 15px; color: var(--grey); }

/* ---------- WhatsApp community ---------- */
.community { margin-top: 24px; padding: 22px 20px; border-radius: 24px; background: var(--wa-tint); color: #0b2a17; }
.community-head { display: flex; align-items: center; gap: 12px; }
.community-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--wa); color: #0b2a17; }
.community-icon svg { width: 24px; height: 24px; }
.community-small { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wa-deep); }
.community-title { font-size: 23px; font-weight: 700; line-height: 1.15; }
.community-text { margin: 14px 0 18px; font-size: 16px; line-height: 1.55; }

/* ---------- Questions ---------- */
.faq { margin-top: 38px; }
.faq h2 { margin-bottom: 8px; font-size: 26px; font-weight: 700; }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; display: block; padding: 16px 32px 16px 0; font-size: 17px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--grey); }
details[open] > summary::after { content: "\2013"; }
details p { padding: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--grey); }

/* ---------- Bottom of the page ---------- */
.foot { margin-top: 36px; padding: 28px 0 calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; font-size: 15px; color: var(--red-text); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-small { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--grey); }

.wa-float {
  position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--wa); color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(14, 122, 62, 0.55);
}
.wa-float:hover { filter: brightness(0.96); }
.wa-float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--wa-deep); }

.demo-badge { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; z-index: 30; }

/* ---------- Clubs page ---------- */
.page-title { margin-top: 26px; font-family: var(--display); font-size: clamp(30px, 9vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.page-title em { display: block; color: var(--red); }
.page-intro { margin-top: 14px; font-size: 17px; color: var(--grey); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tab { min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 16px; font-weight: 500; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.club-count { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--red-text); }
.club-card { display: flex; gap: 14px; margin-bottom: 12px; padding: 16px 14px; border-radius: 20px; background: var(--card); }
.club-logo {
  display: grid; place-items: center; flex: none; width: 62px; height: 62px; padding: 3px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; text-align: center; line-height: 1.15;
}
.club-logo-beach { background: var(--ink); border-color: var(--ink); color: #fff; }
.club-body { min-width: 0; }
.club-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1.15; }
.club-area { font-size: 14px; color: var(--grey); }
.club-free { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--red-text); }
.club-blurb { margin-top: 2px; font-size: 15px; line-height: 1.45; }
.found { margin-top: 24px; padding: 28px 22px; border-radius: 24px; background: var(--red); color: #fff; }
.found h2 { font-family: var(--display); font-style: italic; font-size: 34px; font-weight: 700; line-height: 1.1; }
.found p { margin: 10px 0 20px; font-size: 16px; line-height: 1.5; }

/* ---------- Wider screens: the same single column, a little roomier ---------- */
@media (min-width: 700px) {
  :root { --gutter: 24px; }
  .wrap { max-width: 640px; }
  body { font-size: 18px; }
}

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html, .shots { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
