/* =======================================
   Outcomes ABA – Butterfly Theme v4 + hero pill tweak
   Outcomes-first • Assent-driven • Evidence-based
   ======================================= */

:root {
    /* Brand core */
    --oa-ink: #0f172a;
    --oa-deep-plum: #35124f;
    --oa-plum: #5c2d91;
    --oa-plum-soft: #7c4bb3;

    /* Autism blue + accents */
    --oa-blue-autism: #2563eb;
    --oa-sky-soft: #e0edff;

    /* Support tones */
    --oa-lavender: #ede7ff;
    --oa-lilac-soft: #f7f3ff;
    --oa-rose-soft: #fde2f3;
    --oa-bg: #f5f5ff;
    --oa-border-soft: #d3d2ea;

    /* Neutral text */
    --oa-text: #111827;
    --oa-muted: #6b7280;

    /* Type scale */
    --fs-xs: 0.78rem;
    --fs-sm: 0.9rem;
    --fs-base: 0.96rem;
    --fs-md: 1.05rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.9rem;
    --fs-xxl: 2.5rem;

    /* Radii */
    --radius-pill: 999px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    /* Shadows */
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.13);
    --shadow-strong: 0 22px 55px rgba(24, 16, 50, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 5% 0%, rgba(124, 75, 179, 0.32), transparent 55%),
        radial-gradient(circle at 95% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
        linear-gradient(to bottom, #f7f6ff, #f5f7ff 260px, #fbfcff 100%);
    color: var(--oa-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Layout container */

.oa-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================
   Header & Navigation
   ======================================= */

.oa-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(253, 248, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(211, 210, 234, 0.8);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.oa-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 20px;
}

/* Left: logo */

.oa-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.oa-logo-mark {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 40% 60% 65% 35% / 45% 55% 55% 45%;
    background:
        radial-gradient(circle at 20% 20%, #f9f5ff, transparent 50%),
        conic-gradient(from 210deg, #7c4bb3, #2563eb, #7c4bb3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(31, 20, 61, 0.55);
}

.oa-logo-mark span {
    font-size: 1.25rem;
    color: #f9f5ff;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.45));
}

.oa-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oa-logo-name {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--oa-deep-plum);
    letter-spacing: -0.02em;
}

.oa-logo-tagline {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--oa-muted);
}

/* Right: nav + header CTA */

.oa-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Nav – desktop */

.oa-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.oa-nav a {
    font-size: var(--fs-xs);
    text-decoration: none;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding-bottom: 2px;
    position: relative;
}

.oa-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--oa-blue-autism), var(--oa-plum));
    transition: width 0.2s ease;
}

.oa-nav a:hover {
    color: var(--oa-deep-plum);
}

.oa-nav a:hover::after,
.oa-nav a.is-active::after {
    width: 100%;
}

.oa-nav a.is-active {
    color: var(--oa-deep-plum);
    font-weight: 600;
}

/* Header CTA */

.oa-header-cta {
    padding: 8px 18px;
    font-size: var(--fs-xs);
    box-shadow: 0 10px 24px rgba(55, 48, 163, 0.45);
}

/* Mobile nav toggle */

#oa-nav-toggle {
    display: none;
}

.oa-nav-toggle-label {
    display: none;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(189, 187, 223, 0.9);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #4b5563;
    background: #ffffff;
    cursor: pointer;
}

/* =======================================
   Hero
   ======================================= */

.oa-hero {
    padding: 44px 0 40px;
}

.oa-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
}

/* Hero text */

.oa-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: var(--fs-xs);
    color: var(--oa-muted);
    margin-bottom: 12px;
}

.oa-hero-title {
    font-size: var(--fs-xxl);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--oa-deep-plum);
    margin-bottom: 10px;
}

.oa-hero-subtitle {
    font-size: var(--fs-md);
    color: #374151;
    max-width: 560px;
    margin-bottom: 14px;
}

.oa-hero-tagline {
    font-size: var(--fs-base);
    color: #6b7280;
    max-width: 520px;
    margin-bottom: 20px;
}

/* Tag chips / pills */

.oa-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.oa-tag {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--oa-border-soft);
    color: #1f2937;
}

/* Optional modifiers if you use them elsewhere */
.oa-tag--blue {
    border-color: rgba(37, 99, 235, 0.4);
    background: var(--oa-sky-soft);
    color: #1e3a8a;
}

.oa-tag--plum {
    border-color: rgba(92, 45, 145, 0.45);
    background: rgba(124, 75, 179, 0.05);
    color: var(--oa-deep-plum);
}

/* HERO 4-PILL CLUSTER — unified light-blue pills */
.oa-hero-pill {
    background: #e3ebff !important;   /* soft autism blue */
    border: 1px solid #c4d3ff !important;
    color: #1f2a55 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 40, 0.04);
    font-weight: 500;
}

/* Hero actions */

.oa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.oa-hero-note {
    font-size: var(--fs-sm);
    color: var(--oa-muted);
}

/* =======================================
   Hero card – outcomes-focused, legible
   ======================================= */

.oa-hero-card {
    position: relative;
    background: #ffffff;
    border-radius: 26px;
    padding: 20px 20px 22px;
    border: 1px solid rgba(211, 210, 234, 0.95);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

/* Soft butterfly-inspired shapes, subtle */
.oa-hero-card::before,
.oa-hero-card::after {
    content: "";
    position: absolute;
    border-radius: 54% 46% 60% 40% / 50% 42% 58% 50%;
    opacity: 0.16;
    pointer-events: none;
}

.oa-hero-card::before {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -40px;
    background: radial-gradient(circle at 30% 30%, rgba(92, 45, 145, 0.8), transparent 60%);
}

.oa-hero-card::after {
    width: 210px;
    height: 210px;
    bottom: -90px;
    left: -40px;
    background: radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.8), transparent 60%);
}

.oa-hero-card-inner {
    position: relative;
    z-index: 1;
}

.oa-hero-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--oa-deep-plum);
    margin-bottom: 8px;
}

.oa-hero-card-title-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: rgba(124, 75, 179, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
}

.oa-hero-card p {
    font-size: var(--fs-sm);
    color: #374151;
    margin-bottom: 14px;
}

/* Rhythm track */

.oa-rhythm {
    margin-bottom: 12px;
}

.oa-rhythm-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6b7280;
    margin-bottom: 6px;
}

.oa-rhythm-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: var(--fs-xs);
}

.oa-rhythm-step {
    background: var(--oa-lilac-soft);
    border-radius: 14px;
    padding: 7px 9px;
    border: 1px solid var(--oa-border-soft);
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--oa-text);
}

.oa-rhythm-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c4bb3, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f9fafb;
}

.oa-hero-mini-note {
    font-size: var(--fs-xs);
    color: #6b7280;
}

/* =======================================
   Buttons
   ======================================= */

.oa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.08s ease,
        box-shadow 0.12s ease,
        color 0.12s ease;
    white-space: nowrap;
}

.oa-btn-primary {
    background: linear-gradient(135deg, var(--oa-plum), var(--oa-blue-autism));
    color: #f9fafb;
    box-shadow: 0 16px 36px rgba(55, 48, 163, 0.55);
    font-weight: 600;
}

.oa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 52px rgba(55, 48, 163, 0.7);
}

.oa-btn-ghost {
    background: #ffffff;
    border-color: rgba(189, 187, 223, 0.95);
    color: var(--oa-deep-plum);
}

.oa-btn-ghost:hover {
    background: var(--oa-lavender);
}

/* =======================================
   Trust strip
   ======================================= */

.oa-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: var(--fs-xs);
    color: #4b5563;
}

.oa-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px dashed rgba(189, 187, 223, 0.9);
}

.oa-trust-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--oa-blue-autism), var(--oa-plum));
}

/* =======================================
   Sections & headings
   ======================================= */

.oa-section {
    padding: 64px 0;
}

.oa-section-alt {
    background: #ffffff;
}

.oa-section-header {
    margin-bottom: 26px;
}

.oa-section-eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--oa-muted);
    margin-bottom: 8px;
}

.oa-section-title {
    font-size: var(--fs-xl);
    letter-spacing: -0.02em;
    color: var(--oa-deep-plum);
    margin-bottom: 4px;
    position: relative;
    display: inline-block;
}

.oa-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 48px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--oa-blue-autism), var(--oa-plum));
}

.oa-section-intro {
    max-width: 640px;
    font-size: var(--fs-base);
    color: #4b5563;
    margin-top: 14px;
}

.oa-section-header--center {
    text-align: center;
}

.oa-section-header--center .oa-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.oa-section-header--center .oa-section-intro {
    margin: 14px auto 0;
}

/* =======================================
   Services
   ======================================= */

.oa-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.oa-service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--oa-border-soft);
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.oa-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(31, 41, 55, 0.21);
    border-color: rgba(92, 45, 145, 0.7);
}

.oa-service-label {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6b7280;
    gap: 6px;
    margin-bottom: 6px;
}

.oa-service-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--oa-blue-autism);
}

.oa-service-card h3 {
    font-size: var(--fs-lg);
    color: var(--oa-deep-plum);
    margin-bottom: 6px;
}

.oa-service-card p {
    font-size: var(--fs-base);
    color: #4b5563;
    margin-bottom: 10px;
}

.oa-service-list {
    list-style: disc;
    padding-left: 18px;
    font-size: var(--fs-sm);
    color: #4b5563;
}

.oa-service-list li + li {
    margin-top: 4px;
}

/* =======================================
   Approach
   ======================================= */

.oa-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.oa-step {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 16px 18px;
    border: 1px solid var(--oa-border-soft);
}

.oa-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--oa-plum-soft), var(--oa-blue-autism));
    color: #f9fafb;
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 6px;
}

.oa-step h3 {
    font-size: var(--fs-md);
    color: var(--oa-deep-plum);
    margin-bottom: 4px;
}

.oa-step p {
    font-size: var(--fs-sm);
    color: #4b5563;
}

/* =======================================
   Why Outcomes
   ======================================= */

.oa-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: flex-start;
}

.oa-values-list {
    list-style: none;
    margin: 16px 0 0;
}

.oa-values-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--fs-base);
    color: #4b5563;
    margin-bottom: 10px;
}

.oa-values-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(124, 75, 179, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    color: var(--oa-deep-plum);
}

/* Side card */

.oa-side-card {
    background: linear-gradient(145deg, #ffffff, #f4f5ff);
    border-radius: var(--radius-md);
    padding: 16px 18px 18px;
    border: 1px solid var(--oa-border-soft);
    font-size: var(--fs-sm);
    color: #4b5563;
    box-shadow: 0 12px 26px rgba(148, 163, 184, 0.26);
}

.oa-side-card h3 {
    color: var(--oa-deep-plum);
    font-size: var(--fs-md);
    margin-bottom: 6px;
}

.oa-side-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6b7280;
    margin-bottom: 6px;
}

.oa-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.oa-metric {
    padding: 7px 9px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px dashed rgba(189, 187, 223, 0.9);
    font-size: var(--fs-xs);
}

/* =======================================
   Contact
   ======================================= */

.oa-contact {
    max-width: 780px;
}

.oa-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: flex-start;
}

.oa-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.oa-form label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #111827;
}

.oa-form input,
.oa-form textarea,
.oa-form select {
    border-radius: 12px;
    border: 1px solid rgba(189, 187, 223, 0.95);
    padding: 9px 10px;
    font-size: var(--fs-base);
    background: #ffffff;
    resize: vertical;
}

.oa-form input:focus,
.oa-form textarea:focus,
.oa-form select:focus {
    outline: none;
    border-color: var(--oa-blue-autism);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5);
}

.oa-contact-note {
    font-size: var(--fs-sm);
    color: #6b7280;
    margin-top: 4px;
}

.oa-contact-sidebar {
    font-size: var(--fs-sm);
    color: #4b5563;
}

.oa-contact-sidebar p + p {
    margin-top: 6px;
}

.oa-contact-highlight {
    font-weight: 600;
    color: var(--oa-deep-plum);
}

/* =======================================
   Footer
   ======================================= */

.oa-footer {
    border-top: 1px solid var(--oa-border-soft);
    background: #ffffff;
    padding: 14px 0 18px;
}

.oa-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: var(--fs-xs);
    color: #6b7280;
}

.oa-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.oa-footer-links a {
    text-decoration: none;
    color: #6b7280;
}

.oa-footer-links a:hover {
    color: var(--oa-deep-plum);
}

/* =======================================
   Responsive
   ======================================= */

@media (max-width: 880px) {
    .oa-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .oa-hero-card {
        max-width: 480px;
        margin: 0 auto;
    }

    .oa-two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .oa-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .oa-header-inner {
        padding: 8px 0;
    }

    .oa-header-right {
        gap: 10px;
    }

    .oa-header-cta {
        display: none; /* keep top bar clean on small screens */
    }

    .oa-nav {
        display: none;
        position: absolute;
        top: 56px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
        background: #ffffff;
        border-radius: 18px;
        border: 1px solid rgba(211, 210, 234, 0.98);
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
    }

    .oa-nav a {
        font-size: var(--fs-xs);
    }

    .oa-nav-toggle-label {
        display: inline-flex;
    }

    #oa-nav-toggle:checked + .oa-nav-toggle-label + .oa-nav {
        display: flex;
    }

    .oa-hero {
        padding-top: 32px;
    }

    .oa-hero-title {
        font-size: 2.2rem;
    }

    .oa-section {
        padding: 48px 0;
    }

    .oa-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .oa-rhythm-track {
        grid-template-columns: 1fr;
    }

    .oa-hero-card {
        padding: 18px 16px 20px;
    }

    .oa-trust-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}
