/* Scramblers Charleston Giveaway. Brand tokens match scramblersgolf.com:
   navy + sky only, Hanken Grotesk. No warm colors anywhere, including errors. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #010d17;
  --panel: #071a2c;
  --panel-light: #0c2740;
  --border: #143655;
  --sky: #6bb3de;
  --sky-bright: #9ad0f0;
  --ink: #eaf2f8;
  --muted: #8da4b8;
  --radius: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky-bright); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sky-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 640px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--sky-bright); color: var(--navy);
  padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(20, 54, 85, 0.6);
  background: var(--navy);
}
.logo-link img { width: 132px; height: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.btn-primary { background: var(--sky-bright); color: var(--navy); }
.btn-primary:hover { background: var(--sky); color: var(--navy); }
.btn-secondary { border-color: var(--sky-bright); color: var(--sky-bright); background: transparent; }
.btn-secondary:hover { background: rgba(154, 208, 240, 0.1); color: var(--ink); }
.btn-lg { min-height: 56px; font-size: 1.125rem; padding: 14px 32px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* 1. Hero: everything above the fold on a phone */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 0 36px;
  text-align: center;
  isolation: isolate;
}
.hero-photo, .hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(1, 13, 23, 0.78) 0%, rgba(1, 13, 23, 0.62) 45%, var(--navy) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky-bright);
}
.hero h1 { font-size: clamp(2.5rem, 11vw, 4.75rem); max-width: 14ch; text-wrap: balance; }
.accent { color: var(--sky-bright); }
.hero-sub { max-width: 34rem; font-size: 1.125rem; color: var(--ink); }
.hero .btn { margin-top: 4px; width: 100%; max-width: 360px; }
.hero-note { font-size: 0.875rem; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: rgba(7, 26, 44, 0.55); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { text-align: center; }

/* 2. What you win */
.cards {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 14px;
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px;
}
.card-grand { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky) inset; }
.card-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky-bright);
}
.card-text { margin-top: 6px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

/* 3. Form */
.section-form { padding-top: 24px; scroll-margin-top: 8px; }
.section-form:focus { outline: none; }
.form-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px 18px;
}
.form-card h2 { margin-bottom: 20px; }
.row-2 { display: grid; gap: 0 12px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming in on focus */
  color: var(--ink); background: var(--navy);
  border: 1.5px solid var(--border); border-radius: 12px;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239ad0f0' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input::placeholder { color: #5f7a91; }
.field input:focus, .field select:focus { border-color: var(--sky-bright); outline: none; box-shadow: 0 0 0 3px rgba(154, 208, 240, 0.25); }
.field [aria-invalid="true"] { border-color: var(--sky-bright); border-width: 2px; }

.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sky-bright); }
.field-check label { margin: 0; font-weight: 400; font-size: 0.95rem; color: var(--ink); }
.field-check .error { grid-column: 1 / -1; }

/* Errors stay on brand (no red): bold sky text with a marker, plus a heavier border on the field */
.error { margin-top: 6px; font-size: 0.875rem; font-weight: 700; color: var(--sky-bright); }
.error::before { content: "! "; }
.form-alert {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--sky-bright); background: rgba(154, 208, 240, 0.08);
  font-weight: 700;
}

/* Spam trap field: off screen, never seen or tabbed to */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* After submit */
.thanks { text-align: center; }
.thanks h2 { margin-bottom: 12px; }
.thanks h2:focus { outline: none; }
.thanks p { margin-bottom: 22px; font-size: 1.125rem; }

/* 4. How to enter */
.steps { list-style: none; margin: 28px auto 24px; padding: 0; max-width: 520px; display: grid; gap: 14px; }
.steps li {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; font-size: 1.125rem; font-weight: 700;
}
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-bright); color: var(--navy); font-weight: 800;
}

/* 5. Clubs */
.clubs {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.clubs li {
  padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border);
  font-weight: 700; text-align: center;
}

/* 6. FAQ + 7. Rules (native details: keyboard and screen reader friendly) */
.faq { margin-top: 24px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary, .rules summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary { padding: 18px 2px; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker, .rules summary::-webkit-details-marker { display: none; }
.faq summary::after, .rules summary::after {
  content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--sky-bright);
}
.faq details[open] summary::after, .rules[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 2px 18px; color: var(--muted); }
.rules summary { padding: 4px 0; }
.rules summary h2 { text-align: left; font-size: clamp(1.5rem, 5vw, 2rem); }
.rules-body { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.rules-body p + p { margin-top: 12px; }
.rules-body h3 { margin: 24px 0 8px; font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: 0; }
.rules-body strong { color: var(--ink); }

/* 8. Footer */
.site-footer { padding: 32px 0 40px; text-align: center; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; }
.site-footer strong { color: var(--ink); }
.site-footer .fine { margin-top: 8px; font-size: 0.8125rem; }

/* Larger screens */
@media (min-width: 640px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 32px 28px; }
  .clubs { grid-template-columns: repeat(2, 1fr); }
  .hero .btn { width: auto; }
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 80px; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .clubs { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
