/* The Well-Rounded Human of Miami: minimal and black. Three screens (hero with Jon's videos, healthy spots in Miami, the form), white type and white pill
   buttons, the Miami sunset gradient as the only accent. Shared by index.html and admin.html (admin.css adds the review-page bits). */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
img, video { max-width: 100%; display: block; }
* { box-sizing: border-box; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #000; --surface: #0b0b0b; --surface-2: #121212; --surface-3: #1b1b1b;
  --ink: #fff; --ink-2: #b9b9b9; --muted: #7d7d7d;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18);
  --sun-1: #ffd29a; --sun-2: #ff8a5c; --sun-3: #ff4f8b;
  --sun: linear-gradient(180deg, var(--sun-1) 0%, var(--sun-2) 48%, var(--sun-3) 100%);
  --bad: #ff8f8f;
  --r-lg: 20px; --r-md: 14px;
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
body { color: var(--ink); background: var(--bg); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: #fff; }
::selection { background: rgba(255,138,92,.35); }
:focus-visible { outline: 2px solid var(--sun-2); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 60px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }

/* ----- buttons, links ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; background: #fff; color: #000; border: 1px solid #fff; border-radius: 999px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; transition: background .15s, transform .15s, box-shadow .2s; }
.btn:hover { background: #ececec; transform: translateY(-1px); box-shadow: 0 12px 32px -12px rgba(255,138,92,.55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn.sm { min-height: 36px; padding: 6px 16px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.secondary { background: transparent; color: #fff; border-color: var(--line-2); font-weight: 600; }
.btn.secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.cta-btn { white-space: normal; text-align: center; line-height: 1.25; }
.text-link { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.text-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }

/* ----- top bar ----- */
.sitebar { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.72); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.sitebar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 11px) var(--pad) 11px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: -.015em; }
.brand-av { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255,255,255,.4); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 8px; }

/* ----- 1. hero: one screen ----- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: calc(100svh - 59px); padding: clamp(40px, 6vw, 72px) var(--pad); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.hero::before { z-index: -2; background: url(/img/miami-sunset.jpg) 70% 60% / cover no-repeat; }
.hero::after { z-index: -1; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 40%, rgba(0,0,0,.6) 75%, rgba(0,0,0,.45) 100%); }
.hero-in { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sun-3); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,79,139,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,79,139,0); } 100% { box-shadow: 0 0 0 0 rgba(255,79,139,0); } }
.hero-h { font-size: clamp(42px, 6vw, 84px); font-weight: 900; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; }
.miami { display: inline-block; padding-right: .04em; white-space: nowrap; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(255,79,139,.35)); }
.hero-sub { max-width: 44ch; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; }

/* Jon's four videos on the first screen: two by two, sized by the screen height so they fit beside the headline */
.hero-watch { --h: min(36vh, 340px); display: grid; gap: 14px; justify-self: end; align-content: center; }
.watch-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.watch-label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--sun-2), var(--sun-3)); }
.reels { display: grid; grid-template-columns: repeat(2, calc(var(--h) * 9 / 16)); gap: 12px; }
.poster, .reels iframe { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; padding: 0; border: 0; border-radius: 18px; background: #111; box-shadow: 0 24px 48px -24px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.12); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 35%); }
.poster:hover img { transform: scale(1.04); }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px -8px rgba(0,0,0,.7); transition: transform .2s; }
.play svg { width: 22px; height: 22px; margin-left: 3px; fill: #000; }
.poster:hover .play { transform: scale(1.08); }
.badge { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 12.5px; font-weight: 800; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-watch { justify-self: stretch; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 55%, rgba(0,0,0,.9) 100%); }
}
@media (max-width: 560px) { .hero-copy .btn { width: 100%; } }

/* ----- 2. healthy spots in Miami ----- */
.sec { padding: clamp(56px, 7vw, 96px) var(--pad); }
.sec-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 28px; }
.sec-head { display: grid; gap: 14px; max-width: 60ch; }
.sec-head p { color: var(--ink-2); font-size: 17px; }
.sec h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; }
.sun { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.spot { position: relative; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden; border-radius: var(--r-lg); background: #111; }
.spot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.spot:hover img { transform: scale(1.04); }
.spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 55%, transparent 80%); }
.spot-in { position: relative; z-index: 1; display: grid; gap: 4px; padding: 16px 18px; }
.spot h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.spot span { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.fine { margin-top: -14px; color: var(--muted); font-size: 12px; }
.cta-center { display: grid; justify-items: center; gap: 10px; margin-top: 8px; text-align: center; }
.cta-center small { color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) {   /* 3 + 2 */
  .spots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .spot { grid-column: span 2; min-height: 240px; }
  .spot:nth-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 700px) {    /* 1 + 2 + 2 */
  .spots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spot, .spot:nth-child(2) { grid-column: span 1; min-height: 190px; }
  .spot:first-child { grid-column: span 2; min-height: 220px; }
  .spot h3 { font-size: 18px; }
}
@media (max-width: 560px) { .cta-center .btn { width: 100%; } }

/* ----- 3. apply ----- */
.apply-in { max-width: 680px; margin: 0 auto; display: grid; gap: 32px; }
.apply-head { display: grid; gap: 14px; justify-items: center; text-align: center; }
.apply-head p { max-width: 44ch; color: var(--ink-2); font-size: 16.5px; }
.form { display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.f { display: grid; gap: 6px; min-width: 0; }
.f > span:first-child { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.f i, .check i { font-style: normal; color: var(--sun-2); }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #070707; color: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b9b9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select option { background: #111; color: #fff; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
input[type=date] { color-scheme: dark; }
.at { position: relative; display: block; }
.at::before { content: "@"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.at input { padding-left: 32px; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255,143,143,.15); }
.count { justify-self: end; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; color: var(--ink-2); font-size: 14.5px; font-weight: 550; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sun-2); }
.check.invalid span { color: var(--bad); }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 12px; justify-items: center; padding: 56px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(70% 90% at 50% 0%, rgba(255,138,92,.16), transparent 70%), var(--surface); text-align: center; }
.done:focus { outline: none; }
.done h3 { font-size: 28px; font-weight: 850; letter-spacing: -.03em; }
.done p { max-width: 40ch; color: var(--ink-2); font-size: 16px; }

/* ----- footer ----- */
.foot { padding: 24px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 28px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

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