/* --- CSS RESET & VARIABLES --- */
:root {
    --primary: #2D7A78;       /* The main teal color */
    --primary-dark: #205E5C;
    --secondary: #EBF7F7;     /* Light teal background */
    --text-dark: #1A2634;     /* Dark headings */
    --text-body: #5A6B7C;     /* Body text */
    --white: #FFFFFF;
    --border: #E1E8ED;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    color: var(--text-body); 
    line-height: 1.6; 
    background-color: #FAFCFC; 
}

/* Typography */
h1, h2, h3, h4 { 
    color: var(--text-dark); 
    font-weight: 700; 
}

h1 { 
    font-size: 3rem; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.5px; 
}

h2 { 
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
}

h3 { 
    font-size: 1.25rem; 
    margin-bottom: 0.5rem; 
}

p { 
    margin-bottom: 1rem; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

ul { 
    list-style: none; 
}

.text-primary { 
    color: hsl(180 45% 34% / 1); 
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.btn-primary:hover { 
    background-color: var(--primary-dark); 
}

.btn-outline { 
    border: 2px solid var(--primary); 
    color: var(--primary); 
    background: transparent; 
}

.btn-outline:hover { 
    background: var(--secondary); 
}

.btn-hero { 
    padding: 17px; 
}

.btn-full { 
    width: 100%; 
}

/* --- LAYOUT UTILITIES --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

section { 
    padding: 80px 0; 
    border-bottom: 1px solid #F0F4F8; 
}

.grid { 
    display: grid; 
    gap: 30px; 
}

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

.grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
}

.grid-4 { 
    grid-template-columns: repeat(4, 1fr); 
}

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

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

.section-header { 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto 50px; 
}

.eyebrow { 
    color: var(--primary); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    margin-bottom: 10px; 
    display: block; 
}

/* --- HEADER & NAV --- */
header {
    position: sticky; 
    top: 0; 
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0; /* Shrink effect: decreases padding on scroll */
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 1);
}

.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: all 0.3s ease;
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: -0.5px; 
    transition: all 0.3s ease;
}

header.scrolled .logo {
    font-size: 1.5rem; /* Smaller logo on scroll */
    transform: none; /* Remove the scale effect */
}

/* Desktop Navigation */
nav ul { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

nav a { 
    font-weight: 600; 
    color: var(--text-body); 
    font-size: 0.95rem; 
}

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

/* Mobile Menu Toggle */
nav ul { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

nav a { 
    font-weight: 600; 
    color: var(--text-body); 
    font-size: 0.95rem; 
    transition: all 0.3s ease;
}

header.scrolled nav a {
    font-size: 0.85rem; /* Smaller nav text on scroll */
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}


/* Mobile Responsive Logic */
@media (max-width: 992px) {
    .menu-toggle { 
        display: flex; 
    }

    /* Hide the default desktop nav */
    nav, .nav-wrapper > .btn { 
        display: none; 
    }

    /* Mobile Dropdown Styling */
    .nav-mobile-active nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-mobile-active nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .nav-mobile-active nav ul li {
        width: 100%;
    }

    .nav-mobile-active nav a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .mobile-request-btn {
        margin-top: 10px;
        display: block;
        text-align: center;
    }
}

/* --- SECTION 1: HERO --- */
#hero { 
    padding: 100px 0; 
    background: radial-gradient(circle at top right, #F0FAFA 0%, #FFFFFF 60%); 
}

.hero-layout { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
}

.hero-text { 
    flex: 1; 
}

.hero-img { 
    flex: 1; 
    text-align: center; 
}

.hero-img img { 
    max-width: 100%; 
    border-radius: 12px; 
    box-shadow: var(--shadow); 
}

.hero-subtitle { 
    font-size: 1.125rem; 
    font-weight: bold; 
}

.hero-buttons { 
    margin-top: 30px; 
}
#rci{
    margin-bottom:15px;
}
.hero-buttons .btn-outline { 
    margin-left: 15px; 
}

.hero-footer { 
    margin-top: 40px; 
    font-size: 0.9rem; 
    color: var(--text-body); 
    font-weight: 600; 
}

.hero-footer p { 
    text-align: left; 
    margin-bottom: 10px; 
}

.hero-footer span { 
    margin-right: 20px; 
}

/* Badge */
.badge { 
    background: #E0F2F1; 
    color: var(--primary); 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    display: inline-block; 
    margin-bottom: 20px; 
    border: 1px solid #B2DFDB; 
}

.badge-outline { 
    background: white; 
    border: 1px solid var(--primary); 
}

/* --- SECTION 2: CHALLENGE --- */
.card-icon { 
    width: 40px; 
    height: 40px; 
    background: var(--secondary); 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    font-size: 1.2rem; 
}

.card { 
    background: white; 
    padding: 30px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    transition: transform 0.2s; 
}

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

.outcome-banner {
    background: white;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 70%;
    text-align: center;
    display: block;
    margin: 65px auto 0;
    font-weight: bold;
}

/* --- SECTION 3: SOLUTION --- */
.solution-item { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.solution-icon { 
    min-width: 32px; 
    height: 32px; 
    background: var(--secondary); 
    border-radius: 50%; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.9rem; 
}

.device-display {
    background: white; 
    padding: 20px; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    display: inline-block;
}

.device-display img {
    max-width: 300px;
}

.device-features {
    width: 100%;
}

.bbdevice-TOP, .bbdevice {
    background: #F8F9FA; 
    padding: 20px; 
    border-radius: 4px;
    width: 48%;
    display: inline-block;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.bbdevice {
    margin-bottom: 0;
}

/* --- SECTION 4: HOW IT WORKS --- */
.step-num { 
    width: 36px; 
    height: 36px; 
    background: var(--primary); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    margin-bottom: 20px; 
}

.step-tag { 
    background: var(--secondary); 
    color: var(--primary); 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    display: inline-block; 
    margin-top: 10px; 
    font-weight: 600;
}

/* Feature Container */
.feature-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 40px;
    background-color: #ffffff;
    max-width: fit-content;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item p {
    color: #1a3644;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.green-dot { 
    background-color: #38d37a; 
}

.teal-dot { 
    background-color: #3e8e8e; 
}

.divider {
    width: 1px;
    height: 30px;
    background-color: #eeeeee;
    margin: 0 30px;
}

/* --- SECTION 5: BENEFITS --- */
.benefit-col { 
    background: white; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 40px; 
}

.benefit-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 30px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid var(--border); 
}

.benefit-icon { 
    font-size: 2rem; 
    color: var(--primary); 
}

.benefit-subtitle { 
    margin: 0; 
    font-size: 0.9rem; 
}

.check-list li { 
    position: relative; 
    padding-left: 30px; 
    margin-bottom: 15px; 
}

.check-list li::before { 
    content: '✓'; 
    position: absolute; 
    left: 0; 
    color: var(--primary); 
    font-weight: bold; 
}

.benefit-banner { 
    background: linear-gradient(135deg, #f0f7f9 0%, #f9fcfd 100%);
    padding: 30px; 
    text-align: center; 
    border-radius: var(--radius); 
    margin-top: 30px; 
}

.benefit-banner p { 
    font-weight: bold; 
    font-size: 18px; 
    text-align: center; 
    margin: 0; 
}

/* --- SECTION 6: MOBILE --- */
#mobile-app {
    background-color: white;
}

.mobile-feature { 
    margin-bottom: 30px; 
    padding-left: 15px; 
    border-left: 3px solid var(--border); 
}

.mobile-feature:hover { 
    border-left-color: var(--primary); 
}

.mobile-feature-header {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 5px;
}

.mobile-feature-icon {
    background: var(--secondary); 
    padding: 5px; 
    border-radius: 4px;
}

.clinical-note {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px; 
    font-weight: bold;
}

.clinical-note strong {
    color: #000;
}

/* --- SECTION 7: COMPLIANCE --- */
.compliance-card { 
    display: flex; 
    gap: 15px; 
    background: white; 
    padding: 25px; 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
}

.compliance-icon { 
    font-size: 1.5rem; 
    color: var(--primary); 
}

/* Certification Cards */
.cert-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    background-color: #fcfdfd;
}

.cert-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e7e9;
    border-radius: 12px;
    padding: 24px 32px;
    min-width: 300px;
    flex: 1;
    max-width: 400px;
}

.icon-circle {
    width: 56px;
    height: 56px;
    background-color: #e9f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.icon-text {
    color: #2D5A5A;
    font-weight: 800;
    font-size: 18px;
}

.cert-info h3 {
    margin: 0;
    font-size: 18px;
    color: #1a2b3c;
    font-weight: 700;
}

.cert-info p {
    margin: 4px 0 0 0;
    font-size: 15px;
    color: #6b7c93;
    font-weight: 500;
}

/* --- SECTION 8: ABOUT --- */
.about-card { 
    background: white; 
    padding: 20px; 
    margin-bottom: 20px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); 
}

.market-focus { 
    background: #F0FAFA; 
    padding: 25px; 
    border-radius: var(--radius); 
    border: 1px solid #D1E8E8; 
}

.market-focus h4 { 
    margin-bottom: 15px; 
    color: var(--primary-dark); 
}

.market-focus ul li { 
    margin-bottom: 10px; 
    font-size: 0.9rem; 
}

.market-focus ul li::before { 
    content: '•'; 
    color: var(--primary); 
    margin-right: 8px; 
}

/* --- SECTION 9: INQUIRIES --- */
#inquiries {
    background: #FAFCFC;
}

.inquiry-box { 
    background: white; 
    padding: 40px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    text-align: center; 
}

.inquiry-icon { 
    font-size: 2rem; 
    color: var(--primary); 
    margin-bottom: 20px; 
    display: block;
}

.inquiry-box .btn-primary,
.inquiry-box .btn-outline {
    margin-top: 15px;
}

.general-inquiry { 
    background: #FAFAFA; 
    padding: 20px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    margin-top: 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.inquiry-subtitle {
    font-size: 0.9rem; 
    color: #666; 
}

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

.product-disclaimer {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    font-size: 18px;
}

/* --- SECTION 10: FOOTER --- */
footer { 
    background: white; 
    padding: 60px 0 20px; 
    border-top: 1px solid var(--border); 
    margin-top: 60px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px; 
}

.footer-description {
    font-size: 0.9rem; 
    margin-top: 15px; 
}

.footer-links {
    font-size: 0.9rem; 
    line-height: 2; 
}

.footer-cta {
    color: var(--primary); 
    font-weight: 700; 
    font-size: 0.9rem; 
}

.disclaimer-section h4 {
    margin-bottom: 10px;
}

.disclaimer-text {
    font-size: 13px;
}

.footer-bottom { 
    border-top: 1px solid var(--border); 
    padding-top: 20px; 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85rem; 
    color: #8898AA; 
}

.footer-bottom-links a { 
    margin-left: 20px; 
}

/* --- MODALS --- */
.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(26, 38, 52, 0.6); 
    backdrop-filter: blur(4px);
    z-index: 2000; 
    align-items: center; 
    justify-content: center;
}

.modal-content {
    background: white; 
    width: 90%; 
    max-width: 500px; 
    padding: 40px;
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative; 
    animation: slideUp 0.3s ease;
}

.modal-video-content {
    max-width: 800px;
}

.modal-content h2 {
    font-size: 1.5rem; 
    margin-bottom: 20px; 
}

.modal-subtitle {
    font-size: 0.9rem; 
    margin-bottom: 20px; 
    color: #666; 
}

.close-modal { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: #8898AA; 
}

@keyframes slideUp { 
    from { 
        transform: translateY(20px); 
        opacity: 0; 
    } 
    to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}

/* Form Styles */
.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.9rem; 
}

.form-control { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #CFD8DC; 
    border-radius: 6px; 
    font-family: inherit; 
    font-size: 0.95rem; 
}

.form-control:focus { 
    border-color: var(--primary); 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(45, 122, 120, 0.1); 
}

.form-message {
    margin-top: 15px; 
    text-align: center; 
    font-weight: 600;
}

/* Video Modal Styles */
#how-it-works-video {
    border-radius: 8px;
    background-color: #000;
}

.video-caption {
    margin-top: 20px; 
    font-size: 0.9rem; 
    color: #666; 
    text-align: center;
}

/* Ensure video controls are visible */
#how-it-works-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5);
}

#how-it-works-video::-webkit-media-controls-play-button,
#how-it-works-video::-webkit-media-controls-volume-slider,
#how-it-works-video::-webkit-media-controls-mute-button {
    filter: invert(1);
}

/* --- RESPONSIVE STYLES --- */

/* Tablet */
@media (max-width: 768px) {
    .hero-layout, 
    .grid-2, 
    .grid-3, 
    .grid-4, 
    .compliance-card, 
    .footer-grid { 
        flex-direction: column; 
        grid-template-columns: 1fr; 
    }
    
    .hero-layout { 
        flex-direction: column; 
    }
    
    .general-inquiry { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
    }
    
    #img_section6 { 
        max-width: 280px !important; 
    }
    
    #retinco-device { 
        max-width: 230px !important; 
    }
}

/* Desktop Large */
@media (min-width: 1024px) {
    .heading-hero {
        font-size: 3.75rem;
    }
}

/* Mobile Small */
@media (max-width: 500px) {
    .bbdevice,   
    .bbdevice-TOP {
        width: 100%;
        display: inline-block;
        margin-bottom: 10px;
    }

    #tt{
        display:block;
        text-align:center;
        width:100%;
    }
}

/* Responsive Design for Mobile - Feature Container */
@media (max-width: 600px) {
    .feature-container {
        flex-direction: column;
        padding: 20px;
        align-items: flex-start;
    }
    
    .divider {
        width: 100%;
        height: 1px;
        margin: 15px 0;
    }

    .feature-item p {
        white-space: normal;
    }
}

/* Responsive Rules for Certification Cards */
@media (max-width: 700px) {
    .cert-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cert-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive for Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}