/* CSS for Hearassistde - Premium Design - Class Based only */

:root {
    --primary-color: #0056b3;
    --primary-light: #e6f0ff;
    --secondary-color: #2c3e50;
    --accent-color: #00d1b2;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Class Resets - No * identifier used */
.html-root {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Fix for width calculations - Applying to all used layout/component classes */
.container,
.visual-card,
.cta-button,
.feature-card,
.testimonial-card,
.faq-item,
.modal-content,
.cookie-popup,
.image-wrapper,
.input-field,
.footer-grid,
.about-grid,
.hero-container,
.details-grid {
    box-sizing: border-box;
}

/* Base Styles applied via classes */
.hero-title,
.section-title,
.feature-title,
.details-title,
.return-title,
.visual-price,
.footer-title,
.modal-h2,
.modal-h3,
.cookie-h3,
.loader-text,
.user-name {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
    margin: 0;
}

.hero-subtitle,
.about-p,
.feature-desc,
.return-desc,
.testimonial-text,
.faq-answer,
.footer-brand-desc,
.footer-ad-p,
.copyright,
.modal-p,
.cookie-p,
.ad-text-top,
.visual-note {
    margin: 1rem 0;
}

.logo-link,
.nav-link,
.cta-button,
.secondary-link,
.footer-link-a,
.modal-a {
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    /* Removes underlines */
}

.nav-list,
.about-features,
.package-list,
.footer-links {
    padding: 0;
    margin: 0;
}

.nav-item,
.feature-li,
.package-li,
.footer-li {
    list-style: none;
    /* Removes bullets */
}

.strong-text {
    font-weight: 700;
}

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

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

.loader-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

/* Top Ad Note */
.top-ad-note {
    background-color: #fff9e6;
    border-bottom: 1px solid #ffeeba;
    padding: 0.5rem 0;
    text-align: center;
}

.ad-text-top {
    font-size: 0.85rem;
    color: #856404;
    margin: 0;
    font-weight: 500;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

.mobile-cta {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    display: inline-block;
}

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

.primary-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Hamburger Menu - Fixed and Stable */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border: none;
    background: transparent;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.close-menu {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
}

.close-icon {
    font-size: 2.5rem;
    color: var(--white);
    line-height: 1;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: radial-gradient(circle at top right, #f0f7ff, var(--white));
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.secondary-link {
    font-weight: 600;
    color: var(--secondary-color);
}

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

.hero-image {
    position: relative;
}

.image-wrapper {
    background: var(--white);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.main-product-img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

/* Sections Common */
.section-header {
    margin-bottom: 3.5rem;
}

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

.section-tag {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.75rem;
}

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

/* About Section */
.about-section {
    padding: 6rem 0;
}

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

.about-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.about-text {
    padding-bottom: 1rem;
}

.feature-li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-icon {
    color: var(--accent-color);
    font-weight: 700;
}

/* Why Us Section */
.why-us-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Details Section */
.details-section {
    padding: 6rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.package-li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    list-style: none;
}

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

.return-policy-box {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    margin-top: 2rem;
}

.return-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.visual-card {
    background: linear-gradient(135deg, var(--secondary-color), #434343);
    padding: 3rem;
    border-radius: 20px;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-strong);
}

.visual-badge {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.visual-price {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.visual-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary-color);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.user-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.specs-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e1e8ed;
}

.specs-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.specs-li {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
}

.spec-label {
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

/* Main Layout Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 10%;
    /* Increased side margin as requested */
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* CTA Animation */
@keyframes pulse-subtle {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    display: inline-block;
    animation: pulse-subtle 3s infinite ease-in-out;
}

.faq-answer {
    padding: 0 1.5rem;
    color: var(--text-light);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.25rem;
    max-height: 200px;
    opacity: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #cbd5e0;
    padding: 5rem 0 2rem;
}

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

.footer-logo {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-li {
    margin-bottom: 1rem;
    list-style: none;
}

.footer-link-a {
    color: var(--white);
}

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

.footer-ad-note {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.footer-ad-p {
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 700px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-a {
    color: var(--primary-color);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: none;
}

.cookie-h3 {
    margin-bottom: 0.5rem;
}

.cookie-btns {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cookie-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.accept-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.reject-btn {
    background-color: #eee;
    color: var(--text-main);
}

/* Media Queries */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-subtitle {
        margin: 1rem auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

@media (max-width: 768px) {
    .desktop-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 2000;
        transition: 0.4s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-link {
        color: var(--white);
        font-size: 1.5rem;
    }

    .close-menu {
        display: block;
    }

    .mobile-cta {
        display: block;
        margin-top: 1rem;
    }

    .mobile-cta .cta-button {
        background-color: var(--white);
        color: var(--primary-color);
        font-size: 1.25rem;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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