/* Global Layout */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}
.home-page .logo-link { color: #fff; } /* White on hero */

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-navigation a:hover { color: var(--color-brand-orange); }

.menu-toggle { display: none; }

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #333; /* fallback */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding-top: 4rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.75rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-eyebrow-sep {
    display: inline-block;
    width: 2.25rem;
    height: 1px;
    background: var(--color-brand-orange);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: #fff;
}

.time-block {
    text-align: center;
}

.time-block .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.time-block .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* More Than A Challenge — editorial stat row */
.section-values,
.section-stats {
    padding: 6rem 0;
    text-align: center;
    background: #FAFAFA;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
}

.stat {
    padding: 1.5rem 2rem;
    text-align: left;
    border-right: 1px solid var(--color-border);
}

.stat:last-child { border-right: none; }

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-brand-dark);
    margin-bottom: 1rem;
}

.stat-num.text-orange { color: var(--color-brand-orange); }

.stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-text-light);
}

/* Mission Section — editorial asymmetric */
.section-mission {
    padding: 6rem 0;
}

.mission-layout {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text .h3-title {
    color: var(--color-brand-orange);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.mission-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}

.image-placeholder {
    width: 100%;
    height: 460px;
    background: #eee;
    border-radius: 12px;
    background-image: url('placeholders/mission.jpg'); /* placeholder */
    background-size: cover;
    background-position: center;
}

/* Event Highlights — editorial numbered list */
.section-highlights {
    padding: 6rem 0;
    background: #F9F9FB;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.hl-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-brand-orange);
    width: 90px;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.hl-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--color-brand-dark);
}

.hl-body p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

/* The Route — editorial */
.section-route {
    padding: 6rem 0;
}

.route-layout {
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.map-placeholder {
    width: 100%;
    height: 600px;
    background: #EFEFEF;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('placeholders/map.jpg');
    background-size: cover;
}

.map-label {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    font-weight: 600;
}

.route-list-wrapper h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.route-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    border-top: 1px solid var(--color-border);
}

.route-list li {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    color: var(--color-brand-dark);
}

.step-num {
    color: var(--color-brand-orange);
    width: 32px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-right: 1rem;
}

.check {
    margin-left: auto;
    color: #ccc;
    font-size: 0.75rem;
}

.route-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.route-note strong {
    color: var(--color-brand-dark);
    display: block;
    margin-bottom: 0.4rem;
}

/* Gallery */
.section-gallery {
    padding: 6rem 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 380px 220px;
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: span 2; grid-row: 1; }
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) { grid-column: span 1; grid-row: 2; }

.hashtag-note {
    font-size: 0.85rem;
    color: var(--color-brand-orange);
    font-weight: 600;
    margin-top: 1rem;
    text-transform: uppercase;
}

/* Partners — editorial strip */
.section-partners {
    padding: 6rem 0;
    background: #fff;
}

.partners-strip {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.partner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -0.01em;
}

.partner.partner-title .partner-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    letter-spacing: -0.02em;
}

.partner-tier {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #aaa;
}

.partner.partner-title .partner-tier {
    color: var(--color-brand-orange);
}

/* Footer CTA */
.section-cta-footer {
    background: linear-gradient(135deg, #d35400, #F26522);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-sub {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.cta-desc {
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-white {
    background: #fff;
    color: var(--color-brand-orange);
}
.btn-outline-white {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}

.footer-note {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Site Footer */
.site-footer {
    background: #fff;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-col h4 { font-size: 0.95rem; text-transform: uppercase; margin-bottom: 1.5rem; color: #333; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-copy {
    text-align: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 2rem;
}
.small { font-size: 0.75rem; color: #aaa; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-cta { display: none; }
    .hero-title { font-size: 3.5rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stats-row .stat:nth-child(2) { border-right: none; }
    .stats-row .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
    .partners-strip { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2) { grid-column: span 1; min-height: 260px; }
    .route-layout, .mission-layout, .footer-grid { grid-template-columns: 1fr; }
    
    .main-navigation { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1D1D1F;
        padding: 2rem 0;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .main-navigation.active { display: block; }
    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-navigation a {
        font-size: 1.1rem;
        color: #fff;
    }

    .menu-toggle { 
        display: block; 
        width: 30px; 
        height: 24px; 
        position: relative; 
        background: none; 
        border: none; 
        cursor: pointer;
        z-index: 101;
    }
    .menu-toggle span { 
        display: block; 
        width: 100%; 
        height: 2px; 
        background: #fff; 
        position: absolute;
        transition: 0.3s;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 10px; }
    .menu-toggle span:nth-child(3) { top: 20px; }
}

@media (max-width: 768px) {
    .hero-section { height: auto; min-height: 100vh; padding-bottom: 4rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.4rem; }
    
    .countdown-timer { gap: 1.5rem; }
    .time-block .number { font-size: 2rem; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-item {
        min-height: 250px;
    }
    
    .footer-grid { gap: 2rem; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 2rem); }

    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 2rem; }

    .hero-stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .stat-item { flex: 0 0 auto; }

    .hero-actions { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-actions .btn { width: 100%; }

    .countdown-timer {
        padding: 1rem;
        background: rgba(0,0,0,0.3);
        border-radius: 8px;
        justify-content: space-around;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .time-block { min-width: 60px; }
    .time-block .number { font-size: 1.5rem; }
    .time-block .label { font-size: 0.6rem; }

    .stats-row { grid-template-columns: 1fr; }
    .stats-row .stat { border-right: none; border-bottom: 1px solid var(--color-border); padding: 1.25rem 1rem; }
    .stats-row .stat:last-child { border-bottom: none; }

    .highlights-list li { gap: 1rem; padding: 1.25rem 0; }
    .hl-num { font-size: 2rem; width: 50px; }
    .hl-body h3 { font-size: 1.15rem; }

    .partners-strip { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .cta-buttons { flex-direction: column; }
    .section-title { font-size: 2rem; }
    .section-title-left { font-size: 1.6rem; }
}

/* ---------- Registration Modal ---------- */
.register-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.register-modal.is-open {
    display: flex;
}

.register-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 18, 0.72);
    backdrop-filter: blur(4px);
}

.register-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    padding: 2.5rem 2.25rem;
    margin: auto 0;
    animation: registerModalIn 0.25s ease-out;
}

@keyframes registerModalIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.register-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-text-light);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.register-modal-close:hover {
    background: var(--color-bg-light);
    color: var(--color-brand-dark);
}

.register-modal-header {
    margin-bottom: 1.5rem;
}

.register-modal-eyebrow {
    margin: 0 0 0.5rem;
    color: var(--color-brand-orange);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.register-modal-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    color: var(--color-brand-dark);
}

.register-modal-sub {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- Form ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-label {
    color: var(--color-brand-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.form-label .req {
    color: var(--color-brand-orange);
}

.form-label .muted {
    color: var(--color-text-light);
    font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--color-text-main);
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-brand-orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--color-text-main);
    line-height: 1.45;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-brand-orange);
    flex-shrink: 0;
}

.form-field-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-brand-dark);
    border: 1px solid var(--color-border);
}

.btn-outline-dark:hover {
    background: var(--color-bg-light);
}

.btn[disabled],
.btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ---------- Dismissible Alert ---------- */
.register-alert-slot {
    margin-bottom: 1rem;
}

.register-alert-slot:empty {
    margin-bottom: 0;
}

.tati-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.45;
    animation: alertIn 0.2s ease-out;
}

.tati-alert-success {
    background: #e8f5ec;
    border-color: #b6dfc2;
    color: #1d6435;
}

.tati-alert-danger {
    background: #fdecea;
    border-color: #f4c2bc;
    color: #8b1f17;
}

.tati-alert-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tati-alert-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.55;
    cursor: pointer;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: opacity 0.2s, background 0.2s;
}

.tati-alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.register-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .register-modal-dialog { padding: 2rem 1.25rem; }
    .register-modal-header h2 { font-size: 1.4rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .btn { width: 100%; }
}
