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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

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

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

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

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

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

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #22c55e;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

/* ===================================
   Layout and Grid
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    color: white;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #1e40af;
    padding: 12px 30px;
    border: 2px solid #1e40af;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.nav-menu a {
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #22c55e;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    transition: 0.3s;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: 3rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

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

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

.hero-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 80px 0;
    background: #ffffff;
}

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

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #22c55e;
}

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

/* ===================================
   About Section
   =================================== */
.about {
    padding: 80px 0;
    background: #f9fafb;
}

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

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    color: #22c55e;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

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

/* ===================================
   Coverage Section
   =================================== */
.coverage {
    padding: 80px 0;
    background: #ffffff;
}

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

.coverage-card {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.coverage-card:hover {
    transform: translateY(-5px);
}

.coverage-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.coverage-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Reviews Section
   =================================== */
.reviews {
    padding: 80px 0;
    background: #f9fafb;
}

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

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.reviewer strong {
    color: #1e40af;
}

.reviewer span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    text-align: center;
    color: white;
}

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

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

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

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

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 80px 0;
    background: #ffffff;
}

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

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: #1e40af;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #1f2937;
    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: 1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a.active {
    color: #22c55e;
}

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

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

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

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

/* ===================================
   Cookie Banner
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    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;
    text-align: center;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.cookie-content p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

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

/* ===================================
   Cookie Settings Modal
   =================================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 1rem;
}

.cookie-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-setting:last-child {
    border-bottom: none;
}

.cookie-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-switch.active {
    background: #22c55e;
}

.cookie-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-switch.active::after {
    transform: translateX(26px);
}

/* ===================================
   Blog Styles
   =================================== */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.blog-section {
    padding: 80px 0;
    background: #ffffff;
}

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

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.blog-content {
    padding: 1.5rem;
}

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

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

.blog-meta .category {
    color: #22c55e;
    font-weight: 500;
}

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-card h2 a {
    color: #1e40af;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #22c55e;
}

.read-more {
    color: #22c55e;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    color: #16a34a;
}

/* ===================================
   Article Styles
   =================================== */
.article-header {
    padding: 120px 0 40px;
    background: #f9fafb;
}

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

.breadcrumb a {
    color: #1e40af;
}

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

.article-content {
    padding: 60px 0;
}

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

.article-body {
    max-width: none;
}

.article-image {
    text-align: center;
    margin: 2rem 0;
}

.article-image img {
    max-width: 200px;
    height: auto;
    opacity: 0.7;
}

.lead {
    font-size: 1.125rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}

.article-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-section {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.related-articles,
.contact-widget {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.related-articles h3,
.contact-widget h3 {
    margin-bottom: 1rem;
    color: #1e40af;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 0.75rem;
}

.related-articles a {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
}

.related-articles a:hover {
    color: #22c55e;
}

.contact-widget p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   Thank You Page Styles
   =================================== */
.thank-you-page {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
}

.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 2rem;
}

.thank-you-text {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
}

.newsletter-benefits {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 3rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.next-steps {
    margin: 4rem 0;
}

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

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.step-number {
    background: #22c55e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.additional-resources {
    margin: 4rem 0;
}

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

.resource-link {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease;
    text-align: left;
}

.resource-link:hover {
    transform: translateY(-5px);
}

.resource-link h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.resource-link p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.contact-cta {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
}

.contact-cta h3 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.contact-cta .btn-primary,
.contact-cta .btn-secondary {
    margin: 0.5rem;
}

/* ===================================
   Legal Pages Styles
   =================================== */
.legal-content {
    padding: 60px 0;
    background: #ffffff;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
    font-size: 1.5rem;
}

.legal-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 1.25rem;
}

.legal-text h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 1.125rem;
}

.legal-text address {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #22c55e;
    font-style: normal;
    margin: 1.5rem 0;
}

.cookie-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.cookie-table td {
    color: #6b7280;
}

.cookie-settings-section {
    background: #f0f9ff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

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

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

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

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

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

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

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

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

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

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

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

    .article-sidebar {
        position: static;
    }

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

    .resource-links {
        grid-template-columns: 1fr;
    }

    .contact-cta .btn-primary,
    .contact-cta .btn-secondary {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
}

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

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

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .review-card {
        padding: 1.5rem;
    }

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

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

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

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

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

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .cookie-banner,
    .footer,
    .hero-buttons,
    .newsletter,
    .contact-form {
        display: none !important;
    }

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

    h1, h2, h3 {
        page-break-after: avoid;
    }
}
