/* =========================================================
   Brighton & Hove Pride Street Party 2026 — single-screen hero
   ========================================================= */

@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/anton-v25-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-v9-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-v9-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-v9-latin-700.woff2') format('woff2');
}

:root {
  --pride-pink:    #FF5CF7;
  --pride-orange:  #FF9F2C;
  --ink:           #161019;
  --white:         #FFFFFF;
  --border:        #E6DDE4;
  --error:         #C0392B;
  --ok:            #1F8A5F;

  --scrim-top: rgba(22, 16, 25, 0.20);
  --scrim-mid: rgba(22, 16, 25, 0.55);
  --scrim-bot: rgba(22, 16, 25, 0.85);

  --card-bg:   rgba(255, 255, 255, 0.96);

  --radius:    18px;
  --radius-sm: 12px;
  --shadow-card: 0 30px 60px -20px rgba(22, 16, 25, 0.55),
                 0 10px 20px -10px rgba(22, 16, 25, 0.40);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
  color: var(--ink);
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--pride-pink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--pride-orange); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--ink); color: var(--white);
  padding: 8px 12px; border-radius: var(--radius-sm);
  z-index: 10000; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    var(--scrim-top) 0%,
    var(--scrim-mid) 55%,
    var(--scrim-bot) 100%);
  z-index: -1;
}

.hero__content {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
  padding: clamp(1.5rem, 1rem + 3vw, 4rem) 1.25rem 1rem;
  width: 100%;
}

.wordmark {
  width: min(560px, 86vw);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

/* =========================================================
   Form card
   ========================================================= */
.card {
  width: min(540px, 94vw);
  background: var(--card-bg);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.form { display: grid; gap: 1rem; }
.form[hidden] { display: none; }

.form__title {
  font-family: 'Anton', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.65rem, 1.3rem + 1.7vw, 2.4rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.form__lede {
  margin: 0;
  color: #4a3f4a;
  font-size: 0.95rem;
}

.form__resend {
  font-size: 0.875rem;
  color: #4a3f4a;
  margin: 0;
  text-align: center;
}

.field { display: grid; gap: 0.4rem; }
.field label {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input::placeholder { color: #9c8e9c; }
.field input:focus-visible {
  outline: none;
  border-color: var(--pride-pink);
  box-shadow: 0 0 0 3px rgba(255, 92, 247, 0.25);
}
.field input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}
.field--otp input {
  letter-spacing: 0.6em; font-feature-settings: 'tnum';
  text-align: center; font-size: 1.5rem;
  font-weight: 700;
  padding-right: 0.5rem;
}

/* intl-tel-input override hooks */
.iti { width: 100%; }

/* Consent tickbox */
.consent {
  font-size: 0.85rem;
  color: #4a3f4a;
  line-height: 1.45;
}
.consent a { color: var(--pride-pink); font-weight: 600; }
.check {
  display: grid; grid-template-columns: 1.4em 1fr;
  gap: 0.6rem; align-items: start;
  cursor: pointer;
}
.check input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.check__box {
  display: inline-grid; place-items: center;
  width: 1.25em; height: 1.25em;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--white);
  color: transparent;
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  user-select: none;
  margin-top: 0.1em;
  flex-shrink: 0;
}
.check input:checked + .check__box {
  background: linear-gradient(135deg, var(--pride-pink), var(--pride-orange));
  color: var(--white);
  border-color: transparent;
}
.check input:focus-visible + .check__box {
  box-shadow: 0 0 0 3px rgba(255, 92, 247, 0.4);
}

/* CTA button */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: 'Anton', system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--pride-pink) 0%, var(--pride-orange) 100%);
  box-shadow:
    0 8px 22px -8px rgba(255, 92, 247, 0.55),
    0 4px 8px  -4px rgba(255, 159, 44, 0.40);
  transition: transform 90ms ease, box-shadow 150ms ease, filter 150ms ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(315deg, var(--pride-pink) 0%, var(--pride-orange) 100%);
  opacity: 0; transition: opacity 200ms ease;
}
.btn:hover::before { opacity: 1; }
.btn__face { position: relative; }
.btn:focus-visible { outline: 3px solid rgba(255, 92, 247, 0.5); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: progress; filter: saturate(0.7); }

.linkish {
  appearance: none; background: none; border: 0; padding: 0;
  color: var(--pride-pink); text-decoration: underline;
  cursor: pointer; font: inherit; font-weight: 600;
}
.linkish:hover { color: var(--pride-orange); }
.linkish:disabled { opacity: 0.6; cursor: progress; }

/* Done state */
.form--done .form__title {
  background: linear-gradient(135deg, var(--pride-pink), var(--pride-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer */
.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  padding: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.footer a { color: rgba(255, 255, 255, 0.95); text-decoration: underline; }

/* =========================================================
   Reduced motion — pause video, rely on poster
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero {
    background:
      linear-gradient(180deg, var(--scrim-top) 0%, var(--scrim-mid) 55%, var(--scrim-bot) 100%),
      url('../assets/images/hero-poster.jpg') center/cover no-repeat;
  }
}

/* =========================================================
   Mobile tightening
   ========================================================= */
@media (max-width: 600px) {
  .wordmark { width: min(420px, 88vw); }
  .card     { padding: 1.25rem; }
  .btn      { width: 100%; }
}

@media (min-width: 1100px) {
  .hero__content { padding-top: clamp(2rem, 2vw, 3.5rem); }
  .wordmark { width: min(620px, 50vw); }
}

/* =========================================================
   Privacy page
   ========================================================= */
.privacy-body {
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.privacy-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.privacy-wordmark { display: block; max-width: 180px; height: auto; }
.privacy-back { font-size: 0.95rem; font-weight: 600; }

.privacy {
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  flex: 1 0 auto;
}
.privacy h1 {
  font-family: 'Anton', system-ui, sans-serif;
  font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--pride-pink), var(--pride-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.privacy h2 {
  font-family: 'Anton', system-ui, sans-serif;
  font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase;
  font-size: 1.3rem;
  margin: 2.25rem 0 0.5rem;
  color: var(--ink);
}
.privacy h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; color: var(--ink); font-weight: 700; }
.privacy h4 { font-size: 0.95rem; margin: 1rem 0 0.3rem; color: var(--ink); font-weight: 600; }
.privacy p, .privacy li { color: #2c252e; }
.privacy ul { padding-left: 1.25rem; }

.cookies-table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0; font-size: 0.9rem;
}
.cookies-table th, .cookies-table td {
  text-align: left; padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cookies-table th {
  background: linear-gradient(180deg, #fff5fc 0%, #fff8ee 100%);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.cookies-table code {
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: #faf5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.privacy-modified {
  color: #6a5e6a; font-size: 0.875rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.privacy-body .footer {
  color: #6a5e6a;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.privacy-body .footer a { color: var(--pride-pink); }
