/* 
Clearhearau - Design System
Version: 1.0.1
Architecture: 100% Class-based selection (No tag selectors, no * selector)
*/

:root {
    --primary-color: #003049;
    --secondary-color: #669bbc;
    --accent-color: #c1121f;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #fdf0d5;
    --bg-white: #ffffff;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.main-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

/* Typography Utility */
.heading-primary {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.heading-secondary {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
}

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

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-logo {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin-loader 1s ease-in-out infinite;
}

@keyframes spin-loader {
    to {
        transform: rotate(360deg);
    }
}

/* Advertisement Disclaimer (Top) */
.top-adv-banner {
    background-color: #f1f5f9;
    color: #475569;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 14px 0 rgba(193, 18, 31, 0.39);
}

.cta-button:hover {
    background-color: #9e0e1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.23);
}

/* Hamburger Menu */
.hamburger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    /* Larger hit area */
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    /* Inner padding for hit area */
    background: transparent;
    border: none;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 1100;
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-close {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
    color: var(--primary-color);
    line-height: 1;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #eee;
    border-radius: 50%;
}

.mobile-nav-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: #fffefb;
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 2rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
}

/* Hero Section */
.hero-section {
    padding: 120px 5% 80px;
    background: radial-gradient(circle at top right, #f0f7ff 0%, #ffffff 50%);
    display: flex;
    align-items: center;
    gap: 5rem;
}

.hero-content {
    flex: 1.2;
}

.hero-tagline {
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Feature Section */
.section-padding {
    padding: 100px 5%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Why Us Section */
.why-us-section {
    background-color: #f8fafc;
}

.why-grid {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.why-image {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.why-item {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.check-icon {
    background: #dcfce7;
    color: #166534;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-author {
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* FAQ Section */
.faq-container {
    max-width: 850px;
    margin: 4rem auto 0;
}

.faq-item {
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(102, 155, 188, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    background: #fafafa;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 500px;
}

/* Footer Styles */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 5% 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 5rem;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--white);
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-adv-note {
    background: rgba(255, 255, 255, 0.06);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 5px solid var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Cookies Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: var(--bg-white);
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    transform: translateY(200%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-popup.active {
    transform: translateY(0);
}

.cookie-text {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.cookie-actions {
    display: flex;
    gap: 1.25rem;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-dark);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Modal for Legal Content */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.legal-modal-content {
    background: var(--bg-white);
    width: 90%;
    max-width: 800px;
    padding: 4rem;
    border-radius: 30px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 0.5;
}

.legal-content h4 {
    margin-top: 1.5rem;
    color: var(--primary-color);
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

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

/* Responsive */
@media (max-width: 1200px) {
    .hero-section {
        gap: 3rem;
    }

    .heading-primary {
        font-size: 3rem;
    }

    .footer-top {
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-content {
        flex: 1.2;
        margin-bottom: 3rem;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
        font-size: 1.15rem;
    }

    .why-grid {
        flex-direction: column-reverse;
        gap: 4rem;
    }

    .why-image {
        max-width: 600px;
    }

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

    .header-nav {
        display: none;
    }

    .hamburger-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

@media (max-width: 768px) {
    .heading-primary {
        font-size: 2.25rem;
    }

    .heading-secondary {
        font-size: 1.85rem;
    }

    .hero-section {
        padding: 40px 5% 60px;
    }

    .section-padding {
        padding: 60px 5%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-grid {
        gap: 2.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .cookie-popup {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-modal-content {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.75rem 5%;
    }

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

    .hamburger-toggle {
        width: 30px;
        height: 22px;
    }

    .heading-primary {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}