/* Global Styles */
:root {
    --primary-color: #0984e3;
    /* Medical Blue */
    --secondary-color: #74b9ff;
    /* Light Blue */
    --dark-bg: #2d3436;
    --light-bg: #f5f6fa;
    --text-color: #2d3436;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-root {
    box-sizing: border-box;
}

/* Explicit resets for used classes instead of * selector */
.page-body, .container-hero, .section, .header-main, .footer-main, .nav-container, .card, .modal {
    box-sizing: border-box;
}

.page-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.link-nav, .link-footer, .link-modal {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.list-nav, .list-footer, .feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.img-responsive, .img-content, .img-hero {
    max-width: 100%;
    height: auto;
}

/* Typography */
.text-heading-1,
.text-heading-2,
.text-heading-3,
.text-footer-heading {
    font-family: var(--font-heading);
    color: var(--dark-bg);
    font-weight: 700;
    margin: 0;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.text-loader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(9, 132, 227, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Header */
.header-main {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.list-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.link-nav {
    font-weight: 500;
    color: var(--dark-bg);
    font-size: 0.95rem;
}

.link-nav:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.btn-primary:hover {
    background: #00cec9;
    transform: translateY(-2px);
}

.btn-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.icon-bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg);
    margin: 3px 0;
}

/* Hero Section */
.section-hero {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f5f6fa 0%, #dff9fb 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.container-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
}

.content-hero {
    flex: 1;
    min-width: 300px;
}

.text-heading-1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.text-paragraph-large {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 30px;
    max-width: 500px;
}

.price-container {
    margin-bottom: 30px;
}

.text-price-large {
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #d63031;
}

.text-price-strike {
    text-decoration: line-through; 
    color: #b2bec3; 
    margin-left: 10px;
}

.hero-badge {
    background: #e17055; 
    color: white; 
    padding: 5px 15px; 
    border-radius: 20px; 
    display: inline-block; 
    margin-bottom: 20px; 
    font-weight: 600;
}

.btn-cta-large {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(9, 132, 227, 0.3);
    transition: transform 0.3s;
    text-decoration: none;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    background: #00cec9;
}

.container-hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.img-hero {
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: #fff;
    padding: 20px;
}

/* Generic Sections */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}

.section-about {
    background: #fff;
}

.section-why {
    background: #f7f9fc;
}

.section-faq {
    background: #fff;
}

.container-title {
    text-align: center;
    margin-bottom: 50px;
}

.text-heading-2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Features/About/Why Grid */
.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.text-heading-3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.text-paragraph {
    margin-bottom: 15px;
    color: #636e72;
}

.img-rounded {
    border-radius: 15px;
}

.img-shadow {
    box-shadow: var(--shadow);
}

.text-list-item {
    margin-bottom: 10px;
}

.container-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.icon-feature {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Testimonials */
.text-rating {
    color: #f1c40f; 
    font-size: 1.2rem; 
    margin-bottom: 15px;
}

.text-italic {
    font-style: italic;
}

.text-bold-margin {
    margin-top: 15px; 
    font-weight: 700;
}

/* FAQ */
.container-faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.btn-faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.container-faq-item.active .container-faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.icon-toggle {
    float: right;
}

/* Footer */
.footer-main {
    background: var(--dark-bg);
    color: #b2bec3;
    padding: 60px 5% 20px;
    margin-top: 80px;
}

.container-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.text-footer-heading {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-item {
    margin-bottom: 10px;
}

.link-footer:hover {
    color: var(--primary-color);
}

.text-footer-small {
    font-size: 0.9rem; 
    margin-bottom: 15px;
}

.container-notice {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    text-align: center;
}

.text-small-notice {
    font-size: 0.8rem;
}

.container-copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.container-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: all 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

.container-modal.show,
.modal-overlay.show {
    display: block;
    opacity: 1;
}

.container-modal.show {
    transform: translate(-50%, -50%) scale(1);
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
    .btn-menu-toggle {
        display: flex;
    }

    .list-nav {
        position: absolute;
        top: 60px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding-top: 50px;
        transition: 0.4s;
    }

    .list-nav.active {
        right: 0;
    }

    .container-hero {
        flex-direction: column;
        text-align: center;
    }

    .container-cookie {
        flex-direction: column;
        text-align: center;
        padding: 20px 10%;
    }
}

/* Cookie Banner */
.container-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.container-cookie.show {
    transform: translateY(0);
}

.btn-cookie {
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}