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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

.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;
}

h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 2rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.5rem;
    color: #333;
}

h4 {
    font-size: 1.25rem;
    color: #333;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

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

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

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

.nav a {
    color: #4b5563;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #2563eb;
    background-color: #f3f4f6;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
}

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

.hero-text h1 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

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

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

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #fff;
}

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

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

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
}

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

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-card p {
    color: #6b7280;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f8fafc;
}

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

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

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

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

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

.testimonial-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.testimonial-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1.1rem;
}

.testimonial-card cite {
    font-weight: 600;
    color: #1a1a1a;
    font-style: normal;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

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

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

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f8fafc;
}

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

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.contact-info img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
}

.social-media h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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

.social-links a {
    padding: 8px 16px;
    background-color: #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #2563eb;
    color: white;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .brand-name {
    color: white;
}

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

.footer-nav a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

/* Thanks Page */
.thanks-page {
    padding: 120px 0 80px;
    margin-top: 80px;
    background-color: #f8fafc;
}

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

.thanks-image {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
}

.thanks-content h1 {
    color: #059669;
    margin-bottom: 1.5rem;
}

.thanks-content p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

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

/* Blog Pages */
.blog-header {
    padding: 120px 0 60px;
    margin-top: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.25rem;
    color: #6b7280;
}

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

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

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

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

.article-meta .date {
    color: #6b7280;
}

.article-meta .category {
    color: #2563eb;
    font-weight: 500;
}

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

.article-content h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-content h2 a:hover {
    color: #2563eb;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #2563eb;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article Pages */
.article-page {
    padding: 120px 0 80px;
    margin-top: 80px;
}

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

.breadcrumb {
    margin-bottom: 1rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #2563eb;
}

.breadcrumb span {
    color: #6b7280;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-meta .category,
.article-meta .read-time {
    color: #2563eb;
    font-weight: 500;
}

.article-hero {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 2rem 0;
    border-radius: 12px;
}

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

.article-content .lead {
    font-size: 1.25rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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

.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

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

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

.article-content strong {
    color: #1a1a1a;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    margin-top: 80px;
}

.last-updated {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 2rem;
}

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

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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

.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

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

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

.legal-content strong {
    color: #1a1a1a;
}

/* Cookies Table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookies-table th,
.cookies-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.cookies-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

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

.cookies-table tr:hover {
    background-color: #f9fafb;
}

.cookie-settings-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

/* Cookie Management */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 1rem;
    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;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

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

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

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.cookie-option {
    margin-bottom: 1rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

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

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

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

    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

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

    .article-nav {
        flex-direction: column;
        text-align: center;
    }

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

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

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

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

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

    .cookie-modal-content {
        padding: 1.5rem;
    }

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.testimonial-card,
.article-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Validation */
.form-group input:invalid {
    border: 2px solid #ef4444;
}

.form-group input:valid {
    border: 2px solid #10b981;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

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

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

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