/* Quimonit - Home Page Styles */
/* Color Theme: White background with #007cbc accent - matching dashboard */

:root {
    --primary: #007cbc;
    --primary-dark: #005a8a;
    --primary-light: #e6f3fa;
    --secondary: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --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;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.5;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 73px - 10px);
    /* Viewport height minus header minus 10px gap */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 73px;
    /* Account for fixed header */
    margin-bottom: 10px;
    /* 10px gap to bottom of fold */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 124, 188, 0.85) 0%,
            rgba(0, 90, 138, 0.9) 50%,
            rgba(45, 55, 72, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.revenue-loss {
    display: inline-block;
    font-weight: 700;
    color: #ef4444;
    font-size: 3.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    margin: 0.5rem 0;
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.features-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-card-text {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Logo Carousel Section */
.logo-carousel-section {
    background: var(--gray-100);
    padding: 3rem 2rem;
    overflow: hidden;
}

.logo-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.logo-carousel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2rem;
}

.logo-carousel {
    position: relative;
    overflow: hidden;
}

.logo-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 1;
}

.placeholder-logo {
    width: 240px;
    height: 80px;
    color: var(--gray-600);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    position: relative;
    background: url('/images/footer-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 4rem 2rem;
    min-height: 300px;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 90, 138, 0.2);
    /* Darker blue overlay at 20% opacity */
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }
}

/* Live Stats Section */
.live-stats-section {
    background: var(--white);
    padding: 4rem 2rem;
}

.live-stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.live-stat-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s, box-shadow 0.3s;
}

.live-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.live-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary);
}

.live-stat-icon svg {
    width: 24px;
    height: 24px;
}

.live-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.live-stat-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

@media (max-width: 968px) {
    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .live-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Attribution Section */
.attribution {
    background-color: #282828;
    padding: 1.5rem 2rem;
    text-align: left;
}

.attribution p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-title {
        font-size: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .main-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .nav-link.active::after {
        bottom: -1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .revenue-loss {
        font-size: 1.25rem;
        min-width: 150px;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .features-section {
        padding: 3rem 1rem;
    }

    .features-title {
        font-size: 1.75rem;
    }

    .features-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-nav {
        gap: 0.75rem;
    }

    .nav-link {
        display: none;
    }

    .nav-link.active {
        display: block;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .feature-card-title {
        font-size: 1.25rem;
    }
}