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

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

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

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #6D94C5 0%, #CBDCEB 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo .tagline {
    color: #E8DFCA;
    font-size: 0.9rem;
    font-style: italic;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #E8DFCA;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6D94C5 0%, #CBDCEB 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

/* Buttons */
.cta-button {
    display: inline-block;
    background: #6D94C5;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #5a7ba8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cta-button.large {
    font-size: 1.3rem;
    padding: 1.2rem 2.5rem;
}

.btn-learn-more {
    display: inline-block;
    background: #6D94C5;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-learn-more:hover {
    background: #5a7ba8;
    transform: translateY(-2px);
}

.btn-call-now {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 1rem 0.5rem;
}

.btn-call-now:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-get-quote {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 1rem 0.5rem;
}

.btn-get-quote:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1e3c72;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6D94C5, #CBDCEB);
    border-radius: 2px;
}

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

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #6D94C5;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #6D94C5;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Why Choose Section */
.why-choose {
    padding: 4rem 0;
    background: #E8DFCA;
}

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

.feature {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.feature h4 {
    color: #6D94C5;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #6D94C5 0%, #CBDCEB 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Service Page Specific Styles */
.service-hero {
    background: linear-gradient(135deg, #6D94C5 0%, #CBDCEB 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.service-content {
    padding: 4rem 0;
    background: #fff;
}

.intro-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.intro-section h2 {
    color: #6D94C5;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-section p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.benefits-section {
    padding: 3rem 0;
    background: #E8DFCA;
}

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

.benefit-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.benefit-card h3 {
    color: #6D94C5;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #666;
}

/* Comparison Table */
.comparison-section {
    padding: 4rem 0;
    background: #fff;
}

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: #fff;
}

.comparison-table thead {
    background: linear-gradient(135deg, #6D94C5 0%, #CBDCEB 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comparison-table td {
    padding: 1.2rem 1rem;
    color: #333;
    vertical-align: middle;
}

.comparison-table .provider-name {
    font-weight: bold;
    color: #6D94C5;
    font-size: 1.1rem;
    white-space: nowrap;
}

.comparison-table .rating {
    color: #ffd700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.comparison-table .action-btn {
    background: #28a745;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.comparison-table .action-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.comparison-table .secondary-btn {
    background: #007bff;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.comparison-table .secondary-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* CTA Buttons Section */
.cta-buttons {
    text-align: center;
    margin: 2rem 0;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: #E8DFCA;
}

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

.step {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
}

.step-number {
    background: linear-gradient(135deg, #6D94C5 0%, #CBDCEB 100%);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: #6D94C5;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: #666;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #fff;
}

.faq-item {
    background: #CBDCEB;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: #6D94C5;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

/* Footer */
footer {
    background: #6D94C5;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #F5EFE6;
}

.footer-section p {
    color: #CBDCEB;
    margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
    color: #CBDCEB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #F5EFE6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #CBDCEB;
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .services-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar .container {
        flex-wrap: nowrap;
    }

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

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo .tagline {
        font-size: 0.8rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6D94C5 0%, #5a7ba8 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        max-height: 400px;
        padding: 1rem 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

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

    .service-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

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

    .services-grid,
    .features-grid,
    .benefits-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .benefit-card,
    .feature,
    .step {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .cta-button.large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .btn-call-now,
    .btn-get-quote {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem 0.25rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 280px;
    }

    /* Transform table to cards on mobile */
    .table-wrapper {
        box-shadow: none;
        overflow: visible;
        margin: 0;
    }

    .comparison-table {
        min-width: 100%;
        width: 100%;
    }

    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table th,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody tr {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        border-bottom: none;
        border-left: 4px solid #6D94C5;
    }

    .comparison-table tbody tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0,0,0,0.18);
    }

    .comparison-table td {
        padding: 0.7rem 0;
        border: none;
        text-align: left;
        position: relative;
        padding-left: 50%;
        min-height: 45px;
        display: flex;
        align-items: center;
    }

    .comparison-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 48%;
        padding-right: 10px;
        font-weight: 700;
        color: #6D94C5;
        font-size: 0.9rem;
    }

    .comparison-table .provider-name {
        font-size: 1.4rem;
        padding-left: 0;
        padding-bottom: 1rem;
        border-bottom: 3px solid #6D94C5;
        margin-bottom: 1rem;
        text-align: center;
        font-weight: bold;
        display: block;
    }

    .comparison-table .provider-name:before {
        display: none;
    }

    .comparison-table .rating {
        padding-left: 50%;
        font-size: 1.3rem;
    }

    .comparison-table td:last-child {
        padding-left: 0;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 2px solid #E8DFCA;
    }

    .comparison-table td:last-child:before {
        display: none;
    }

    .comparison-table .action-btn,
    .comparison-table .secondary-btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        margin: 0.5rem 0;
        display: block;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-weight: bold;
        box-sizing: border-box;
    }

    .comparison-table .action-btn {
        background: #28a745;
    }

    .comparison-table .secondary-btn {
        background: #6D94C5;
        margin-left: 0;
    }

    .intro-section,
    .service-content,
    .benefits-section,
    .comparison-section,
    .how-it-works,
    .faq-section,
    .cta-section {
        padding: 2rem 0;
        overflow-x: hidden;
    }

    .comparison-section .container {
        overflow-x: hidden;
    }

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

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

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

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

    .service-hero h1 {
        font-size: 1.7rem;
    }

    .btn-call-now,
    .btn-get-quote {
        width: 100%;
        max-width: 100%;
    }

    /* Enhanced card styling for smaller screens */
    .comparison-table tbody tr {
        padding: 1.2rem;
    }

    .comparison-table td {
        padding-left: 45%;
        font-size: 0.9rem;
    }

    .comparison-table td:before {
        width: 40%;
        font-size: 0.85rem;
    }
}

/* Landscape orientation optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero,
    .service-hero {
        padding: 2rem 0;
    }

    .hero-content h2,
    .service-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p,
    .service-hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .cta-button,
    .btn-call-now,
    .btn-get-quote,
    .cta-section,
    .cta-buttons {
        display: none;
    }

    body {
        background: #fff;
    }

    .comparison-table {
        page-break-inside: avoid;
    }
}

/* Legal Pages */
.legal-content {
    padding: 4rem 0;
    background: #fff;
}

.legal-content h1 {
    color: #6D94C5;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h2 {
    color: #6D94C5;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: #6D94C5;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
}

.legal-content p,
.legal-content li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.legal-content .last-updated {
    color: #999;
    font-style: italic;
    margin-bottom: 2rem;
}
