/* Keep animated or decorative elements from widening the mobile document.
   The fixed mobile header is independent of this overflow containment. */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* =================================================================
   Denture Solutions Rockhampton — marketing home page
   Loaded only on the public homepage (body.home-marketing).
   Editorial premium: Fraunces display + Inter body, deep brand teal,
   warm off-whites. Kept separate from the app's style.css.
   ================================================================= */

.home-marketing {
    --teal: #0f8f8c;
    --teal-dark: #0b6866;
    --teal-soft: #e8f7f6;
    --teal-tint: #f1f9f8;
    --ink: #16243b;
    --ink-soft: #33445c;
    --muted: #5d6b7e;
    --cream: #faf7f1;
    --sand: #f3ede1;
    --line: #e9e3d6;
    --line-cool: #e2ecf0;
    --shadow-sm: 0 6px 18px rgba(16, 35, 63, 0.06);
    --shadow: 0 22px 48px rgba(16, 35, 63, 0.10);
    --shadow-lg: 0 40px 80px rgba(16, 35, 63, 0.14);
    --r: 16px;
    --r-sm: 12px;
    --r-lg: 28px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    margin: 0;
    background: #ffffff;
    color: var(--ink-soft);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.02rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.home-marketing h1,
.home-marketing h2,
.home-marketing h3,
.home-marketing .section-title,
.home-marketing .hero h1 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.home-marketing a {
    color: var(--teal-dark);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.home-marketing a:hover {
    color: var(--teal);
}

.home-marketing img {
    max-width: 100%;
}

.home-marketing .section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.home-marketing .section-tint {
    background:
        radial-gradient(1200px 420px at 80% -10%, var(--teal-tint), transparent 60%),
        var(--cream);
}

.home-marketing .container {
    max-width: 1200px;
}

.text-muted-soft {
    color: var(--muted);
}

/* ---- Section headings ---- */
.section-head {
    max-width: 720px;
    margin: 0 auto clamp(2rem, 4vw, 3.25rem);
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--teal-dark);
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    margin: 0 0 0.85rem;
}

.digital .section-title {
    max-width: 34ch;
    margin-inline: auto;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Services pages reuse .section-heading, which style.css styles as a flex wizard
   header (icon + uppercase step text). Override here so it reads as a centered,
   stacked, mobile-friendly marketing heading on every screen size. */
.home-marketing .section-heading {
    display: block;
    max-width: 760px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
}

.home-marketing .section-heading .pill-eyebrow {
    margin-bottom: 1rem;
}

.home-marketing .section-heading h1,
.home-marketing .section-heading h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.65rem, 6vw, 2.6rem);
    line-height: 1.14;
}

.home-marketing .section-heading p {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--muted);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: normal;
    text-transform: none;
}

.pill-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pill-eyebrow.pill-light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ---- Buttons ---- */
.home-marketing .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.home-marketing .btn-lg {
    padding: 0.92rem 1.7rem;
    font-size: 1.02rem;
}

.home-marketing .btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.home-marketing .btn-accent {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 14px 26px rgba(15, 143, 140, 0.28);
}

.home-marketing .btn-accent:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(15, 143, 140, 0.34);
}

.home-marketing .btn-ghost-line {
    background: #fff;
    color: var(--teal-dark);
    border-color: rgba(15, 143, 140, 0.32);
}

.home-marketing .btn-ghost-line:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.home-marketing .btn-light {
    background: #fff;
    color: var(--teal-dark);
}

.home-marketing .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--teal-dark);
}

.home-marketing .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.home-marketing .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* "Learn more" / secondary outline buttons. home.css is the only stylesheet on
   the homepage, so .btn-outline-primary would otherwise fall back to Bootstrap's
   default blue — unreadable against the teal link text. Pin every state to the
   brand teal with a clear white pill at rest that fills teal on hover/tap. */
.home-marketing .btn-outline-primary {
    --bs-btn-color: var(--teal-dark);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: rgba(15, 143, 140, 0.45);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--teal-dark);
    --bs-btn-hover-border-color: var(--teal-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--teal-dark);
    --bs-btn-active-border-color: var(--teal-dark);
    background: #fff;
    color: var(--teal-dark);
    border: 1.5px solid rgba(15, 143, 140, 0.45);
}

.home-marketing .btn-outline-primary:hover,
.home-marketing .btn-outline-primary:active {
    background: var(--teal-dark);
    color: #fff;
    border-color: var(--teal-dark);
    box-shadow: var(--shadow-sm);
}

/* ---- Utility strip ---- */
.site-utility {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.site-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.site-utility i {
    color: #7fd6d2;
}

.site-utility-links {
    display: flex;
    gap: 1.25rem;
}

.site-utility a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.site-utility a:hover {
    color: #fff;
}

@media (max-width: 575.98px) {
    .digital .section-title {
        max-width: none;
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .site-utility {
        max-height: 52px;
        overflow: hidden;
        transition: max-height 0.25s var(--ease), opacity 0.25s var(--ease);
    }
    .site-utility.is-hidden-mobile {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }
    .site-utility.is-hidden-mobile .site-utility-inner {
        padding-block: 0;
    }
    .site-utility-inner > span:first-child {
        display: none;
    }
    .site-utility-inner {
        justify-content: center;
    }
    .site-utility-links {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.55rem;
    }
    .site-utility-links a {
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
    .site-utility-label {
        display: none;
    }
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-stuck {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--line-cool);
    box-shadow: 0 10px 30px rgba(16, 35, 63, 0.07);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 0;
    transition: padding 0.3s var(--ease);
}

.site-header.is-stuck .site-header-inner {
    padding-block: 0.55rem;
}

.site-brand img {
    height: 52px;
    width: auto;
    transition: height 0.3s var(--ease);
}

.site-header.is-stuck .site-brand img {
    height: 44px;
}

.site-nav {
    margin-left: auto;
    gap: 1.6rem;
    align-items: center;
}

.site-nav a {
    position: relative;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.96rem;
    padding: 0.35rem 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--teal);
    transition: width 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--teal-dark);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    width: 100%;
}

/* ---- Services nav dropdown ---- */
.site-nav .nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown-trigger .bi {
    font-size: 0.72rem;
    transition: transform 0.25s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-trigger .bi,
.nav-dropdown:focus-within .nav-dropdown-trigger .bi {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 0.65rem;
    min-width: 250px;
    padding: 0.5rem;
    display: grid;
    gap: 0.1rem;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    z-index: 1040;
}

/* Invisible bridge across the gap so the panel stays open while the cursor travels. */
.nav-dropdown-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.75rem;
    height: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* Cancel the underline sweep the base .site-nav a applies. */
.nav-dropdown-panel a::after {
    display: none;
}

.nav-dropdown-panel a .bi {
    flex: none;
    color: var(--teal);
    font-size: 1.05rem;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.site-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-nav + .site-header-actions {
    margin-left: 0;
}

/* Short "Appointment" label is mobile-only; the full label shows elsewhere. */
.site-header-cta-short {
    display: none;
}

.site-burger {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-cool);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 1.4rem;
}

/* ---- Offcanvas ---- */
.site-offcanvas {
    --bs-offcanvas-width: 320px;
}

.site-offcanvas-nav {
    display: flex;
    flex-direction: column;
}

.site-offcanvas-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line-cool);
    color: var(--ink);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Collapsible "Browse service pages" group inside the mobile menu. */
.site-offcanvas-sub {
    border-bottom: 1px solid var(--line-cool);
}

.site-offcanvas-sub > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    color: var(--teal-dark);
    font-weight: 600;
    font-size: 0.98rem;
}

.site-offcanvas-sub > summary::-webkit-details-marker {
    display: none;
}

.site-offcanvas-sub > summary::after {
    content: "\F282"; /* bootstrap-icons chevron-down */
    font-family: "bootstrap-icons";
    font-size: 0.85rem;
    transition: transform 0.25s var(--ease);
}

.site-offcanvas-sub[open] > summary::after {
    transform: rotate(180deg);
}

.site-offcanvas-sub-links {
    display: grid;
    gap: 0.1rem;
    padding: 0.1rem 0 0.6rem;
}

.site-offcanvas-sub-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.5rem;
    border-bottom: 0;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 0.96rem;
}

.site-offcanvas-sub-links a .bi {
    color: var(--teal);
    font-size: 1.05rem;
}

.site-offcanvas-sub-links a:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.site-offcanvas-cta {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.site-offcanvas-portal {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.site-offcanvas-portal a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(900px 500px at 92% -5%, var(--teal-tint), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: auto -10% -40% auto;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(15, 143, 140, 0.16), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5.4vw, 4rem);
    margin: 1rem 0 1.1rem;
    letter-spacing: -0.02em;
}

.hero-copy h1 em {
    font-style: italic;
    color: var(--teal-dark);
}

.hero-lede {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 38ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 1.4rem;
}

.hero-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    padding: 0;
    margin: 0;
}

.hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-chips i {
    color: var(--teal);
    font-size: 1.1rem;
}

.hero-media {
    position: relative;
    padding: 0.6rem;
}

.hero-media-mobile {
    margin-top: 1.5rem;
    padding: 0;
}

.hero-media-mobile .hero-photo {
    aspect-ratio: 4 / 3;
    object-position: center 35%;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.hero-badge strong {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
}

.hero-badge small {
    color: var(--muted);
    font-size: 0.8rem;
}

.hero-badge-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 1.2rem;
}

.hero-badge-1 {
    top: 8%;
    left: -2%;
}

.hero-badge-2 {
    bottom: 7%;
    right: -2%;
}

/* ---- Trust bar ---- */
.trust-bar {
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--line-cool);
    background: #fff;
}

.trust-label {
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 3.5rem);
}

.trust-logos img {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.trust-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-3px);
}

/* ---- About ---- */
.about-media {
    position: relative;
}

.about-media > img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.about-stats {
    position: relative;
    margin: -2.75rem 1rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1.1rem 0.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.about-stat {
    text-align: center;
}

.about-stat strong {
    display: block;
    font-family: "Fraunces", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--teal-dark);
    line-height: 1;
}

.about-stat small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.about-points {
    display: grid;
    gap: 0.55rem;
    margin: 1.4rem 0;
}

.about-points span {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--ink);
    font-weight: 500;
}

.about-points i {
    color: var(--teal);
    font-size: 1.15rem;
    margin-top: 0.1rem;
}

/* ---- Service cards ---- */
.service-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Whole-card click target (the "Learn more" stretched-link covers the card). */
.service-card.is-clickable {
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 143, 140, 0.3);
}

.service-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--teal-tint);
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.service-card:hover .service-media img {
    transform: scale(1.07);
}

.service-media-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--teal);
    font-size: 3.4rem;
    background:
        radial-gradient(420px 200px at 50% 0%, var(--teal-soft), transparent 70%),
        var(--teal-tint);
}

.service-chip {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--teal-dark);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.service-body {
    padding: 1.15rem 1.2rem 1.3rem;
}

.service-body h3 {
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
}

.service-body p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---- Services index page cards (public/services) ---- */
/* Scoped with :has so the homepage's .service-media/.service-body cards are untouched. */
.service-card:has(> .service-content) {
    display: flex;
    flex-direction: column;
}

.service-image-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--teal-tint);
}

.service-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.service-card:hover .service-image-link img {
    transform: scale(1.06);
}

.service-image-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(11, 47, 46, 0.28), transparent);
    pointer-events: none;
}

.service-content {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.55rem;
    padding: 2.35rem 1.35rem 1.45rem;
}

/* Floating brand-teal badge that lifts onto the image edge. */
.service-icon {
    position: absolute;
    top: -28px;
    left: 1.35rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 16px 28px rgba(15, 143, 140, 0.34);
}

.service-content h2 {
    margin: 0;
    font-size: 1.32rem;
}

.service-content > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.55;
}

/* Pin the link to the bottom so every card aligns regardless of copy length. */
.service-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-content .btn i {
    transition: transform 0.25s var(--ease);
}

.service-card:hover .service-content .btn i {
    transform: translateX(4px);
}

/* ---- Feature (digital) cards ---- */
.feature-card {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 12px 22px rgba(15, 143, 140, 0.26);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.45rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.94rem;
    margin: 0;
}

/* ---- App showcase phone ---- */
.app-showcase {
    display: grid;
    gap: 1.4rem;
    justify-items: center;
    text-align: center;
}

.app-phone {
    position: relative;
    width: 268px;
    padding: 0.55rem;
    border-radius: 36px;
    background: linear-gradient(160deg, #18324a, #0c1d30);
    box-shadow: var(--shadow-lg);
}

.app-phone-notch {
    position: absolute;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 18px;
    border-radius: 0 0 14px 14px;
    background: #0c1d30;
    z-index: 2;
}

.app-phone-screen {
    border-radius: 30px;
    background: linear-gradient(180deg, #f7fbfc 0%, #eef6f7 100%);
    padding: 1.6rem 0.85rem 1rem;
    min-height: 430px;
    text-align: left;
}

.app-screen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.app-screen-head span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--teal-dark);
}

.app-screen-card {
    position: relative;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--teal), var(--teal-dark));
    color: #fff;
    margin-bottom: 0.85rem;
    box-shadow: 0 14px 24px rgba(15, 143, 140, 0.3);
}

.app-screen-card strong {
    display: block;
    font-size: 0.95rem;
}

.app-screen-card span:not(.app-screen-go) {
    font-size: 0.82rem;
    opacity: 0.92;
}

.app-screen-go {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.app-screen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.6rem;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: 13px;
}

.app-screen-row strong {
    display: block;
    font-size: 0.85rem;
    color: var(--ink);
}

.app-screen-row small {
    color: var(--muted);
    font-size: 0.76rem;
}

.app-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.app-tag-ready {
    background: #e7f7ee;
    color: #1f7a50;
}

.app-tag-review {
    background: #fff2dc;
    color: #9a5a08;
}

.app-showcase-copy h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
}

.app-showcase-copy p {
    color: var(--muted);
    max-width: 36ch;
    margin: 0 auto 1rem;
}

.app-showcase-copy p.app-mockup-disclaimer {
    margin: 0.9rem auto 0;
    font-size: 10px;
    line-height: 1.55;
}

.app-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* ---- Why / reason cards ---- */
.reason-card {
    height: 100%;
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.reason-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 1.4rem;
}

.reason-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
}

.reason-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}

/* ---- Process ---- */
.process-card {
    position: relative;
    height: 100%;
    padding: 2rem 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.process-step {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    opacity: 0.7;
}

.process-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 1.6rem;
}

.process-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.45rem;
}

.process-card p {
    color: var(--muted);
    font-size: 0.93rem;
    margin: 0;
}

/* ---- Pricing ---- */
.pricing-card {
    height: 100%;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pricing-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 12px 22px rgba(15, 143, 140, 0.26);
}

.pricing-card h3 {
    font-size: 1.35rem;
    margin: 0 0 0.6rem;
}

.pricing-card p {
    color: var(--muted);
    margin: 0 0 1rem;
}

.pricing-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ---- Emergency band ---- */
.emergency-band {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background:
        radial-gradient(700px 300px at 10% 10%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
}

.emergency-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.emergency-inner h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 0.7rem 0 0.5rem;
    max-width: 22ch;
}

.emergency-inner p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 46ch;
}

.emergency-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

/* ---- FAQ ---- */
.faq-accordion .accordion-item {
    border: 1px solid var(--line-cool);
    border-radius: var(--r) !important;
    margin-bottom: 0.85rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    font-family: "Fraunces", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    padding: 1.15rem 1.3rem;
    background: #fff;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--teal-dark);
    background: var(--teal-tint);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 143, 140, 0.18);
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='%230b6866' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
    padding: 0 1.3rem 1.25rem;
    color: var(--muted);
    text-align: center;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    margin: 0;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Contact ---- */
.enquiry-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--r);
    max-width: 880px;
    margin: 0 auto 1.5rem;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.contact-info-item > div {
    min-width: 0;
}

.contact-info-item p,
.contact-info-item a {
    overflow-wrap: anywhere;
}

.contact-info-item > span {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 1.25rem;
}

.contact-info-item strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
}

.contact-info-item p {
    color: var(--muted);
    margin: 0.1rem 0 0;
}

.contact-map {
    margin-top: 0.5rem;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line-cool);
    box-shadow: var(--shadow-sm);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}

.contact-form {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.contact-form .form-control {
    border-radius: 12px;
    border-color: var(--line-cool);
    padding: 0.7rem 0.9rem;
    min-height: 48px;
}

.contact-form .form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(15, 143, 140, 0.15);
}

.contact-form-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.enquiry-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Opening hours ---- */
.hours-card {
    background: #fff;
    border: 1px solid var(--line-cool);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.hours-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-cool);
}

.hours-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    font-size: 1.15rem;
}

.hours-card-title i {
    color: var(--teal-dark);
}

.hours-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.hours-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.hours-status.is-open {
    color: #0b7a4b;
    background: #e6f6ee;
}

.hours-status.is-closed {
    color: #9a3b3b;
    background: #f8ebe9;
}

.hours-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.hours-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: var(--r-sm);
    border-bottom: 1px solid var(--line-cool);
}

.hours-row:last-child {
    border-bottom: 0;
}

.hours-day {
    font-weight: 600;
    color: var(--ink);
}

.hours-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.hours-range {
    white-space: nowrap;
}

.hours-row.is-closed .hours-time {
    color: var(--muted);
    font-style: italic;
}

.hours-row.is-today {
    background: var(--teal-tint);
    box-shadow: inset 0 0 0 1px var(--teal-soft);
}

.hours-today-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--teal-dark);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.hours-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.hours-note i {
    color: var(--teal-dark);
    margin-top: 0.15rem;
}

.hours-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-cool);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: clamp(3rem, 5vw, 4.5rem) 0 1.75rem;
}

.site-footer-logo {
    height: 54px;
    width: auto;
    margin-bottom: 1rem;
    padding: 8px 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.site-footer-about p {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: #7fd6d2;
}

.site-footer-social {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.site-footer-social a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.15rem;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-footer-social a:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

.site-footer-links h4 {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.site-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.site-footer-links a {
    font-size: 0.95rem;
}

.footer-app {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-app-phone {
    position: relative;
    flex: 0 0 auto;
    width: 92px;
    height: 184px;
    border-radius: 20px;
    background: linear-gradient(160deg, #18324a, #0c1d30);
    padding: 5px;
    box-shadow: var(--shadow);
}

.footer-app-phone-cam {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.28);
    z-index: 2;
}

.footer-app-screen {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    padding: 14px 7px 8px;
    border-radius: 15px;
    background: linear-gradient(180deg, #f7fbfc 0%, #e8f7f6 100%);
    text-align: left;
    overflow: hidden;
}

.fapp-head {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1px;
}

.fapp-badge {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: var(--teal);
    color: #fff;
    font-size: 9px;
}

.fapp-name {
    font-size: 8px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.fapp-card {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px;
    border-radius: 8px;
    background: linear-gradient(140deg, var(--teal), var(--teal-dark));
    color: #fff;
}

.fapp-card-title {
    font-size: 7.5px;
    font-weight: 700;
}

.fapp-card-sub {
    font-size: 6px;
    opacity: 0.85;
}

.fapp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 5px 6px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 35, 63, 0.08);
}

.fapp-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.fapp-item-title {
    font-size: 6.5px;
    font-weight: 700;
    color: var(--ink);
}

.fapp-item-sub {
    font-size: 5.5px;
    color: var(--muted);
}

.fapp-tag {
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 999px;
    font-size: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fapp-tag-ready {
    background: #e6f6ee;
    color: #0b7a4b;
}

.fapp-tag-review {
    background: #fff4e0;
    color: #a86400;
}

.footer-app-copy {
    min-width: 0;
}

.footer-app-copy p {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.footer-app-copy .btn {
    white-space: nowrap;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

.site-footer-bottom p {
    margin: 0;
}

.clinical-information-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line-cool);
    border-left: 4px solid var(--teal);
    border-radius: var(--r-sm);
    background: #f7fafb;
    color: var(--muted);
    line-height: 1.65;
}

.clinical-information-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.clinical-information-card p:last-child {
    margin-bottom: 0;
}

/* ---- Scroll-to-top ---- */
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1020;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 14px 26px rgba(15, 143, 140, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--teal-dark);
    color: #fff;
}

/* ---- Section anchor offset ---- */
.home-marketing section[id] {
    scroll-margin-top: 96px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-lede {
        max-width: none;
    }
    .hero-media {
        margin-top: 1rem;
        max-width: 460px;
        margin-inline: auto;
    }
    .emergency-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .home-marketing {
        font-size: 0.98rem;
    }
    .site-header-inner {
        gap: 0.55rem;
        min-height: 64px;
        padding-block: 0.5rem;
        padding-inline: 1rem;
    }
    .site-header.is-stuck .site-header-inner {
        padding-block: 0.5rem;
    }
    .site-brand {
        flex: 0 1 auto;
        min-width: 0;
    }
    .site-brand img {
        height: 42px;
        max-width: min(46vw, 132px);
        object-fit: contain;
    }
    .site-header.is-stuck .site-brand img {
        height: 42px;
    }
    .site-nav + .site-header-actions,
    .site-header-actions {
        margin-left: auto;
        gap: 0.45rem;
        flex: 0 0 auto;
    }
    .home-marketing .site-header-appointment {
        justify-content: center;
        width: auto;
        height: 42px;
        flex: 0 0 auto;
        gap: 0.4rem;
        padding: 0 0.9rem;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0;
        white-space: nowrap;
    }
    .home-marketing .site-header-appointment i {
        font-size: 1rem;
    }
    .site-header-appointment .site-header-cta-label {
        display: none;
    }
    .site-header-appointment .site-header-cta-short {
        display: inline;
    }
    .site-burger {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }
    .hero-copy,
    .emergency-inner {
        text-align: center;
    }
    .hero-lede {
        margin-inline: auto;
    }
    .hero-rating,
    .hero-actions,
    .hero-chips,
    .emergency-actions {
        justify-content: center;
    }
    .hero-actions {
        align-items: center;
        flex-direction: column;
    }
    .hero-actions .btn,
    .emergency-actions .btn {
        justify-content: center;
        width: min(100%, 18rem);
    }
    .emergency-inner {
        align-items: center;
    }
    .emergency-inner h2,
    .emergency-inner p {
        margin-inline: auto;
    }
    .hero-badge-1 {
        left: 0;
    }
    .hero-badge-2 {
        right: 0;
    }
    .about-stats {
        margin-inline: 0;
    }
    .site-footer-bottom {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    .site-footer-bottom .public-provider-label {
        order: -1;
    }
}

/* ---- Service detail hero ---- */
/* The heading and body copy are left-aligned, so keep the CTAs and highlight
   chips left-aligned too (the shared hero rules centre them for the homepage).
   Let the long "Check if … suits you" label wrap instead of clipping. */
.service-detail-copy .hero-actions .btn {
    white-space: normal;
}

@media (max-width: 575.98px) {
    .service-detail-copy .hero-actions {
        align-items: stretch;
    }
    .service-detail-copy .hero-actions,
    .service-detail-copy .hero-chips {
        justify-content: flex-start;
    }
    .service-detail-copy .hero-actions .btn {
        width: 100%;
        max-width: none;
    }
}

/* Very small phones (~320px): trim the header just enough that the logo, the
   "Appointment" button and the menu button all fit on one row. */
@media (max-width: 360px) {
    .home-marketing .site-header-appointment {
        font-size: 0.76rem;
        padding: 0 0.7rem;
        gap: 0.3rem;
    }
    .site-brand img {
        height: 38px;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .home-marketing *,
    .home-marketing *::before,
    .home-marketing *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-badge {
        animation: none !important;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =================================================================
   PREMIUM ENHANCEMENT LAYER
   Additive polish layered on top of the base styles above.
   GPU-friendly (transform/opacity only). The reduced-motion block
   above already neutralises every animation/transition here via the
   `.home-marketing *` / `*::before` / `*::after` !important rules.
   ================================================================= */

/* ---- Smooth scrolling (CSS fallback to the JS handler) ---- */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---- Ambient orbs (static — frozen to avoid perpetual GPU compositing) ---- */
.home-marketing .section-tint {
    position: relative;
    overflow: hidden;
}

.home-marketing .section-tint > .container {
    position: relative;
    z-index: 1;
}

.home-marketing .section-tint::before,
.home-marketing .section-tint::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.55;
}

.home-marketing .section-tint::before {
    width: 420px;
    height: 420px;
    top: -130px;
    left: -120px;
    background: radial-gradient(circle, rgba(15, 143, 140, 0.18), transparent 70%);
}

.home-marketing .section-tint::after {
    width: 360px;
    height: 360px;
    right: -110px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(127, 214, 210, 0.22), transparent 70%);
}

/* ---- Hero ambient + content stacking ---- */
.hero .container {
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -170px;
    left: -150px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(127, 214, 210, 0.20), transparent 70%);
    filter: blur(30px);
}

/* ---- Hero: Google rating trust badge ---- */
.hero-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.35rem;
}

.hero-rating .hero-stars {
    display: inline-flex;
    gap: 0.1rem;
    color: #f5a623;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
}

.hero-rating strong {
    color: var(--ink);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
}

.hero-rating small {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-rating .hero-rating-google {
    font-weight: 700;
    color: var(--ink);
}

/* ---- Hero: scroll-down cue ---- */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-grid;
    justify-items: center;
    gap: 0.2rem;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-scroll-cue:hover {
    color: var(--teal-dark);
}

.hero-scroll-cue i {
    font-size: 1.3rem;
    color: var(--teal);
}

@media (max-width: 991.98px) {
    .hero-scroll-cue {
        display: none;
    }
}

/* ---- Buttons: accessible focus + shine sweep + CTA pulse ---- */
.home-marketing .btn:focus-visible {
    outline: 3px solid rgba(15, 143, 140, 0.45);
    outline-offset: 2px;
}

.home-marketing .btn-accent {
    position: relative;
    overflow: hidden;
}

.home-marketing .btn-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 55%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}

.home-marketing .btn-accent:hover::before {
    left: 135%;
}

.home-marketing .btn-pulse {
    box-shadow: 0 14px 26px rgba(15, 143, 140, 0.28), 0 0 0 0 rgba(15, 143, 140, 0.45);
}

/* ---- Cards: animated top accent on hover ---- */
.home-marketing .feature-card,
.home-marketing .pricing-card,
.home-marketing .reason-card,
.home-marketing .process-card {
    position: relative;
}

.home-marketing .feature-card::after,
.home-marketing .pricing-card::after,
.home-marketing .reason-card::after,
.home-marketing .process-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
    pointer-events: none;
}

.home-marketing .feature-card:hover::after,
.home-marketing .pricing-card:hover::after,
.home-marketing .reason-card:hover::after,
.home-marketing .process-card:hover::after {
    transform: scaleX(1);
}

/* ---- Contact form: subtle focus lift ---- */
.contact-form .form-control {
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-form .form-control:focus {
    transform: translateY(-1px);
}

/* ---- Clinic closure notice (premium) ---- */
.clinic-closure-banner {
    --closure-teal: #0f8f8c;
    --closure-teal-dark: #0b6866;
    --closure-ink: #16243b;
    --closure-muted: #5d6b7e;
    position: sticky;
    top: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: min(100% - 1.5rem, 1060px);
    margin: 0.85rem auto 0;
    padding: 0.8rem 0.95rem;
    color: var(--closure-ink);
    background: linear-gradient(125deg, #ffffff 0%, #f1f9f8 100%);
    border: 1px solid rgba(15, 143, 140, 0.22);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(16, 35, 63, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    animation: closureBannerIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes closureBannerIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.closure-banner-badge {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    color: #ffffff;
    background: linear-gradient(140deg, var(--closure-teal), var(--closure-teal-dark));
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(15, 143, 140, 0.32);
}

.closure-banner-text {
    display: grid;
    gap: 0.05rem;
    margin-right: auto;
    min-width: 0;
}

.closure-banner-text strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.closure-banner-text span {
    color: var(--closure-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.closure-banner-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.05rem;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--closure-teal), var(--closure-teal-dark));
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(15, 143, 140, 0.3);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.closure-banner-cta:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 143, 140, 0.4);
}

.closure-banner-dismiss {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    color: var(--closure-teal-dark);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(15, 143, 140, 0.08);
    border: 1px solid rgba(15, 143, 140, 0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.closure-banner-dismiss:hover {
    color: #ffffff;
    background: var(--closure-teal);
    border-color: var(--closure-teal);
    transform: translateY(-1px);
}

/* Closure modal */
.clinic-closure-modal .modal-dialog {
    max-width: 460px;
}

.clinic-closure-modal .modal-content {
    --closure-teal: #0f8f8c;
    --closure-teal-dark: #0b6866;
    --closure-ink: #16243b;
    --closure-muted: #5d6b7e;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 50px 90px rgba(16, 35, 63, 0.28);
}

.clinic-closure-modal .modal-content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 170px;
    background: radial-gradient(120% 100% at 50% 0%, rgba(15, 143, 140, 0.18), transparent 70%);
    pointer-events: none;
}

.closure-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--closure-ink);
    background: rgba(22, 36, 59, 0.06);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.25s ease;
}

.closure-modal-close:hover {
    background: rgba(22, 36, 59, 0.12);
    transform: rotate(90deg);
}

.closure-modal-body {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.closure-preview-icon {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 1.1rem;
    font-size: 1.7rem;
    color: #ffffff;
    background: linear-gradient(140deg, var(--closure-teal), var(--closure-teal-dark));
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(15, 143, 140, 0.34);
}

.closure-modal-eyebrow {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--closure-teal-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.closure-modal-title {
    margin: 0 0 0.6rem;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 3.5vw, 1.7rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--closure-ink);
}

.closure-modal-message {
    margin: 0 auto;
    max-width: 38ch;
    color: var(--closure-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.closure-modal-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding: 0.55rem 1.05rem;
    color: var(--closure-ink);
    font-size: 0.88rem;
    font-weight: 600;
    background: #f1f9f8;
    border: 1px solid rgba(15, 143, 140, 0.18);
    border-radius: 999px;
}

.closure-modal-meta i {
    color: var(--closure-teal);
}

.closure-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.closure-modal-actions-primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
}

.closure-modal-actions-primary > .closure-btn-secondary,
.closure-modal-actions-primary > .closure-btn-primary {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    font-size: 0.9rem;
}

.closure-btn-ghost,
.closure-btn-primary,
.closure-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.closure-btn-secondary {
    color: var(--closure-teal-dark);
    background: rgba(15, 143, 140, 0.1);
    border: 1px solid var(--closure-teal);
    text-decoration: none;
}

.closure-btn-secondary:hover {
    color: #ffffff;
    background: var(--closure-teal);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 143, 140, 0.28);
}

.closure-btn-close {
    margin-top: 0.15rem;
}

/* Desktop: keep both side-by-side labels on a single line (mobile stacks full-width). */
@media (min-width: 576px) {
    .closure-modal-actions-primary > .closure-btn-secondary,
    .closure-modal-actions-primary > .closure-btn-primary {
        padding-right: 0.7rem;
        padding-left: 0.7rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

.closure-btn-ghost {
    color: var(--closure-ink);
    background: transparent;
    border: 1px solid rgba(22, 36, 59, 0.18);
}

.closure-btn-ghost:hover {
    background: rgba(22, 36, 59, 0.05);
    transform: translateY(-1px);
}

.closure-btn-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--closure-teal), var(--closure-teal-dark));
    border: 0;
    box-shadow: 0 14px 28px rgba(15, 143, 140, 0.34);
    text-decoration: none;
}

.closure-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(15, 143, 140, 0.44);
}

@media (max-width: 575.98px) {
    .clinic-closure-banner {
        flex-wrap: wrap;
        width: calc(100% - 1rem);
    }

    .closure-banner-text {
        flex: 1 1 60%;
    }

    .closure-banner-cta,
    .closure-banner-dismiss {
        flex: 1 1 auto;
        justify-content: center;
    }

    .closure-modal-actions-primary {
        flex-direction: column;
        width: 100%;
    }

    .closure-btn-ghost,
    .closure-btn-primary,
    .closure-btn-secondary {
        width: 100%;
    }
}

/* ---- Sticky mobile call-to-action bar ---- */
.home-marketing .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: none;
    width: min(calc(100% - 2rem), 390px);
    margin-inline: auto;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-cool);
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(16, 35, 63, 0.16);
    transform: translateY(calc(115% + 1rem));
    transition: transform 0.35s var(--ease);
}

.home-marketing .mobile-cta .btn {
    flex: 1;
    justify-content: center;
    padding-inline: 0.6rem;
}

@media (max-width: 991.98px) {
    .home-marketing .mobile-cta {
        display: flex;
    }
    .home-marketing .mobile-cta.is-visible {
        transform: translateY(0);
    }
    .scroll-top {
        right: max(2rem, env(safe-area-inset-right, 0px));
        bottom: calc(5.7rem + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }
    /* Clear the floating CTA pill so footer content is never hidden behind it */
    .site-footer {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ---- Mobile: prevent AOS horizontal-slide overflow ----
   On narrow screens the two-column sections stack, so the
   fade-left/fade-right reveals would translate elements off the
   right edge (horizontal scroll) until scrolled into view.
   Animate them vertically instead. Loaded after aos.css so the
   equal-specificity override wins; .aos-animate still resets. */
@media (max-width: 991.98px) {
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(0, 40px, 0);
    }
}

/* ---- Mobile performance: strip GPU-heavy decoration ----
   Mobile GPUs struggle most with large blurs. Remove the decorative
   blurred orbs entirely and swap every live backdrop-filter for a
   solid translucent background so scrolling stays smooth and the
   device runs cool. (Desktop keeps the frozen static orbs above.) */
@media (max-width: 991.98px) {
    .home-marketing .section-tint::before,
    .home-marketing .section-tint::after,
    .hero::after,
    .hero-glow {
        display: none;
    }

    /* The mobile header is fixed, so horizontal containment can safely stay
       enabled while preventing transformed AOS elements from exposing a
       white strip along either viewport edge. */
    .home-marketing {
        overflow-x: hidden;
        /* Reserve the fixed header's height so page content starts below it.
           The mobile header is a constant 65px tall at every width. */
        padding-top: 65px;
    }

    /* Hide the top utility strip on mobile — its phone, patient portal
       and admin login links are already in the hamburger menu, so this
       leaves a cleaner single-bar header. */
    .site-utility {
        display: none;
    }

    /* Lock the header to the top of the viewport on mobile. position:fixed
       is immune to the sticky/overflow quirks some mobile browsers and
       in-app WebViews have, so the header never scrolls away or drifts up. */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.97);
    }

    .site-header.is-stuck {
        background: #fff;
    }

    .home-marketing .mobile-cta {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }

    .hero-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.96);
    }

    .clinic-closure-banner {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
