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

:root {
    /* Brand Colors */
    --primary: #009688;
    --primary-dark: #00675b;
    --secondary: #ffb74d;
    --secondary-dark: #f57c00;

    /* 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: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-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;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family), sans-serif;
    line-height: 1.7; /* Increased from 1.6 for better readability */
    color: #212529; /* Darker for better contrast (was #333) */
    margin: 0;
    padding: 0;
    font-size: 1.125rem; /* 18px - optimal for older readers */
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Page Background */
.page-bg {
    background: #f5f1e8;
    min-height: 100vh;
    padding: 1rem;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 3rem 5rem; /* increased padding for more breathing room */
    width: 100%;
    max-width: 100vw;
}

.main-container ul {
    margin-left: 0;
    padding-left: 1.2em;
}

.main-container li {
    padding-left: 0;
}

.main-container ol {
    margin-left: 0;
    padding-left: 1.2em;
}

/* Header Styles */
header {
    background: none;
    padding: 0;
}

/* Hero Section - even more compact for desktop */
.hero {
    background-image: url('/images/headline-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 2rem 2.5rem 2rem; /* increased top padding to lower content more */
    text-align: center;
    position: relative;
    min-height: 320px; /* increased to accommodate lowered content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgb(0 0 0 / 50%); /* Increased from 40% to 50% for better contrast */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0.95;
    line-height: 1.4;
}

.hero p {
    margin: 0.5rem 0;
    color: var(--white);
}

.hero-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hero .cta {
    margin-top: 1rem;
}

.hero-content {
    display: flex;
    align-items: flex-start; /* move content to top */
    justify-content: center;
    gap: 2rem;
    max-width: 1300px; /* increased for more room */
    margin: 0 auto;
    flex-wrap: wrap;
    width: 100%;
}

.hero-text {
    flex: 1 1 420px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 3rem;
    text-align: center;
}

.hero-image {
    flex: 1 1 180px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

/* Hero CTA Container */
.hero-cta-container {
    text-align: center;
    width: 100%;
    margin-top: 2rem;
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 2.5rem;
}

/* Section Styles */
.section {
    padding: 2.5rem 3rem;
    margin: 0 auto 3rem;
    width: 100%;
}

.section + .section {
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
}

.section h1 {
    text-align: center;
    color: var(--primary);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xl);
}

.section h2 {
    margin: 0 0 var(--spacing-md);
    color: var(--primary);
    position: relative;
    padding-bottom: 0.75rem;
}

/* FAQ Section Headers */
.faq-section-header {
    font-size: var(--font-size-xl);
    color: var(--primary);
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--gray-200);
    font-weight: 600;
}

.faq-section-header:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Provider Platform CTA */
.provider-platform-cta {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.provider-platform-cta p {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

.provider-platform-cta .btn-primary {
    margin-top: var(--spacing-sm);
}

.provider-platform-cta + .faq-section-header {
    margin-top: var(--spacing-xl);
}

/* "Who Can Use BoCA" section styling */
#who-its-for {
    padding-bottom: 0;
    margin-bottom: 0;
}

#who-its-for h1 {
    text-align: center;
    color: var(--primary);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

/* Remove dividers and reduce padding for audience sections */
#who-its-for + #professionals,
#professionals + #researchers,
#researchers + #individuals {
    border-top: none;
    padding-top: 0.5rem;
}

/* No padding above Healthcare Providers since it's right after the heading */
#who-its-for + #professionals {
    padding-top: 0;
}

/* Mobile: Keep "Who Can Use BoCA" sections together as one card */
@media (max-width: 700px) {
    /* Reduce padding on the heading section */
    #who-its-for {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    /* Remove gap between Who Can Use BoCA and Healthcare Providers */
    #who-its-for + #professionals {
        margin-top: 0;
        padding-top: 0;
    }

    /* Remove gaps between the three audience sections */
    #professionals,
    #researchers,
    #individuals {
        margin-top: 0;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    /* First section (Healthcare Providers) has no top padding since it's right after heading */
    #who-its-for + #professionals {
        padding-top: 0;
    }

    /* Last section (Individuals) needs bottom padding */
    #individuals {
        padding-bottom: 2rem;
    }
}

@media (max-width: 900px) {
    .section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

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

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-base); }

p {
    margin: 0 0 var(--spacing-md);
    color: var(--gray-700); /* Darker for better contrast (was gray-600) */
    font-size: 1.125rem; /* 18px for body text */
    line-height: 1.7;
}


/* Links */
a {
    color: var(--primary);
    text-decoration: underline; /* Added underline for better visibility */
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration-thickness: 2px;
}

/* Utility class for links without underlines */
a.no-underline,
.btn-primary,
.btn-secondary {
    text-decoration: none;
}

/* 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: 1.125rem; /* Increased from 1rem for better readability */
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 48px; /* Increased from 44px for easier clicking */
    width: 100%;
    max-width: 300px;
}

.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);
    color: var(--white);
}

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

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

/* Form Styles */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

/* Disclaimer Section */
.disclaimer-section {
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

.disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-500);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
}

.disclaimer-text strong {
    font-weight: 600;
    color: var(--gray-600);
    font-style: normal;
}

@media (max-width: 767px) {
    .disclaimer-section {
        padding: var(--spacing-md) var(--spacing-md);
    }

    .disclaimer-text {
        font-size: 0.8rem;
    }
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    margin: 0 0.5rem;
    text-decoration: none; /* No underline for footer links */
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.cta-section h3 {
    color: var(--primary);
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.cta-section p {
    margin: 0 auto 1.5rem;
    color: #495057;
    font-size: 1.1rem;
    text-align: center;
}

/* CTA Subtext and App Note */
.cta-subtext {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
}

.cta-app-note {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

.app-store-section {
    margin-top: 1.5rem;
}

.app-store-badge {
    text-decoration: none;
    display: inline-block;
}

.app-store-badge img {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 767px) {
    .app-store-badge img {
        height: 50px;
    }
}

.app-store-badge:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.cta-section .btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem; /* Slightly larger for CTA buttons */
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px rgb(0 150 136 / 20%);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgb(0 150 136 / 30%);
}

/* Stacked CTA Section */
.cta-section-stacked {
    margin-top: 1rem;
}

/* Validation Note */
.validation-note {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--gray-600);
}

/* Validation List Items */
#validation ol li {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

#validation ol li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Feature Link */
.feature-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Cross-Sell Banner */
.cross-sell-banner {
    text-align: center;
}

.cross-sell-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.cross-sell-banner p {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.cross-sell-banner a {
    font-weight: 600;
}

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

.faq-item {
    margin: 0 0 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1rem;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    position: relative;
    min-height: 48px;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"]::after {
    content: '−';
}

.faq-answer {
    padding: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-fast);
    opacity: 0;
}

.faq-answer:not([hidden]) {
    padding: 1rem;
    max-height: 2000px;
    opacity: 1;
}

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

/* Contact Info */
.contact-info {
    background: var(--gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--gray-200);
}

.contact-info p {
    margin: 0 0 var(--spacing-sm);
}

.contact-info p:last-child {
    margin: 0;
}

/* Media Queries - Mobile First Approach */

/* Small devices adjustments */
@media (min-width: 600px) {
    .page-bg {
        padding: 2rem;
    }
}

/* Tablet styles (768px and up) */
@media (min-width: 768px) {
    .container {
        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 {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero {
        padding: 4rem 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Mobile-only styles */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 1rem;
    }

    /* Ensure validation section list doesn't overflow on mobile */
    #validation ol {
        padding-left: 1em;
        margin-left: 0;
    }

    #validation li {
        padding-left: 0.2em;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #validation a {
        word-break: break-all;
        overflow-wrap: break-word;
        display: inline-block;
        max-width: 100%;
    }

    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-image img {
        max-width: 90vw;
    }
}

/* Hide hero image on very small screens (375px and below) */
@media (max-width: 425px) {
    .hero-image {
        display: none;
    }
}

/* Smaller container adjustments */
@media (max-width: 1500px) {
    .main-container {
        padding: 2rem 3rem;
    }
}

@media (max-width: 700px) {
    .page-bg {
        padding: 0;
    }

    .main-container {
        padding: 0;
        background: transparent; /* Remove white card background on mobile */
        box-shadow: none; /* Remove shadow on mobile */
        border-radius: 0; /* Remove rounded corners on mobile */
    }

    /* Remove excess padding from sections on mobile */
    .section {
        background: #fff;
        margin-bottom: 0;
        padding: 2rem 1rem; /* Reduced horizontal padding */
        border-radius: 0;
    }

    /* Add separation between sections */
    .section + .section {
        margin-top: 0;
        border-top: none;
    }

    /* Contact section - minimal padding */
    #contact.section {
        background: #fff;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 2rem 0; /* No horizontal padding */
    }

    /* Add padding only for text elements */
    #contact.section > h2,
    #contact.section > p,
    #contact.section > .form-disclaimer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Form wrapper - full width with padding for centering */
    .contact-form-iframe {
        width: 100%;
        margin: 0;
        padding: 0 1.5rem; /* Add padding to center form */
        background: transparent;
        border: none;
    }

    /* JotForm iframe - full width */
    .contact-form-iframe iframe {
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
    }
    .footer-brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
        margin-bottom: 0.25rem;
    }
    .footer-brand img {
        height: 44px !important;
        margin-bottom: 0.1rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-content {
        gap: 2px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .footer-links {
        margin-bottom: 0.25rem;
        font-size: 1rem;
    }
    .footer-bottom {
        margin-top: 0.25rem;
        padding-bottom: 0.5rem;
    }
    .footer {
        padding: 1rem 0 0 0;
    }
}

/* Desktop styles (1024px and up) */
@media (min-width: 1024px) {
    .hero {
        padding-top: 2.5rem;
        padding-bottom: 1rem;
        min-height: 200px;
        align-items: center;
    }
    .hero-content {
        max-width: 1500px;
    }
    .hero h1 {
        white-space: nowrap;
        font-size: 2.2rem;
        line-height: 1.1;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .hero-text {
        align-items: center;
        margin-top: 2rem;
        text-align: center;
    }
}

@media (min-width: 1400px) {
    .hero h1 {
        font-size: 2rem;
        max-width: 1200px;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
    
    .hero h1 {
        white-space: nowrap;
        font-size: 2.8rem;
        line-height: 1.1;
    }
}

/* Extra Large Desktop (1536px and up) */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        white-space: nowrap;
        font-size: 3rem;
        line-height: 1.1;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* High DPI Displays */
@media (min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Add any high-DPI specific styles here */
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    :root {
        --primary: #00675b;
        --gray-600: #000;
        --gray-800: #000;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-cta,
    .contact-form,
    .mobile-menu-toggle,
    nav {
        display: none;
    }

    .hero {
        background: white;
        padding: 1rem 0;
    }

    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(0, 150, 136, 0.2);
}

/* Remove outline for mouse users */
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Skip link for keyboard accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--primary-dark);
    outline-offset: 3px;
}

/* Animation Keyframes */
@keyframes progress {
    0% { width: 40%; }
    100% { width: 80%; }
}

.section-transition {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Features List for Individuals Section */
.features-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-left: 2rem;
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 32px;
  padding-top: 2px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

.feature-content {
  flex: 1;
}

.feature-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.3rem;
  line-height: 1.4;
}

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

.btn-cta {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1.75rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgb(255 183 77 / 20%);
  display: inline-block;
  cursor: pointer;
  text-align: center;
  min-height: 60px;
  line-height: 1;
}
.btn-cta:hover,
.btn-cta:focus {
  background: var(--secondary-dark);
  color: #fff;
  box-shadow: 0 6px 12px rgb(255 183 77 / 30%);
  outline: none;
}

#contact.section {
    text-align: center;
}
#contact.section > h2,
#contact.section > p,
#contact.section > script,
#contact.section > .form-disclaimer {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Form Disclaimer */
.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    font-style: italic;
}

img, .hero-image img, .hero-main-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.contact-form-iframe {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 600px) {
    .contact-form-iframe {
        padding: 0 !important;
        margin: 0 !important;
    }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-brand img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.footer-links-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 1.5rem 0 0.5rem 0;
}
.footer-link {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--primary-dark);
}

/* --- Begin nav bar styles copied from boca-app-site --- */
.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;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 1101;
    position: relative;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hamburger-bar {
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        width: 100vw;
        padding: 24px 0 24px 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-link {
        width: 100vw;
        padding: 18px 32px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: right;
    }
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
        background: #fff;
        margin: 4px 0;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    .mobile-menu-toggle span:last-child {
        margin-bottom: 0;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

@media (min-width: 901px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

body.menu-open {
    overflow: hidden;
}
/* --- End nav bar styles copied from boca-app-site --- */

@media (max-width: 900px) {
    .main-container {
        padding: 2rem 2.5rem;
    }
}

@media (max-width: 600px) {
    .main-container {
        padding: 1.5rem 1.5rem;
    }
}

/* Comparison Table Styles */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 1rem;
    min-width: 600px;
}

.comparison-table thead {
    background: var(--primary);
    color: var(--white);
}

.comparison-table th {
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    border-bottom: 3px solid var(--primary-dark);
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background-color: var(--gray-50);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 1rem 1.5rem;
    color: var(--gray-800);
    font-size: 1rem;
    line-height: 1.6;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table td:not(:first-child) {
    text-align: center;
}

.comparison-table .checkmark {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
}

.comparison-table .xmark {
    color: var(--error);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
}

/* Table Footnote */
.table-footnote {
    margin-top: var(--spacing-lg);
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    font-style: italic;
}

.table-footnote a {
    font-weight: 500;
    font-style: normal;
}

/* Mobile responsiveness for comparison table */
@media (max-width: 767px) {
    .comparison-table-wrapper {
        margin: var(--spacing-lg) -1rem;
        border-radius: 0;
    }

    .comparison-table {
        min-width: 100%;
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.875rem 0.75rem;
    }

    .comparison-table th {
        font-size: 1rem;
    }

    .comparison-table .checkmark,
    .comparison-table .xmark {
        font-size: 1.25rem;
    }

    .table-footnote {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: 140px;
    }
}

/* Domains Grid Styles */
.domains-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    color: var(--gray-700);
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.domain-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--gray-200);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

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

.domain-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.domain-icon svg {
    width: 100%;
    height: 100%;
}

/* Domain-specific colors */
.domain-memory .domain-icon {
    background-color: #FFE599;
    color: #7A6000;
}

.domain-attention .domain-icon {
    background-color: #B6D7A8;
    color: #38761D;
}

.domain-language .domain-icon {
    background-color: #9FC5E8;
    color: #1155CC;
}

.domain-executive .domain-icon {
    background-color: #B4A7D6;
    color: #351C75;
}

.domain-math .domain-icon {
    background-color: #A2C4C9;
    color: #134F5C;
}

.domain-visuospatial .domain-icon {
    background-color: #F9CB9C;
    color: #B45F06;
}

.domain-orientation .domain-icon {
    background-color: #F4CCCC;
    color: #A61C00;
}

.domain-recall .domain-icon {
    background-color: #D5A6BD;
    color: #741B47;
}

.domain-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 var(--spacing-sm);
    line-height: 1.3;
}

.domain-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.domains-footer {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Mobile - 1 column */
@media (max-width: 700px) {
    .domains-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin: var(--spacing-xl) 0;
    }

    .domain-card {
        padding: var(--spacing-lg);
        min-height: 180px;
    }

    .domain-icon {
        width: 64px;
        height: 64px;
        margin-bottom: var(--spacing-sm);
    }

    .domain-name {
        font-size: 1.15rem;
    }

    .domain-description {
        font-size: 0.9rem;
    }
}

/* ========================================
   Testimonial Carousel
   ======================================== */

.testimonials-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-800);
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-3xl);
}

.testimonial-track {
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    text-align: center;
    padding: var(--spacing-2xl);
}

.testimonial-quote {
    font-size: var(--font-size-xl);
    line-height: 1.8;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    left: -2rem;
    top: -1rem;
    opacity: 0.2;
}

.testimonial-author {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.testimonial-affiliation {
    font-size: var(--font-size-base);
    color: var(--gray-600);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    padding: 0;
}

.carousel-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.carousel-nav:hover svg path {
    stroke: var(--white);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.carousel-nav svg path {
    stroke: var(--gray-700);
    transition: stroke var(--transition-normal);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.carousel-dot:hover {
    background: var(--gray-400);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 767px) {
    .testimonials-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .testimonial-carousel {
        padding: 0 var(--spacing-xl);
    }

    .testimonial-content {
        padding: var(--spacing-lg);
    }

    .testimonial-quote {
        font-size: var(--font-size-lg);
    }

    .testimonial-quote::before {
        font-size: 3rem;
        left: -1rem;
        top: -0.5rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .testimonial-carousel {
        padding: 0;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .carousel-prev {
        left: -8px;
    }

    .carousel-next {
        right: -8px;
    }

    .testimonial-quote {
        font-size: var(--font-size-base);
    }

    .testimonial-author {
        font-size: var(--font-size-base);
    }

    .testimonial-affiliation {
        font-size: var(--font-size-sm);
    }
}
