/* ============================================
   fantasy2026 — shared stylesheet
   Palette: colonial navy / brick red / antique gold / parchment
   Theme: 250th Independence Day — cool, not corny
   ============================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1a1714;
    background: #faf6ed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin: 0;
}
p { margin: 0 0 1em 0; }
a { color: #9e2b25; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
section { padding: 56px 0; }
section + section { border-top: 1px solid #e0d9c8; }

/* ---------- Site nav ---------- */
.site-nav {
    background: #0f1b3c;
    border-bottom: 2px solid #c9a843;
    position: sticky;
    top: 0;
    z-index: 200;
}
.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}
.site-nav__brand {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #faf6ed;
    text-decoration: none;
    line-height: 1;
}
.site-nav__brand span { color: #c9a843; }
.site-nav__brand:hover { text-decoration: none; color: #faf6ed; }

/* Desktop links */
.site-nav__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav__links a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250,246,237,0.75);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 3px;
    transition: color 0.15s ease;
}
.site-nav__links a:hover { color: #faf6ed; text-decoration: none; }

/* Hamburger button — hidden on desktop */
.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}
.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #faf6ed;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Animate to X when open */
.site-nav--open .site-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav--open .site-nav__toggle span:nth-child(2) { opacity: 0; }
.site-nav--open .site-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
    .site-nav__toggle { display: flex; }
    .site-nav__links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #0f1b3c;
        border-bottom: 2px solid #c9a843;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 12px;
    }
    .site-nav--open .site-nav__links { display: flex; }
    .site-nav__links li { width: 100%; }
    .site-nav__links a {
        display: block;
        padding: 12px 24px;
        border-radius: 0;
        font-size: 13px;
        letter-spacing: 0.14em;
    }
    .site-nav__links a:hover { background: rgba(255,255,255,0.05); }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, #0f1b3c 0%, #1a2f5e 100%);
    color: #faf6ed;
    padding: 80px 0 72px 0;
    position: relative;
    overflow: hidden;
}
/* Subtle star-field texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(201,168,67,0.25) 1px, transparent 1px),
        radial-gradient(circle, rgba(201,168,67,0.15) 1px, transparent 1px);
    background-size: 60px 60px, 37px 37px;
    background-position: 0 0, 30px 20px;
    pointer-events: none;
}
/* Red stripe accent at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #9e2b25, #c9a843, #9e2b25);
}
.hero-supertitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(22px, 4vw, 32px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #faf6ed;
    margin-bottom: 6px;
}
.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a843;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-eyebrow::before {
    content: '★';
    font-size: 10px;
}
.hero h1 {
    font-size: clamp(52px, 11vw, 108px);
    color: #faf6ed;
    margin-bottom: 22px;
    line-height: 0.95;
}
.hero h1 span { color: #c9a843; }
.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    max-width: 600px;
    color: #d8d0be;
    margin-bottom: 36px;
    line-height: 1.65;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(250,246,237,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    margin-top: 48px;
}
.hero-scroll:hover {
    color: #c9a843;
    text-decoration: none;
}
.hero-scroll svg {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}
@media (max-width: 480px) {
    .hero { padding: 60px 0 56px 0; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: #c9a843;
    color: #0f1b3c;
    border-color: #c9a843;
}
.btn-primary:hover:not(:disabled) {
    background: #b8952f;
    border-color: #b8952f;
    text-decoration: none;
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}
.btn-ghost {
    background: transparent;
    color: #faf6ed;
    border-color: rgba(250,246,237,0.35);
}
.btn-ghost:hover {
    border-color: #faf6ed;
    text-decoration: none;
}
.btn-block {
    width: 100%;
    text-align: center;
    padding: 16px 32px;
    font-size: 17px;
}

/* ---------- Intro section ---------- */
.intro { background: #faf6ed; }
.intro h2 {
    font-size: clamp(32px, 5vw, 42px);
    color: #0f1b3c;
    margin-bottom: 24px;
}
.intro-body {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
}
.intro-body strong { color: #0f1b3c; }

/* ---------- League cards ---------- */
.leagues { background: #eee8d8; }
.leagues h2 {
    font-size: clamp(30px, 5vw, 40px);
    color: #0f1b3c;
    text-align: center;
    margin-bottom: 12px;
}
.leagues-sub,
.leagues-sub2,
.leagues-explainer {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 12px auto;
    color: #6b6456;
    font-size: 1rem;
    line-height: 1.65;
}
.leagues-explainer {
    margin-bottom: 40px;
}
.league-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 680px) { .league-grid { grid-template-columns: 1fr; } }
.card {
    background: #faf6ed;
    border-radius: 6px;
    padding: 32px 28px;
    border-top: 5px solid #0f1b3c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.card-b { border-top-color: #9e2b25; }
.card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0f1b3c;
    background: #d8e0ee;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 16px;
}
.card-b .card-tag { color: #9e2b25; background: #f5dedd; }
.card h3 {
    font-size: clamp(30px, 5vw, 38px);
    margin-bottom: 8px;
    color: #1a1714;
}
.card-vibe {
    font-size: 16px;
    font-style: italic;
    color: #6b6456;
    margin-bottom: 24px;
}
.card-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border-top: 1px solid #e0d9c8;
}
.card-facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e0d9c8;
    font-size: 14px;
}
.card-facts .label { color: #6b6456; font-weight: 500; }
.card-facts .value { color: #1a1714; font-weight: 600; text-align: right; }
.card h4 {
    font-size: 18px;
    color: #0f1b3c;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}
.card-b h4 { color: #9e2b25; }
.card-feel {
    list-style: none;
    padding: 0;
    margin: 0;
}
.card-feel li {
    padding: 9px 0 9px 22px;
    position: relative;
    font-size: 15px;
    line-height: 1.55;
}
.card-feel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 10px;
    height: 2px;
    background: #0f1b3c;
}
.card-b .card-feel li::before { background: #9e2b25; }

/* ---------- Form section ---------- */
.form-section {
    background: #0f1b3c;
    color: #faf6ed;
}
.form-section h2 {
    font-size: clamp(38px, 6vw, 60px);
    color: #c9a843;
    margin-bottom: 16px;
    text-align: center;
}
.form-section .lead {
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 28px auto;
    color: #d8d0be;
    text-align: center;
    line-height: 1.65;
}
.form-section .deadline-pill {
    display: inline-block;
    background: rgba(201,168,67,0.18);
    color: #c9a843;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(201,168,67,0.3);
}
.form-section .form-section__center { text-align: center; }

.form-card {
    background: #faf6ed;
    color: #1a1714;
    border-radius: 6px;
    padding: 36px 36px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
@media (max-width: 540px) {
    .form-card { padding: 24px 18px; border-radius: 4px; }
}

/* ---------- Form fields ---------- */
.form-field {
    margin-bottom: 22px;
}
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #1a1714;
}
.form-field .form-hint {
    font-size: 13px;
    color: #6b6456;
    margin-bottom: 8px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: #1a1714;
    background: #ffffff;
    border: 1px solid #ccc4b0;
    border-radius: 3px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #0f1b3c;
    box-shadow: 0 0 0 3px rgba(15, 27, 60, 0.12);
}
.form-field textarea {
    min-height: 96px;
    resize: vertical;
}
.form-field.is-focused label { color: #0f1b3c; }
.form-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) {
    .form-field-row { grid-template-columns: 1fr; }
}

/* ---------- Radio / checkbox groups ---------- */
.choice-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.choice-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #ccc4b0;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    font-weight: 500;
    font-size: 15px;
    /* Bigger touch targets for mobile */
    min-height: 48px;
}
.choice-group label:hover {
    border-color: #9e2b25;
    background: #fdf8f0;
}
.choice-group input[type="radio"],
.choice-group input[type="checkbox"] {
    accent-color: #0f1b3c;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}
.choice-group input:checked + span,
.choice-group label:has(input:checked) {
    border-color: #0f1b3c;
    background: #e8ecf4;
}
.choice-group .choice-sub {
    display: block;
    font-size: 13px;
    color: #6b6456;
    font-weight: 400;
    margin-top: 2px;
}

/* ---------- Inline league split ---------- */
.league-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) { .league-split { grid-template-columns: 1fr; } }
.league-split fieldset {
    border: 1px solid #ccc4b0;
    border-radius: 5px;
    padding: 16px;
    margin: 0;
}
.league-split fieldset.league-b { border-color: #d49b94; }
.league-split legend {
    padding: 0 8px;
    font-weight: 700;
    font-size: 14px;
    color: #0f1b3c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.league-split fieldset.league-b legend { color: #9e2b25; }

/* ---------- Errors / messages ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 18px;
    font-size: 15px;
}
.alert-error {
    background: #f5dedd;
    color: #7a201b;
    border: 1px solid #d49b94;
}
.alert-success {
    background: #e8ecf4;
    color: #0f1b3c;
    border: 1px solid #b8c4d8;
}

/* ---------- Inline field errors (JS validation) ---------- */
.field-error {
    color: #9e2b25;
    font-size: 13px;
    font-weight: 500;
    margin: 6px 0 0 0;
}
.form-field.has-error > label {
    color: #9e2b25;
}
.form-field.has-error .choice-group label {
    border-color: #d49b94;
}

/* ---------- Interest counters ---------- */
.interest-counter {
    display: inline-flex;
    align-items: center;
    background: rgba(201, 168, 67, 0.08);
    border: 1px solid rgba(201, 168, 67, 0.35);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6b6456;
    letter-spacing: 0.02em;
    margin: 6px 0 14px 0;
}
.interest-counter strong {
    color: #c9a843;
    font-weight: 700;
    font-size: 14px;
    margin-right: 3px;
}

/* ---------- Required indicator ---------- */
.required {
    color: #9e2b25;
    margin-left: 2px;
}

/* ---------- The deal / FAQ sections ---------- */
.deal h2, .faq h2 {
    font-size: clamp(30px, 5vw, 40px);
    color: #0f1b3c;
    margin-bottom: 24px;
}
.deal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 640px) { .deal-list { grid-template-columns: 1fr; } }
.deal-list li {
    background: #fff;
    padding: 20px 22px;
    border-radius: 5px;
    border-left: 3px solid #0f1b3c;
}
.deal-list strong {
    display: block;
    color: #0f1b3c;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.faq { background: #eee8d8; }
details {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #e0d9c8;
    overflow: hidden;
}
details[open] { border-color: #0f1b3c; }
summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1714;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    /* better tap target */
    min-height: 56px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-size: 24px;
    color: #0f1b3c;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body {
    padding: 0 22px 20px 22px;
    color: #444;
    line-height: 1.65;
}

/* ---------- Submitted confirmation notice ---------- */
.submitted-notice {
    background: #0f1b3c;
    border-radius: 6px;
    padding: 28px 32px;
    margin-bottom: 40px;
    text-align: center;
    border-left: 4px solid #c9a843;
}
.submitted-notice__head {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: #c9a843;
    margin-bottom: 8px;
}
.submitted-notice p {
    color: #c8bfb0;
    font-size: 15px;
    margin: 0;
}

/* ---------- Timeline ---------- */
.timeline { background: #faf6ed; }
.timeline h2 {
    font-size: clamp(30px, 5vw, 40px);
    color: #0f1b3c;
    margin-bottom: 32px;
}
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.timeline-list::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: #d0c8b4;
}
.timeline-list li {
    position: relative;
    padding: 0 0 22px 40px;
}
.timeline-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    color: #c9a843;
    background: #faf6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.timeline-when {
    font-weight: 700;
    color: #0f1b3c;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.timeline-what { color: #1a1714; }

/* ---------- Coming soon (stub pages) ---------- */
.coming-soon {
    background: linear-gradient(160deg, #0f1b3c 0%, #1a2f5e 100%);
    color: #faf6ed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.coming-soon__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c9a843;
    margin-bottom: 16px;
}
.coming-soon h1 {
    font-size: clamp(48px, 9vw, 96px);
    color: #faf6ed;
    margin-bottom: 24px;
}
.coming-soon p {
    font-size: 19px;
    max-width: 560px;
    color: #d8d0be;
    margin-bottom: 18px;
    line-height: 1.65;
}

/* ---------- Site footer ---------- */
.site-footer {
    background: #0f1b3c;
    color: #8a93aa;
    padding: 36px 0;
    text-align: center;
    font-size: 14px;
}
.site-footer a { color: #c9a843; }
.site-footer__name {
    color: #faf6ed;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
}
.site-footer__note {
    margin-top: 10px;
    font-style: italic;
    font-size: 13px;
    color: #6b7590;
}

/* ---------- Thanks page ---------- */
.thanks {
    background: linear-gradient(160deg, #0f1b3c 0%, #1a2f5e 100%);
    color: #faf6ed;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0;
}
.thanks h1 {
    font-size: clamp(48px, 9vw, 96px);
    color: #c9a843;
    margin-bottom: 20px;
}
.thanks p {
    font-size: 19px;
    max-width: 560px;
    margin: 0 auto 18px auto;
    color: #d8d0be;
}

/* ---------- Admin (lightweight) ---------- */
.admin-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.admin-shell h1 {
    font-size: 32px;
    color: #0f1b3c;
    margin-bottom: 8px;
}
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0d9c8;
    padding-bottom: 12px;
}
.admin-nav a {
    padding: 8px 14px;
    font-weight: 600;
    border-radius: 3px;
    color: #0f1b3c;
}
.admin-nav a.active {
    background: #0f1b3c;
    color: #faf6ed;
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.admin-stat {
    background: #fff;
    padding: 16px;
    border-radius: 5px;
    border-left: 4px solid #0f1b3c;
}
.admin-stat .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6456;
    font-weight: 700;
    margin-bottom: 4px;
}
.admin-stat .value {
    font-size: 28px;
    font-weight: 700;
    color: #0f1b3c;
    font-family: 'Bebas Neue', sans-serif;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}
.admin-table th, .admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e0d9c8;
}
.admin-table th {
    background: #eee8d8;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}
.admin-table tr:hover { background: #faf6ed; }
.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tag-yes { background: #e8ecf4; color: #0f1b3c; }
.tag-maybe { background: #fdf3d6; color: #8a6700; }
.tag-no { background: #f5dedd; color: #7a201b; }
