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

/* CSS Custom Properties */
:root {
    --primary-color: 210 100% 38%; /* #0081c2 */
    --primary-light: 210 100% 45%;
    --primary-dark: 210 100% 30%;
    --text-primary: 210 22% 22%; /* #2d3748 */
    --text-secondary: 210 16% 46%; /* #718096 */
    --text-light: 210 14% 66%; /* #a0aec0 */
    --background: 210 11% 98%; /* #f5f7fa */
    --surface: 0 0% 100%; /* #ffffff */
    --border: 210 14% 89%; /* #e2e8f0 */
    --shadow: 210 31% 80%; /* #cbd5e0 */
    --success: 142 76% 36%; /* #48bb78 */
    --warning: 45 93% 47%; /* #ed8936 */
    --error: 0 84% 60%; /* #f56565 */
}

html {
    scroll-behavior: smooth;
}
/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: hsl(var(--primary-color));
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--primary-color) / 0.3);
}

.btn-secondary {
    background-color: hsl(var(--text-secondary));
    color: white;
}

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

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

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

/* Header */
.header {
    background-color: hsl(var(--surface));
    box-shadow: 0 2px 4px hsl(var(--shadow) / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
}

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

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: hsl(var(--primary-color));
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -8px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: hsl(var(--surface));
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: hsl(var(--background));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid hsl(var(--border));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px hsl(var(--shadow) / 0.15);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

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

/* About Section */
.about {
    padding: 5rem 0;
    background-color: hsl(var(--background));
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.stat p {
    font-weight: 500;
    color: hsl(var(--text-secondary));
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: hsl(var(--surface));
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.testimonial {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid hsl(var(--primary-color));
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.testimonial-author strong {
    color: hsl(var(--primary-color));
    display: block;
}

.testimonial-author span {
    color: hsl(var(--text-secondary));
    font-size: 0.875rem;
}

/* Blog Sections */
.blog-preview {
    padding: 5rem 0;
    background-color: hsl(var(--background));
}

.blog-header {
    padding: 4rem 0;
    background-color: hsl(var(--primary-color));
    color: white;
    text-align: center;
}

.blog-grid-section {
    padding: 5rem 0;
    background-color: hsl(var(--surface));
}

.blog-preview h2,
.blog-grid-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: hsl(var(--surface));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px hsl(var(--shadow) / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px hsl(var(--shadow) / 0.15);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

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

.blog-card.featured img {
    height: 100%;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background-color: hsl(var(--primary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-content h2,
.blog-content h3 {
    margin-bottom: 0.5rem;
}

.blog-content h2 a,
.blog-content h3 a {
    color: hsl(var(--text-primary));
}

.blog-content h2 a:hover,
.blog-content h3 a:hover {
    color: hsl(var(--primary-color));
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--text-secondary));
    margin-top: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: hsl(var(--primary-color));
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Article Pages */
.article-header {
    padding: 4rem 0 2rem;
    background-color: hsl(var(--background));
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--text-secondary));
}

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

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--text-secondary));
}

.article-intro {
    font-size: 1.25rem;
    color: hsl(var(--text-secondary));
    font-style: italic;
}

.article-content {
    padding: 2rem 0;
    background-color: hsl(var(--surface));
}

.article-image {
    margin-bottom: 2rem;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
}

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

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary-color));
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-cta {
    background-color: hsl(var(--primary-color) / 0.1);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 3rem;
}

.article-cta h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

/* Tables */
.comparison-table, .cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: hsl(var(--surface));
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px hsl(var(--shadow) / 0.1);
}

.comparison-table th, .cookie-table th,
.comparison-table td, .cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.comparison-table th, .cookie-table th {
    background-color: hsl(var(--primary-color));
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover, .cookie-table tr:hover {
    background-color: hsl(var(--background));
}

/* Related Articles */
.related-articles {
    padding: 3rem 0;
    background-color: hsl(var(--background));
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
    background-color: hsl(var(--primary-color));
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.newsletter p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
}

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

.newsletter-form input {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: white;
    color: hsl(var(--text-primary));
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--primary-light) / 0.3);
}

.newsletter-form .btn {
    grid-column: 1 / -1;
    background-color: white;
    color: hsl(var(--primary-color)) !important;
}

.newsletter-form .btn:hover {
    background-color: hsl(var(--background));
}

/* Thanks Page */
.thanks-section {
    padding: 6rem 0;
    text-align: center;
}

.thanks-content h1 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.thanks-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Legal Pages */
.legal-page {
    padding: 4rem 0;
    background-color: hsl(var(--surface));
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    color: hsl(var(--primary-color));
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: hsl(var(--primary-color));
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.cookie-settings-link {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer h3 {
    margin-bottom: 1rem;
    color: hsl(var(--primary-color));
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: hsl(var(--text-light));
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: hsl(var(--text-light));
    transition: color 0.3s ease;
}

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

.contact-info p {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-light));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--text-secondary));
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: hsl(var(--text-light));
    font-size: 0.875rem;
}

.legal-links a:hover {
    color: white;
}

.footer-bottom p {
    color: hsl(var(--text-light));
    font-size: 0.875rem;
    margin: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 1rem;
    z-index: 10000;
    box-shadow: 0 -2px 10px hsl(var(--shadow) / 0.2);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

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

.cookie-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 1.5rem;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

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

.cookie-option p {
    font-size: 0.875rem;
    color: hsl(var(--text-secondary));
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: end;
    margin-top: 2rem;
}

/* Mobile menu open state */
.nav.mobile-menu-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: hsl(var(--background));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav.mobile-menu-open ul {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    gap: 0;
}

.nav.mobile-menu-open li {
    border-bottom: 1px solid hsl(var(--border));
}

.nav.mobile-menu-open li:last-child {
    border-bottom: none;
}

.nav.mobile-menu-open a {
    display: block;
    padding: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        position: relative;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured img {
        height: 200px;
    }
    
    .newsletter-form {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .comparison-table, .cookie-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th, .cookie-table th,
    .comparison-table td, .cookie-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .services h2,
    .about h2,
    .testimonials h2,
    .blog-preview h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial {
        padding: 1.5rem;
    }
    
    .article-header {
        padding: 2rem 0 1rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}

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

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hero-buttons,
    .newsletter,
    .related-articles,
    .article-cta {
        display: none;
    }
    
    .hero {
        color: black;
        background: none;
    }
    
    .article-content {
        background: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: hsl(var(--primary-color));
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10002;
}

.skip-link:focus {
    top: 6px;
}
