/* 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: #fff;
}

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

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

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

a:hover {
    color: #c0392b;
}

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

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

.btn-primary:hover {
    background-color: #c0392b;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    color: white;
}

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

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

/* Header and Navigation */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

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

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

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

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

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

.nav-menu a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

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

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

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

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

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

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

.modal.hidden {
    display: none;
}

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

.modal-content h3 {
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
}

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

.cookie-category p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

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

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

/* Sections */
section {
    padding: 80px 0;
}

.page-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services {
    background-color: #f8f9fa;
}

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

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

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

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

.service-card img {
    height: 60px;
    width: 60px;
    margin-bottom: 1rem;
}

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

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

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.about ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.about ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Blog Section */
.blog-preview {
    background-color: #f8f9fa;
}

.blog-section {
    padding: 40px 0 80px;
}

.blog-preview h2,
.blog-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

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

.blog-card:hover,
.blog-article:hover {
    transform: translateY(-5px);
}

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

.blog-card h3 a,
.blog-article h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-card h3 a:hover,
.blog-article h2 a:hover {
    color: #e74c3c;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #7f8c8d;
}

.read-more {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
}

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

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

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-align: center;
}

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

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

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

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

.form-privacy {
    font-size: 14px;
    text-align: left;
}

.form-privacy label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-privacy input {
    margin-right: 10px;
}

.form-privacy a {
    color: white;
    text-decoration: underline;
}

/* Reviews */
.reviews {
    background-color: #f8f9fa;
}

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

.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);
    text-align: center;
}

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

.reviewer {
    font-weight: 600;
    color: #e74c3c;
    margin-top: 1rem;
}

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

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

.contact h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-item {
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-form .form-group {
    margin-bottom: 1rem;
    display: block;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
}

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

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

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

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

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Article Pages */
.article-header-section {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 120px 0 60px;
}

.breadcrumb {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header-section h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-header-section .article-meta {
    display: flex;
    gap: 2rem;
    opacity: 0.9;
}

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

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

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #e74c3c;
}

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

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

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

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

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

.tag {
    display: inline-block;
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
}

.article-navigation {
    max-width: 800px;
    margin: 2rem auto;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-blog {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.back-to-blog:hover {
    text-decoration: underline;
}

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

.article-share a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
}

.article-share a:hover {
    color: #e74c3c;
}

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

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

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

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

.related-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-card h3 a:hover {
    color: #e74c3c;
}

.related-card p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* Legal Pages */
.legal-content {
    padding: 120px 0 80px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 3rem;
}

.legal-content h2 {
    color: #e74c3c;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

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

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

.contact-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.contact-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.cookie-table {
    margin: 2rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.cookie-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-settings-button {
    margin: 2rem 0;
    text-align: center;
}

.browser-instructions {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.browser-instructions h4 {
    color: #e74c3c;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.browser-instructions h4:first-child {
    margin-top: 0;
}

.browser-instructions ol {
    margin-bottom: 1.5rem;
}

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

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

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

.thank-you-section h1 {
    color: #27ae60;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

.next-steps h2 {
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.step {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

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

.step h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.newsletter-benefits {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    text-align: left;
}

.newsletter-benefits h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-benefits ul {
    list-style: none;
    padding-left: 0;
}

.newsletter-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.newsletter-benefits li:before {
    content: "📧";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-info-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-details .contact-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .page-header h1,
    .article-header-section h1 {
        font-size: 2rem;
    }

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

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

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

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

    /* Forms */
    .form-group {
        flex-direction: column;
    }

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

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

    /* Article */
    .article-navigation {
        flex-direction: column;
        text-align: center;
    }

    .article-header-section .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Contact Details */
    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

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

    section {
        padding: 60px 0;
    }

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

    .page-header,
    .article-header-section {
        padding: 100px 0 60px;
    }

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

    .hero-text p {
        font-size: 1rem;
    }

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

    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    .cookie-banner {
        padding: 15px;
    }

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

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

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

    .article-content,
    .legal-content {
        padding-top: 0;
    }

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

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

    p, li {
        orphans: 3;
        widows: 3;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }

    .service-card,
    .blog-card,
    .review-card {
        border: 2px solid #000;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e74c3c;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a93226;
}
