/* ===== PREMIUM MODERN REDESIGN - ALI RECOVERY GROUP ===== */

/* Google Fonts - Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== MODERN DESIGN SYSTEM ===== */
:root {
    /* Premium Color Palette */
    --primary-900: #0A0E27;
    --primary-800: #141B3D;
    --primary-700: #1E2952;
    --primary-600: #2A3A6B;
    --accent-red: #FF3B30;
    --accent-red-hover: #FF6259;
    --accent-blue: #007AFF;
    --accent-green: #34C759;
    --accent-orange: #FF9500;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shadows - Premium Depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== PREMIUM HERO: CINEMATIC GLASS EDIT ===== */

/* Section Layout */
.hero-premium {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* Vertically center */
    justify-content: flex-start;
    /* Left align content */
    overflow: hidden;
    padding: var(--space-8);
    /* Padding around the frame */
}

/* 1. THE IMAGE (Clean, Sharp, No Dark Filter) */
.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* The image itself is the star now */
    background: url('../assets/images/hero-recovery-truck.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero-icon-small {
    font-size: 1.6rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle gradient ONLY at the bottom for scroll protection, not over the whole image */
.hero-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(249, 250, 251, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-premium-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* 2. THE GLASS CARD (Holds content cleanly) */
.hero-premium-content {
    max-width: 600px;
    padding: 30px;
    margin: 0 0 20px 50px;
    /* Left aligned again */
    text-align: left;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. TYPOGRAPHY (Dark on Light - Much sharper) */

/* Badge inside the card */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--primary-900);
    color: var(--white);
    font-size: 0.7rem;
    /* Slightly smaller */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    /* Tighter spacing */
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.3);
}

/* Headline */
.hero-premium h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    /* Increased for 'own big' effect */
    font-weight: 700;
    line-height: 1.1;
    color: var(--gray-900);
    /* Dark text for contrast */
    margin-bottom: var(--space-3);
    letter-spacing: -0.03em;
}

.hero-premium h1 .highlight {
    color: var(--accent-red);
    /* Ali Recovery Brand Red */
    background: none;
    -webkit-text-fill-color: initial;
    display: inline;
}

/* Subtext */
.hero-premium-subtext {
    font-size: 1.4rem;
    /* Increased for impact */
    color: #FFD700;
    /* Safety Yellow */
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.9),
        2px 2px 10px rgba(0, 0, 0, 1),
        0px 0px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-weight: 700;
    /* Bolder on desktop */
    line-height: 1.5;
}

/* Stats Row */
.hero-stats {
    display: flex;
    justify-content: flex-start;
    /* Left aligned stats items */
    gap: 30px;
    /* Tighter space between items */
    align-items: center;
    padding: 10px 20px;
    margin: 0 0 8px 50px;
    /* Left aligned stats row */
    max-width: 600px;
    width: 100%;
}

.hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 6px;
}

.hero-stat-content h3 {
    font-size: 0.95rem;
    color: #FFFFFF;
    /* White on desktop */
    font-weight: 800;
    /* Bold */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0 0 3px 0;
    white-space: nowrap;
}

.hero-stat-content p {
    font-size: 0.85rem;
    color: #FFFFFF;
    /* White on desktop */
    font-weight: 700;
    /* Bold */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

/* Buttons */
.hero-cta-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    /* Full pill shape */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-premium-primary {
    background: var(--accent-red);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.btn-premium-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.4);
}

.btn-premium-secondary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    /* WhatsApp gradient */
    color: white;
    box-shadow:
        0 4px 15px rgba(37, 211, 102, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-premium-secondary:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-premium-secondary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Animated shine effect */
.btn-premium-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.btn-premium-secondary:hover::before {
    left: 100%;
}

/* WhatsApp Button Specific Styles */
.btn-premium.btn-green {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    /* WhatsApp gradient */
    color: white !important;
    box-shadow:
        0 4px 15px rgba(37, 211, 102, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-premium.btn-green:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-premium.btn-green:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Animated shine effect for WhatsApp button */
.btn-premium.btn-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.btn-premium.btn-green:hover::before {
    left: 100%;
}

/* Scroll Indicator - Hidden for cleaner look */
.scroll-indicator {
    display: none;
}

.hero-sales-message {
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    margin: 5px 0 15px 0;
    width: 100%;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-premium {
        display: flex;
        flex-direction: column;
        padding: 5% var(--space-4) 0 var(--space-4);
        /* No bottom padding */
        background-position: 35% center;
        min-height: 92vh;
        /* Even taller for deeper bottom anchoring */
    }

    .hero-premium-content {
        margin: 0;
        max-width: 100%;
        backdrop-filter: none;
        background: none;
        border: none;
        box-shadow: none;
        padding: var(--space-2);
        text-align: center;
        display: flex;
        flex-direction: column;
        flex: 1;
        /* Take up vertical space */
    }

    .hero-text-card {
        padding: var(--space-6) var(--space-4);
        margin-bottom: var(--space-2);
    }

    .hero-premium h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 12px;
        color: var(--gray-900);
        /* Dark text on light card */
        text-shadow: none;
    }

    .hero-premium-subtext {
        color: #FFD700;
        /* Safety Yellow */
        text-shadow:
            1px 1px 0px rgba(0, 0, 0, 0.9),
            2px 2px 8px rgba(0, 0, 0, 0.9),
            0px 0px 15px rgba(0, 0, 0, 1);
        font-size: 1.1rem;
        /* Increased for mobile prominence */
        line-height: 1.4;
        margin-bottom: 0;
    }

    .hero-badge {
        background: var(--primary-900);
        margin-bottom: 12px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .hero-stats {
        order: 2;
        /* Directly under text */
        gap: var(--space-4);
        justify-content: center;
        margin: -5px auto 8px auto;
        /* Pull upward closer to card */
        padding: 8px 15px;
    }

    .hero-stat-content h3 {
        color: var(--white);
        font-size: 0.85rem;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
        /* Improved visibility */
    }

    .hero-stat-content p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.65rem;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        /* Improved visibility */
    }

    .hero-icon-small {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }

    .hero-sales-message {
        order: 1.5;
        /* Between red and green buttons */
        font-size: 0.8rem;
        margin: 5px auto 12px auto;
        color: var(--white);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
        max-width: 250px;
        line-height: 1.3;
    }

    .hero-cta-group {
        order: 3;
        display: flex;
        flex-direction: column;
        flex: 1;
        /* Allow stretching to push bottom button */
        gap: var(--space-3);
        width: 100%;
        margin-top: 20px;
    }

    .btn-premium {
        width: 100%;
        padding: var(--space-4);
        /* Slightly reduced for better fit */
        font-size: 1rem;
    }

    /* Put WhatsApp at the very bottom */
    .btn-green {
        order: 2;
        margin-top: 90%;
        /* Pushes button to bottom without stretching */
        margin-bottom: 20px;
        /* Space from absolute bottom edge */
    }

    .btn-red {
        order: 1;
    }
}