/* CSS Custom Properties */
:root {
    /* Colors - Using HSL format as specified */
    --primary-color: 13 13% 31%; /* #0d0d4f */
    --primary-light: 13 20% 40%;
    --primary-dark: 13 30% 20%;
    --secondary-color: 200 50% 50%;
    --accent-color: 45 100% 50%;
    --text-dark: 0 0% 15%;
    --text-medium: 0 0% 40%;
    --text-light: 0 0% 60%;
    --background: 210 11% 98%; /* #F5F7FA */
    --background-light: 210 20% 95%;
    --white: 0 0% 100%;
    --border-light: 210 10% 90%;
    --shadow: 210 10% 50%;
    --success: 120 50% 50%;
    --warning: 45 100% 50%;
    --error: 0 70% 50%;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-dark));
    background-color: hsl(var(--white));
    font-weight: 400;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: hsl(var(--text-dark));
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

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;
    color: hsl(var(--text-medium));
}

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

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

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-medium));
}

/* Container and 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: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

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

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

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

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

.btn-tertiary {
    background-color: hsl(var(--background-light));
    color: hsl(var(--text-dark));
    border: 1px solid hsl(var(--border-light));
}

.btn-tertiary:hover {
    background-color: hsl(var(--border-light));
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header and Navigation */
.header {
    background-color: hsl(var(--white));
    box-shadow: 0 2px 10px hsla(var(--shadow), 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--primary-color));
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: hsl(var(--primary-color));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-dark));
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--primary-light)));
    color: hsl(var(--white));
    overflow: hidden;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: hsl(var(--white));
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero p {
    color: hsla(var(--white), 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Section Styling */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    height: 60px;
    width: 60px;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: hsl(var(--text-medium));
    max-width: 600px;
    margin: 0 auto;
}

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

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

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

.stat-item {
    text-align: center;
}

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

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

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

.service-card {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px hsla(var(--shadow), 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px hsla(var(--shadow), 0.15);
}

.service-icon {
    height: 50px;
    width: 50px;
    margin-bottom: 1.5rem;
}

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

/* Solutions Section */
.solutions {
    background-color: hsl(var(--background));
}

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

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

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

.testimonial-card {
    background-color: hsl(var(--white));
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px hsla(var(--shadow), 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: hsl(var(--text-dark));
}

.testimonial-author h4 {
    color: hsl(var(--primary-color));
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: hsl(var(--text-light));
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
    text-align: center;
}

.newsletter h2 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.newsletter p {
    color: hsla(var(--white), 0.9);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group input {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background-color: hsl(var(--white));
    color: hsl(var(--text-dark));
}

.form-group input::placeholder {
    color: hsl(var(--text-light));
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

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

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

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

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

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

.footer-section p {
    color: hsla(var(--white), 0.8);
}

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

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

.footer-section ul li a {
    color: hsla(var(--white), 0.8);
    transition: color 0.3s ease;
}

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

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

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
}

.social-links img {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.social-links img:hover {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid hsla(var(--white), 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: hsla(var(--white), 0.6);
    margin: 0;
}

/* Cookie Banner and Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--white));
    padding: 1rem;
    box-shadow: 0 -2px 10px hsla(var(--shadow), 0.1);
    z-index: 10000;
    border-top: 3px solid hsl(var(--primary-color));
}

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

.cookie-content p {
    margin: 0;
    flex-grow: 1;
}

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

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(var(--text-dark), 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

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

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

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

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

/* Page Header for Legal Pages */
.page-header {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.page-header p {
    color: hsla(var(--white), 0.9);
    font-size: 1.125rem;
}

.legal-date {
    font-size: 1rem;
    color: hsla(var(--white), 0.7);
    margin-top: 1rem;
}

/* Legal Content */
.legal-content {
    padding: 4rem 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
}

.contact-details {
    background-color: hsl(var(--background-light));
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

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

.article-card {
    background-color: hsl(var(--white));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px hsla(var(--shadow), 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px hsla(var(--shadow), 0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

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

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-date {
    color: hsl(var(--text-light));
}

.article-category {
    color: hsl(var(--primary-color));
    font-weight: 500;
}

.article-content h2 {
    margin-bottom: 1rem;
}

.article-content h2 a {
    color: hsl(var(--text-dark));
    text-decoration: none;
}

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

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

.read-more:hover {
    color: hsl(var(--primary-light));
}

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

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

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

.article-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--text-medium));
    margin-top: 1rem;
}

.article-content {
    padding: 3rem 0;
}

.article-image-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.article-image-hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

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

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

.article-cta {
    background-color: hsl(var(--background-light));
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

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

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

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

.related-card {
    background-color: hsl(var(--white));
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px hsla(var(--shadow), 0.1);
}

.related-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.related-card h3 {
    font-size: 1rem;
}

.related-card a {
    color: hsl(var(--text-dark));
    text-decoration: none;
}

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

/* Thank You Page */
.thank-you {
    padding: 4rem 0;
    text-align: center;
}

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

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.thank-you-details {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.thank-you-details h2 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-info-minimal {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border-light));
}

/* Cookie Management Section */
.cookie-management-section {
    background-color: hsl(var(--background-light));
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--white));
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px hsla(var(--shadow), 0.1);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        text-align: center;
    }

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

    .stats {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .testimonials-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}
