:root {
    color-scheme: light;
    --bg: #f4f1e9;
    --surface: #fffdf8;
    --surface-2: #f9f6ef;
    --ink: #17312b;
    --muted: #6d7974;
    --muted-text: #66716d;
    --line: #dedbd2;
    --brand: #173f35;
    --brand-2: #2c6657;
    --red: #b84a4a;
    --red-text: #9b3e3e;
    --red-bg: #f7e4e2;
    --amber: #9a6819;
    --amber-text: #7d5414;
    --amber-bg: #f7edd7;
    --green: #2b7054;
    --green-bg: #e3f0e9;
    --grey: #8a8f8c;
    --grey-bg: #eeefed;

    /* Compatibility aliases for the existing component system. */
    --blue: var(--brand);
    --blue-700: var(--brand-2);
    --cyan: var(--brand-2);
    --navy: var(--ink);
    --slate: var(--muted-text);
    --mist: var(--surface-2);
    --ice: var(--green-bg);
    --white: var(--surface);
    --shadow-sm: 0 8px 24px rgba(23, 49, 43, 0.055);
    --shadow-md: 0 18px 44px rgba(23, 49, 43, 0.09);
    --shadow-blue: 0 10px 24px rgba(23, 63, 53, 0.16);
    --radius: 20px;
    --radius-lg: 22px;
    --header-height: 68px;
    --container: 1040px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    min-width: 320px;
    color: var(--ink);
    background: var(--bg);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

body.menu-open,
body.panel-open {
    overflow: hidden;
}

main {
    min-height: calc(100dvh - var(--header-height));
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(44, 102, 87, 0.38);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-weight: 850;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}

.narrow {
    max-width: 760px;
}

.site-header {
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid rgba(23, 63, 53, 0.1);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: 100%;
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 154px;
    align-items: center;
    gap: 10px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-width: 0;
    text-decoration: none;
}

.brand img,
.footer-brand img {
    width: 140px;
    height: 48px;
    object-fit: cover;
    object-position: center;
}

.desktop-nav {
    display: none;
}

.header-actions {
    display: flex;
    width: 154px;
    max-width: 154px;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.header-book {
    width: 98px;
    flex: 0 0 98px;
    overflow: hidden;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow-blue);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.icon-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--navy);
}

.menu-toggle {
    flex: 0 0 48px;
}

.icon-button svg,
.button svg,
.problem-card svg,
.contact-link svg,
.check-list svg,
.mobile-sticky-cta svg,
.video-frame-overlay svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu {
    position: fixed;
    inset: var(--header-height) 0 auto;
    z-index: 99;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.99);
    box-shadow: var(--shadow-md);
}

.mobile-menu nav {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 18px;
}

.mobile-menu a {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    text-decoration: none;
    font-weight: 850;
}

.mobile-menu-call {
    color: var(--blue) !important;
}

.mobile-menu-call svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.25rem, 10vw, 4.5rem);
}

h2 {
    font-size: clamp(1.85rem, 7.5vw, 3.55rem);
}

h3 {
    font-size: 1.12rem;
}

p {
    margin: 0;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    line-height: 1.12;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button.primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.button.primary:hover {
    background: var(--blue-700);
}

.button.secondary {
    background: var(--surface-2);
    color: var(--navy);
    border-color: var(--line);
    box-shadow: 0 8px 20px rgba(23, 49, 43, 0.04);
}

.button.small {
    min-height: 48px;
    padding: 10px 15px;
    font-size: 0.92rem;
}

.button.large {
    width: 100%;
    min-height: 54px;
}

.button:active,
.icon-button:active,
.header-book:active,
.hero-route-grid a:active,
.contact-link:active,
.mobile-sticky-cta a:active {
    transform: scale(0.98);
}

.hero-actions,
.section-actions,
.card-actions,
.booking-options,
.final-cta-inner div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-section {
    background: var(--bg);
}

.hero-grid {
    display: grid;
    gap: 24px;
    padding-top: 38px;
    padding-bottom: 42px;
}

.hero-copy {
    display: grid;
    width: min(100%, calc(100vw - 36px));
    gap: 16px;
    min-width: 0;
}

.hero-copy .eyebrow,
.hero-lede,
.hero-trust,
.hero-actions {
    max-width: 640px;
}

.hero-lede {
    color: var(--muted-text);
    font-size: 1.04rem;
}

.hero-trust {
    padding: 12px 14px;
    border: 1px solid rgba(23, 63, 53, 0.12);
    border-radius: 16px;
    background: var(--green-bg);
    color: var(--navy);
    font-weight: 850;
}

.hero-route-grid {
    display: grid;
    width: min(100%, calc(100vw - 36px));
    gap: 10px;
    max-width: 640px;
}

.hero-route-grid a {
    display: grid;
    gap: 3px;
    min-height: 68px;
    align-content: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--navy);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.hero-route-grid span {
    color: var(--slate);
    font-size: 0.88rem;
    font-weight: 760;
}

.hero-route-grid strong {
    color: var(--navy);
    line-height: 1.15;
}

.hero-media {
    position: relative;
    width: min(100%, calc(100vw - 36px));
    min-height: 330px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--navy);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.hero-media video {
    position: relative;
    z-index: 1;
    background: var(--navy);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(23, 49, 43, 0.08);
}

.hero-instagram-feed {
    display: block;
    min-height: 430px;
    background: var(--surface);
}

.hero-instagram-feed > div,
.hero-instagram-feed iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100% !important;
    min-height: 430px;
    height: 100% !important;
    border: 0;
}

@media (min-width: 761px) {
    .hero-instagram-feed,
    .hero-instagram-feed > div,
    .hero-instagram-feed iframe {
        min-height: 520px;
    }
}

.hero-card strong,
.hero-card span {
    display: block;
}

.hero-card strong {
    color: var(--navy);
}

.hero-card span {
    margin-top: 3px;
    color: var(--slate);
}

.video-frame-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 24px;
    background: rgba(23, 49, 43, 0.22);
    color: var(--white);
    text-align: center;
}

.video-frame-overlay span {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: var(--shadow-blue);
}

.video-frame-overlay svg {
    width: 24px;
    height: 24px;
}

.video-frame-overlay strong,
.video-frame-overlay small {
    display: block;
    text-shadow: 0 2px 10px rgba(23, 49, 43, 0.22);
}

.video-frame-overlay small {
    max-width: 220px;
    display: none;
    opacity: 0.9;
}

.video-frame-overlay code {
    color: var(--white);
}

.trust-bar {
    background: var(--brand);
    color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 253, 248, 0.12);
}

.trust-grid div {
    min-height: 82px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 14px 8px;
    background: var(--brand);
    text-align: center;
}

.trust-grid strong {
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.1;
}

.trust-grid span {
    color: rgba(255, 253, 248, 0.72);
    font-size: 0.83rem;
}

.section {
    padding: 58px 0;
}

.soft-band {
    background: var(--mist);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 24px;
}

.section-heading p:not(.eyebrow),
.page-hero p,
.performance-section p,
.final-cta p,
.mobile-appointments p,
.policy-content p,
.portal-side-card p,
.portal-card p {
    color: var(--slate);
    font-size: 1.02rem;
}

.problem-grid,
.services-grid,
.package-grid,
.approach-grid,
.steps,
.pricing-list,
.faq-list,
.appointment-list,
.admin-appointment-list {
    display: grid;
    gap: 14px;
}

.problem-card,
.service-card,
.price-row,
.package-card,
.service-detail,
.about-card,
.profile-card,
.contact-card,
.form-card,
.portal-card,
.portal-side-card,
.portal-table-card,
.steps article,
details {
    border: 1px solid rgba(23, 63, 53, 0.11);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.problem-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--navy);
    font-weight: 870;
}

.problem-card svg {
    color: var(--green);
}

.inline-cta {
    display: grid;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(23, 63, 53, 0.14);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.inline-cta p {
    color: var(--slate);
}

.service-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
}

.service-card.recommended,
.price-row.recommended {
    border-color: rgba(44, 102, 87, 0.35);
    box-shadow: 0 12px 30px rgba(23, 63, 53, 0.09);
}

.service-card p,
.package-card p,
.service-detail p,
.steps p,
.about-card li,
.form-note,
.integration-note,
.muted,
.appointment-item p,
.admin-appointment p {
    color: var(--slate);
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.service-meta span,
.price-row-meta span {
    color: var(--slate);
    font-weight: 780;
}

.service-meta strong,
.price-row-meta strong,
.package-price {
    color: var(--navy);
    font-size: 1.45rem;
    font-weight: 950;
}

.text-link {
    align-self: center;
    color: var(--blue);
    text-decoration: none;
    font-weight: 900;
}

.pill,
.saving,
.status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 950;
}

.pill {
    padding: 6px 10px;
    background: var(--ice);
    color: var(--blue-700);
}

.saving {
    padding: 6px 10px;
    background: var(--green-bg);
    color: var(--green);
}

.split-grid,
.profile-grid,
.performance-grid,
.contact-grid,
.portal-grid {
    display: grid;
    gap: 24px;
}

.steps article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 4px 12px;
    padding: 16px;
}

.steps span {
    width: 38px;
    height: 38px;
    display: grid;
    grid-row: span 2;
    place-items: center;
    border-radius: 12px;
    background: var(--blue);
    color: var(--white);
    font-weight: 950;
}

.approach-section {
    padding: 54px 0;
    background: var(--brand);
}

.approach-grid article {
    padding: 20px;
    border: 1px solid rgba(23, 63, 53, 0.11);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.approach-grid h2,
.approach-grid p {
    color: var(--ink);
}

.approach-grid p {
    margin-top: 8px;
    color: var(--muted-text);
}

.approach-section .approach-grid article {
    border-color: rgba(255, 253, 248, 0.14);
    background: rgba(255, 253, 248, 0.07);
    box-shadow: none;
}

.approach-section .approach-grid h2,
.approach-section .approach-grid p {
    color: var(--surface);
}

.pricing-section {
    background: var(--surface-2);
}

.performance-section {
    padding: 60px 0;
    background: var(--surface-2);
}

.performance-grid {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.performance-grid > div {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.performance-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.price-row {
    display: grid;
    gap: 16px;
    padding: 17px;
}

.price-row h3 {
    margin-bottom: 5px;
}

.price-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.package-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 18px;
}

.reviews-section {
    background: var(--white);
}

.reviews-heading {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.reviews-heading h2 {
    max-width: 780px;
}

.reviews-heading p:not(.eyebrow) {
    max-width: 640px;
    color: var(--slate);
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.review-carousel {
    display: grid;
    grid-auto-columns: minmax(280px, 88%);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.review-card {
    min-height: 260px;
    display: grid;
    gap: 18px;
    align-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
}

.review-card p {
    color: var(--muted-text);
    font-size: 1.02rem;
}

.review-card footer {
    display: grid;
    gap: 2px;
}

.review-card footer span {
    color: var(--slate);
    font-size: 0.9rem;
}

.review-rating {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ice);
    color: var(--blue-700);
    font-weight: 950;
}

.review-card-empty {
    background: var(--surface-2);
}

.mobile-appointments {
    padding: 46px 0;
    background: var(--brand);
    color: var(--white);
}

.mobile-appointments-inner {
    display: grid;
    gap: 18px;
    align-items: center;
}

.mobile-appointments h2,
.mobile-appointments p,
.mobile-appointments .eyebrow {
    color: var(--white);
}

.mobile-appointments p {
    opacity: 0.88;
}

details {
    padding: 0 16px;
}

summary {
    min-height: 60px;
    display: flex;
    align-items: center;
    color: var(--navy);
    cursor: pointer;
    font-weight: 900;
}

details p {
    margin-bottom: 16px;
    color: var(--slate);
}

.final-cta {
    padding: 54px 0;
    background: var(--mist);
}

.final-cta-inner {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--brand);
    color: var(--white);
}

.final-cta h2,
.final-cta p {
    color: var(--white);
}

.final-cta p {
    opacity: 0.84;
}

.page-hero {
    padding: 42px 0 34px;
    background: var(--surface-2);
}

.compact-hero {
    padding-bottom: 34px;
}

.page-hero-inner {
    max-width: 840px;
}

.page-hero h1 {
    max-width: 980px;
    font-size: clamp(1.9rem, 8.4vw, 3.25rem);
    line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
    margin-top: 12px;
}

.page-hero .hero-actions {
    margin-top: 18px;
}

.service-detail-stack {
    display: grid;
    gap: 34px;
}

.category-block > h2,
.price-category > h2 {
    margin-bottom: 16px;
    font-size: clamp(1.38rem, 5vw, 2rem);
}

.service-detail {
    display: grid;
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px;
}

dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

dt {
    color: var(--navy);
    font-weight: 930;
}

dd {
    margin: 3px 0 0;
    color: var(--slate);
}

.price-choice {
    margin-top: 0;
    margin-bottom: 28px;
}

.price-category {
    margin-top: 34px;
}

.about-card,
.profile-card,
.contact-card,
.form-card,
.portal-card,
.portal-side-card,
.portal-table-card {
    padding: 22px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.profile-section {
    background: var(--surface-2);
}

.profile-media {
    position: relative;
    min-height: 300px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 63, 53, 0.12);
    border-radius: var(--radius-lg);
    background: var(--brand);
    box-shadow: var(--shadow-sm);
}

.profile-media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.profile-media figcaption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(23, 63, 53, 0.88);
    color: var(--surface);
    font-size: 0.88rem;
    font-weight: 750;
}

.profile-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.profile-card h2 {
    font-size: clamp(1.8rem, 7vw, 3rem);
}

.profile-credentials {
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.profile-credentials h3 {
    margin-top: 4px;
    font-size: 1rem;
}

.profile-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted-text);
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.check-list svg {
    margin-top: 2px;
    color: var(--green);
}

.contact-link {
    min-height: 64px;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    text-decoration: none;
}

.contact-link svg {
    color: var(--blue);
}

.contact-link span {
    display: grid;
}

.contact-link small {
    color: var(--slate);
}

.contact-card .button {
    margin-top: 18px;
}

form {
    display: grid;
    gap: 13px;
}

label {
    color: var(--navy);
    line-height: 1.25;
    font-weight: 850;
}

.anti-spam-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.time-slot-fieldset {
    display: grid;
    gap: 12px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
}

.time-slot-fieldset legend {
    padding: 0;
    color: var(--navy);
    line-height: 1.25;
    font-weight: 850;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.time-slot-pill {
    position: relative;
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--navy);
    text-align: center;
    box-shadow: 0 8px 18px rgba(23, 49, 43, 0.04);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.time-slot-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(44, 102, 87, 0.34);
    box-shadow: 0 12px 24px rgba(23, 63, 53, 0.09);
}

.time-slot-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.time-slot-pill span {
    font-weight: 930;
    line-height: 1.1;
}

.time-slot-pill small {
    color: var(--slate);
    font-size: 0.72rem;
    font-weight: 840;
    line-height: 1.1;
}

.time-slot-pill:has(input:focus-visible) {
    outline: 3px solid rgba(44, 102, 87, 0.38);
    outline-offset: 3px;
}

.time-slot-pill.is-selected,
.time-slot-pill:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.time-slot-pill.is-selected small,
.time-slot-pill:has(input:checked) small {
    color: rgba(255, 255, 255, 0.82);
}

.time-slot-pill.is-unavailable {
    background: var(--grey-bg);
    color: var(--grey);
    box-shadow: none;
    cursor: not-allowed;
}

.time-slot-pill.is-unavailable:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.time-slot-pill.is-unavailable input {
    cursor: not-allowed;
}

.time-slot-pill.is-unavailable small {
    color: var(--grey);
}

.code-input {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: 0.22em;
}

.integration-note,
.admin-note {
    padding: 12px;
    border-radius: 14px;
    background: var(--ice);
    color: var(--ink);
}

.policy-content h2 {
    margin-top: 28px;
    font-size: 1.4rem;
}

.portal-section {
    padding-top: 44px;
    background: var(--mist);
}

.portal-grid.single {
    max-width: 640px;
}

.portal-card h2,
.portal-side-card h2,
.portal-table-card h2 {
    margin-bottom: 18px;
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.12;
}

.portal-alert {
    margin-bottom: 14px;
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 780;
}

.portal-alert.error {
    border: 1px solid rgba(184, 74, 74, 0.22);
    background: var(--red-bg);
    color: var(--red-text);
}

.portal-alert.success {
    border: 1px solid rgba(43, 112, 84, 0.22);
    background: var(--green-bg);
    color: var(--green);
}

.portal-alert.warning {
    border: 1px solid rgba(154, 104, 25, 0.22);
    background: var(--amber-bg);
    color: var(--amber-text);
}

.portal-alert code,
.page-hero code,
.portal-card code {
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(44, 102, 87, 0.1);
    font-size: 0.92em;
}

.portal-small {
    margin-top: 13px;
    color: var(--slate);
    font-size: 0.96rem;
    line-height: 1.5;
}

.portal-small + .portal-small {
    margin-top: 8px;
}

.portal-small a {
    color: var(--blue);
    font-weight: 900;
}

.form-row {
    display: grid;
    gap: 12px;
}

.portal-inline-form {
    margin-top: 12px;
}

.portal-side-card {
    background: var(--surface-2);
}

.portal-table-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.appointment-item,
.admin-appointment {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.appointment-item h3,
.admin-appointment h3 {
    margin: 8px 0 4px;
}

.appointment-item p,
.admin-appointment p {
    margin: 4px 0;
}

.status {
    padding: 5px 10px;
}

.status.pending {
    background: var(--amber-bg);
    color: var(--amber-text);
}

.status.confirmed {
    background: var(--green-bg);
    color: var(--brand-2);
}

.status.cancelled {
    background: var(--red-bg);
    color: var(--red-text);
}

.status.completed {
    background: var(--green-bg);
    color: var(--green);
}

.status.inactive,
.status.disabled {
    background: var(--grey-bg);
    color: var(--grey);
}

.admin-update-form {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.setup-checks {
    margin: 14px 0;
    padding-left: 20px;
    color: var(--slate);
}

.setup-checks li {
    margin: 8px 0;
}

.site-footer {
    background: var(--brand);
    color: var(--white);
    padding: 42px 0 calc(30px + env(safe-area-inset-bottom));
}

.footer-grid {
    display: grid;
    gap: 28px;
}

.footer-grid h2 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: rgba(255, 253, 248, 0.75);
}

.footer-grid ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid a {
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-disclaimer {
    max-width: 540px;
    margin-top: 10px;
    font-size: 0.92rem;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}

.booking-panel {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: end center;
    padding: 12px 12px 0;
    min-height: 100dvh;
}

.booking-panel[hidden] {
    display: none;
}

.booking-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 49, 43, 0.58);
    backdrop-filter: blur(3px);
}

.booking-panel-card {
    position: relative;
    width: min(100%, 520px);
    padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
    border: 1px solid rgba(23, 63, 53, 0.12);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(23, 49, 43, 0.18);
}

.booking-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.booking-panel-card h2 {
    padding-right: 44px;
}

.booking-panel-card p {
    margin: 12px 0 18px;
    color: var(--slate);
}

.mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(23, 63, 53, 0.12);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 14px 34px rgba(23, 49, 43, 0.14);
    backdrop-filter: blur(12px);
    transform: translateY(140%);
    transition: transform 0.24s ease;
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-sticky-cta.footer-near {
    transform: translateY(140%);
}

.mobile-sticky-cta a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 950;
}

.mobile-sticky-cta a:first-child {
    background: var(--navy);
    color: var(--white);
}

.mobile-sticky-cta a:last-child {
    background: var(--blue);
    color: var(--white);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    background: rgba(244, 241, 233, 0.82);
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(44, 102, 87, 0.18);
    border-top-color: var(--brand-2);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.toast,
[role="status"].toast {
    position: fixed;
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 500;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--brand);
    color: var(--surface);
    box-shadow: var(--shadow-md);
    font-weight: 750;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 359px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand img {
        width: 112px;
        height: 44px;
    }

    .header-actions {
        width: 152px;
        max-width: 152px;
    }

    .header-book {
        width: 96px;
        flex-basis: 96px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.78rem;
    }

}

@media (min-width: 480px) {
    .button.large {
        width: auto;
    }

    .problem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inline-cta,
    .mobile-appointments-inner {
        grid-template-columns: 1fr auto;
    }
}

@media (min-width: 761px) {
    body {
        padding-bottom: 0;
    }

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
        align-items: center;
        min-height: 700px;
        padding-top: 64px;
        padding-bottom: 70px;
    }

    .hero-copy,
    .hero-route-grid,
    .hero-media {
        width: 100%;
    }

    .hero-media,
    .hero-media img,
    .hero-media video {
        min-height: 520px;
    }

    .video-frame-overlay small {
        display: block;
    }

    .reviews-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .review-carousel {
        grid-auto-columns: minmax(340px, 32%);
    }

    .trust-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .section {
        padding: 78px 0;
    }

    .page-hero {
        padding-top: 64px;
        padding-bottom: 48px;
    }

    .compact-hero {
        padding-bottom: 46px;
    }

    .page-hero h1 {
        font-size: clamp(2.55rem, 5vw, 4.1rem);
    }

    .page-hero p:not(.eyebrow) {
        max-width: 760px;
    }

    .services-grid,
    .package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-grid,
    .profile-grid,
    .contact-grid,
    .portal-grid {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }

    .portal-grid.single {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .portal-section {
        padding-top: 72px;
        padding-bottom: 86px;
    }

    .portal-card,
    .portal-side-card,
    .portal-table-card,
    .form-card,
    .contact-card,
    .about-card,
    .profile-card {
        padding: 34px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .time-slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .approach-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .performance-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        align-items: stretch;
    }

    .performance-grid > div {
        padding: 42px;
    }

    .performance-grid img {
        height: 100%;
        min-height: 430px;
    }

    .profile-media,
    .profile-media img {
        min-height: 430px;
    }

    .price-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .price-row-meta {
        min-width: 252px;
        justify-content: flex-end;
    }

    .service-detail {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .service-detail .card-actions {
        grid-column: 1 / -1;
    }

    .admin-appointment {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .footer-grid {
        grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(130px, 0.7fr));
    }

    .booking-panel {
        place-items: center;
        padding: 24px;
    }

    .booking-panel-card {
        padding: 28px;
        border-radius: var(--radius-lg);
    }

    .toast,
    [role="status"].toast {
        right: 24px;
        bottom: 24px;
        left: auto;
        width: min(380px, calc(100vw - 48px));
    }
}

@media (hover: hover) and (pointer: fine) {
    .button:hover,
    .hero-route-grid a:hover,
    .contact-link:hover {
        transform: translateY(-1px);
    }
}

@media (min-width: 980px) {
    :root {
        --header-height: 78px;
    }

    .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .header-actions,
    .header-book {
        width: auto;
        max-width: none;
    }

    .header-book {
        flex-basis: auto;
        overflow: visible;
        padding-left: 18px;
        padding-right: 18px;
        font-size: 0.9rem;
    }

    .brand img,
    .footer-brand img {
        width: 164px;
        height: 56px;
    }

    .desktop-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    .desktop-nav a {
        padding: 10px 11px;
        border-radius: 999px;
        color: var(--slate);
        text-decoration: none;
        font-size: 0.94rem;
        font-weight: 850;
    }

    .desktop-nav a:hover,
    .desktop-nav a.active {
        background: var(--ice);
        color: var(--navy);
    }

    .menu-toggle {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1fr);
        gap: 70px;
    }

    .hero-route-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-hero {
        padding-top: 72px;
        padding-bottom: 54px;
    }

    .page-hero-inner {
        max-width: 1040px;
    }

    .page-hero h1 {
        font-size: clamp(3rem, 4.8vw, 4.85rem);
    }

    .compact-hero .page-hero-inner {
        max-width: 960px;
    }

    .compact-hero h1 {
        font-size: clamp(2.75rem, 3.85vw, 3.95rem);
    }

    .portal-grid.single {
        max-width: 760px;
    }

    .portal-card,
    .portal-side-card,
    .portal-table-card,
    .form-card,
    .contact-card,
    .about-card {
        padding: 38px;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .problem-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-sticky-cta {
        display: none;
    }
}

@media (min-width: 1180px) {
    .package-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

.iframe-h {
    min-height: 560px;
