/* 
   hearvanta - Modern Styles
   Theme: Clean, Minimalist, Medical/Premium
*/

:root {
    /* Color Palette */
    --primary-white: #FFFFFF;
    --soft-off-white: #F9FAFB;
    --primary-blue: #1E3A8A;
    --secondary-teal: #2DD4BF;
    --teal-dark: #14B8A6;
    --soft-gray: #6B7280;
    --light-gray: #E5E7EB;
    --success-green: #10B981;
    --warm-accent: #F59E0B;
    --text-dark: #111827;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-teal {
    color: var(--secondary-teal);
}

.text-green {
    color: var(--success-green);
}

.bg-soft {
    background-color: var(--soft-off-white);
}

.bg-teal {
    background-color: var(--secondary-teal);
}

.text-white {
    color: var(--primary-white);
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-medium);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-teal {
    background-color: var(--secondary-teal);
    color: var(--primary-white);
}

.btn-teal:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

.btn-outline {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--primary-white);
}

.link-scroll {
    color: var(--soft-gray);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-scroll:hover {
    color: var(--primary-blue);
}

/* Page Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.loader-line {
    width: 0;
    height: 2px;
    background-color: var(--secondary-teal);
    animation: loadLine 1.5s ease-in-out forwards;
    margin: 0 auto;
}

@keyframes loadLine {
    0% {
        width: 0;
    }

    100% {
        width: 100px;
    }
}

/* Ad Bar */
.ad-bar {
    background-color: var(--soft-off-white);
    padding: 8px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--soft-gray);
    border-bottom: 1px solid var(--light-gray);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.03em;
}

.nav-desktop .nav-list {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: var(--soft-gray);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-desktop a:hover {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--primary-white);
    z-index: 200;
    padding: 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-close {
    font-size: 1.5rem;
    color: var(--soft-gray);
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(45, 212, 191, 0.1);
    color: var(--secondary-teal);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--soft-gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
}

/* Social Proof */
.social-proof {
    padding: 40px 0;
    background-color: var(--primary-white);
    border-top: 1px solid var(--soft-off-white);
}

.social-proof-text {
    color: var(--soft-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    opacity: 0.5;
    font-size: 2rem;
    color: var(--soft-gray);
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary-blue);
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: left;
    padding: 30px 20px;
    border-radius: 16px;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background-color: var(--primary-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-color: var(--soft-off-white);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(45, 212, 191, 0.1);
    color: var(--secondary-teal);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--soft-gray);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--soft-gray);
}

/* Product Showcase */
.product-showcase {
    padding: 100px 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-image-col {
    background-color: var(--soft-off-white);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-img {
    max-height: 500px;
    mix-blend-mode: multiply;
}

.product-info-col h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.price-block {
    margin-bottom: 10px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.unit {
    color: var(--soft-gray);
    font-size: 1rem;
}

.discount-badge {
    display: inline-block;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warm-accent);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.specs-list {
    margin-bottom: 30px;
}

.specs-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.specs-list i {
    color: var(--secondary-teal);
}

.secure-note {
    margin-top: 15px;
    color: var(--soft-gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--primary-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.stars {
    color: var(--warm-accent);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.reviewer-name {
    color: var(--soft-gray);
    font-weight: 600;
    font-size: 0.85rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-content p {
    color: var(--soft-gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background-color: var(--primary-white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--light-gray);
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
}

.accordion-header:hover {
    color: var(--primary-blue);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--soft-gray);
    line-height: 1.6;
}

/* Guarantee Banner */
.guarantee-banner {
    padding: 60px 0;
    background-color: var(--secondary-teal);
    color: var(--primary-white);
}

.guarantee-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background-color: #0F172A;
    /* Dark Navy matching reference */
    color: #E2E8F0;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--primary-white);
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    color: #94A3B8;
    /* Slate 400 */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-owner {
    font-weight: 600;
    color: var(--primary-white) !important;
    margin-bottom: 5px !important;
}

.contact-email a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-email a:hover {
    color: var(--secondary-teal);
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--primary-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-white);
    text-decoration: none;
}

.footer-disclaimer {
    border-top: 1px solid #1E293B;
    /* Slate 800 */
    padding-top: 30px;
    margin-bottom: 30px;
    font-size: 0.75rem;
    color: #64748B;
    /* Slate 500 */
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
}

/* Tablet footer adjustment */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile footer adjustment */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-teal);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--primary-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid var(--light-gray);
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.modal-overlay.active {
    display: block;
}

.modal-content {
    background-color: var(--primary-white);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2001;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--soft-gray);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.modal-content p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* RESPONSIVE RULES */

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

/* Tablet (768px - 992px) */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-sub {
        margin: 0 auto 30px;
    }

    .trust-badge {
        justify-content: center;
    }

    .nav-desktop,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-container {
        grid-template-columns: 1fr;
    }

    .product-image-col {
        margin-bottom: 30px;
    }

    .product-info-col {
        text-align: center;
    }

    .specs-list {
        display: inline-block;
        text-align: left;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-email {
        justify-content: center;
    }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        margin-bottom: 40px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 20px;
    }

    .cookie-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    body {
        width: 100%;
        overflow-x: hidden;
    }
}