/* CSS Custom Properties */
:root {
    --primary: 210 100% 40%;
    --secondary: 15 100% 60%;
    --accent: 280 60% 50%;
    --background: 210 11% 98%;
    --surface: 0 0% 100%;
    --text-primary: 210 20% 20%;
    --text-secondary: 210 10% 40%;
    --text-light: 0 0% 100%;
    --border: 210 20% 90%;
    --shadow: 210 20% 90%;
    --success: 140 80% 40%;
    --warning: 45 100% 50%;
    --error: 0 80% 50%;
}

/* Reset & 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-primary));
    background-color: hsl(var(--background));
}

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

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

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

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

.section {
    padding: 4rem 0;
}

.bg-light {
    background-color: hsl(var(--surface));
}

.bg-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--text-light));
}

.bg-primary p {
    color: hsl(var(--text-light) / 0.9);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    color: hsl(var(--primary));
    margin: 0;
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05));
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

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

.hero h2 {
    font-size: 3rem;
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
}

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

.cta-button {
    background-color: hsl(var(--primary));
    color: hsl(var(--text-light));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: hsl(var(--primary) / 0.9);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: hsl(var(--surface));
    border-radius: 12px;
    box-shadow: 0 4px 20px hsl(var(--shadow) / 0.1);
}

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

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

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

.service-card {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px hsl(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 hsl(var(--shadow) / 0.15);
}

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

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

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

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

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

.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reviewer strong {
    color: hsl(var(--text-primary));
}

.reviewer span {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

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

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

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

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

.newsletter-form button {
    background-color: hsl(var(--secondary));
    color: hsl(var(--text-light));
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: hsl(var(--secondary) / 0.9);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

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

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

.contact-icon {
    flex-shrink: 0;
    padding: 0.5rem;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: 8px;
}

.contact-item h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.social-links {
    text-align: center;
}

.social-links h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: hsl(var(--primary) / 0.2);
}

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

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

.footer-section h3,
.footer-section h4 {
    color: hsl(var(--text-light));
    margin-bottom: 1rem;
}

.footer-section p {
    color: hsl(var(--text-light) / 0.8);
}

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

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

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

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

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

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

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    box-shadow: 0 -4px 20px hsl(var(--shadow) / 0.1);
    padding: 1.5rem 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--text-light));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--text-secondary));
    color: hsl(var(--text-light));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

.btn-outline {
    background-color: transparent;
    color: hsl(var(--text-primary));
    border: 2px solid hsl(var(--border));
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.close {
    float: right;
    font-size: 2rem;
    cursor: pointer;
    color: hsl(var(--text-secondary));
}

.close:hover {
    color: hsl(var(--text-primary));
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category div {
    flex: 1;
    margin-right: 1rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--text-secondary) / 0.3);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: hsl(var(--primary));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: hsl(var(--success));
    cursor: not-allowed;
}

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

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

.blog-card {
    background-color: hsl(var(--surface));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px hsl(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 hsl(var(--shadow) / 0.15);
}

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

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

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

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

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

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

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Article Styles */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 100px;
}

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

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

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

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--primary));
}

.article-nav {
    text-align: center;
    margin-top: 3rem;
}

.back-to-blog {
    display: inline-block;
    background-color: hsl(var(--primary));
    color: hsl(var(--text-light));
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

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

/* Thank You Page */
.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 100px;
}

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

.thank-you-content h1 {
    color: hsl(var(--success));
    margin-bottom: 1rem;
}

.thank-you-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.home-button {
    display: inline-block;
    background-color: hsl(var(--primary));
    color: hsl(var(--text-light));
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: hsl(var(--primary) / 0.9);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 100px;
}

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

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

.legal-content h3 {
    color: hsl(var(--text-primary));
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .cookie-category {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .service-card,
    .review-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
}
