:root {
    --kh-white: #ffffff;
    --kh-paper: #f7fafb;
    --kh-sage: #6ba87a;
    --kh-sage-soft: #d9ebe0;
    --kh-sky: #5b9fd4;
    --kh-sky-soft: #e3f0fa;
    --kh-ink: #1a2b33;
    --kh-muted: #3a4d57;
    --kh-max: 1120px;
    --kh-text: 1.125rem;
}

.entry-hero-wrap,
.page-hero-section.entry-hero-layout-s,
.entry-hero {
    display: none !important;
}

body .site > .content-wrap .content-container.site-container {
    padding-top: 0.75rem;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: var(--kh-text);
    color: var(--kh-ink);
    background: var(--kh-paper);
    line-height: 1.6;
}

.kestrel-hero__overlay h1,
.kestrel-hero__overlay h2,
.kestrel-hero__overlay p,
.kestrel-cta-band__shade h2,
.kestrel-cta-band__shade p,
.kestrel-page-hero__shade h1,
.kestrel-page-hero__shade p {
    color: #fff;
}

.kestrel-mono {
    font-family: "Consolas", "Liberation Mono", monospace;
    letter-spacing: 0.02em;
}

.kestrel-demo-strip,
.camini-demo-strip {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
    background: var(--kh-ink);
    color: #e8f0f4;
    text-align: center;
}

.camini-demo-strip a {
    color: #eaf4fc;
}

.kestrel-demo-disclaimer {
    background: var(--kh-sky-soft);
    border-left: 4px solid var(--kh-sky);
    padding: 0.65rem 0.85rem;
    margin: 0.75rem 0 1rem;
    font-size: 1rem;
}

.kestrel-site-header {
    background: var(--kh-white);
    border-bottom: 1px solid #dfe8ee;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 0 rgba(26, 43, 51, 0.06);
}

.kestrel-site-header__inner {
    max-width: var(--kh-max);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.kestrel-site-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--kh-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 0;
}

.kestrel-site-title__text {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    line-height: 1.25;
}

.kestrel-hours-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    margin: 0;
    color: var(--kh-muted);
    flex: 1 1 auto;
    min-width: 0;
}

.kestrel-hours-badge__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.kestrel-hours-badge__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kestrel-menu-toggle {
    display: none;
    background: var(--kh-sky);
    color: #fff;
    border: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.kestrel-primary-nav {
    flex: 1 1 100%;
}

.kestrel-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.kestrel-menu a {
    color: var(--kh-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.kestrel-menu a:hover,
.kestrel-menu a:focus-visible {
    color: var(--kh-sky);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .kestrel-menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .kestrel-primary-nav {
        display: none;
        width: 100%;
    }

    .kestrel-primary-nav.is-open {
        display: block;
    }

    .kestrel-menu {
        flex-direction: column;
        padding: 0.5rem 0;
    }
}

.kestrel-section {
    max-width: var(--kh-max);
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

.kestrel-site-footer__heading {
    color: #f2f7f9;
}

.kestrel-btn {
    display: inline-block;
    background: #2a5f85;
    color: #fff !important;
    border: 0;
    padding: 0.65rem 1.1rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.kestrel-btn--primary {
    background: #3d7350;
}

.kestrel-btn--secondary {
    background: #fff;
    color: var(--kh-sky) !important;
    border: 2px solid var(--kh-sky);
}

.kestrel-btn--ghost {
    background: transparent;
    color: #2a3a44 !important;
    border: 1px solid #94a8b4;
}

.kestrel-hero {
    min-height: clamp(400px, 44vw, 540px);
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
}

.kestrel-hero__overlay {
    width: 100%;
    background: linear-gradient(180deg, rgba(18, 30, 38, 0.84), rgba(12, 22, 30, 0.96));
    color: #fff;
    padding: 2.5rem 1rem 2rem;
}

.kestrel-hero__eyebrow {
    color: #f0f7fb;
}

h1.kestrel-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    max-width: 20ch;
    margin: 0.25rem 0 0.75rem;
    color: #fff !important;
}

.kestrel-hero__lead {
    max-width: 46ch;
    font-size: 1.15rem;
    color: #eef5f9;
}

.kestrel-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.kestrel-hero__actions .kestrel-btn--secondary {
    color: #fff !important;
    border-color: #fff;
    background: rgba(8, 16, 22, 0.82);
}

.kestrel-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.kestrel-card-grid li {
    background: var(--kh-white);
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    padding: 1rem;
}

.kestrel-form label {
    display: block;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.kestrel-form input,
.kestrel-form select,
.kestrel-form textarea {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin-top: 0.35rem;
    padding: 0.55rem 0.65rem;
    font-size: 1.05rem;
    border: 1px solid #b8c8d2;
    border-radius: 4px;
}

.kestrel-booking__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    list-style: none;
    padding: 0;
}

.kestrel-step {
    padding: 0.35rem 0.65rem;
    background: #e8eef2;
    border-radius: 999px;
    font-size: 0.95rem;
}

.kestrel-step.is-active {
    background: var(--kh-sky-soft);
    color: var(--kh-ink);
    font-weight: 700;
}

.kestrel-slot-calendar {
    display: grid;
    gap: 1rem;
}

.kestrel-day-col {
    background: var(--kh-white);
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    padding: 0.75rem;
}

.kestrel-day-col h4 {
    margin: 0 0 0.5rem;
}

.kestrel-slot-btn {
    display: inline-block;
    margin: 0.2rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--kh-sky);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

.kestrel-slot-btn.is-selected {
    background: var(--kh-sky);
    color: #fff;
}

.kestrel-slot-btn:disabled {
    opacity: 1;
    color: #3a4d57;
    background: #e4eaee;
    border-color: #b0bec6;
    cursor: not-allowed;
}

.kestrel-copay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.kestrel-copay-table th,
.kestrel-copay-table td {
    border: 1px solid #dfe8ee;
    padding: 0.45rem;
    text-align: center;
}

.kestrel-form-msg {
    color: #8b1a1a;
    font-weight: 600;
}

.kestrel-confirm-card {
    background: var(--kh-white);
    border: 2px solid var(--kh-sage);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.kestrel-link-reset {
    font-weight: 600;
}

.kestrel-guide__q {
    width: 100%;
    text-align: left;
    background: var(--kh-white);
    border: 1px solid #dfe8ee;
    padding: 0.85rem;
    border-radius: 6px;
    font-size: 1.05rem;
    cursor: pointer;
    margin-bottom: 0.35rem;
}

.kestrel-guide__a {
    margin: 0 0 1rem 0.5rem;
}

.kestrel-guide__911 {
    margin-top: 1.5rem;
    font-weight: 700;
    color: #8b1a1a;
}

.kestrel-alert--warn {
    background: #fff6e8;
    border-left: 4px solid #d48a2a;
    padding: 1rem;
    margin-bottom: 1rem;
}

.kestrel-badge {
    display: inline-block;
    background: var(--kh-sage-soft);
    color: var(--kh-ink);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-weight: 700;
}

.kestrel-appt-list {
    list-style: none;
    padding: 0;
}

.kestrel-appt-card {
    background: var(--kh-white);
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.kestrel-appt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.kestrel-site-footer {
    background: var(--kh-ink);
    color: #e8f0f4;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.kestrel-site-footer__grid {
    max-width: var(--kh-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.kestrel-site-footer a {
    color: #eaf4fc;
}

.kestrel-site-footer__demo {
    max-width: var(--kh-max);
    margin: 1.25rem auto 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.kestrel-404__main {
    text-align: center;
}

/* —— Round 2: colour, frames, motion —— */

.kestrel-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kh-muted);
    margin: 0 0 0.35rem;
}

.kestrel-section {
    max-width: var(--kh-max);
    margin: 0 auto;
    padding: 2rem 1rem;
}

.kestrel-section--alt {
    background: var(--kh-white);
}

.kestrel-section--sage {
    background: var(--kh-sage-soft);
}

.kestrel-section--paper {
    background: var(--kh-paper);
}

.kestrel-dots {
    background-image: radial-gradient(var(--kh-sky-soft) 1px, transparent 1px);
    background-size: 18px 18px;
}

.frame {
    position: relative;
    background: #fff;
}

.frame--photo {
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 1px 0 #c5d6e0, 0 10px 28px rgba(26, 43, 51, 0.12), inset 0 0 0 1px #fff;
    outline: 2px solid var(--kh-sage);
    outline-offset: 3px;
}

.frame--photo::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236ba87a' d='M8 1 L13 9 L8 8 L3 9 Z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.85;
}

.frame__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.frame__caption {
    font-size: 0.85rem;
    color: #2a3a44;
    margin: 0.5rem 0 0;
    padding: 0.35rem 0.5rem;
    background: rgba(227, 240, 250, 0.85);
    border-radius: 6px;
}

.frame--card {
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 4px 14px rgba(26, 43, 51, 0.08), 0 18px 40px rgba(26, 43, 51, 0.06);
    border: none;
    border-top: 4px solid var(--kh-sky);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frame--card:hover,
.frame--card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(26, 43, 51, 0.12);
}

.frame--quote {
    border-radius: 14px;
    padding: 1.25rem;
    border: double 3px var(--kh-sage);
    background: var(--kh-white);
    box-shadow: inset 0 0 0 6px #fff, 0 8px 24px rgba(26, 43, 51, 0.08);
}

.kestrel-happy-patients__hero {
    margin-bottom: 1.25rem;
}

.kestrel-happy-patients__hero .frame__img {
    width: 100%;
    max-height: min(520px, 70vh);
    min-height: 220px;
    height: auto;
    object-fit: cover;
}

.kestrel-happy-patients__pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 720px) {
    .kestrel-happy-patients__pair {
        grid-template-columns: 1fr 1fr;
    }
}

.kestrel-happy-patients__pair .frame--photo {
    display: flex;
    flex-direction: column;
}

.kestrel-happy-patients__pair .frame--photo .frame__img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

.frame--kids-laughing .frame__img {
    object-position: center 20%;
}

.kestrel-new-patient__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    max-width: var(--kh-max);
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

@media (min-width: 900px) {
    .kestrel-new-patient__layout {
        grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
    }
}

.kestrel-guide__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 900px) {
    .kestrel-guide__layout {
        grid-template-columns: minmax(240px, 0.85fr) 1.35fr;
    }
}

.kestrel-guide__layout .frame__img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

.kestrel-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.kestrel-gallery-grid .frame--photo {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.kestrel-gallery-grid .frame--photo .frame__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    flex: 0 0 140px;
}

.kestrel-overlap-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: var(--kh-max);
    margin: 0 auto;
    padding: 0 1rem 2rem;
    align-items: stretch;
}

.kestrel-overlap-pair .frame--photo .frame__img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

@media (min-width: 720px) {
    .kestrel-overlap-pair {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .frame--lift,
    .frame--overlap-back {
        transform: none;
    }
}

.kestrel-hero--duotone::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 168, 122, 0.16), rgba(91, 159, 212, 0.16));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.kestrel-hero {
    position: relative;
    overflow: hidden;
}

.kestrel-hero__offset {
    display: none;
    position: absolute;
    right: 5%;
    bottom: 12%;
    width: min(220px, 35vw);
    z-index: 2;
}

@media (min-width: 900px) {
    .kestrel-hero__offset {
        display: block;
    }
}

.kestrel-stats {
    background: var(--kh-sky-soft);
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.kestrel-stats__grid {
    max-width: var(--kh-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.25rem 1rem;
}

.kestrel-stat__num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--kh-ink);
    margin: 0;
}

.kestrel-stat__label {
    margin: 0;
    color: #2a3a44;
}

.kestrel-service-cards {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.kestrel-service-card__badge {
    display: inline-flex;
    color: var(--kh-sky);
    margin-bottom: 0.5rem;
}

.kestrel-service-card__thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.65rem;
}

.kestrel-cta-band {
    background-size: cover;
    background-position: center;
    margin: 0;
}

.kestrel-cta-band__shade {
    background: linear-gradient(90deg, rgba(15, 26, 34, 0.94), rgba(20, 32, 40, 0.9));
    color: #fff;
    padding: 2.5rem 1rem;
    text-align: center;
}

.kestrel-cta-band__shade .kestrel-eyebrow,
.kestrel-cta-band__shade p {
    color: #eef5f9;
}

.kestrel-cta-band__title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    max-width: 22ch;
    margin: 0.25rem auto 0.75rem;
    color: #fff !important;
}

.kestrel-quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.kestrel-avatar,
.kestrel-team-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--avatar, var(--kh-sky-soft));
    color: var(--kh-ink);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kestrel-team-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.kestrel-page-hero {
    min-height: 220px;
    background-size: cover;
    background-position: center;
    margin: 0 0 0.5rem;
}

.kestrel-page-hero__shade {
    background: linear-gradient(180deg, rgba(18, 30, 38, 0.9), rgba(12, 22, 30, 0.96));
    color: #fff;
    padding: 2rem 1rem;
}

.kestrel-page-hero__shade .kestrel-eyebrow {
    color: #fff;
    letter-spacing: 0.12em;
}

.kestrel-page-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0.25rem 0;
    max-width: 24ch;
    color: #fff;
}

.kestrel-page-hero__lead {
    max-width: 52ch;
    font-size: 1.05rem;
    color: #eef5f9;
}

.kestrel-btn--arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kestrel-visit__layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .kestrel-visit__layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.kestrel-visit__facts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kestrel-visit__facts li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.kestrel-copay-details summary {
    color: #1a2b33;
    font-weight: 600;
    cursor: pointer;
}

.kestrel-copay-live,
.kestrel-copay-live span,
#kestrel-copay-live {
    color: #1a2b33;
}

.kestrel-form label,
.kestrel-form select,
.kestrel-form input,
.kestrel-form textarea {
    color: #1a2b33;
}

.kestrel-patient__id,
.kestrel-form-msg {
    color: #2a3a44;
}

.kestrel-step {
    color: #1a2b33;
    background: #eef4f7;
}

.kestrel-step.is-active {
    color: var(--kh-ink);
    font-weight: 700;
    background: var(--kh-sky-soft);
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .frame--card:hover {
        transform: none;
    }
}

.site .entry-content {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.kestrel-credits__list {
    list-style: none;
    padding: 0;
}

.kestrel-credits__list li {
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #dfe8ee;
}

.kestrel-tips__layout,
.kestrel-about__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .kestrel-tips__layout,
    .kestrel-about__grid {
        grid-template-columns: minmax(200px, 320px) 1fr;
        align-items: start;
    }
}