:root {
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --secondary: #2563eb;
    --accent: #38bdf8;
    --tynet-red: #1d4ed8;
    --tynet-red-dark: #1e40af;
    --behavioral-blue: #1d4ed8;
    --behavioral-teal: #2563eb;
    --behavioral-purple: #3b82f6;
    --behavioral-pink: #60a5fa;
    --behavioral-green: #2563eb;
    --clinical-blue: #1e40af;
    --clinical-green: #2563eb;
    --clinical-teal: #2563eb;
    --clinical-purple: #3b82f6;
    --clinical-pink: #60a5fa;
    --med-red: #1d4ed8;
    --bs-primary: #1d4ed8;
    --bs-primary-rgb: 29, 78, 216;
}

html {
    scroll-padding-top: 6rem;
}

img {
    max-width: 100%;
}

header {
    border-bottom: 1px solid rgba(29, 78, 216, 0.1);
}

.compliance-sources {
    margin: 2rem auto 0;
    max-width: 70ch;
    color: #475569;
    text-align: center;
}

.compliance-sources a {
    color: #1d4ed8;
}

.cta-button,
.cta-button-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

::selection {
    color: #ffffff;
    background: #1d4ed8;
}

:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

a:focus-visible {
    outline-color: #38bdf8;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

@media (min-width: 1101px) {
    .navbar {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .nav-links li {
        margin-left: 16px;
    }
}

@media (max-width: 1100px) {
    .mobile-menu-btn {
        display: block;
        min-width: 40px;
        min-height: 44px;
        font-family: Arial, sans-serif;
        line-height: 1;
    }

    .mobile-menu-btn i {
        display: none;
    }

    .mobile-menu-btn::before {
        content: "\2630";
    }

    .mobile-menu-btn[aria-expanded="true"]::before {
        content: "\00d7";
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links {
        display: none;
        width: min(280px, 85vw);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    body {
        overflow-wrap: anywhere;
    }

    .contact-wrapper > *,
    .success-grid > * {
        min-width: 0;
    }

    .contact-form-container {
        padding: 24px;
    }

    .support-column,
    .nursing-notes,
    .tool-details,
    .client-management,
    .assessment-admin,
    .blog-layout,
    .intro-content,
    .challenge-solution,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .support-card,
    .notes-sidebar,
    .note-form,
    .tool-info,
    .tool-scoring {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .support-card {
        padding: 24px;
    }

    .age-header,
    .chart-header,
    .chart-key {
        flex-wrap: wrap;
        gap: 12px;
    }

    .checklist li {
        flex-wrap: wrap;
        gap: 10px;
    }

    .checklist-text {
        min-width: 0;
    }

    .checklist-status {
        margin-left: 34px;
    }

    .tracking-chart,
    .app-preview,
    .app-screen {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .app-screen img {
        height: auto;
    }

    .app-screen > div {
        max-width: 100%;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .compliance-badges > * {
        max-width: 100%;
        white-space: normal;
    }

    .compliance-badges > * > * {
        min-width: 0;
    }

    .calendly-inline-widget {
        min-width: 0 !important;
        max-width: 100%;
        overflow-x: auto;
    }

    .success-highlights {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    }

    .testimonials {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    }
}

@media (max-width: 992px) {
    .success-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: top left;
        margin-bottom: -12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
