/* CSS Custom Properties */
:root {
    --primary-color: 217 91% 60%; /* #4A90E2 */
    --secondary-color: 152 69% 54%; /* #27AE60 */
    --accent-color: 37 90% 51%; /* #F39C12 */
    --danger-color: 4 56% 55%; /* #E74C3C */
    --text-dark: 210 29% 24%; /* #2C3E50 */
    --text-light: 210 11% 71%; /* #95A5A6 */
    --background: 210 11% 98%; /* #F8F9FA */
    --white: 0 0% 100%; /* #FFFFFF */
    --border: 210 14% 89%; /* #E9ECEF */
    --shadow: 210 40% 8%; /* #1A202C */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-dark));
    background-color: hsl(var(--background));
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-light));
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-accept, .btn-necessary, .btn-custom {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.btn-primary:hover, .btn-accept:hover {
    background-color: hsl(217 91% 50%);
    transform: translateY(-2px);
}

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

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

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

.btn-custom:hover {
    background-color: hsl(37 90% 41%);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--white));
    box-shadow: 0 -4px 20px hsla(var(--shadow) / 0.1);
    padding: 20px;
    z-index: 1000;
    border-top: 1px solid hsl(var(--border));
}

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

.cookie-text h3 {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-dark));
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(var(--shadow) / 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

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

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

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

.cookie-category span {
    font-weight: 600;
    color: hsl(var(--text-dark));
}

.cookie-category p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Header */
.header {
    background-color: hsl(var(--white));
    box-shadow: 0 2px 10px hsla(var(--shadow) / 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: hsl(var(--text-dark));
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

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

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

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

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(217 91% 95%) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    color: hsl(var(--text-dark));
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

/* Services Section */
.services {
    padding: 80px 0;
    background-color: hsl(var(--white));
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    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 {
    margin-bottom: 1.5rem;
}

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

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text ul {
    list-style: none;
    margin-top: 2rem;
}

.about-text li {
    padding: 0.5rem 0;
    color: hsl(var(--text-dark));
}

/* Statistics Section */
.statistics {
    padding: 60px 0;
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    color: hsl(var(--white));
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: hsl(var(--white));
}

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

.feature-card {
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    background-color: hsl(var(--background));
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: hsl(var(--background));
}

.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: 12px;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.1);
}

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

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

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

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: hsl(var(--secondary-color));
    color: hsl(var(--white));
    text-align: center;
}

.newsletter h2, .newsletter p {
    color: hsl(var(--white));
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 24px;
    background-color: hsl(var(--accent-color));
    color: hsl(var(--white));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: hsl(37 90% 41%);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: hsl(var(--white));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-details h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin: 0;
}

.contact-form {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 12px;
}

.contact-form h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: hsl(217 91% 50%);
}

/* Footer */
.footer {
    background-color: hsl(var(--text-dark));
    color: hsl(var(--white));
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

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

.footer-section a {
    color: hsl(var(--text-light));
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    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));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--text-light));
    padding-top: 1rem;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .services,
    .about,
    .features,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

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

/* Hidden class for cookie banner */
.hidden {
    display: none !important;
}

/* Blog Styles */
.blog-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(217 91% 95%) 100%);
    text-align: center;
}

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

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

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

.blog-card-image {
    height: 200px;
    background-color: hsl(var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 0.5rem;
}

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

.blog-card p {
    margin-bottom: 1rem;
}

.blog-card a {
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-weight: 600;
}

.blog-card a:hover {
    text-decoration: underline;
}

/* Article Styles */
.article-hero {
    padding: 140px 0 40px;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(217 91% 95%) 100%);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.article-meta {
    color: hsl(var(--text-light));
    margin-bottom: 2rem;
}

.article-content h2,
.article-content h3 {
    color: hsl(var(--text-dark));
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.article-content li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-light));
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 2rem;
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-weight: 600;
}

.back-to-blog:hover {
    text-decoration: underline;
}

/* Legal Pages Styles */
.legal-hero {
    padding: 140px 0 40px;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(217 91% 95%) 100%);
    text-align: center;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.legal-content h2 {
    color: hsl(var(--text-dark));
    text-align: left;
    margin: 2rem 0 1rem;
}

.legal-content h3 {
    color: hsl(var(--text-dark));
    margin: 1.5rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

/* Thank You Page Styles */
.thank-you-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, hsl(var(--secondary-color)) 0%, hsl(152 69% 44%) 100%);
    color: hsl(var(--white));
    text-align: center;
}

.thank-you-hero h1,
.thank-you-hero p {
    color: hsl(var(--white));
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.thank-you-icon {
    margin-bottom: 2rem;
}
