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

:root {
    /* Colors using HSL format */
    --primary: 214 88% 51%; /* #1e3a8a */
    --primary-dark: 214 88% 41%; /* #1e40af */
    --primary-light: 214 95% 93%; /* #dbeafe */
    --secondary: 45 93% 47%; /* #f59e0b */
    --accent: 0 84% 60%; /* #ef4444 */
    --success: 142 76% 36%; /* #059669 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #ffffff */
    --text: 210 11% 15%; /* #1f2937 */
    --text-light: 210 9% 31%; /* #4b5563 */
    --text-muted: 210 8% 46%; /* #6b7280 */
    --border: 210 14% 89%; /* #e5e7eb */
    --shadow: 0 0% 0%; /* #000000 */
}

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

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

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border));
    padding: 20px;
    box-shadow: 0 -2px 10px hsla(var(--shadow) / 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-accept-all:hover {
    background: hsl(var(--primary-dark));
}

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

.btn-necessary:hover {
    background: hsl(var(--text));
}

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

.btn-settings:hover {
    background: hsl(var(--primary-light));
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(var(--shadow) / 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

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

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

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

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

.cookie-category span {
    flex: 1;
    font-size: 14px;
    color: hsl(var(--text-light));
}

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

.btn-save {
    background: hsl(var(--primary));
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancel {
    background: hsl(var(--text-light));
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Header Styles */
.header {
    background: hsl(var(--surface));
    box-shadow: 0 2px 10px hsla(var(--shadow) / 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.navbar {
    padding: 1rem 0;
}

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

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

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

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

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

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

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, hsl(var(--primary-light)), hsl(var(--surface)));
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: hsl(var(--text));
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: hsl(var(--text-light));
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn-primary {
    background: hsl(var(--primary));
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: hsl(var(--primary-dark));
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: hsl(var(--primary));
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid hsl(var(--primary));
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

.hero-image svg {
    max-width: 100%;
    height: auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: hsl(var(--surface));
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 3rem;
}

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

.service-card {
    background: hsl(var(--surface));
    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;
    border: 1px solid hsl(var(--border));
}

.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 {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 1rem;
}

.service-card p {
    color: hsl(var(--text-light));
    line-height: 1.6;
}

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

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

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 1.5rem;
}

.about p {
    color: hsl(var(--text-light));
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

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

.about-image {
    text-align: center;
}

.about-image svg {
    max-width: 100%;
    height: auto;
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background: hsl(var(--surface));
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 3rem;
}

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

.review-card {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.1);
    border: 1px solid hsl(var(--border));
}

.review-stars {
    color: hsl(var(--secondary));
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    color: hsl(var(--text-light));
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author strong {
    color: hsl(var(--text));
    font-weight: 600;
}

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

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

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

.newsletter h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

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

.newsletter-form button:hover {
    background: hsl(45 93% 40%);
}

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

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-icon {
    background: hsl(var(--primary-light));
    padding: 12px;
    border-radius: 8px;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: hsl(var(--text-light));
    line-height: 1.4;
}

.contact-form {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px hsla(var(--shadow) / 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: hsl(var(--surface));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px hsla(var(--shadow) / 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Blog Styles */
.blog-header {
    padding: 120px 0 60px;
    background: hsl(var(--background));
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 1rem;
}

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

.blog-grid {
    padding: 60px 0;
    background: hsl(var(--surface));
}

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

.blog-card {
    background: hsl(var(--surface));
    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;
    border: 1px solid hsl(var(--border));
}

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

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

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

.blog-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 0.5rem;
}

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

.blog-card p {
    color: hsl(var(--text-light));
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Blog Article Styles */
.article-header {
    padding: 120px 0 40px;
    background: hsl(var(--background));
}

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

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

.article-body {
    padding: 40px 0;
    background: hsl(var(--surface));
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: hsl(var(--text));
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: hsl(var(--text));
    margin: 1.5rem 0 0.8rem;
}

.article-body p {
    color: hsl(var(--text-light));
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.article-body li {
    color: hsl(var(--text-light));
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-body strong {
    color: hsl(var(--text));
    font-weight: 600;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: hsl(var(--primary-dark));
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 60px;
    background: hsl(var(--background));
}

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

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: hsl(var(--text));
    margin: 2rem 0 1rem;
}

.legal-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: hsl(var(--text));
    margin: 1.5rem 0 0.8rem;
}

.legal-content p {
    color: hsl(var(--text-light));
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

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

.legal-content strong {
    color: hsl(var(--text));
    font-weight: 600;
}

/* Thank You Page */
.thank-you {
    padding: 120px 0;
    background: hsl(var(--background));
    text-align: center;
}

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

.thank-you h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text));
    margin-bottom: 1rem;
}

.thank-you p {
    font-size: 1.1rem;
    color: hsl(var(--text-light));
    margin-bottom: 2rem;
    line-height: 1.6;
}

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