/* -----------------------------------------------------------------
   1. Design System & Variables
----------------------------------------------------------------- */
:root {
    /* Fonts - System Stack for Apple Feel */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Colors - Light Mode (Default) */
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-text-main: #111827;
    /* Dark charcoal, not black */
    --color-text-muted: #4b5563;

    /* Brand Colors - Premium Red */
    --color-brand-primary: #dc2626;
    /* Deep Crimson */
    --color-brand-hover: #b91c1c;
    --color-brand-light: #fef2f2;

    /* UI Elements */
    --color-border: #e5e7eb;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-md: 8px;
    --radius-full: 999px;

    /* Transitions */
    /* Transitions */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-style ease */
    --ease-luxury: cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Premium slowdown */

    /* Shadows & Depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --color-bg: #0f1115;
    /* Deep luxury dark */
    --color-bg-alt: #1a1d24;
    --color-text-main: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-border: #27272a;
    --glass-bg: rgba(15, 17, 21, 0.85);
}

/* -----------------------------------------------------------------
   2. Reset & Base
----------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, var(--color-text-main) 0%, var(--color-text-muted) 100%);
}

.text-gradient-brand {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, var(--color-brand-primary) 0%, #ef4444 100%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .glass-panel {
    background: rgba(15, 17, 21, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Animation classes are now handled in animations.css */

/* -----------------------------------------------------------------
   3. Header & Navigation
----------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom-color: var(--color-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Brand */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: var(--color-brand-primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.logo-mark img {
    filter: grayscale(100%) brightness(1000%);
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }

    .nav-list {
        display: flex;
        gap: 32px;
        align-items: center;
    }

    .nav-link {
        color: var(--color-text-muted);
        font-weight: 500;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .nav-link:hover {
        color: var(--color-brand-primary);
    }

    /* Dropdown */
    .has-dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 8px;
        min-width: 180px;
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }

    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-item {
        display: block;
        padding: 8px 16px;
        font-size: 0.9rem;
        color: var(--color-text-muted);
        border-radius: 4px;
    }

    .dropdown-item:hover {
        background: var(--color-bg-alt);
        color: var(--color-text-main);
    }

    /* Active Nav Link Styling */
    .nav-link.active {
        color: var(--color-brand-primary);
        font-weight: 700;
    }

    .mobile-link.active {
        color: var(--color-brand-primary);
        font-weight: 700;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s var(--ease-smooth);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--color-brand-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-brand-hover);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Theme Toggle Button */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid var(--color-border);
}

.icon-btn:hover {
    background: var(--color-brand-light);
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
    transform: scale(1.05);
}

[data-theme="dark"] .icon-btn:hover {
    background: rgba(220, 38, 38, 0.15);
}

/* Theme Icons */
.icon-sun {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: 0.3s;
}

/* -----------------------------------------------------------------
   4. Hero Section
----------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 80px;
    }
}

/* Hero Typography */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-brand-light);
    color: var(--color-brand-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 24px;
}

[data-theme="dark"] .badge {
    background: rgba(220, 38, 38, 0.15);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--color-brand-primary);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero Visual (Image Blending Logic) */
.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform: scale(0.98);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.founder-cutout {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    /* Blend the bottom of the image into the background */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Fallback gradient overlay if mask not supported */
.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
    z-index: 3;
}

/* Background Blobs for depth */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.red-blob {
    width: 300px;
    height: 300px;
    background: var(--color-brand-primary);
    bottom: 50px;
    right: 10%;
    opacity: 0.15;
}

.gray-blob {
    width: 400px;
    height: 400px;
    background: var(--color-border);
    top: 50px;
    right: 30%;
    opacity: 0.3;
}

/* Slider Navigation Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
}

[data-theme="dark"] .slider-nav {
    background: rgba(26, 29, 36, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
}

.slider-container:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background: var(--color-brand-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav-prev {
    left: 20px;
}

.slider-nav-next {
    right: 20px;
}

/* Mobile: Smaller arrows, always visible */
@media (max-width: 768px) {
    .slider-nav {
        width: 40px;
        height: 40px;
        opacity: 0.8;
    }

    .slider-nav-prev {
        left: 10px;
    }

    .slider-nav-next {
        right: 10px;
    }
}

/* Slide Indicators (Dots) */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    padding: 0;
}

[data-theme="dark"] .slider-indicator {
    background: rgba(255, 255, 255, 0.3);
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-indicator.active {
    background: var(--color-brand-primary);
    border-color: white;
    width: 32px;
    border-radius: 6px;
}

/* Mobile: Slightly larger indicators */
@media (max-width: 768px) {
    .slider-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .slider-indicator {
        width: 8px;
        height: 8px;
    }

    .slider-indicator.active {
        width: 24px;
    }
}

/* Progress Loader */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    overflow: hidden;
}

[data-theme="dark"] .slider-progress {
    background: rgba(255, 255, 255, 0.1);
}

.slider-progress-bar {
    height: 100%;
    background: var(--color-brand-primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--color-brand-primary);
}

/* Pause progress on hover */
.slider-container:hover .slider-progress-bar {
    animation-play-state: paused;
}

/* Mobile: Thicker progress bar for better visibility */
@media (max-width: 768px) {
    .slider-progress {
        height: 4px;
    }
}

/* -----------------------------------------------------------------
   5. Animations (Handled by GSAP)
   ----------------------------------------------------------------- */
/* All page animations are now powered by GSAP in script.js for:
   - Smoother performance
   - Better timing control
   - Professional easing functions
   - Scroll-triggered effects
   - Parallax movements
*/

/* -----------------------------------------------------------------
   6. Mobile Menu Off-Canvas - Premium Redesign
   ----------------------------------------------------------------- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    background: rgba(15, 17, 21, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-luxury), visibility 0.4s;
}

[data-theme="light"] .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.85);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    width: min(400px, 90%);
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--color-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .mobile-menu-content {
    background: rgba(15, 17, 21, 0.95);
    border-left-color: rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-content nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile Links - Apple-style refinement */
.mobile-link {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 20px;
    margin: 0;
    color: var(--color-text-main);
    background: transparent;
    border-radius: 12px;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-overlay.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered entrance animations */
.mobile-menu-overlay.active .mobile-link:nth-child(1),
.mobile-menu-overlay.active .mobile-dropdown:nth-child(1) .mobile-link {
    transition-delay: 0.05s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(2),
.mobile-menu-overlay.active .mobile-dropdown:nth-child(2) .mobile-link {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(3),
.mobile-menu-overlay.active .mobile-dropdown:nth-child(3) .mobile-link {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(4),
.mobile-menu-overlay.active .mobile-dropdown:nth-child(4) .mobile-link {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(5),
.mobile-menu-overlay.active .mobile-dropdown:nth-child(5) .mobile-link {
    transition-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(6),
.mobile-menu-overlay.active .mobile-dropdown:nth-child(6) .mobile-link {
    transition-delay: 0.3s;
}

.mobile-link:hover,
.mobile-link:focus-visible {
    background: var(--color-bg-alt);
    color: var(--color-brand-primary);
    transform: translateX(4px);
}

[data-theme="dark"] .mobile-link:hover,
[data-theme="dark"] .mobile-link:focus-visible {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-link:active {
    transform: scale(0.98) translateX(4px);
}

.mobile-link.active {
    background: var(--color-brand-light);
    color: var(--color-brand-primary);
}

[data-theme="dark"] .mobile-link.active {
    background: rgba(220, 38, 38, 0.15);
}

/* Mobile Dropdown Sections */
.mobile-dropdown {
    margin: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s var(--ease-smooth);
}

.mobile-menu-overlay.active .mobile-dropdown {
    opacity: 1;
    transform: translateX(0);
}

.mobile-dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.25s var(--ease-smooth);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
}

.mobile-dropdown-btn:hover,
.mobile-dropdown-btn:focus-visible {
    background: var(--color-bg-alt);
    color: var(--color-brand-primary);
}

[data-theme="dark"] .mobile-dropdown-btn:hover,
[data-theme="dark"] .mobile-dropdown-btn:focus-visible {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-btn:active {
    transform: scale(0.98);
}

.mobile-dropdown-btn.active {
    background: var(--color-brand-light);
    color: var(--color-brand-primary);
}

[data-theme="dark"] .mobile-dropdown-btn.active {
    background: rgba(220, 38, 38, 0.15);
}

.chevron-mobile {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    stroke: currentColor;
    flex-shrink: 0;
}

.mobile-dropdown.active .chevron-mobile {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 4px 0 8px 12px;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
}

[data-theme="dark"] .mobile-dropdown-content {
    border-left-color: rgba(255, 255, 255, 0.08);
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 400px;
    padding: 8px 0;
}

.mobile-sublink {
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 12px 16px;
    margin: 2px 0;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s var(--ease-smooth);
    border-radius: 8px;
    position: relative;
    letter-spacing: -0.005em;
}

.mobile-dropdown.active .mobile-sublink {
    opacity: 1;
    transform: translateX(0);
}

.mobile-dropdown.active .mobile-sublink:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-dropdown.active .mobile-sublink:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-dropdown.active .mobile-sublink:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-dropdown.active .mobile-sublink:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-sublink:hover,
.mobile-sublink:focus-visible {
    color: var(--color-brand-primary);
    background: var(--color-brand-light);
    transform: translateX(4px);
}

[data-theme="dark"] .mobile-sublink:hover,
[data-theme="dark"] .mobile-sublink:focus-visible {
    background: rgba(220, 38, 38, 0.1);
}

.mobile-sublink:active {
    transform: scale(0.96) translateX(4px);
}

/* Mobile CTA Button */
.mobile-cta {
    margin: 32px 0 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.mobile-menu-overlay.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.mobile-cta:active {
    transform: translateY(0);
}

/* Scrollbar styling for mobile menu */
.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

[data-theme="dark"] .mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile-specific refinements */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 100%;
        padding: 90px 24px 40px;
    }

    .mobile-link,
    .mobile-dropdown-btn {
        font-size: 0.9375rem;
        padding: 14px 18px;
    }

    .mobile-sublink {
        font-size: 0.875rem;
        padding: 10px 14px;
    }
}

.mobile-dropdown.active .mobile-sublink:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-dropdown.active .mobile-sublink:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-dropdown.active .mobile-sublink:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-dropdown.active .mobile-sublink:nth-child(4) {
    transition-delay: 0.2s;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .nav-cta {
        display: none;
    }
}

/* -----------------------------------------------------------------
   7. Footer - Apple-Inspired Design
   ----------------------------------------------------------------- */
/* -----------------------------------------------------------------
   8. Premium Footer - Google/Microsoft/Apple Inspired
   ----------------------------------------------------------------- */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 0 0 0 0;
    font-size: 0.875rem;
    position: relative;
}

/* Newsletter Section - Top of Footer */
.footer-newsletter {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, #b91c1c 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .footer-newsletter {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Decorative pattern overlay */
.footer-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.newsletter-content {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.newsletter-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Newsletter Form */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: var(--radius-full);
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--ease-smooth);
}

[data-theme="dark"] .newsletter-input-wrapper {
    background: var(--color-bg-alt);
}

.newsletter-input-wrapper:focus-within {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.newsletter-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px 14px 52px;
    font-size: 1rem;
    color: var(--color-text-main);
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-brand-primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--color-brand-hover);
    transform: scale(1.02);
}

.newsletter-btn:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .footer-newsletter {
        padding: 40px 0;
    }

    .newsletter-content {
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .newsletter-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .newsletter-input-wrapper {
        flex-direction: row;
        gap: 8px;
        padding: 6px;
    }

    .newsletter-input {
        padding: 12px 16px;
        font-size: 16px;
        /* Prevents zoom on iOS */
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .newsletter-icon {
        display: none;
    }

    .newsletter-btn {
        justify-content: center;
        width: auto;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Footer Main Content */
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 0 60px;
}

@media (min-width: 640px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
        gap: 60px;
    }
}

/* Footer Branding */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--color-brand-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.footer-logo-mark img {
    filter: grayscale(100%) brightness(1000%);
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-main);
}

/* Footer Column */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-text {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    color: var(--color-text-muted);
    transition: all 0.2s var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brand-primary);
    transition: width 0.3s var(--ease-smooth);
}

.footer-link:hover {
    color: var(--color-brand-primary);
    padding-left: 16px;
}

.footer-link:hover::before {
    width: 8px;
}

/* Footer Address */
.footer-address {
    font-style: normal;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-address p {
    margin-bottom: 8px;
}

.footer-contact {
    margin-top: 12px;
}

/* Enhanced Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-brand-primary), #ef4444);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-smooth);
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: white;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 28px 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.footer-legal-link {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--color-brand-primary);
}

.footer-divider {
    color: var(--color-border);
    user-select: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--color-brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-smooth);
    z-index: 90;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-brand-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
}

/* Page Title Hero (for internal pages like About) */
.page-title-hero {
    padding: calc(var(--header-height) + 60px) 0 60px;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, var(--color-bg-alt), var(--color-bg));
}

.page-title-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.breadcrumb-link {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--color-brand-primary);
}

.breadcrumb-separator {
    opacity: 0.5;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Utilities */
.section-padding {
    padding: 80px 0;
}

.bg-alt {
    background: var(--color-bg-alt);
}

.bg-dark {
    background: var(--color-text-main);
}

[data-theme="dark"] .bg-dark {
    background: #000;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-brand-light);
    color: var(--color-brand-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
    background: rgba(220, 38, 38, 0.15);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.text-body {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}