/* =========================================
   WASABI Racing - Premium Action Sports UI
   ========================================= */

/* COLOR PALETTE (From User Specs) */
:root {
    --intense-hull-blue: #0b459e;
    /* A very strong, electric racing blue */
    --deep-ocean-blue: #041b3b;
    /* Deep, almost black sea tone */
    --sail-black: #0f1115;
    /* Technical carbon/kevlar black */
    --salt-white: #f4f7fa;
    /* Crisp, clean white with slight salt tint */
    --steel-gray: #4b5866;
    /* Hardware, overcast sky tone */
    --pale-sky-blue: #a8cfee;
    /* Distant horizon */

    /* Typography */
    --font-head: 'Teko', sans-serif;
    /* Tall, compressed athletic font */
    --font-body: 'Inter', sans-serif;
    /* Clean, editorial body font */
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    background-color: var(--salt-white);
    color: var(--sail-black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.stat-val {
    font-family: var(--font-head);
    text-transform: uppercase;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* UTILITIES */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.padded-section {
    padding: 120px 0;
}

.center {
    text-align: center;
}

.subheadline {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--pale-sky-blue);
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 4rem;
    color: var(--sail-black);
    margin-bottom: 40px;
}

.section-title.light {
    color: var(--salt-white);
}

.accent-line {
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--intense-hull-blue);
    margin-top: 15px;
}

.accent-line.center-line {
    margin: 15px auto;
}

.dark-bg {
    background-color: var(--sail-black);
    color: var(--salt-white);
}

.light-bg {
    background-color: var(--salt-white);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--intense-hull-blue);
    color: var(--salt-white);
}

.btn-primary:hover {
    background-color: var(--pale-sky-blue);
    color: var(--deep-ocean-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--salt-white);
    border: 2px solid var(--salt-white);
}

.btn-secondary:hover {
    background-color: var(--salt-white);
    color: var(--sail-black);
}

.btn-outline-dark {
    border: 2px solid var(--sail-black);
    color: var(--sail-black);
}

.btn-outline-dark:hover {
    background-color: var(--sail-black);
    color: var(--salt-white);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
    padding: 30px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: auto;
    max-height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--salt-white);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--pale-sky-blue);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
}

.hero-bg,
.boat-bg,
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--deep-ocean-blue);
    /* Fallback */
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(4, 27, 59, 0.85) 0%, rgba(4, 27, 59, 0.2) 100%);
    z-index: -1;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 17, 21, 0.8) 0%, rgba(15, 17, 21, 0.95) 100%);
    z-index: -1;
}

.overlay-heavy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 21, 0.75);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: var(--salt-white);
}

.hero .headline {
    font-size: clamp(5rem, 10vw, 9rem);
    line-height: 0.9;
    margin-bottom: 40px;
    color: var(--salt-white);
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* CAMPAIGN SECTION */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.manifesto {
    font-size: 2.2rem;
    color: var(--intense-hull-blue);
    margin-bottom: 30px;
}

.body-text {
    font-size: 1.1rem;
    color: var(--steel-gray);
    margin-bottom: 20px;
    max-width: 500px;
}

.action-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    background-color: var(--deep-ocean-blue);
    /* Fallback */
}

/* THE BOAT */
.tech-section {
    position: relative;
    padding: 150px 0;
    color: var(--salt-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 0;
    margin: 40px 0;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 5rem;
    color: var(--pale-sky-blue);
}

.stat-val .unit {
    font-size: 2rem;
    color: var(--salt-white);
    margin-left: 5px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--steel-gray);
    margin-top: -10px;
}

.tech-desc {
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--pale-sky-blue);
}

/* CREW */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.crew-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 100%;
}

.crew-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    background-color: var(--steel-gray);
    display: block;
}

.crew-info {
    padding: 30px 20px;
}

.crew-info h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--intense-hull-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.crew-info h3 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--sail-black);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.crew-info p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--steel-gray);
    line-height: 1.5;
    margin: 0;
}

/* RESULTS */
.metrics-row {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 22%;
}

.metric-number {
    font-family: var(--font-head);
    font-size: 6rem;
    color: var(--intense-hull-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.metric-event {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--pale-sky-blue);
}

/* PARTNERS */
.partner-subtitle {
    text-align: center;
    color: var(--steel-gray);
    margin-top: -30px;
    margin-bottom: 60px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--steel-gray);
    letter-spacing: 3px;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--sail-black);
}

/* LOGBOOK */
.logbook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.log-entry {
    display: block;
    overflow: hidden;
}

.log-entry:hover .log-img {
    transform: scale(1.05);
}

.log-entry:hover h3 {
    color: var(--intense-hull-blue);
}

.log-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    background-color: var(--steel-gray);
    transition: transform 0.6s ease;
    display: block;
}

.log-meta {
    padding-top: 20px;
}

.log-meta .date {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--steel-gray);
    display: block;
    margin-bottom: 10px;
}

.log-meta h3 {
    font-size: 1.8rem;
    color: var(--sail-black);
    transition: color 0.3s ease;
}

.view-all {
    text-align: center;
}

/* FINAL CTA */
.final-cta {
    position: relative;
    padding: 150px 0;
    color: var(--salt-white);
}

.cta-headline {
    font-size: 5rem;
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 1.5rem;
    color: var(--pale-sky-blue);
    margin-bottom: 50px;
}

/* FOOTER */
.footer {
    background-color: #080a0c;
    color: var(--steel-gray);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-img {
    max-width: 250px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a,
.footer-social a {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--salt-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.8rem;
}

/* RESPONSIVE RESPONSIVE RESPONSIVE */
@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .action-img {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crew-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-row {
        flex-wrap: wrap;
        gap: 40px;
    }

    .metric {
        width: 45%;
    }

    .logbook-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Add hamburger for production */
    .hero .headline {
        font-size: 4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .crew-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        width: 100%;
    }

    .logbook-grid {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ANIMATIONS (Scroll Reveals) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}