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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a365d;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a4f80;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background-color: #2b6cb0;
    color: white;
}

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

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

.btn-secondary:hover {
    background-color: #2d3748;
    color: white;
}

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

.btn-outline:hover {
    background-color: #2b6cb0;
    color: white;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #1a365d;
}

.nav-brand a {
    color: #1a365d;
    text-decoration: none;
}

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

.nav-menu a {
    font-weight: 500;
    color: #4a5568;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1a365d;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

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

/* About Section */
.about {
    padding: 80px 0;
}

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

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

.about-features {
    list-style: none;
    margin-top: 1.5rem;
}

.about-features li {
    padding: 0.5rem 0;
    color: #4a5568;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
}

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

.stat p {
    color: #4a5568;
    font-weight: 500;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background-color: #f7fafc;
}

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

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

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-author {
    margin-top: 1rem;
    font-weight: 600;
    color: #1a365d;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%);
    color: white;
    text-align: center;
}

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

.newsletter p {
    color: #e2e8f0;
    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 16px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

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

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

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-item h3 img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(42%) saturate(1747%) hue-rotate(198deg) brightness(95%) contrast(90%);
}

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

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

/* Footer */
.footer {
    background-color: #1a365d;
    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 h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

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

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

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

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

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

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

.social-links img {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 4px;
}

.social-links a:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a365d;
    color: white;
    padding: 1rem;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

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

.cookie-content p {
    color: #e2e8f0;
    margin: 0;
    flex: 1;
}

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

.cookie-banner.hidden {
    display: none;
}

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

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

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

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
}

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

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

.cookie-category span {
    font-size: 0.9rem;
    color: #4a5568;
}

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

/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.blog-header p {
    color: #e2e8f0;
    font-size: 1.2rem;
}

.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: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-card {
    padding: 2rem;
}

.article-date {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-card h2,
.article-card h3 {
    margin-bottom: 1rem;
}

.article-card h2 a,
.article-card h3 a {
    color: #1a365d;
    text-decoration: none;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
    color: #2b6cb0;
}

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

.article-category {
    background-color: #e2e8f0;
    color: #1a365d;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.article-read-time {
    color: #718096;
}

.article-link {
    color: #2b6cb0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-link:hover {
    color: #1a4f80;
}

/* Blog Post Styles */
.blog-post {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.blog-breadcrumb {
    margin-bottom: 2rem;
    color: #718096;
}

.blog-breadcrumb a {
    color: #2b6cb0;
}

.blog-post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.blog-post-date,
.blog-post-read-time {
    color: #718096;
}

.blog-post-category {
    background-color: #e2e8f0;
    color: #1a365d;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.blog-post-excerpt {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.7;
}

.blog-post-content {
    line-height: 1.8;
}

.blog-post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1a365d;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

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

.blog-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-post-content em {
    font-style: italic;
    color: #2b6cb0;
    font-weight: 500;
}

.blog-post-cta {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
    border-left: 4px solid #2b6cb0;
}

.blog-post-cta h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.blog-post-tags,
.blog-post-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #e2e8f0;
    color: #1a365d;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.share-link {
    padding: 0.25rem 0.5rem;
    background-color: #2b6cb0;
    color: white;
    border-radius: 3px;
    font-size: 0.8rem;
    text-decoration: none;
}

.share-link:hover {
    background-color: #1a4f80;
    color: white;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background-color: #f7fafc;
}

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

/* Thank You Page */
.thank-you {
    padding: 100px 0;
    text-align: center;
}

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

.thank-you-icon {
    font-size: 4rem;
    color: #48bb78;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you-icon img {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.thank-you-benefits {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.thank-you-benefits h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.thank-you-benefits ul {
    list-style: none;
}

.thank-you-benefits li {
    padding: 0.5rem 0;
    color: #4a5568;
}

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

/* Legal Pages */
.legal-page {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    margin-bottom: 2rem;
    color: #1a365d;
}

.legal-page h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1a365d;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

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

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

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.contact-box {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2b6cb0;
    margin: 1.5rem 0;
}

.contact-box p {
    margin-bottom: 0.5rem;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* Cookie Policy Tables */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
}

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

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

.cookie-table th {
    background-color: #1a365d;
    color: white;
    font-weight: 600;
}

.cookie-table tr:hover {
    background-color: #f7fafc;
}

.cookie-controls {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    border-left: 4px solid #2b6cb0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

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

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

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

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

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

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

    .blog-post-footer {
        flex-direction: column;
        text-align: center;
    }

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

    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

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

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
}

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

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

    .legal-page,
    .blog-post {
        max-width: none;
        padding: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .contact-box {
        border: 1px solid #000;
        background: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus indicators for better accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .service-card,
    .review-card,
    .article-card {
        border: 1px solid #000;
    }
}
