:root {
    color-scheme: light;
    --bg: #f4f7f4;
    --surface: #ffffff;
    --surface-alt: #e8f1ed;
    --surface-warm: #fbf8f1;
    --text: #24313a;
    --muted: #657579;
    --line: #d6e0dc;
    --accent: #2f6f64;
    --accent-2: #466a9f;
    --warm: #c58b58;
    --ink: #17302b;
    --shadow: 0 18px 46px rgb(23 48 43 / 8%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.62;
    margin: 0;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgb(70 106 159 / 42%);
    outline-offset: 3px;
}

.site-header {
    align-items: center;
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 5vw;
    position: sticky;
    top: 0;
    z-index: 10;
}

@supports (backdrop-filter: blur(12px)) {
    .site-header {
        backdrop-filter: blur(12px);
    }
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-weight: 850;
    gap: 0.72rem;
    min-width: 0;
    text-decoration: none;
}

.brand > span:last-child {
    overflow-wrap: anywhere;
}

.brand-mark {
    color: var(--accent);
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    width: 38px;
}

.brand-logo {
    display: block;
    height: 38px;
    max-width: 190px;
    object-fit: contain;
    width: auto;
}

.brand-glyph {
    display: block;
    height: 38px;
    width: 38px;
}

.brand-glyph-ground {
    fill: var(--accent);
}

.brand-glyph-leaf {
    fill: #ffffff;
}

.brand-glyph-stem,
.brand-glyph-line {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-width: 3.2;
}

.brand-glyph-dot {
    fill: var(--warm);
}

.site-header nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.site-header nav a,
.site-footer nav a {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 0.94rem;
    font-weight: 760;
    min-height: 38px;
    text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
    color: var(--accent);
}

.site-hero {
    align-items: flex-end;
    background:
        linear-gradient(90deg, rgb(17 39 35 / 88%) 0%, rgb(17 39 35 / 66%) 42%, rgb(17 39 35 / 18%) 100%),
        url("practice-hero.webp") center / cover no-repeat;
    border-bottom: 1px solid var(--line);
    display: flex;
    min-height: min(760px, 72svh);
    padding: clamp(4.2rem, 8vw, 6.5rem) 5vw clamp(3rem, 6vw, 4.4rem);
}

.hero-copy {
    color: #ffffff;
    max-width: 780px;
}

.eyebrow {
    color: var(--warm);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

h1 {
    color: var(--ink);
    font-size: clamp(2.8rem, 6.4vw, 5.6rem);
    line-height: 1;
    margin: 0;
    max-width: 1000px;
}

.hero-copy h1 {
    color: #ffffff;
    max-width: 860px;
    text-shadow: 0 2px 18px rgb(0 0 0 / 24%);
}

.summary {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.76;
    max-width: 740px;
}

.hero-copy .summary {
    color: rgb(255 255 255 / 86%);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    margin: 1.2rem 0 0;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.button {
    align-items: center;
    border: 1px solid var(--accent);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.05rem;
    text-decoration: none;
}

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.button.secondary {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--accent);
}

.therapy-home .button.secondary {
    background: rgb(255 255 255 / 12%);
    border-color: rgb(255 255 255 / 68%);
    color: #ffffff;
}

.button:hover {
    transform: translateY(-1px);
}

.practice-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-strip div {
    display: grid;
    gap: 0.24rem;
    min-height: 118px;
    padding: 1.45rem 5vw;
}

.practice-strip strong {
    color: var(--ink);
    font-size: 1rem;
}

.practice-strip span {
    color: var(--muted);
    font-size: 0.94rem;
    max-width: 330px;
}

.page-shell {
    margin: 0 auto;
    max-width: 1080px;
    padding: 4.2rem 5vw 6rem;
}

.page-shell-landing,
.page-shell-campaign,
.page-shell-service,
.page-shell-contact {
    max-width: 1220px;
}

.page-shell-article,
.page-shell-narrow {
    max-width: 820px;
}

.page-heading {
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
    padding-bottom: clamp(1.3rem, 4vw, 2rem);
}

.page-heading .eyebrow {
    color: var(--accent);
}

.page-heading h1 {
    font-size: clamp(2.3rem, 5.2vw, 4.8rem);
    max-width: 980px;
}

.page-heading .summary {
    margin-bottom: 0;
}

.content-blocks,
.home-blocks,
.template-slot {
    display: grid;
    gap: 1.35rem;
}

.home-blocks {
    margin: 0 auto;
    max-width: 1180px;
    padding: 4.2rem 5vw 6rem;
    width: 100%;
}

.rich-text {
    color: var(--text);
    font-size: 1.04rem;
}

.rich-text > * + * {
    margin-top: 1rem;
}

.rich-text h2,
.rich-text h3 {
    color: var(--ink);
    line-height: 1.2;
}

.rich-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.rich-text h3 {
    font-size: 1.3rem;
}

.rich-text a {
    color: var(--accent);
    font-weight: 800;
}

.rich-text img {
    border-radius: 8px;
    display: block;
    height: auto;
    max-width: 100%;
}

.rich-text blockquote {
    background: var(--surface-alt);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    color: var(--ink);
    margin-left: 0;
    padding: 1rem 1.25rem;
}

.rich-text table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.rich-text td,
.rich-text th {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 1rem;
    vertical-align: top;
}

.rich-text td > *:first-child,
.rich-text th > *:first-child {
    margin-top: 0;
}

.content-hero,
.content-teaser,
.content-quote,
.content-cta,
.content-media-text,
.content-form,
.content-feature-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    width: 100%;
}

.content-hero,
.content-cta {
    background: var(--ink);
    color: #ffffff;
}

.content-cta {
    border-color: rgb(23 48 43 / 28%);
}

.content-cta.has-image {
    overflow: hidden;
    padding: 0;
}

.content-cta-image {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.content-cta-body {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.content-cta:not(.has-image) .content-cta-body {
    padding: 0;
}

.content-hero h2,
.content-cta h2 {
    color: #ffffff;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin: 0;
}

.content-hero p,
.content-cta p {
    color: rgb(255 255 255 / 80%);
    margin: 0;
}

.content-teaser h2,
.content-feature-grid h2,
.content-media-text h2,
.content-form h2 {
    color: var(--ink);
    font-size: 1.28rem;
    line-height: 1.22;
    margin: 0 0 0.65rem;
}

.content-teaser p,
.content-feature-grid p,
.content-media-text p,
.content-form p {
    color: var(--muted);
    margin: 0;
}

.content-teaser-label {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.text-link {
    color: var(--accent);
    display: inline-flex;
    font-weight: 850;
    margin-top: 1rem;
    text-decoration: none;
}

.content-quote {
    background: var(--surface-warm);
}

.content-quote blockquote {
    color: var(--ink);
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    line-height: 1.32;
    margin: 0;
}

.content-quote figcaption {
    color: var(--accent);
    font-weight: 820;
    margin-top: 1rem;
}

.content-feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-feature-grid article {
    min-height: 178px;
}

.content-media-text {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.content-media-text.image-right img {
    order: 2;
}

.content-media-text img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.content-divider {
    align-items: center;
    color: var(--muted);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto 1fr;
}

.content-divider hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

.content-divider span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.content-form {
    display: grid;
    gap: 1.2rem;
}

.content-form form {
    display: grid;
    gap: 0.9rem;
}

.nimbus-hp {
    height: 0;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.content-form-field {
    color: var(--ink);
    display: grid;
    font-weight: 760;
    gap: 0.35rem;
}

.content-form-field input,
.content-form-field textarea,
.content-form-field select {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.content-form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.content-form-check {
    align-items: center;
    display: flex;
}

.content-form-check input {
    min-height: 0;
    width: auto;
}

.page-variant-contact .content-blocks {
    align-items: start;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
}

.page-variant-contact .content-form {
    grid-column: span 1;
}

.rich-text td .content-hero,
.rich-text td .content-teaser,
.rich-text td .content-quote,
.rich-text td .content-cta,
.rich-text td .content-media-text,
.rich-text td .content-form {
    box-shadow: none;
    margin: 0;
}

.rich-text td .content-hero h2,
.rich-text td .content-cta h2 {
    font-size: 1.45rem;
}

.site-footer {
    align-items: start;
    background: #ffffff;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: grid;
    gap: 2rem 3rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
    padding: 2rem 5vw;
}

.site-footer-brand {
    max-width: 760px;
}

.site-footer strong {
    color: var(--ink);
    display: block;
}

.site-footer p,
.site-footer small {
    margin: 0;
}

.site-footer small {
    white-space: nowrap;
}

.site-footer-navs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    justify-content: flex-end;
}

.site-footer-navs nav {
    justify-content: flex-end;
}

.site-footer-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    justify-self: end;
    text-align: right;
}

@media (max-width: 940px) {
    .page-variant-contact .content-blocks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 1rem;
        padding-top: 1rem;
    }

    .site-footer,
    .content-media-text,
    .content-feature-grid,
    .practice-strip {
        grid-template-columns: 1fr;
    }

    .site-hero {
        background-position: 54% center;
        min-height: 64svh;
    }

    .site-footer-navs,
    .site-footer-navs nav {
        justify-content: flex-start;
    }

    .site-footer-actions {
        align-items: flex-start;
        justify-self: start;
        text-align: left;
    }

    .site-footer small {
        white-space: normal;
    }

    .content-media-text.image-right img {
        order: 0;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: clamp(2.25rem, 12vw, 3.1rem);
    }

    .site-hero {
        min-height: 62svh;
        padding-bottom: 2.3rem;
    }

    .button {
        width: 100%;
    }

    .practice-strip div {
        min-height: 0;
    }
}
