/* ==========================================================================
   01. DESIGN SYSTEM & VARIABLES - ELITE DUAL-TONE (2026)
   ========================================================================== */
@font-face {
    font-family: 'Author-Bold';
    src: url('fonts/Author-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter-ExtraBold';
    src: url('fonts/Inter-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Core Brand Colors */
    --clr-brand-red: #d33532;
    --clr-brand-blue: #0251a7;
    
    /* Backgrounds */
    --clr-bg-main: #02060c; /* Ultra Dark Blue-Black */
    --clr-bg-surface: #0a101a;
    --clr-bg-glass: rgba(2, 81, 167, 0.05);
    --clr-bg-glass-hover: rgba(211, 53, 50, 0.08);
    
    /* Semantic Colors */
    --clr-primary: var(--clr-brand-red); 
    --clr-primary-glow: rgba(211, 53, 50, 0.4);
    --clr-secondary: var(--clr-brand-blue);
    --clr-secondary-glow: rgba(2, 81, 167, 0.4);
    
    --clr-text-main: #FFFFFF;
    --clr-text-muted: #94a3b8;
    
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-border-active: var(--clr-brand-blue);

    /* Typography */
    --font-sans: 'Inter-ExtraBold', sans-serif;
    --font-display: 'Author-Bold', sans-serif;
    
    /* Fluid Typography Scale */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.83rem + 0.25vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1.05rem + 0.38vw, 1.313rem);
    --fs-xl: clamp(1.313rem, 1.18rem + 0.69vw, 1.66rem);
    --fs-2xl: clamp(1.53rem, 1.3rem + 1.14vw, 2.1rem);
    --fs-3xl: clamp(1.79rem, 1.43rem + 1.8vw, 2.69rem);
    --fs-4xl: clamp(2.09rem, 1.55rem + 2.72vw, 3.45rem);
    --fs-5xl: clamp(2.44rem, 1.65rem + 3.97vw, 4.42rem);

    /* Spacing & Layout */
    --space-2xs: clamp(0.5rem, 0.46rem + 0.18vw, 0.63rem);
    --space-xs: clamp(0.75rem, 0.71rem + 0.18vw, 0.88rem);
    --space-sm: clamp(1rem, 0.96rem + 0.18vw, 1.13rem);
    --space-md: clamp(1.5rem, 1.43rem + 0.36vw, 1.75rem);
    --space-lg: clamp(2rem, 1.89rem + 0.54vw, 2.38rem);
    --space-xl: clamp(3rem, 2.82rem + 0.89vw, 3.63rem);
    --space-2xl: clamp(4rem, 3.71rem + 1.43vw, 5rem);
    --space-3xl: clamp(6rem, 5.54rem + 2.32vw, 7.63rem);

    --container-max: 1320px;
    --container-padding: var(--space-md);

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --shadow-primary: 0 0 30px var(--clr-primary-glow);
    --shadow-secondary: 0 0 30px var(--clr-secondary-glow);
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --transition-fast: 200ms var(--ease-out-expo);
    --transition-normal: 450ms var(--ease-out-expo);
    --transition-slow: 750ms var(--ease-in-out-circ);
}

/* ==========================================================================
   02. RESET & NORMALIZE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

/* ==========================================================================
   03. TYPOGRAPHY & GRADIENTS
   ========================================================================== */
.hero-checklist {
    list-style: none;
    margin-bottom: 1.5rem;
    display: grid;
    gap: 1rem;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--clr-text-main);
    line-height: 1.4;
}

.hero-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
}

.hero-check-icon .icon {
    width: 1.5em;
    height: 1.5em;
}

.hero-check-icon i {
    color: white;
    font-size: 0.7rem;
}
h1, h2 {
    font-family: var(--font-display);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--clr-text-main);
}

h3, h4, h5, h6 {
    font-family: var(--font-sans);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--clr-text-main);
}

h1 { font-size: var(--fs-5xl); text-transform: uppercase; margin-bottom: 0.5rem; }
h2 { font-size: var(--fs-4xl); letter-spacing: -0.03em; }

h3 { font-size: var(--fs-2xl); }

p {
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
    max-width: 65ch;
}

p.hero-subtitle {
    margin-bottom: 1.5rem;
}

.text-gradient {
    color: var(--clr-brand-blue);
}

/* ==========================================================================
   04. LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.section-padding {
    padding-block: var(--space-3xl);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-normal);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    border-color: var(--clr-brand-blue);
}

/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--clr-brand-red);
    color: white;
}

.btn-primary:hover {
    background: #e63e3b;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--clr-brand-blue);
    color: white;
}

.btn-secondary:hover {
    background: var(--clr-brand-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   06. SITE HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding-block: var(--space-sm);
    background: rgba(2, 6, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-xl);
}

.logo-icon-box {
    width: 40px;
    height: 40px;
    background: var(--clr-brand-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon-box .icon {
    width: 24px;
    height: 24px;
}

.main-nav .nav-list {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--clr-text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-brand-blue);
}

/* ==========================================================================
   07. HERO SECTION & INNER HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-cta-group .btn {
    flex: 1 1 auto;
    min-width: 220px;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: 1.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--clr-brand-blue);
}

.stat-divider {
    width: 1px;
    background: var(--clr-border);
}

.hero-visual {
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
    align-items: center;
}

.visual-main {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.video-container video {
    width: 100%;
    display: block;
    cursor: pointer;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--clr-brand-red);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.video-play-button:hover {
    background: #e63e3b;
    transform: translate(-50%, -50%) scale(1.1);
}

.static-badge {
    position: absolute;
    padding: 0.75rem 1.25rem;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
}

.badge-top { top: 10%; right: -2%; border-right: 4px solid var(--clr-brand-red); }
.badge-bottom { bottom: 15%; left: -2%; border-left: 4px solid var(--clr-brand-blue); }

/* ==========================================================================
   08. BENTO GRID & TEAM CARDS
   ========================================================================== */
.bento-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(2, 81, 167, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--clr-brand-blue);
    margin-bottom: var(--space-lg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    text-align: center;
    padding: var(--space-xl);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-brand-blue);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--clr-brand-blue);
}

/* ==========================================================================
   09. FORMS & CONTACT
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-item {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(2, 81, 167, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-brand-blue);
}

.contact-form {
    display: grid;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-brand-blue);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
    background: #010408;
    border-top: 1px solid var(--clr-border);
    padding-top: var(--space-3xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
    color: var(--clr-brand-blue);
}

.footer-links a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--clr-brand-red);
}

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding-block: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links .icon {
    width: 18px;
    height: 18px;
}

.review-stars i, .review-stars .fa-star {
    color: #fbbd04 !important;
}

.review-stars img, .review-stars img[src*="star.svg"] {
    filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(600%) hue-rotate(5deg) brightness(95%) !important;
}

.social-links a:hover {
    border-color: var(--clr-brand-red);
    color: var(--clr-brand-red);
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-stats, .flex-center { justify-content: center; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .contact-info-card { order: 2; }
    .contact-form { order: 1; }
    .info-item { justify-content: center; }
    .hero-checklist { text-align: left; }
    .hero-checklist li { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .site-header .main-nav { display: none; }
    .footer-main { grid-template-columns: 1fr; }
    .hero-checklist { text-align: center; }
    .hero-checklist li { justify-content: center; }
}


/* ==========================================================================
   12. SLIDER SYSTEM (Robust Scroll Snap)
   ========================================================================== */
.slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    scroll-snap-type: x mandatory;
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.slide {
    flex: 0 0 calc(33.333% - (var(--space-md) * 2 / 3));
    scroll-snap-align: start;
    transition: transform 0.3s var(--ease-out-expo);
}

@media (max-width: 1024px) {
    .slide {
        flex: 0 0 calc(50% - (var(--space-md) / 2));
    }
}

@media (max-width: 640px) {
    .slide {
        flex: 0 0 100%;
    }
}

/* Controls */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.slider-btn {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background: var(--clr-brand-blue);
    border-color: var(--clr-brand-blue);
    color: white;
}

.slider-btn .slider-icon {
    width: 1rem;
    height: 1rem;
}

/* Card Improvements */
.reference-card, .review-card {
    height: 100%;
    user-select: none;
}

/* ==========================================================================
   13. FLOATING CONTACT BUTTON
   ========================================================================== */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2100;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--clr-brand-red);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(211, 53, 50, 0.4);
    font-weight: 700;
    font-family: var(--font-display);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.floating-cta:hover {
    transform: scale(1.05) translateY(-5px);
    background: #e63e3b;
    box-shadow: 0 15px 40px rgba(211, 53, 50, 0.6);
    color: white;
}

.floating-cta i, .floating-cta .phone-icon {
    animation: phone-shake 2s infinite;
}

@keyframes phone-shake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        padding: 1.2rem;
        width: 100%;
        justify-content: center;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        font-size: 1rem;
        height: auto;
    }
    .floating-cta span {
        display: inline;
    }
    .floating-cta i {
        font-size: 1.2rem;
    }
    
    /* Add padding to body so floating bar doesn't cover content */
    body {
        padding-bottom: 70px;
    }
}

