/* ==============================
   BoCA™ Website Styles
   Boston Cognitive Brand
   ============================== */

/* ==============================
   1. CSS Variables / Design Tokens
   ============================== */
:root {
    /* Brand Colors */
    --primary: #009688;
    --primary-dark: #00675b;
    --primary-light: #1d937c;
    --secondary: #ffb74d;
    --secondary-dark: #f57c00;
    --teal: #429488;
    --teal-dark: #40645d;
    --gray-text: #466861;

    /* Neutral Colors */
    --white: #fff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #121212;

    /* Semantic Colors */
    --success: #2e7d32;
    --warning: #ff9800;
    --error: #d32f2f;
    --info: #1976d2;

    /* Typography */
    --font-family: 'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, sans-serif;
    --font-family-roboto: 'Roboto', sans-serif;
    --font-family-alexandria: 'Alexandria', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -1px rgb(0 0 0 / 6%);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ==============================
   2. Reset & Base Styles
   ============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative; /* Ensure proper stacking context */
    font-size: var(--font-size-lg); /* 18px */
}

/* ==============================
   3. Typography
   ============================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-3xl); }   /* 30px */
h2 { font-size: var(--font-size-2xl); }   /* 24px */
h3 { font-size: var(--font-size-xl); }    /* 20px */
h4 { font-size: var(--font-size-lg); }    /* 18px */

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ==============================
   4. Layout Components
   ============================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: 60px 40px;
    margin-bottom: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Override section defaults for full-bleed sections */
.section.about-figma,
.section.how-it-works,
.section.what-boca-measures,
.section.healthcare-providers {
    max-width: none;
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    color: var(--primary-light);
    font-size: var(--font-size-2xl);
    font-family: var(--font-family-roboto);
    font-weight: 500;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #8ca09a;
    font-size: var(--font-size-xl);
    font-family: var(--font-family-roboto);
    font-weight: 400;
    margin-bottom: 20px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.about-description {
    text-align: center;
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 1.1rem auto 1.7rem auto;
    max-width: 1000px;
    font-weight: 500;
}

.about-description p {
    text-align: left;
}

.hero-description {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 700px;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    margin-top: 0.2rem;
    letter-spacing: -0.2px;
}

.app-store-link {
    display: inline-block;
    margin-top: 2.5rem;
}

.hero-figma {
    position: relative;
    background: linear-gradient(120deg, #f6f8e0 0%, #e0f3ec 60%, #90c0b4 100%);
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    min-height: unset;
    height: unset;
    padding-bottom: 0;
    overflow: visible;
}

.hero-figma::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #fff 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-figma-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 48px 32px 0;
}

.hero-figma-image {
    margin-top: 3.2rem;
    margin-left: -1.2rem;
    z-index: 2;
}

.hero-device-img {
    margin-bottom: 0;
    display: block;
    max-width: 380px;
    width: 380px;
    height: auto;
    position: relative;
    z-index: 2;
}

/* ==============================
   5. Buttons
   ============================== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==============================
   6. Hero Section Styles
   ============================== */
.hero-figma-text {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title, .hero-subtitle {
    display: block;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.hero-subtitle {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================
   7. About Section Styles
   ============================== */
.about-figma {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #fff 0%, #fff 70%, #e8f5f3 100%);
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
    padding: 60px 0 !important;
}

.about-wave-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    bottom: unset;
    width: 100%;
    height: auto;
    max-width: 100%;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 0.95;
    transform: translateY(-50%);
}

.about-figma .section-header,
.about-figma .about-description,
.about-figma .about-text-content {
    position: relative;
    z-index: 2;
    color: #222 !important;
    opacity: 1 !important;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.about-content {
    position: relative;
    z-index: 1;
    padding: 60px 40px 120px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-text-content {
    max-width: 517px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-text-content p {
    color: var(--gray-text);
    font-size: 14px;
    font-family: var(--font-family-roboto);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-text-content p:last-child {
    margin-bottom: 80px; /* Extra space before wave background */
}

/* ==============================
   8. Content Sections
   ============================== */
.section-intro {
    text-align: center;
    margin-bottom: 30px;
}

/* How It Works Section with gradient background */
.how-it-works {
    background: linear-gradient(120deg, #f6f8e0 0%, #e0f3ec 60%, #90c0b4 100%);
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 80px 0 !important;
    max-width: none !important;
    border: 3px dashed green !important;
}

.how-it-works .section-header,
.how-it-works .section-title,
.how-it-works .section-subtitle {
    text-align: center;
    color: var(--text-dark);
}

.how-it-works-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    margin-top: 40px;
    padding: 0 40px;
}

.how-it-works-text {
    flex: 1;
    order: 2;
}

.how-it-works-image {
    flex: 0 0 400px;
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
}

.how-it-works-cta {
    margin-top: 30px;
    text-align: center;
}

.how-it-works-cta .app-store-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.how-it-works-cta .app-store-link:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .how-it-works-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .how-it-works-image {
        order: 1;
        flex: 0 0 auto;
        margin-bottom: 20px;
    }

    .how-it-works-text {
        order: 2;
    }

    .how-it-works-image img {
        max-width: 280px;
    }
}

/* Why Cognitive Testing Matters - white background */
.why-testing-matters {
    background: #ffffff;
    padding: 80px 40px;
    border: 3px dashed blue !important;
}

/* What BoCA Measures with gradient background */
.what-boca-measures {
    background: linear-gradient(120deg, #f6f8e0 0%, #e0f3ec 60%, #90c0b4 100%);
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 50px 0 !important;
    max-width: none !important;
    border: 3px dashed purple !important;
}

.what-boca-measures .section-header,
.what-boca-measures > p,
.what-boca-measures .domains-list,
.what-boca-measures .cta-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.steps-list,
.domains-list,
.features-list,
.enterprise-features {
    max-width: 700px;
    margin: 0 auto;
}

/* Steps list styling for How It Works */
.steps-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.steps-list li {
    margin-bottom: 2.5rem;
}

.step-bullet {
    display: grid;
    grid-template-columns: 2.2em 1fr;
    align-items: center;
    gap: 1rem;
}

.step-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.step-title, .step-desc {
    word-break: break-word;
    text-align: left;
}

.step-title {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 0.2em;
    color: var(--primary-dark);
}

.step-desc {
    font-size: 1em;
    color: var(--gray-700);
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .step-bullet {
        align-items: flex-start;
        gap: 0.75rem;
    }
    .step-title {
        font-size: 1em;
    }
    .step-desc {
        font-size: 0.98em;
    }
}

/* Domains list for What BoCA Measures */
.domains-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.domains-list li {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
}

/* Compact domains list style */
.domains-list.compact {
    display: block;
    margin-top: 25px;
    margin-bottom: 25px;
}

.domains-list.compact li {
    background: none;
    padding: 10px 0 10px 35px;
    border-left: none;
    border-radius: 0;
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    position: relative;
    line-height: 1.5;
}

.domains-list.compact li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--teal);
    font-weight: bold;
    font-size: 18px;
}

.cta-text {
    text-align: center;
    margin-top: 30px;
}

/* General list styling for other sections */
.features-list li,
.enterprise-features li {
    margin-bottom: 20px;
    line-height: 1.8;
}

.features-list {
    text-align: left;
}
.features-list li {
    text-align: left;
}

/* ==============================
   9. CTA Section
   ============================== */
.cta-section {
    background: #eafaf7;
    color: #21867a;
    border-radius: 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 48px 32px 40px 32px;
    max-width: 600px;
    margin: 48px auto 0 auto;
    text-align: center;
}

.cta-section h3 {
    color: #179488;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: #21867a;
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.cta-section .btn-primary {
    background: #429488;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 16px 36px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 8px;
    cursor: pointer;
    display: inline-block;
}

.cta-section .btn-primary:hover {
    background: #21867a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* ==============================
   10. Contact Section
   ============================== */
.contact-figma {
    position: relative;
    padding-top: 32px !important;
    background: transparent;
    overflow: visible;
    width: 100%;
    border: 3px dashed teal !important;
}

.contact-figma::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    background: url('/images/wave-bg.jpg') center/cover no-repeat;
    z-index: -1;
    opacity: 0.95;
}

.contact-figma .section-header,
.contact-form-iframe,
.form-disclaimer {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.contact-figma .section-subtitle {
    margin-bottom: 12px !important;
}

.contact-form-iframe {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 820px;
    border: none;
    margin: 0 auto;
}

.form-disclaimer {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    #JotForm251794356377167 {
        max-width: 100vw !important;
        width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .contact-figma {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .contact-form-iframe {
        height: 540px;
        padding: 0;
    }
    .contact-figma .section-header,
    .form-disclaimer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==============================
   11. Footer
   ============================== */
.footer {
    background: #fff;
    text-align: center;
    font-size: 1rem;
    padding: 32px 0 0 0;
    color: var(--primary);
    border-top: 1px solid #e0e0e0;
}

.footer .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.footer-brand img {
    height: 48px !important;
    width: auto;
    margin-bottom: 0;
}

.footer-brand-name {
    font-family: 'Roboto', 'Inter', Arial, sans-serif;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 28px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover,
.footer-link:focus {
    color: #21867a;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 24px;
    padding-bottom: 24px;
}

.footer-copyright {
    color: #21867a;
    font-size: 0.98rem;
    margin: 0;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    .footer-links {
        gap: 16px;
        font-size: 0.98rem;
    }
    .footer-brand {
        font-size: 1rem;
    }
}

/* ==============================
   12. Media Queries
   ============================== */
@media (max-width: 900px) {
    .hero-figma {
        background-size: 100% 100%;
        background-repeat: no-repeat;
        padding-bottom: 40px; /* Reduced padding for medium screens */
    }

    .hero-figma-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .hero-figma-image {
        margin-left: 0;
        margin-top: 2.5rem;
    }
    .hero-device-img {
        max-width: 320px;
        width: 100%;
        margin-bottom: -40px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    h4 { font-size: var(--font-size-lg); }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 100%;
    }

    .section {
        padding: 40px 20px;
    }

    .about-figma {
        padding: 40px 0 !important;
    }

    .about-figma .section-header,
    .about-figma .about-description,
    .about-figma .about-text-content {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .hero-figma {
        min-height: 500px; /* Reduced from 100vh to reasonable height */
        padding-bottom: 24px;
    }
    
    .hero-figma-content {
        padding: 0 8px;
    }
    .hero-title, .hero-subtitle, .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
        white-space: normal;
    }
    .hero-title {
        font-size: 1.3rem;
        padding-top: 2.2rem;
    }
    .hero-subtitle {
        margin-top: 0.5rem;
    }
    .hero-device-img {
        max-width: 95vw;
        width: 95vw;
        margin-bottom: -24px;
    }
    .app-store-link img {
        width: 140px;
        height: auto;
    }
    .hero-figma-image {
        margin-top: 1.2rem;
    }

    /* About section mobile adjustments */
    .about-wave-bg {
        min-height: 150px; /* Ensure minimum height on mobile */
        object-fit: cover;
        object-position: center bottom;
    }

    .healthcare-providers .btn-primary {
        color: var(--primary) !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        background: #fff !important;
        border: 2px solid var(--primary) !important;
        width: auto;
        min-width: 220px;
        max-width: 320px;
        display: block;
        margin: 32px auto 0 auto;
        text-align: center;
        border-radius: 8px;
        padding: 18px 40px;
    }
    .contact-figma .section-header h2 {
        white-space: nowrap;
        font-size: 22px;
    }

    .section-title {
        font-size: 22px !important;
        line-height: 1.2;
    }
}

@media (max-width: 1100px) {
    .hero-figma {
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .hero-figma-content {
        flex-direction: column;
        align-items: center;
    }
    .hero-figma-image {
        margin-left: 0;
        margin-top: 2.5rem;
    }
    .hero-device-img {
        max-width: 320px;
        width: 100%;
        margin-bottom: -40px;
    }
}

/* ==============================
   Mobile Landscape Orientation Fix
   ============================== */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero-figma {
        min-height: unset;
        padding-bottom: 20px;
    }

    .hero-figma-content {
        padding: 20px 16px 0;
    }

    .hero-title {
        font-size: 1.5rem;
        white-space: normal;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        white-space: normal;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        margin-top: 0;
    }

    .app-store-link {
        margin-top: 1rem;
    }

    .app-store-link img {
        width: 120px;
        height: auto;
    }

    .hero-figma-image {
        margin-top: 1rem;
    }

    .hero-device-img {
        max-width: 240px;
        width: 240px;
        margin-bottom: -20px;
    }
}

/* ==============================
   13. Utility Classes
   ============================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* Full-bleed section utility */
.section--full-bleed {
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

/* ==============================
   14. Accessibility
   ============================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --primary: #00695c;
        --gray-600: #212529;
    }
}

/* ==============================
   15. Print Styles
   ============================== */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .cta-section,
    .contact-form-iframe {
        display: none !important;
    }

    .hero {
        background: none;
        color: #000;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Trusted and Secure Section */
.trusted-secure {
    /* background: #f8f9fa; */
    padding: 80px 40px;
    position: relative;
    border: 3px dashed brown !important;
}

.trusted-secure .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.trusted-secure-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    gap: 60px;
}

.trusted-secure-text {
    flex: 1;
    order: 1;
}

.trusted-secure-image {
    flex: 0 0 300px;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted-secure-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .trusted-secure-content {
        flex-direction: column;
        text-align: center;
    }

    .trusted-secure-image {
        order: 2;
        flex: 0 0 auto;
        margin-top: 30px;
    }

    .trusted-secure-text {
        order: 1;
    }
}

/* ==============================
   1. Header Navigation
   ============================== */
.header-nav {
    background: var(--primary);
    padding: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    min-height: 110px;
    height: 110px;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.nav-logo {
    height: 96px;
    max-height: 100%;
    width: auto;
    max-width: none;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
    vertical-align: middle;
    align-self: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.nav-link {
    color: white;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 8px !important;
    text-decoration-thickness: 3px !important;
    text-decoration-color: var(--secondary-dark) !important;
    background: none !important;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 6px;
    background: none;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        min-height: 60px;
        height: 60px;
    }
    .nav-logo {
        height: 44px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 18px;
    }
}

/* For Healthcare Providers & Researchers Section - Full Bleed */
.healthcare-providers {
    background: #6db0a3;
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 80px 0 !important;
    max-width: none !important;
    color: #fff;
    text-align: center;
    border: 3px dashed magenta !important;
}

.healthcare-providers .section-header {
    color: #fff;
    text-align: center;
    margin-bottom: 32px;
}

.healthcare-providers .section-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.healthcare-providers .section-subtitle {
    color: #eafaf7;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
}

.healthcare-providers > p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #fff;
    text-align: center;
    font-size: 1.15rem;
    padding: 0 40px;
}

.healthcare-providers .btn-primary {
    color: var(--primary) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: #fff !important;
    border: 2px solid var(--primary) !important;
    width: auto;
    min-width: 220px;
    max-width: 320px;
    display: block;
    margin: 32px auto 0 auto;
    text-align: center;
    border-radius: 8px;
    padding: 18px 40px;
}

.healthcare-providers .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.policy-section-item h2, .policy-section-item h3 {
    margin-top: 2.2rem;
}

.policy-list ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-list ul li {
    margin-bottom: 0.5rem;
}

/* FAQ Accordion Styles */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.faq-item {
    margin-bottom: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-dark);
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.faq-question:after {
    content: '\25BC';
    margin-left: 16px;
    font-size: 1.1rem;
    color: var(--primary);
    transition: transform 0.2s;
    flex-shrink: 0;
    position: static;
}

.faq-question[aria-expanded="true"]:after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 18px 24px 20px 24px;
    background: #f8f9fa;
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.7;
    border-top: none;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .faq-list {
        max-width: 100%;
        padding: 0 8px;
    }
    .faq-question, .faq-answer {
        padding: 14px 12px;
        font-size: 1rem;
    }
}

.section h1 {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    color: #222;
    line-height: 1.2;
    position: relative;
}

.faq-title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b968f 0%, #7ed6c1 100%);
    border-radius: 2px;
    margin: 0.5rem auto 2.5rem auto;
    opacity: 0.18;
}

/* Remove debug section borders */
.hero-figma, .about-figma, .how-it-works, .why-testing-matters, .what-boca-measures, .trusted-secure, .healthcare-providers, .contact-figma, section, .section {
    border: none !important;
}

/* Hamburger menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin-left: 12px;
    z-index: 120;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
}
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary);
}
.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(66, 148, 136, 0.98) !important; /* Debug: teal overlay, nearly opaque */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
        padding: 2rem 0;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-link {
        color: #fff;
        font-size: 1.5rem;
        padding: 1rem 2rem;
        font-weight: 500;
        display: block;
        text-align: center;
        border-radius: 8px;
        min-width: 200px;
        border-bottom: none;
    }
    .nav-link:hover,
    .nav-link:focus {
        background-color: rgba(255,255,255,0.1);
        transform: translateX(10px);
    }
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1101;
        background: none;
        border: none;
        width: 48px;
        height: 48px;
        cursor: pointer;
        padding: 12px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        margin: 0 auto 4px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.2s;
        position: relative;
    }
    .mobile-menu-toggle span:last-child {
        margin-bottom: 0;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (min-width: 901px) {
    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        align-items: center;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 40px;
        height: auto;
        width: auto;
        transform: none !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Overlay mobile nav menu like boca-info-site */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .header-nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #429488;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
        padding: 2rem 0;
        display: flex;
    }
    .header-nav-links.active {
        transform: translateX(0);
    }
    .nav-link {
        color: #fff;
        font-size: 1.5rem;
        padding: 1rem 2rem;
        font-weight: 500;
        display: block;
        text-align: center;
        border-radius: 8px;
        min-width: 200px;
        border-bottom: none;
    }
    .nav-link:hover,
    .nav-link:focus {
        background-color: rgba(255,255,255,0.1);
        transform: translateX(10px);
    }
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1101;
        background: none;
        border: none;
        width: 48px;
        height: 48px;
        cursor: pointer;
        padding: 12px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        margin: 0 auto 4px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.2s;
        position: relative;
    }
    .mobile-menu-toggle span:last-child {
        margin-bottom: 0;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (min-width: 901px) {
    .header-nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        align-items: center;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 40px;
        height: auto;
        width: auto;
        transform: none !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
}

.section ul, .section ol, .container ul, .container ol, .policy-section-item ul, .policy-section-item ol {
    padding-left: 2em;
    margin-left: 0;
}

.privacy-summary {
    background: #f0f8f6;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
}
.privacy-summary .section-title {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}
.privacy-checklist {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.privacy-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    line-height: 1.5;
}
.privacy-checklist .checkmark {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 0.15em;
    flex-shrink: 0;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .privacy-checklist li {
        font-size: 1rem;
        gap: 0.5em;
    }
}

.step-number {
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 2.2em;
  height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  flex-shrink: 0;
  margin: 0;
  margin-left: -1.5em;
}

.app-store-link-wrapper {
  position: relative;
  display: inline-block;
}
.app-store-link.disabled {
  pointer-events: none;
  opacity: 0.7;
  filter: grayscale(0.2);
}
.coming-soon-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ffb74d;
  color: #333;
  font-size: 0.85em;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 10px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.notify-message {
  margin-top: 0.7em;
  font-size: 1.05em;
  color: var(--primary-dark);
}
.notify-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}
.notify-link:hover {
  color: var(--primary-dark);
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  align-items: center;
  justify-content: center;
}
.modal-overlay[style*="display: flex"] {
  display: flex !important;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 90vw;
  width: 350px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.7em;
  right: 1em;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.modal-content h3 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: 1.3em;
}
.modal-content p {
  font-size: 1.05em;
  color: var(--gray-700);
  margin-bottom: 0;
}
.notify-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}
.notify-link:hover {
  color: var(--primary-dark);
}

/* ==============================
   QR Code Modal Styles
   ============================== */

/* Desktop-only button */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

/* QR Trigger Button */
.qr-trigger {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 0;
    margin: 16px auto 0;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: fit-content;
}

.qr-trigger::before {
    content: '📱';
    font-size: 1.5rem;
    display: inline-block;
}

.qr-trigger:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.qr-trigger:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* QR Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.active {
    display: flex;
    opacity: 1;
}

.qr-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.qr-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-500);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.qr-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.qr-modal-close:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.qr-modal-content h3 {
    margin: 0 0 12px 0;
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 600;
}

.qr-modal-content p {
    margin: 0 0 24px 0;
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.5;
}

.qr-code-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px auto;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    display: none;
}

.qr-code-image.loaded {
    display: block;
}

.qr-loading {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.qr-loading.hidden {
    display: none;
}

.qr-modal-note {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .qr-modal-content {
        padding: 24px;
        max-width: 340px;
    }
    
    .qr-code-container {
        width: 180px;
        height: 180px;
    }
    
    .qr-code-image {
        width: 160px;
        height: 160px;
    }
}

/* Notification system styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: var(--success);
}

.notification-error {
    background: var(--error);
}

.notification-info {
    background: var(--info);
}

/* Responsive notification positioning */
@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
