/* ============================================================
   SITBETTER.SHOP — ROOT VARIABLES (ADJUST EVERYTHING HERE)
   ============================================================ */

:root {

    /* ============ FONTS ============ */
    --font-heading: 'Playfair Display', serif;   /* Elegant serif for headlines */
    --font-body: 'Montserrat', sans-serif;        /* Clean sans-serif for body */

    /* ============ COLORS: PRIMARY ============ */
    --color-primary: #1F4B99;          /* Deep Blue — trust, strength */
    --color-primary-hover: #173d7e;    /* Darker blue for hovers */

    /* ============ COLORS: ACCENT (CTA, HIGHLIGHTS) ============ */
    --color-accent: #16A34A;           /* Green — CTA buttons */
    --color-accent-hover: #15803d;     /* Darker green for hover */

    /* ============ COLORS: BACKGROUNDS ============ */
    --bg-body: #EEF3F8;                /* Main page background — soft blue-gray */
    --bg-nav: rgba(17, 24, 39, 0.92);  /* Nav background — dark with transparency */
    --bg-nav-solid: #111827;           /* Nav background — solid dark (mobile) */
    --bg-card: #FFFFFF;                /* Cards — clean white */

    /* ============ COLORS: TEXT ============ */
    --text-heading: #FFFFFF;           /* H1 on slider — white */
    --text-body: #D1D5DB;              /* Subheadline on slider — light gray */
    --text-nav: #E5E7EB;               /* Nav links */
    --text-nav-hover: #FFFFFF;         /* Nav links hover */
    --text-badge: #DBEAFE;             /* Badge text color */

    /* ============ NAVIGATION ============ */
    --nav-height: 70px;                /* Nav bar height (INCREASE = taller nav) */
    --nav-padding-sides: 40px;         /* Left/right padding inside nav */
    --nav-logo-size: 26px;             /* Logo font size */
    --nav-link-size: 15px;             /* Nav link font size */
    --nav-link-gap: 32px;              /* Space between nav links (INCREASE = more spread) */

    /* ============ SLIDER ============ */
    --slider-height: 100vh;            /* Full screen height (100vh = full viewport) */
    --slider-transition: 0.8s;         /* Slide transition speed (INCREASE = slower fade) */
    --slider-autoplay-delay: 5000;     /* Milliseconds between slides (5000 = 5 seconds) */

    /* ============ SLIDE OVERLAY ============ */
    --overlay-opacity: 0.55;           /* Dark overlay on images (0=no overlay, 1=fully dark) */
    --overlay-gradient: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.20) 100%
    );

    /* ============ SLIDE TEXT ============ */
    --slide-text-max-width: 540px;     /* Max width of text block (INCREASE = wider text area) */
    --slide-heading-size: 56px;        /* H1 size on slides (INCREASE = bigger headline) */
    --slide-heading-weight: 700;       /* H1 weight (400=normal, 700=bold, 800=extra-bold) */
    --slide-heading-line: 1.15;        /* Line spacing for H1 */
    --slide-heading-margin: 20px;      /* Space below H1 */

    --slide-sub-size: 18px;            /* Subheadline size */
    --slide-sub-weight: 400;           /* Subheadline weight */
    --slide-sub-line: 1.6;             /* Subheadline line spacing */
    --slide-sub-margin: 36px;          /* Space below subheadline */
    --slide-sub-color: #CBD5E1;        /* Subheadline color */

    /* ============ SLIDE BADGE ============ */
    --badge-font-size: 13px;
    --badge-padding: 7px 18px;
    --badge-radius: 50px;
    --badge-bg: rgba(31, 75, 153, 0.85);   /* Semi-transparent blue */
    --badge-color: #FFFFFF;
    --badge-margin-bottom: 20px;

    /* ============ CTA BUTTON ============ */
    --cta-padding-vertical: 16px;
    --cta-padding-horizontal: 42px;
    --cta-font-size: 16px;
    --cta-font-weight: 600;
    --cta-border-radius: 8px;
    --cta-bg: var(--color-accent);
    --cta-color: #FFFFFF;

    /* ============ SLIDE IMAGE ============ */
    --slide-image-max-width: 420px;    /* Product image max size (INCREASE = bigger) */
    --slide-image-max-height: 400px;

    /* ============ DOTS ============ */
    --dot-size: 12px;                  /* Dot diameter (INCREASE = bigger dots) */
    --dot-gap: 10px;                   /* Space between dots */
    --dot-color: rgba(255,255,255,0.4); /* Inactive dot color */
    --dot-active-color: #FFFFFF;       /* Active dot color */
    --dots-bottom: 30px;               /* Distance from bottom of slider */

    /* ============ RESPONSIVE BREAKPOINTS ============ */
    --mobile-break: 768px;
}

/* ============================================================
   GLOBAL RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--nav-padding-sides);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    font-family: var(--font-heading);
    font-size: var(--nav-logo-size);
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo .logo-dot {
    color: var(--color-accent);
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: var(--nav-link-gap);
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--nav-link-size);
    font-weight: 500;
    color: var(--text-nav);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-nav-hover);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Cart Button */
.cart-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    position: relative;
    padding: 6px;
    transition: opacity 0.3s ease;
}

.cart-btn:hover {
    opacity: 0.8;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: var(--slider-height);
    min-height: 600px;
    overflow: hidden;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--slider-transition) ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide Background Image */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
}

/* Slow zoom effect on active slide */
.slide.active .slide-bg {
    animation: slowZoom 8s ease-out forwards;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* Dark Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: 1;
}

/* Slide Content (Text + Image) */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--nav-padding-sides);
    padding-top: var(--nav-height);     /* Offset for fixed nav */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Text Side */
.slide-text {
    flex: 1;
    max-width: var(--slide-text-max-width);
    animation: fadeInUp 0.8s ease-out;
}

/* Badge */
.slide-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--badge-font-size);
    font-weight: 600;
    padding: var(--badge-padding);
    border-radius: var(--badge-radius);
    background: var(--badge-bg);
    color: var(--badge-color);
    margin-bottom: var(--badge-margin-bottom);
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* H1 Headline */
.slide-heading {
    font-family: var(--font-heading);
    font-size: var(--slide-heading-size);
    font-weight: var(--slide-heading-weight);
    color: var(--text-heading);
    line-height: var(--slide-heading-line);
    margin-bottom: var(--slide-heading-margin);
}

/* Subheadline */
.slide-sub {
    font-family: var(--font-body);
    font-size: var(--slide-sub-size);
    font-weight: var(--slide-sub-weight);
    color: var(--slide-sub-color);
    line-height: var(--slide-sub-line);
    margin-bottom: var(--slide-sub-margin);
    max-width: 480px;
}

/* CTA Button */
.btn-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--cta-font-size);
    font-weight: var(--cta-font-weight);
    padding: var(--cta-padding-vertical) var(--cta-padding-horizontal);
    background: var(--cta-bg);
    color: var(--cta-color);
    border: none;
    border-radius: var(--cta-border-radius);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

/* Product Image Side */
.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out;
}

.slide-image img {
    max-width: var(--slide-image-max-width);
    max-height: var(--slide-image-max-height);
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Fade In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   SLIDER DOTS
   ============================================================ */
.slider-dots {
    position: absolute;
    bottom: var(--dots-bottom);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: var(--dot-gap);
}

.dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    border: 2px solid var(--dot-active-color);
    background: var(--dot-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--dot-active-color);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 768px) {

    /* Nav */
    .nav-links {
        display: none;                   /* Hidden on mobile — toggle with JS */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-nav-solid);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 14px var(--nav-padding-sides);
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Slider */
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--nav-height) + 40px);
        justify-content: center;
        gap: 30px;
    }

    .slide-text {
        order: 1;
        max-width: 100%;
    }

    .slide-sub {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .slide-image {
        order: 2;
    }

    .slide-image img {
        max-width: 260px;
        max-height: 260px;
    }

    :root {
        --slide-heading-size: 34px;
        --slide-sub-size: 16px;
        --nav-padding-sides: 20px;
        --slide-text-max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --slide-heading-size: 28px;
        --slide-sub-size: 15px;
        --cta-padding-vertical: 14px;
        --cta-padding-horizontal: 30px;
        --cta-font-size: 15px;
    }

    .slide-image img {
        max-width: 200px;
        max-height: 200px;
    }
}