/* ============================================================
   ROOT VARIABLES (UPDATED FONTS)
============================================================ */

:root {
    --chrome-white: #f9f9f9;
    --clean-white: #ffffff;
    --deep-black: #040202;
    --asphalt-grey: #3b3331;
    --steel-grey: #918f90;
    --ember-orange: #ff6400;
    --burnt-rust: #ad452e;

    --bg-dark: var(--deep-black);
    --bg-light: #f6f4f2;

    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    --max-width: 1440px;
}

/* ============================================================
   HERO SLIDER
============================================================ */

.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 88px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-slider.ready {
    opacity: 1;
    pointer-events: auto;
}

/* SLIDES */

.hero-slider .slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

/* ============================================================
   OVERLAY (MAIN LAYOUT)
============================================================ */

.slide .overlay {
    position: absolute;
    inset: 0;
    
    display: flex;
    
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 80px 20px;
    z-index: 3;

    color: #fff;

    
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.25) 50%,
        rgba(0,0,0,0.45) 100%
    );
    
}

/* Content width */

.slide .overlay > * {
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   TYPOGRAPHY (UPGRADED)
============================================================ */

.slide .overlay h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    font-weight: 800;

    line-height: 1.1;
    letter-spacing: -0.02em;

    margin-bottom: 12px;

    color: #fff;

    text-shadow:
        0 4px 20px rgba(0,0,0,0.6),
        0 2px 6px rgba(0,0,0,0.5);
}

/* Accent line inside h1 */

.slide .overlay h1 span {
    display: block;
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;

    font-size: 0.9em;
    margin-top: 6px;

    opacity: 0.95;
}

/* Supporting text */

.slide .overlay p {
    font-family: var(--font-main);
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);

    line-height: 1.6;
    margin-bottom: 20px;

    color: rgba(255,255,255,0.92);
}

/* Bullet points */

.slide .overlay ul {
    list-style: none;
    display: inline-block;
    text-align: left;

    padding: 0;
    margin-bottom: 25px;
}

.slide .overlay ul li {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;

    margin-bottom: 8px;
}

/* ============================================================
   BUTTONS
============================================================ */

.slide .overlay .btn {
    margin: 0 5px 10px;

    box-shadow: 0 10px 30px rgba(255,100,0,0.4);
}

/* Secondary link */

.slide .overlay a:not(.btn) {
    display: block;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    opacity: 0.85;
}

.slide .overlay a:not(.btn):hover {
    opacity: 1;
}

/* ============================================================
   NAVIGATION
============================================================ */

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    background: rgba(0,0,0,0.45);
    border: none;
    color: var(--chrome-white);

    width: 44px;
    height: 44px;
    border-radius: 50%;

    font-size: 24px;
    cursor: pointer;

    transition: all 0.3s ease;
}

.hero-nav:hover {
    background: rgba(0,0,0,0.75);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

/* DOTS */

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 8px;
    z-index: 6;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;

    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;

    cursor: pointer;
}

.hero-dots button.active {
    background: var(--ember-orange);
    border-color: var(--ember-orange);
}

/* ============================================================
   IMAGE SWITCHING
============================================================ */

/* Desktop */
.slide {
    background-image: attr(data-desktop url);
}

/* Mobile */
@media (max-width: 768px) {
    .slide {
        background-image: attr(data-mobile url);
    }
}

/* ============================================================
   MOBILE OPTIMIZATION
============================================================ */

@media (max-width: 768px) {

    .hero-slider {
        height: 73vh;
    }

    .slide .overlay {
        justify-content: flex-end;
        padding: 100px 20px 20px;
    }

    .slide .overlay h1 {
        font-size: 1.8em;
    }

    .slide .overlay p {
        font-size: 1em;
        padding: 0 40px;
        line-height: 1.25em;
    }

    .slide .overlay ul li {
        font-size: 0.9rem;
    }

    .slide .overlay .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* ============================================================
   BOTTOM FADE
============================================================ */

.hero-slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        #f3f2f0
    );

    z-index: 4;
    pointer-events: none;
}

/* ============================================================
   HERO CTA FIX
============================================================ */

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Base button */

.hero-cta .btn {
    min-width: 200px;
    padding: 14px 22px;

    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;

    border-radius: 50px;
    text-align: center;

    transition: all 0.25s ease;
}

/* PRIMARY (money button) */

.btn-primary {
    background: linear-gradient(135deg, #ff6400, #ad452e);
    color: #fff;
    border: none;

    box-shadow: 0 10px 30px rgba(255,100,0,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(255,100,0,0.5);
}

/* SECONDARY */

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}
  
/* ============================================================
   MOBILE FIX
============================================================ */

@media (max-width: 768px) {

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 5;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
}