/* Seed Newco Limited — primary stylesheet (light clinical theme) */
:root {
    --bg-deep: #f6f9fb;
    --bg-panel: #eef3f8;
    --surface: #ffffff;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-soft: rgba(13, 148, 136, 0.12);
    --accent-2: #0369a1;
    --text: #152232;
    --text-muted: #5a6b7d;
    --border: rgba(21, 34, 50, 0.1);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 12px 48px rgba(21, 34, 50, 0.08);
    --shadow-hover: 0 20px 56px rgba(21, 34, 50, 0.12);
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --layout-max: 1120px;
    --layout-width: min(var(--layout-max), 92vw);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.wrap {
    width: var(--layout-width);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: 1rem;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    overflow: visible;
}

/* Blur lives here so it does not create a filter-containing block over the whole header (breaks fixed mobile menu). */
.site-header-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        backdrop-filter 0.35s var(--ease-out),
        background 0.35s var(--ease-out);
}

.site-header.is-scrolled .site-header-backdrop {
    opacity: 1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(21, 34, 50, 0.08);
}

.site-header.nav-is-open .site-header-backdrop {
    opacity: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(21, 34, 50, 0.08);
}

.header-inner {
    position: relative;
    z-index: 1;
    width: var(--layout-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #14b8a6, var(--accent) 50%, #0f766e);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.28);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.site-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    position: relative;
    transition: color 0.25s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.site-nav a.is-active {
    color: var(--text);
}

.site-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.site-header.nav-is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero — height follows content (no forced full viewport, no vertical centre gap) */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: clamp(4.65rem, 11vw, 5.65rem) 0 clamp(2rem, 5vw, 3rem);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1920&q=78");
    background-size: cover;
    background-position: center 52%;
    transform: scale(1.03);
    animation: hero-zoom 28s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(246, 251, 253, 0.97) 0%,
        rgba(246, 251, 253, 0.88) 42%,
        rgba(238, 248, 247, 0.78) 58%,
        rgba(236, 245, 247, 0.72) 100%
    );
}

/* Hero container matches .header-inner / .wrap — same left & right edges as logo & nav */
.hero-content.wrap {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    box-sizing: border-box;
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    margin: 0 0 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    line-height: 1.15;
    margin: 0 0 1.25rem;
    max-width: min(24em, 100%);
}

.hero-title-line2 {
    display: inline-block;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-hover);
}

.hero-lead {
    max-width: 38ch;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, #14b8a6, var(--accent-hover));
    color: #fff;
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 12px 36px rgba(13, 148, 136, 0.38);
}

.btn-ghost {
    border-color: rgba(21, 34, 50, 0.14);
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: #fff;
}

.btn-block {
    width: 100%;
}

.hero-scroll {
    display: none;
}

.hero-scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%,
    100% {
        opacity: 0.35;
        transform: scaleY(0.85);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Strip */
.strip-stats {
    background: var(--bg-panel);
    border-block: 1px solid var(--border);
}

.strip-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-block: 2.25rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-head {
    max-width: 54ch;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 0.75rem;
}

.section-intro,
.lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-copy .lead {
    margin-bottom: 1rem;
}

.tick-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.tick-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.about-media {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(21, 34, 50, 0.06);
    pointer-events: none;
}

.about-media img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.media-caption {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--surface);
    border-top: 1px solid var(--border);
}

/* Facilities */
.section-facilities {
    background: linear-gradient(180deg, #eef6f8 0%, var(--bg-deep) 35%, #e8f2f5 100%);
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.facility-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 148, 136, 0.28);
}

.facility-visual {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.facility-visual--square {
    aspect-ratio: 1;
}

.facility-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.facility-card:hover .facility-visual img {
    transform: scale(1.05);
}

.facility-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    padding: 1.25rem 1.25rem 0;
}

.facility-card p {
    margin: 0;
    padding: 0 1.25rem 1.35rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Contact */
.section-contact {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
}

.contact-grid {
    align-items: start;
}

.address-block {
    font-style: normal;
    margin: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-muted);
}

.address-block strong {
    color: var(--text);
}

.smallprint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.smallprint a {
    color: var(--accent-2);
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.contact-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}

.contact-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.emergency-note {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
}

.footer-inner {
    width: var(--layout-width);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-end;
}

.footer-brand p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-meta {
    text-align: right;
}

.footer-domain a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-domain a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Inner pages */
.main--subpage {
    padding-top: calc(4.25rem + env(safe-area-inset-top));
}

.page-hero {
    position: relative;
    min-height: min(52vh, 560px);
    display: flex;
    align-items: flex-end;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero--services .page-hero-bg {
    background-image: url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=1600&q=80");
}

.page-hero--privacy .page-hero-bg {
    background-image: url("https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1600&q=80");
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(240, 249, 247, 0.88) 52%,
        rgba(232, 244, 242, 0.97) 100%
    );
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    padding-bottom: 0.25rem;
}

.page-hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    margin: 0 0 0.75rem;
}

.page-hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.15rem, 5vw, 3.15rem);
    margin: 0 0 1rem;
    line-height: 1.12;
}

.page-hero-lead {
    max-width: 52ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.section-page {
    border-top: 1px solid var(--border);
}

.section-page-alt {
    background: linear-gradient(180deg, var(--bg-panel) 0%, #e8f0f5 100%);
    border-block: 1px solid var(--border);
}

.text-muted-block {
    color: var(--text-muted);
    margin-top: 1rem;
}

.service-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.service-pill {
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.service-pill:hover {
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow: var(--shadow);
}

.service-pill-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.service-pill-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
}

.service-pill p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: clamp(2rem, 5vw, 2.75rem);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(13, 148, 136, 0.22);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(255, 255, 255, 0.95));
    box-shadow: var(--shadow);
}

.cta-panel-copy {
    flex: 1 1 280px;
}

.cta-panel-copy .section-title {
    margin-bottom: 0.5rem;
}

.cta-panel-lead {
    margin-bottom: 0;
}

.cta-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.prose-section {
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
}

.prose-wrap {
    max-width: 65ch;
}

.prose-lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.prose-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.65rem;
    margin: 2.25rem 0 0.75rem;
}

.prose-wrap p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.prose-wrap a {
    color: var(--accent-2);
}

.prose-wrap a:hover {
    color: var(--accent);
}

.prose-muted {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.prose-wrap--wide {
    max-width: 72ch;
}

.prose-wrap .prose-heading:first-of-type {
    margin-top: 0;
}

.prose-list {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
    color: var(--text-muted);
}

.prose-list li {
    margin-bottom: 0.55rem;
}

.prose-list li::marker {
    color: var(--accent);
}

.prose-muted-inline {
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text-muted);
}

.prose-muted-inline strong {
    color: var(--text);
}

.inline-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

/* Contact page */
.page-hero--contact .page-hero-bg {
    background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1600&q=80");
}

.page-hero--patients .page-hero-bg {
    background-image: url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=1600&q=80");
}

.page-hero--referrers .page-hero-bg {
    background-image: url("https://images.unsplash.com/photo-1582719471384-894fbb16e074?auto=format&fit=crop&w=1600&q=80");
}

.page-hero--products .page-hero-bg {
    background-image: url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=1600&q=80");
}

.section-contact-page {
    border-top: 1px solid var(--border);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.contact-page-aside .section-title {
    margin-top: 0;
}

.contact-card--inline {
    margin: 1.25rem 0 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.req {
    color: var(--accent);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(21, 34, 50, 0.14);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field--error input,
.field--error textarea {
    border-color: rgba(255, 120, 120, 0.55);
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #b91c1c;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 560px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.form-footnote {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.form-alert {
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.96rem;
}

.form-alert strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.form-alert p {
    margin: 0;
    color: var(--text-muted);
}

.form-alert-extra {
    margin-top: 0.75rem !important;
}

.form-alert--success {
    border: 1px solid rgba(13, 148, 136, 0.35);
    background: rgba(13, 148, 136, 0.08);
}

.form-alert--success p {
    color: var(--text-muted);
}

.form-alert--error {
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: rgba(254, 242, 242, 0.95);
    color: #991b1b;
}

.link-muted {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
}

.link-muted:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-inline-cta {
    margin: 1.25rem 0 0;
}

.inline-cta--spaced {
    margin-top: 2.5rem;
}

/* Patients / Referrers — richer layouts */
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.section-head--center {
    text-align: center;
    margin-inline: auto;
    margin-bottom: 2.25rem;
    max-width: 54ch;
}

.section-head--center .section-intro {
    margin-inline: auto;
}

.section-dynamic {
    scroll-margin-top: 5rem;
}

.feature-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-icon-card {
    padding: 1.35rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.feature-icon-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.25);
    box-shadow: var(--shadow-hover);
}

.feature-icon-card__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--accent-hover);
    background: var(--accent-soft);
    border: 1px solid rgba(13, 148, 136, 0.18);
}

.feature-icon-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 0.45rem;
    color: var(--text);
}

.feature-icon-card__text {
    margin: 0;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.steps-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.steps-flow__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
}

.steps-flow__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(145deg, #14b8a6, var(--accent-hover));
}

.steps-flow__heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
    color: var(--text);
}

.steps-flow__body p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.grid-split-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}

.split-media-figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

.split-media-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.split-media-caption {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.split-media-copy .lead {
    margin-bottom: 1rem;
}

.split-media-figure--connectivity img {
    object-position: 42% 38%;
}

.connectivity-list {
    margin: 0 0 1.25rem;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.connectivity-list li {
    margin-bottom: 0.65rem;
}

.connectivity-list li:last-child {
    margin-bottom: 0;
}

.connectivity-list strong {
    color: var(--text);
}

.connectivity-list a {
    color: var(--accent-hover);
    font-weight: 600;
}

.connectivity-list a:hover {
    text-decoration: underline;
}

.connectivity-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-details {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-details[open] {
    border-color: rgba(13, 148, 136, 0.28);
}

.faq-summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    padding-right: 2.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text);
    position: relative;
}

.faq-summary:focus {
    outline: none;
}

.faq-summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.3s var(--ease-out);
}

.faq-details[open] .faq-summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.faq-panel {
    padding: 0 1.25rem 1.2rem;
    border-top: 1px solid var(--border);
}

.faq-panel p {
    margin: 0.85rem 0 0;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.faq-panel a {
    color: var(--accent-2);
    font-weight: 600;
}

.referrer-check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.referrer-check-card {
    padding: 1.35rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.referrer-check-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.22);
}

.referrer-check-card__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(145deg, #14b8a6, var(--accent-hover));
}

.referrer-check-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 0.45rem;
    color: var(--text);
}

.referrer-check-card p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.referrer-split-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.referrer-board-card {
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.referrer-board-card--accent {
    border-color: rgba(13, 148, 136, 0.28);
    background: linear-gradient(165deg, rgba(13, 148, 136, 0.06), var(--surface));
}

.referrer-board-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    margin: 0 0 0.75rem;
    color: var(--text);
}

.referrer-board-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Responsive */
@media (max-width: 960px) {
    .wrap,
    .header-inner,
    .footer-inner {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    /* Take nav out of the flex row so only brand + toggle remain — space-between pins the menu to the top-right. */
    .site-nav {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .site-nav.is-open {
        pointer-events: auto;
    }

    .brand,
    .nav-toggle {
        position: relative;
        z-index: 2;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        z-index: 2;
    }

    .site-nav .nav-list {
        position: fixed;
        z-index: 45;
        left: 0;
        right: 0;
        top: calc(42px + 1rem + max(1rem, env(safe-area-inset-top)));
        bottom: 0;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        padding: 0.75rem max(1rem, env(safe-area-inset-right)) max(1.35rem, env(safe-area-inset-bottom))
            max(1rem, env(safe-area-inset-left));
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: none;
        transform: translate3d(0, 100%, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.42s var(--ease-out),
            opacity 0.32s var(--ease-out),
            visibility 0s linear 0.42s;
    }

    .site-nav.is-open .nav-list {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            transform 0.42s var(--ease-out),
            opacity 0.32s var(--ease-out),
            visibility 0s linear 0s;
    }

    /* Circular close control when menu is open (matches reference) */
    .site-header.nav-is-open .nav-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 999px;
        background: rgba(21, 34, 50, 0.06);
        border-color: transparent;
    }

    .site-header.nav-is-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-is-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav .nav-list li {
        border-bottom: 1px solid var(--border);
    }

    .site-nav .nav-list a {
        display: flex;
        align-items: center;
        padding: 1.05rem 0;
        min-height: 44px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-muted);
    }

    .site-nav .nav-list a.is-active {
        font-weight: 500;
        color: var(--accent);
    }

    .site-nav .nav-list a::after {
        display: none;
    }

    .page-hero {
        min-height: min(42vh, 380px);
        padding: 2.25rem 0 2rem;
    }

    .cta-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-panel-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .footer-meta {
        text-align: left;
        width: 100%;
    }

    .hero {
        padding: clamp(4.5rem, 12vw, 5.5rem) 0 clamp(1.75rem, 5vw, 2.75rem);
    }

    .feature-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-split-media {
        grid-template-columns: 1fr;
    }

    .split-media-figure {
        order: -1;
    }

    .referrer-check-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .referrer-split-board {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .service-pill-grid {
        grid-template-columns: 1fr;
    }

    .facility-grid {
        grid-template-columns: 1fr 1fr;
    }

    .strip-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .stat {
        text-align: left;
        padding-left: 1rem;
        border-left: 3px solid var(--accent);
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .section {
        padding: clamp(2.75rem, 8vw, 4.5rem) 0;
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .feature-icon-grid,
    .steps-flow,
    .referrer-check-grid {
        grid-template-columns: 1fr;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: min(38vh, 320px);
        padding: 1.75rem 0 1.5rem;
    }

    .main--subpage {
        padding-top: calc(3.75rem + env(safe-area-inset-top));
    }
}
