/* ==========================================
   Design System & Theme Variables
   ========================================== */

:root {
    /* Colors - Light theme with cream-gray background and saturated blue buttons */
    --color-bg: #f5f3f0;
    --color-surface: #ffffff;
    --color-primary: #0052cc;
    --color-primary-dark: #003d99;
    --color-primary-light: #f0f6ff;
    --color-accent: #e8e5e2;
    --color-text-main: #1a1a1a;
    --color-text-muted: #666666;
    --color-border: #d9d6d3;
    --color-success: #2e7d32;
    --color-error: #c62828;
    --color-warning: #f57c00;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    --gradient-light: linear-gradient(135deg, #f0f6ff 0%, #e8e5e2 100%);
    
    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ==========================================
   Global Styles
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 700;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* ==========================================
   Header & Navigation
   ========================================== */

header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary) !important;
    font-family: var(--font-heading);
}

.navbar-brand i {
    color: var(--color-primary);
}

.nav-link {
    color: var(--color-text-main) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

.nav-link.active {
    color: var(--color-primary) !important;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
    background: var(--gradient-light);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-light:hover {
    background-color: var(--color-accent);
}

/* ==========================================
   Cards
   ========================================== */

.card {
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--color-text-main);
    font-weight: 700;
}

.card-text {
    color: var(--color-text-muted);
}

/* ==========================================
   Service Cards
   ========================================== */

.service-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.15);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.service-features li:before {
    content: '✓ ';
    color: var(--color-success);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ==========================================
   Sections
   ========================================== */

section {
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.bg-light {
    background-color: #fafaf8 !important;
}

.bg-cream {
    background-color: #fdf9f6 !important;
}

/* ==========================================
   Icons & Features
   ========================================== */

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.feature-box {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--color-primary);
}

.feature-box h5 {
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.feature-box p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================
   Problem Cards
   ========================================== */

.problem-card {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-error);
    transition: all 0.3s ease;
}

.problem-card:hover {
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.15);
}

.problem-card h5 {
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.problem-card p {
    margin: 0;
    font-size: 0.95rem;
}

.problem-solution {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-success);
    margin-bottom: 1rem;
}

.problem-solution h5 {
    margin-bottom: 0.5rem;
}

.problem-solution p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================
   Timeline
   ========================================== */

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-marker {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    border: 4px solid var(--color-bg);
    z-index: 2;
}

.timeline-content {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-left: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 52%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    margin-right: 0;
}

.timeline-content h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Service Timeline */
.timeline-service::before {
    left: 20px;
}

.timeline-service .timeline-marker {
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.timeline-service .timeline-item:nth-child(odd) .timeline-content,
.timeline-service .timeline-item:nth-child(even) .timeline-content {
    margin-left: 100px;
    margin-right: 0;
}

/* ==========================================
   Case Cards
   ========================================== */

.case-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.case-card h5 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.results {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   Forms
   ========================================== */

.form-control,
.form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-label {
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.contact-form {
    animation: fadeIn 0.6s ease;
}

.contact-info-block {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.contact-info-block a {
    color: white;
    font-weight: 600;
}

/* ==========================================
   Accordion
   ========================================== */

.accordion-button {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-main);
    font-weight: 600;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.accordion-button:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.accordion-body {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    padding: 1.25rem;
    color: var(--color-text-muted);
}

/* ==========================================
   Result Cards
   ========================================== */

.result-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.1);
    transform: translateY(-4px);
}

.result-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.result-card h5 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.result-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================
   Page Header
   ========================================== */

.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
}

/* ==========================================
   Legal Content
   ========================================== */

.legal-content {
    max-width: 900px;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================
   Map Placeholder
   ========================================== */

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8e5e2 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--color-text-muted);
    font-size: 3rem;
}

.map-placeholder i {
    margin-bottom: 1rem;
}

.map-placeholder p {
    margin: 0;
    font-size: 1rem;
}

/* ==========================================
   Success Card
   ========================================== */

.success-card {
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-success);
    max-width: 600px;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-success);
}

.success-icon i {
    animation: bounce 0.6s ease;
}

/* ==========================================
   Cookie Banner
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: block;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--color-primary);
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    border-top: 1px solid var(--color-border);
    background-color: #1a1a1a;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
    color: white;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fade-in-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 100px;
        margin-right: 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        flex: 1;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .contact-form {
        padding: 1rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }
}