:root {
    --sd-primary: #2f5d3a;
    --sd-primary-dark: #173f25;
    --sd-accent: #7da87b;
    --sd-gold: #b18435;
    --sd-light: #f3f8f4;
    --sd-warm: #faf9f7;
    --sd-text: #1f2933;
    --sd-muted: #1f2933;
    --sd-border: #d6e3d8;
    --sd-white: #fff;
    --sd-shadow: 0 14px 38px rgba(47, 93, 58, 0.12);
}

.service-detail-page,
.service-detail-page *,
.service-detail-page *::before,
.service-detail-page *::after {
    box-sizing: border-box;
}

.service-detail-page {
    color: var(--sd-text);
    background: var(--sd-warm);
}

.sd-container {
    width: min(90%, 1120px);
    margin: 0 auto;
}

.sd-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    min-height: min(calc(100vh - 48px), 1200px);
    min-height: min(calc(100dvh - 48px), 1200px);
    max-height: 1200px;
    align-items: center;
    /* padding: 4rem 0 5rem; */
    background: var(--sd-light);
}

.sd-hero::before {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48%;
    content: "";
    background: #d8e7da;
    clip-path: polygon(0 72%, 10% 58%, 20% 70%, 31% 42%, 42% 64%, 53% 34%, 64% 61%, 75% 40%, 86% 68%, 100% 46%, 100% 100%, 0 100%);
    pointer-events: none;
}

.sd-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6.5rem);
    row-gap: 3.5rem;
}

.sd-hero-title {
    grid-column: 1 / -1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.sd-hero-title .sd-eyebrow {
    margin-bottom: 0.9rem;
}

.sd-eyebrow {
    margin: 0 0 1rem;
    color: var(--sd-primary);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sd-hero h1 {
    margin: 0 0 2rem;
    color: var(--sd-primary);
    font-family: "Outfit", Helvetica, Arial, sans-serif;
    font-size: clamp(2.7rem, 5.5vw, 4.65rem);
    font-weight: 750;
    line-height: 1.06;
    text-wrap: balance;
}

.sd-hero-subtitle {
    max-width: 760px;
    margin: -0.8rem auto 2rem;
    color: var(--sd-muted);
    font-family: "Outfit", Helvetica, Arial, sans-serif;
    font-size: 1.75rem !important;
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

.sd-hero h1::after,
.sd-section-heading h2::after,
.sd-final-card h2::after {
    display: block;
    width: 74px;
    height: 4px;
    margin-top: 1.4rem;
    content: "";
    background: var(--sd-gold);
}

.sd-hero-title h1::after {
    margin-right: auto;
    margin-left: auto;
}

.sd-hero-copy > p:not(.sd-eyebrow) {
    margin: 0 0 1rem;
    color: var(--sd-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.sd-hero-image {
    margin: 0;
    overflow: hidden;
    background: var(--sd-white);
    border: 1px solid rgba(47, 93, 58, 0.28);
    border-radius: 30px;
    box-shadow: var(--sd-shadow);
    transform: rotate(1.2deg);
}

.sd-hero-image img {
    display: block;
    width: 100%;
    min-height: 0;
    object-fit: cover;
}

.sd-iee-diagram-wrap {
    width: min(92%, 1120px);
    margin: 3rem auto 0;
    text-align: center;
}

.sd-iee-diagram {
    display: block;
    width: min(100%, 980px);
    height: auto;
    margin: 0 auto;
}

.sd-iee-section-diagram {
    display: block;
    width: min(100%, 980px);
    height: auto;
    margin: 2rem auto 0;
}

.family-support-page .sd-hero-image,
.behavior-intervention-plan-page .sd-hero-image,
.iep-504-advocacy-page .sd-hero-image,
.independent-educational-evaluation-page .sd-hero-image,
.school-district-consultation-page .sd-hero-image {
    overflow: visible;
    background: none !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.family-support-page .sd-hero-image img,
.behavior-intervention-plan-page .sd-hero-image img,
.iep-504-advocacy-page .sd-hero-image img,
.independent-educational-evaluation-page .sd-hero-image img,
.school-district-consultation-page .sd-hero-image img {
    min-height: 0;
    object-fit: contain;
}

.sd-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.sd-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    color: var(--sd-white) !important;
    background: var(--sd-primary);
    border: 2px solid var(--sd-primary);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sd-button:hover {
    background: var(--sd-primary-dark);
    transform: translateY(-2px);
}

.sd-text-link {
    color: var(--sd-primary) !important;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.sd-marker-divider {
    position: relative;
    z-index: 2;
    height: 24px;
    margin: -12px 0;
    color: var(--sd-accent);
    pointer-events: none;
}

.sd-marker-divider {
    display: none;
}

.sd-marker-divider svg {
    display: block;
    width: 100%;
    height: 24px;
}

.sd-marker-divider path {
    fill: currentColor;
    opacity: 0.55;
}

.sd-section {
    display: flex;
    align-items: center;
    padding: 10rem 0;
    background: var(--sd-white);
}

.sd-reassurance-section {
    padding: 4.5rem 0;
}

.sd-reassurance-slide {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem clamp(2rem, 5vw, 5rem);
    background: var(--sd-white);
    border: 2px dashed var(--sd-gold);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(47, 93, 58, 0.08);
}

.sd-reassurance-slide h2 {
    margin: 0;
    color: var(--sd-primary);
    font-family: "Outfit", Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    line-height: 1.15;
    text-wrap: balance;
}

.sd-reassurance-slide h2::after {
    width: 74px;
    height: 4px;
    margin: 1.4rem auto 0;
    content: "";
    background: var(--sd-gold);
}

.sd-reassurance-slide p {
    max-width: 760px;
    margin: 1.4rem auto 0;
    color: var(--sd-muted);
    font-size: 1.2rem;
    line-height: 1.75;
}

.sd-section-tint {
    background: var(--sd-light);
    position: relative;
    border-bottom: 0;
}

.sd-faq-section {
    background: var(--sd-white);
    position: relative;
    border-bottom: 0;
}

.school-district-consultation-page .sd-green-section {
    background: #173f25;
}

.school-district-consultation-page .sd-green-section .sd-section-heading h2,
.school-district-consultation-page .sd-green-section .sd-wide-copy {
    color: #f3f8f4;
}

.family-support-page .sd-family-partnership-section {
    background: var(--sd-primary-dark);
}

.family-support-page .sd-family-partnership-section .sd-section-heading h2,
.family-support-page .sd-family-partnership-section .sd-wide-copy {
    color: #f3f8f4;
}

.sd-partnership-subheading {
    grid-column: 1 / -1;
    max-width: 820px;
    margin: 0 auto;
    color: #f3f8f4;
    font-family: "Outfit", Helvetica, Arial, sans-serif;
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.independent-educational-evaluation-page .sd-green-section {
    background: #173f25;
}

.independent-educational-evaluation-page .sd-green-section .sd-section-heading h2,
.independent-educational-evaluation-page .sd-green-section .sd-iee-recognition-copy p {
    color: #f3f8f4;
}

.independent-educational-evaluation-page .sd-green-section .sd-iee-reasons {
    color: #f3f8f4;
    background: #214f38;
    border-color: rgba(255, 226, 138, 0.75);
}

.independent-educational-evaluation-page .sd-green-section .sd-iee-reasons-label,
.independent-educational-evaluation-page .sd-green-section .sd-iee-reasons li {
    color: #f3f8f4;
}

.behavior-intervention-plan-page .sd-green-section {
    background: #173f25;
}

.behavior-intervention-plan-page .sd-green-section .sd-section-heading h2,
.behavior-intervention-plan-page .sd-green-section .sd-definition-columns h3,
.behavior-intervention-plan-page .sd-green-section .sd-definition-columns p,
.behavior-intervention-plan-page .sd-green-section .sd-definition-columns li {
    color: #f3f8f4;
}

.behavior-intervention-plan-page .sd-green-section .sd-definition-columns article {
    background: #214f38;
    border-color: rgba(255, 226, 138, 0.75);
}

/* Keep section content constrained while extending the accent rule edge to edge. */
.sd-section-tint::after,
.sd-faq-section::after {
    display: none;
}

.sd-section-heading {
    max-width: 850px;
    margin: 0 auto 3.25rem;
    text-align: center;
}

.sd-section-heading h2,
.sd-final-card h2 {
    margin: 0;
    color: var(--sd-primary);
    font-family: "Outfit", Helvetica, Arial, sans-serif;
    font-size: clamp(2.15rem, 4.2vw, 3.25rem);
    font-weight: 750;
    line-height: 1.15;
    text-wrap: balance;
}

.sd-section-heading h2::after,
.sd-final-card h2::after {
    margin-right: auto;
    margin-left: auto;
}

.sd-section-heading > p:not(.sd-eyebrow) {
    max-width: 760px;
    margin: 1.4rem auto 0;
    color: var(--sd-muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.sd-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1020px;
    margin: 0 auto;
}

.sd-copy-grid > .sd-info-card:nth-child(odd of .sd-info-card):nth-last-child(1 of .sd-info-card) {
    grid-column: 1 / -1;
    width: min(100%, calc((100% - 1.5rem) / 2));
    justify-self: center;
}

.sd-bip-diagram {
    display: block;
    width: min(100%, 600px);
    height: auto;
    margin: 0 auto 2.5rem;
}

.sd-definition-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.sd-conversation-intro {
    margin: 0 0 1.75rem;
    color: var(--sd-muted);
    font-size: 1.2rem;
    text-align: center;
}

.sd-conversations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sd-conversation-card {
    --bubble-border: #a19300;
    position: relative;
    padding: 1.6rem 1.8rem;
    background: #fff;
    margin-bottom: 1rem;
    border: 2px dashed var(--bubble-border);
    border-radius: 28px;
    box-shadow: none;
}

.sd-conversation-card:nth-child(even) {
    --bubble-border: var(--sd-accent);
}

.sd-conversation-card::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 32px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-right: 2px dashed var(--bubble-border);
    border-bottom: 2px dashed var(--bubble-border);
    transform: rotate(45deg);
    pointer-events: none;
}

.sd-conversation-card:nth-child(even)::after {
    left: auto;
    right: 32px;
}

.sd-conversation-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 640px);
    justify-self: center;
}

.sd-conversation-card h3 {
    margin: 0 0 .75rem;
    color: var(--sd-primary);
    font-size: 1.1rem;
    font-weight: 800;
}

.sd-conversation-card blockquote {
    margin: 0;
    color: var(--sd-primary-dark);
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 600;
    line-height: 1.5;
}

.sd-conversation-close {
    max-width: 780px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 0 0;
    border-top: 2px solid var(--sd-gold);
    color: var(--sd-primary-dark);
    font-size: 1.15rem;
    line-height: 1.75;
    text-align: center;
}

@media (max-width: 820px) {
    .sd-conversations { grid-template-columns: 1fr; }
}

.sd-definition-columns article {
    padding: 2rem;
    background: var(--sd-light);
    border: 1px solid var(--sd-border);
    border-radius: 20px;
}

.sd-definition-columns h3 {
    margin: 0 0 1rem;
    color: var(--sd-primary);
    font-family: "Outfit", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
}

.sd-definition-columns p { margin: 0 0 1rem; line-height: 1.7; }
.sd-definition-columns ul { margin: 0 0 1rem; padding-left: 1.3rem; line-height: 1.7; }

.sd-iee-recognition-layout {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 3rem;
    align-items: center;
}

.sd-iee-recognition-copy p {
    margin: 0 0 1.25rem;
    color: var(--sd-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.sd-iee-recognition-copy p:last-child { margin-bottom: 0; }

.sd-iee-reasons {
    position: relative;
    padding: 1.75rem 2rem;
    background: #fff;
    border: 2px dashed #a19300;
    border-radius: 24px 18px 26px 16px;
    transform: rotate(1deg);
}

.sd-iee-reasons-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--sd-primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.45;
}

.sd-iee-reasons ul {
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-iee-reasons li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--sd-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.sd-iee-reasons li::before {
    position: absolute;
    top: .05rem;
    left: 0;
    color: var(--sd-gold);
    content: "\2726";
    font-size: 1.25rem;
}

.sd-training-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
}

.sd-training-copy {
    position: sticky;
    top: 2rem;
}

.sd-training-copy p {
    margin: 0 0 1.5rem;
    color: var(--sd-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.sd-training-copy p:last-child { margin-bottom: 0; }

.sd-training-cards {
    display: grid;
    gap: 1.25rem;
}

.sd-training-cards .sd-info-card {
    min-height: 0;
}

.sd-data-layout + .sd-featured {
    margin-top: 2rem;
}

.sd-wide-copy,
.sd-featured,
.sd-checklist {
    grid-column: 1 / -1;
}

.sd-wide-copy {
    max-width: 820px;
    margin: 0 auto;
    color: var(--sd-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
}

.sd-info-card {
    height: 100%;
    padding: 1.8rem;
    background: #fff;
    border: 1px solid #a19300;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(47, 93, 58, 0.09);
}

.family-support-page .sd-info-card {
    border: 2px dashed #a19300;
    box-shadow: none;
}

/* Use the same light, hand-drawn card treatment throughout service sections. */
.sd-info-card,
.sd-checklist {
    border: 2px dashed #a19300;
    box-shadow: none;
}

.sd-section:not(.sd-section-tint) .sd-info-card {
    background: var(--sd-light);
}

.sd-info-card h3 {
    margin: 0 0 0.8rem;
    color: var(--sd-primary-dark);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
}

.sd-info-card h3 a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.sd-info-card p,
.sd-info-card li {
    margin: 0;
    color: var(--sd-muted);
    font-size: 1.1rem;
    line-height: 1.72;
}

/* Dark-green sections use the same deep-green card treatment as service pathways. */
.sd-green-section .sd-info-card,
.sd-green-section .sd-definition-columns article,
.sd-green-section .sd-iee-reasons,
.sd-green-section .sd-conversation-card {
    background: #214f38;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .1);
}

.sd-green-section .sd-info-card h3,
.sd-green-section .sd-info-card p,
.sd-green-section .sd-info-card li,
.sd-green-section .sd-definition-columns h3,
.sd-green-section .sd-definition-columns p,
.sd-green-section .sd-definition-columns li,
.sd-green-section .sd-iee-reasons-label,
.sd-green-section .sd-iee-reasons li,
.sd-green-section .sd-conversation-card h3,
.sd-green-section .sd-conversation-card blockquote {
    color: #f3f8f4;
}

.sd-info-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.sd-featured {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 2.25rem;
    margin-top: 2rem;
    color: var(--sd-primary-dark);
    background: #fffaf0;
    border: 1px solid var(--sd-gold);
    border-left: 7px solid var(--sd-gold);
    border-radius: 0 20px 20px 0;
    box-shadow: var(--sd-shadow);
    font-size: 1.3rem;
    font-weight: 750;
    line-height: 1.6;
    text-align: center;
    /* white-space: pre-line; */
}

.sd-recognition {
    position: relative;
    margin: 0;
    padding: 1.8rem 2.4rem;
    color: var(--sd-muted);
    background: transparent;
    border: 0;
    font-family: Merriweather, Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.65;
    text-align: center;
}

.sd-recognition::before,
.sd-recognition::after {
    position: absolute;
    color: var(--sd-accent);
    font-family: Georgia, serif;
    font-size: 3.4rem;
    font-style: normal;
    line-height: 1;
    opacity: 0.65;
}

.sd-recognition::before { top: 0.35rem; left: 0.5rem; content: "\201C"; }
.sd-recognition::after { right: 0.5rem; bottom: -0.1rem; content: "\201D"; }

.sd-checklist {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem 3.5rem;
    color: var(--sd-muted);
    background: var(--sd-white);
    border: 1px solid var(--sd-border);
    border-radius: 20px;
    box-shadow: var(--sd-shadow);
}

.sd-checklist li {
    margin: 0.65rem 0;
    padding-left: 0.4rem;
    font-size: 1.1rem;
    line-height: 1.65;
}

.sd-final-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--sd-warm);
}

.sd-final-section::before {
    position: absolute;
    z-index: -1;
    inset: -18px;
    content: "";
    background: url('/images/backdrop_landscape.png') center / cover no-repeat;
    filter: blur(10px);
    opacity: 0.72;
}

.sd-final-section > .sd-container {
    position: relative;
    z-index: 1;
}

.sd-final-card {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.75rem);
    color: var(--sd-white);
    background: var(--sd-primary);
    border: 1px solid var(--sd-gold);
    border-radius: 26px;
    box-shadow: var(--sd-shadow);
    text-align: center;
}

.sd-final-card h2 {
    color: var(--sd-white);
    font-size: 3.5rem;
}

.sd-final-card h2::after {
    margin-right: auto;
    margin-left: auto;
    background: var(--sd-gold);
}

.sd-final-card p {
    max-width: 720px;
    margin: 1.25rem auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    line-height: 1.75;
}

.sd-final-card .sd-button {
    margin-top: 2rem;
}

.sd-button-light {
    color: var(--sd-primary) !important;
    background: var(--sd-white);
    border-color: var(--sd-white);
}

.sd-button-light:hover {
    background: var(--sd-light);
}

.sd-faq-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: #fff;
}

.sd-faq-section > .sd-container {
    max-width: 1320px;
    padding: 88px clamp(28px, 7vw, 96px) 82px;
    background: #fff;
    border: 3px dotted #d7a01a;
    border-radius: 36px;
}

@media (max-width: 900px) {
    .sd-faq-section > .sd-container {
        border: 0;
    }
}

.sd-faq-section .sd-section-heading {
    max-width: 820px;
    margin-right: auto;
    margin-bottom: 2.75rem;
    margin-left: auto;
    text-align: center;
}

.sd-faq-section .sd-section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.sd-faq-section .sd-section-heading h2::after {
    margin-right: auto;
    margin-left: auto;
}

.sd-faq-section .sd-section-heading p {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.sd-faq-list {
    display: grid;
    gap: 1.1rem;
    max-width: 1080px;
    margin: 0 auto;
}

.sd-main-faq-link {
    max-width: 900px;
    margin: 1.5rem auto 0;
    color: var(--sd-muted);
    font-size: 1.05rem;
    text-align: center;
}

.sd-main-faq-link a {
    margin-left: 0.35rem;
    color: var(--sd-primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    white-space: nowrap;
}

.sd-faq-list details {
    overflow: hidden;
    background: #f8f6f4;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
}

.sd-faq-list summary {
    position: relative;
    padding: 1.45rem 1.75rem;
    color: #173f25;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.45;
}

.sd-faq-list summary::marker {
    color: var(--sd-primary);
}

.sd-faq-answer {
    padding: 0 1.75rem 1.5rem 3.45rem;
}

.sd-faq-answer p,
.sd-faq-answer li {
    color: var(--sd-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.sd-faq-answer p:last-child {
    margin-bottom: 0;
}

.sd-not-found {
    min-height: 70vh;
    padding: 8rem 5%;
    color: var(--sd-primary-dark);
    background: var(--sd-light);
    text-align: center;
}

@media (min-width: 821px) {
    .sd-hero-grid {
        row-gap: 2rem;
    }

    .sd-hero-image {
        max-width: 520px;
        justify-self: center;
    }

    .sd-section {
    }
}

@media (min-width: 1400px) {
    .sd-container {
        width: min(90%, 1200px);
    }

    .sd-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 820px) {
    .sd-definition-columns {
        grid-template-columns: 1fr;
    }

    .sd-iee-recognition-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sd-training-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sd-training-copy {
        position: static;
    }

    .sd-iee-reasons {
        transform: none;
    }

    .sd-hero,
    .sd-section,
    .sd-final-section,
    .sd-faq-section {
        height: auto;
    }

    .sd-hero {
        max-height: none;
        padding: 4rem 0 5rem;
    }

    .sd-hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "image"
            "copy";
        gap: 2rem;
    }

    .sd-hero-title {
        grid-area: title;
    }

    .sd-hero-image {
        grid-area: image;
        width: min(100%, 600px);
        /* height: min(600px, 135vw); */
        max-height: 600px;
        overflow: hidden;
    }

    .sd-hero-copy {
        grid-area: copy;
    }

    .sd-hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.35rem);
    }

    .sd-hero-subtitle {
        margin: .8rem 0 0;
        font-size: 1.25rem !important;
    }

    .sd-hero-copy {
        text-align: center;
    }

    .sd-hero-copy > p:not(.sd-eyebrow) {
        margin-right: auto;
        margin-left: auto;
        font-size: 1.1rem;
    }

    .sd-hero h1::after {
        margin-right: auto;
        margin-left: auto;
    }

    .sd-actions {
        justify-content: center;
        flex-direction: column;
    }

    .sd-hero-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        object-position: center top;
    }

    .sd-section {
        padding: 5.5rem 0;
    }

    .sd-copy-grid {
        grid-template-columns: 1fr;
    }

    .sd-copy-grid > .sd-info-card:nth-child(odd of .sd-info-card):nth-last-child(1 of .sd-info-card) {
        width: 100%;
    }

    .sd-final-section,
    .sd-faq-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }

    .sd-faq-section > .sd-container {
        padding: 58px 24px 52px;
        border-radius: 26px;
    }
}

@media (max-width: 520px) {
    .sd-hero {
        padding: 4rem 0 5rem;
    }

    .sd-hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.35rem);
    }

    .sd-section {
        padding: 4.25rem 0;
    }

    .sd-container {
        width: min(92%, 1120px);
    }

    .sd-eyebrow {
        font-size: 0.95rem;
    }

    .sd-section-heading {
        margin-bottom: 2rem;
    }

    .sd-section-heading > p:not(.sd-eyebrow),
    .sd-wide-copy,
    .sd-info-card p,
    .sd-info-card li,
    .sd-checklist li,
    .sd-faq-answer p,
    .sd-faq-answer li {
        font-size: 1rem;
    }

    .sd-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.9rem;
    }

    .sd-button,
    .sd-text-link {
        width: 100%;
        text-align: center;
    }

    .sd-info-card,
    .sd-featured,
    .sd-final-card {
        padding: 1.5rem;
    }

    .sd-recognition {
        padding-right: 1.8rem;
        padding-left: 1.8rem;
    }
}

@media (min-width: 821px) and (max-width: 900px) {
    .sd-hero {
        height: auto;
        max-height: none;
        padding: 4rem 0 5rem;
    }

    .sd-hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "image"
            "copy";
        gap: 2rem;
    }

    .sd-hero-title {
        grid-area: title;
    }

    .sd-hero-image {
        grid-area: image;
        width: min(100%, 600px);
        height: min(600px, 135vw);
        max-height: 600px;
        margin: 0 auto;
        overflow: hidden;
    }

    .sd-hero-image img {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: auto;
        object-position: center top;
    }

    .sd-hero-copy {
        grid-area: copy;
        text-align: center;
    }

    .sd-hero-copy > p:not(.sd-eyebrow) {
        margin-right: auto;
        margin-left: auto;
        font-size: 1.1rem;
    }

    .sd-hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.35rem);
    }

    .sd-hero-subtitle {
        margin: .8rem 0 0;
        font-size: 1.25rem !important;
    }

    .sd-hero h1::after {
        margin-right: auto;
        margin-left: auto;
    }

    .sd-actions {
        justify-content: center;
        flex-direction: column;
    }
}

/* Keep desktop sections viewport-balanced while allowing taller content to grow. */
@media (min-width: 821px) {
    .service-detail-page .sd-section {
        align-items: center;
    }

    .service-detail-page .sd-section-heading h2,
    .service-detail-page .sd-final-card h2 {
        font-size: 3.5rem;
    }
}
