/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors using HSL format */
    --primary: 210 100% 50%; /* #0080FF */
    --primary-dark: 210 100% 40%; /* #0066CC */
    --secondary: 45 100% 50%; /* #FFB300 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 210 11% 15%; /* #1F2937 */
    --text-secondary: 210 9% 31%; /* #4B5563 */
    --text-muted: 210 8% 46%; /* #6B7280 */
    --border: 210 14% 89%; /* #E5E7EB */
    --border-light: 210 14% 93%; /* #F3F4F6 */
    --shadow: 210 40% 8%; /* #0F172A */
    --success: 142 76% 36%; /* #10B981 */
    --warning: 45 93% 47%; /* #F59E0B */
    --error: 0 84% 60%; /* #EF4444 */
}

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

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

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

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    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: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--primary), 0.3);
    color: white;
}

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

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

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

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

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

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

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

.logo {
    width: 32px;
    height: 32px;
}

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

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

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

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--surface)));
}

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--text-primary)), hsl(var(--primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: hsl(var(--text-secondary));
}

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

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

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

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

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

.service-card {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px hsla(var(--shadow), 0.08);
    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 {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

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

/* 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 h2 {
    margin-bottom: 1.5rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

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

.feature-icon {
    width: 24px;
    height: 24px;
    color: hsl(var(--success));
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

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

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

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

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

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars img {
    width: 20px;
    height: 20px;
}

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

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

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

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

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.contact-icon {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

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

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

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

.blog-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.blog-card {
    background-color: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px hsla(var(--shadow), 0.08);
    transition: transform 0.3s ease;
}

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

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

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

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

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

.blog-cta {
    text-align: center;
}

.blog-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--surface)));
    text-align: center;
}

.blog-articles {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    gap: 3rem;
}

.article-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px hsla(var(--shadow), 0.08);
}

.article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

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

.article-excerpt {
    margin-bottom: 1rem;
}

/* Article Page */
.article-page {
    padding: 120px 0 60px;
}

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

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

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

.article-hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

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

.article-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
    margin-bottom: 2rem;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

.article-cta {
    background: linear-gradient(135deg, hsl(var(--primary)/0.1), hsl(var(--background)));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.article-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter p {
    color: white;
    margin-bottom: 2rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
}

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

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

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: hsl(var(--text-muted));
    margin-bottom: 1rem;
}

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

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

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

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

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

.social-links img {
    width: 24px;
    height: 24px;
}

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

.footer-bottom p {
    color: hsl(var(--text-muted));
}

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

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

.thanks-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    color: hsl(var(--success));
}

.thanks-info {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.thanks-info h3 {
    margin-bottom: 1rem;
}

.thanks-info ul {
    text-align: left;
    list-style: none;
    padding-left: 0;
}

.thanks-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.thanks-info li:last-child {
    border-bottom: none;
}

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

/* Legal Content */
.legal-content {
    padding: 120px 0;
    background-color: hsl(var(--surface));
}

.legal-content h1 {
    margin-bottom: 1rem;
}

.last-updated {
    color: hsl(var(--text-muted));
    font-style: italic;
    margin-bottom: 2rem;
}

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

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

.legal-content address {
    background-color: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 8px;
    font-style: normal;
    margin: 1.5rem 0;
}

.legal-footer {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

/* Cookies Table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: hsl(var(--surface));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px hsla(var(--shadow), 0.08);
}

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

.cookies-table th {
    background-color: hsl(var(--background));
    font-weight: 600;
    color: hsl(var(--text-primary));
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--text-primary));
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

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

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Cookie Modal */
.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: 10001;
}

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

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

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

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: hsl(var(--background));
    border-radius: 8px;
}

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

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

.cookie-category p {
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
    margin: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .article-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .services,
    .about,
    .testimonials,
    .contact,
    .blog-preview {
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .article-page {
        padding: 0;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .legal-content {
        padding: 0;
        background-color: white;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

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

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