/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Minimalist and Professional */
    --primary: 210 11% 15%; /* #1F2937 - Dark Gray */
    --primary-light: 210 11% 25%; /* #374151 - Medium Gray */
    --secondary: 210 11% 71%; /* #9CA3AF - Light Gray */
    --accent: 210 100% 56%; /* #0EA5E9 - Blue */
    --background: 210 11% 98%; /* #F9FAFB - Off White */
    --surface: 0 0% 100%; /* #FFFFFF - Pure White */
    --text: 210 11% 15%; /* #1F2937 - Dark Gray */
    --text-light: 210 11% 46%; /* #6B7280 - Medium Gray */
    --border: 210 11% 91%; /* #E5E7EB - Light Border */
    --success: 142 71% 45%; /* #059669 - Green */
    --warning: 45 93% 47%; /* #D97706 - Orange */
    --error: 0 84% 60%; /* #DC2626 - Red */
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--background));
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: hsl(var(--text));
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

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

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--space-4);
    color: hsl(var(--text-light));
}

/* Links */
a {
    color: hsl(var(--accent));
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: hsl(var(--primary));
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: var(--font-size-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-light));
    color: hsl(var(--surface));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--border));
}

.btn-secondary:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--surface));
    border-color: hsl(var(--primary));
}

/* Header */
.header {
    background-color: hsl(var(--surface));
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--font-size-xl);
    color: hsl(var(--primary));
}

.logo img {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-menu a {
    color: hsl(var(--text));
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: hsl(var(--accent));
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: hsl(var(--primary));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--surface)));
    padding: var(--space-20) 0 var(--space-16);
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.hero-text h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-6);
    color: hsl(var(--primary));
}

.hero-text p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    color: hsl(var(--text-light));
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

/* About Section */
.about {
    padding: var(--space-16) 0;
    background-color: hsl(var(--surface));
}

.about h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.about p {
    text-align: center;
    font-size: var(--font-size-lg);
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: hsl(var(--accent));
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: hsl(var(--text));
    font-weight: 500;
}

/* Services Section */
.services {
    padding: var(--space-16) 0;
    background-color: hsl(var(--background));
}

.services h2 {
    text-align: center;
    margin-bottom: var(--space-12);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-card img {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-6);
}

.service-card h3 {
    margin-bottom: var(--space-4);
    color: hsl(var(--primary));
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-16) 0;
    background-color: hsl(var(--surface));
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--space-12);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.testimonial {
    background-color: hsl(var(--background));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid hsl(var(--border));
}

.testimonial img {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-6);
}

.testimonial p {
    font-style: italic;
    margin-bottom: var(--space-4);
    color: hsl(var(--text));
}

.testimonial cite {
    font-weight: 500;
    color: hsl(var(--text-light));
}

/* Blog Section */
.blog-preview,
.blog-content {
    padding: var(--space-16) 0;
    background-color: hsl(var(--background));
}

.blog-header {
    padding: var(--space-16) 0 var(--space-8);
    text-align: center;
    background-color: hsl(var(--surface));
    margin-top: 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.blog-card {
    background-color: hsl(var(--surface));
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: var(--space-6);
}

.blog-card h3 {
    margin-bottom: var(--space-3);
    color: hsl(var(--primary));
}

.blog-meta {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-light));
    margin-bottom: var(--space-3);
}

.read-more {
    color: hsl(var(--accent));
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-preview {
    text-align: center;
}

/* Article Pages */
.article-content {
    padding-top: 120px;
    padding-bottom: var(--space-16);
}

.article-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.article-header img {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-6);
}

.article-meta {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-8);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    color: hsl(var(--primary));
}

.article-body h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: hsl(var(--primary));
}

.article-body ul {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.article-body li {
    margin-bottom: var(--space-2);
    color: hsl(var(--text-light));
}

.article-cta {
    background-color: hsl(var(--background));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    margin: var(--space-12) 0;
    border: 1px solid hsl(var(--border));
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid hsl(var(--border));
}

.article-share {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.article-share span {
    font-weight: 500;
    color: hsl(var(--text));
}

.article-share a {
    font-size: var(--font-size-lg);
    text-decoration: none;
}

/* Contact Section */
.contact {
    padding: var(--space-16) 0;
    background-color: hsl(var(--surface));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info img {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-6);
}

.contact-details {
    margin: var(--space-8) 0;
}

.contact-details p {
    margin-bottom: var(--space-3);
    color: hsl(var(--text));
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.social-links a {
    font-size: var(--font-size-xl);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.contact-form {
    background-color: hsl(var(--background));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid hsl(var(--border));
}

.contact-form h3 {
    margin-bottom: var(--space-6);
    text-align: center;
}

.contact-form input {
    width: 100%;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease;
}

.contact-form input:focus {
    outline: none;
    border-color: hsl(var(--accent));
}

.contact-form button {
    width: 100%;
}

/* Thank You Page */
.thank-you {
    padding: var(--space-20) 0;
    text-align: center;
    margin-top: 80px;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-image {
    width: 200px;
    height: 200px;
    margin-bottom: var(--space-8);
}

/* Legal Pages */
.legal-content {
    padding: var(--space-20) 0 var(--space-16);
    margin-top: 80px;
}

.legal-content h1 {
    margin-bottom: var(--space-8);
    text-align: center;
}

.last-updated {
    text-align: center;
    color: hsl(var(--text-light));
    margin-bottom: var(--space-12);
    font-style: italic;
}

.legal-content h2 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    color: hsl(var(--primary));
}

.legal-content h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: hsl(var(--primary-light));
}

.legal-content ul {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.legal-content li {
    margin-bottom: var(--space-2);
    color: hsl(var(--text-light));
}

/* Footer */
.footer {
    background-color: hsl(var(--primary));
    color: hsl(var(--surface));
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h4 {
    margin-bottom: var(--space-4);
    color: hsl(var(--surface));
}

.footer-section p {
    color: hsl(var(--secondary));
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section ul li a {
    color: hsl(var(--secondary));
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: hsl(var(--surface));
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid hsl(var(--primary-light));
    color: hsl(var(--secondary));
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--primary));
    color: hsl(var(--surface));
    padding: var(--space-6);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-4);
}

.cookie-buttons button {
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: var(--space-6);
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.cookie-option input[type="checkbox"] {
    margin: 0;
}

.cookie-option p {
    color: hsl(var(--text-light));
    font-size: var(--font-size-sm);
    margin: 0;
    margin-left: var(--space-8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-footer {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-text h1 {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .nav-container {
        padding: var(--space-3);
    }
    
    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text,
.hero-image {
    animation: fadeInUp 0.6s ease-out;
}

.service-card,
.testimonial,
.blog-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .cookie-modal,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
