/* CSS for Hearisde - Premium Hearing Aid Landing Page */

/* Design System Variables */
:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --secondary-color: #f8f9fa;
    --accent-color: #e3f2fd;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-gray: #f4f7f6;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
}

.body-container {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    flex: 1;
}



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

.heading-secondary {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.heading-tertiary {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.paragraph {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Section Wrapper */
.section-container {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-bg-gray {
    background-color: var(--bg-gray);
}

/* Advertisement Top Bar */
.ad-top-bar {
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.ad-top-bar-text {
    margin: 0;
    line-height: 1.4;
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

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

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

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accent-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 50px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

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

/* Grid Layout for Sections */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 30px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.faq-answer {
    padding: 0 30px 20px;
    display: none;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer Styles */
.main-footer {
    background-color: #1a1e21;
    color: #ffffff;
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-color);
}

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

.footer-link-item {
    margin-bottom: 12px;
}

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

.footer-link:hover {
    color: white;
}

.footer-contact-info {
    color: #cbd5e0;
    margin-bottom: 15px;
}

.footer-ad-disclaimer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #343a40;
    text-align: center;
    font-size: 0.9rem;
    color: #a0aec0;
}

.footer-copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

.advertisement-note {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Mobile Hamburger Menu */
.hamburger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* Mobile Nav Styles */
@media screen and (max-width: 992px) {
    .section-container {
        padding: 50px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-header {
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .ad-top-bar {
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .hamburger-button {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -75%;
        width: 75%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 100px 30px 40px;
        box-sizing: border-box;
    }

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

    .nav-item {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 50px;
        gap: 35px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero-content {
        order: 1;
        width: 100%;
    }

    .hero-image-wrapper {
        order: 2;
        width: 100%;
    }

    .hero-img {
        max-width: 100%;
        border-radius: 12px;
        margin: 0 auto;
    }

    .heading-primary {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .heading-secondary {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .testimonial-card {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .heading-primary {
        font-size: 1.6rem;
    }

    .cta-button {
        width: 100%;
        padding: 14px 15px;
        text-align: center;
        font-size: 0.95rem;
    }

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

    .footer-grid {
        gap: 30px;
    }

    .main-footer {
        padding: 50px 20px 30px;
    }

    .ad-top-bar-text {
        font-size: 0.75rem;
    }
}

/* Cookie Popup */
.cookie-popup-overlay {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2000;
    display: none;
}

.cookie-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border-color);
}

.cookie-content {
    flex: 1;
}

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

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--text-muted);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Overrides */
@media screen and (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

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

/* Improved Close Icon for Hamburger */
.hamburger-button.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sidebar Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(3px);
}

.sidebar-backdrop.active {
    display: block;
}


/* Modal for Legal Pages */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    overflow-y: auto;
    padding: 50px 20px;
}

.legal-modal-content {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    position: relative;
}

.close-legal-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}