[x-cloak] { display: none !important; }

:root {
    --brand: #0F6B5B;
    --brand-dark: #0B5649;
    --mint: #E6F4F1;
    --ink: #16332E;
    --muted: #5C726B;
    --bg: #F4F8F7;
    --line: rgba(15, 107, 91, 0.12);
    --radius: 22px;
    --shadow: 0 16px 40px rgba(15, 107, 91, 0.08);
    --font: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }

.wrap {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}
.skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    background: var(--brand);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 999px;
    z-index: 80;
}
.skip:focus { top: 1rem; }

.h-4,.w-4 { width: 1rem; height: 1rem; }
.h-5,.w-5 { width: 1.25rem; height: 1.25rem; }
.h-6,.w-6 { width: 1.5rem; height: 1.5rem; }
.h-7,.w-7 { width: 1.75rem; height: 1.75rem; }
.h-8,.w-8 { width: 2rem; height: 2rem; }

/* Buttons */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 700;
    line-height: 1.2;
    transition: .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); background: var(--mint); }
.btn-lg { min-height: 52px; padding-inline: 1.4rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-pad { padding: 1.2rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 28px;
    padding: .15rem .65rem;
    border-radius: 999px;
    background: var(--mint);
    color: var(--brand);
    font-size: .78rem;
    font-weight: 700;
}
.badge-soft { background: #FFF4DE; color: #9A6412; }

.stars {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    color: #D9962B;
    font-weight: 800;
}
.stars svg { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }

.section-title {
    margin: 0;
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--ink);
}
.section-title + .section-sub {
    margin: .45rem auto 0;
    text-align: center;
    color: var(--muted);
    max-width: 36rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: var(--mint);
    color: var(--brand);
    display: grid;
    place-items: center;
    flex: none;
}
.service-icon-sm { width: 48px; height: 48px; border-radius: 16px; }

.stat-card {
    border-radius: 22px;
    padding: 1.05rem 1.15rem;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
}
.stat-card b { font-size: 2rem; line-height: 1; }
.stat-card small { font-weight: 700; }
.stat-solid { background: var(--brand); color: #fff; }
.stat-soft { background: #fff; color: var(--ink); }

.provider-card {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: .2s ease;
}
.provider-card:hover { border-color: rgba(15,107,91,.25); background: #f8fcfb; }
.provider-card-main { display: flex; gap: .85rem; align-items: flex-start; }
.avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    flex: none;
}
.provider-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
    margin-top: .25rem;
}
.provider-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.provider-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}
.price { font-size: 1.2rem; font-weight: 800; color: var(--brand); white-space: nowrap; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}
.logo { display: flex; align-items: center; gap: .7rem; min-height: 44px; }
.logo-mark {
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--mint); color: var(--brand);
    display: grid; place-items: center; flex: none;
}
.logo strong { display: block; font-size: 1.35rem; line-height: 1; font-weight: 800; color: var(--brand); }
.logo small { display: none; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.nav-desktop { display: none; align-items: center; gap: .2rem; }
.nav-desktop a, .menu-panel a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
}
.nav-desktop a.is-active, .menu-panel a.is-active,
.nav-desktop a:hover, .menu-panel a:hover {
    color: var(--brand);
    background: var(--mint);
}
.header-actions { display: flex; align-items: center; gap: .35rem; }
.header-actions .btn { padding-inline: .8rem; font-size: .92rem; }
.icon-btn, .menu-toggle {
    width: 44px; height: 44px; border: 0; border-radius: 14px;
    background: var(--mint); color: var(--brand);
    display: grid; place-items: center;
}
.menu-panel { display: grid; gap: .2rem; padding: 0 0 1rem; }
.menu-panel[hidden] { display: none; }
.lang-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-inline: .7rem;
    color: var(--muted);
    font-weight: 700;
}

/* Hero */
.hero { padding: 1.4rem 0 1rem; }
.hero-grid { display: grid; gap: 1.25rem; }
.hero-copy h1 {
    margin: 0 0 .85rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.02em;
}
.hero-copy p { margin: 0 0 1.25rem; color: var(--muted); font-size: 1.05rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-photo {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--mint);
    aspect-ratio: 4 / 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 1.1rem 0 1.5rem; }

/* Services */
.services-board { padding: 1.35rem 1rem 1.5rem; }
.services-scroll {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: 1rem .15rem .35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.services-scroll::-webkit-scrollbar { display: none; }
.service-tile {
    scroll-snap-align: start;
    flex: 0 0 118px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    text-align: center;
    padding: .85rem .5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
}
.service-tile:hover { background: var(--mint); }
.service-tile small { color: var(--muted); font-weight: 500; font-size: .78rem; }

/* Partners */
.partner-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.1rem;
}
.partner {
    background: #fff;
    border-radius: 18px;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .85rem;
    box-shadow: var(--shadow);
}
.partner strong { color: var(--brand); font-size: 1rem; line-height: 1.3; }
.partner span { color: var(--muted); font-size: .75rem; margin-top: .2rem; }

/* Why / How */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.1rem;
}
.why-item {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem .8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .55rem;
    font-weight: 700;
    font-size: .92rem;
}
.steps {
    display: grid;
    gap: .8rem;
    margin-top: 1.1rem;
}
.step {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-weight: 700;
}
.step-num {
    width: 34px; height: 34px; border-radius: 999px;
    background: var(--mint); color: var(--brand);
    display: grid; place-items: center;
    font-size: .85rem; flex: none;
}
.step-arrow {
    display: none;
    color: var(--brand);
    opacity: .45;
}

/* FAQ */
.faq-list { display: grid; gap: .7rem; margin-top: 1.1rem; }
.faq {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq button {
    width: 100%;
    min-height: 56px;
    text-align: start;
    background: transparent;
    border: 0;
    padding: .9rem 1.05rem;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--ink);
}
.faq button svg { transition: transform .2s ease; flex: none; }
.faq button[aria-expanded="true"] svg { transform: rotate(90deg); }
.faq p { margin: 0; padding: 0 1.05rem 1.05rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--brand); color: #fff; margin-top: 1.8rem; }
.footer-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}
.site-footer .logo-mark { background: rgba(255,255,255,.14); color: #fff; }
.site-footer .logo strong, .site-footer .logo small, .site-footer p { color: rgba(255,255,255,.9); }
.site-footer .logo small { display: block; }
.footer-links, .footer-social, .locales {
    display: flex; flex-wrap: wrap; gap: .35rem .9rem;
}
.footer-links a, .footer-social a, .locales a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #fff;
}

/* Inner pages */
.page-hero {
    padding: 1.4rem 0 .6rem;
}
.page-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--brand);
}
.page-hero p { margin: .4rem 0 0; color: var(--muted); }
.page-body {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.3rem 1.2rem;
    margin: 1rem 0 2rem;
}
.page-body p { color: var(--muted); }
.provider-grid { display: grid; gap: .9rem; margin: 1rem 0 2rem; }

/* Patient layout */
.patient-shell {
    display: grid;
    gap: 0;
    min-height: 100vh;
}
.patient-side {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem .9rem;
    background: var(--brand);
    color: #fff;
    overflow: auto;
}
html[dir="rtl"] .patient-side { transform: translateX(105%); }
.patient-side.is-open { transform: translateX(0) !important; }
.drawer-back {
    position: fixed; inset: 0; background: rgba(10,30,26,.45); z-index: 50;
}
.patient-side-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.patient-drawer-close { background: rgba(255,255,255,.14); color: #fff; }
.patient-nav { display: grid; gap: .2rem; margin-top: .8rem; }
.patient-side .logo strong, .patient-side .logo small { color: #fff; }
.patient-side .logo-mark { background: rgba(255,255,255,.14); color: #fff; }
.patient-side a {
    min-height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding-inline: .75rem;
    color: rgba(255,255,255,.85);
    font-weight: 700;
}
.patient-side a.is-active, .patient-side a:hover { background: rgba(255,255,255,.14); color: #fff; }
.patient-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding-block: .6rem;
}
.patient-top-start, .patient-top-actions { display: flex; align-items: center; gap: .55rem; }
.patient-sub { color: var(--muted); font-size: .9rem; }
.patient-main { padding-bottom: 5.5rem; }
.patient-drawer-btn { display: grid; }
.welcome-line { margin: 0 0 1rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.dash-section { margin-bottom: 1.4rem; }
.dash-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem;
}
.dash-section-head h2 { margin: 0; font-size: 1.15rem; }
.dash-section-head a { color: var(--brand); font-weight: 700; }
.dash-services { padding-top: .2rem; }
.stack { display: grid; gap: .8rem; }
.order-card, .offer-card {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem;
}
.order-card h3, .offer-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.order-card p, .offer-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.order-side { display: grid; gap: .35rem; justify-items: end; }
.status {
    display: inline-flex; min-height: 28px; align-items: center; padding: .1rem .65rem;
    border-radius: 999px; background: var(--mint); color: var(--brand); font-size: .78rem; font-weight: 800;
}
.settings-card .account-row { display: flex; gap: .85rem; align-items: center; margin-bottom: 1rem; }
.settings-card h2 { margin: 0; }
.settings-card p { margin: .2rem 0 0; color: var(--muted); }
.settings-links { display: grid; gap: .35rem; }
.settings-links a {
    min-height: 46px; display: flex; align-items: center; padding-inline: .2rem;
    border-bottom: 1px solid var(--line); font-weight: 700;
}
.bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 30;
}
.bottom-nav a {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
}
.bottom-nav a.is-active { color: var(--brand); }

.login-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 1.5rem 0 2rem;
}
.login-card { width: min(440px, 100%); padding: 1.4rem; }
.login-card h1 { margin: .8rem 0 .35rem; font-size: 1.7rem; }
.login-card > p { color: var(--muted); margin: 0 0 1rem; }
.field { display: grid; gap: .35rem; margin-bottom: .9rem; font-weight: 700; }
.phone-box {
    display: flex; align-items: center; gap: .45rem;
    border: 1.5px solid var(--line); border-radius: 16px;
    padding-inline: .75rem; background: #fff;
}
.phone-box input {
    border: 0; outline: 0; min-height: 48px; width: 100%;
    font-size: 1.05rem; background: transparent;
}

@media (min-width: 640px) {
    .logo small { display: block; }
    .partner-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .services-scroll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
    .service-tile { flex: initial; }
}
@media (min-width: 768px) {
    .partner-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .footer-bar { flex-direction: row; align-items: flex-start; justify-content: space-between; }
    .provider-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .nav-desktop { display: flex; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2.5rem; }
    .hero { padding: 2.2rem 0 1.2rem; }
    .services-scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
        position: relative;
    }
    .step {
        flex-direction: column;
        text-align: center;
        position: relative;
        min-height: 180px;
    }
    .step-arrow {
        display: grid;
        place-items: center;
        position: absolute;
        inset-inline-start: calc(100% - .2rem);
        top: 42%;
        transform: translateY(-50%);
        width: 24px;
    }
    html[dir="rtl"] .step-arrow { transform: translateY(-50%) scaleX(-1); }
    .patient-shell { grid-template-columns: 260px minmax(0, 1fr); }
    .patient-side {
        position: sticky;
        top: 0;
        height: 100vh;
        width: auto;
        transform: none !important;
    }
    .patient-drawer-btn, .patient-drawer-close, .drawer-back { display: none !important; }
    .patient-main { padding: 1rem 1.2rem 2rem; }
    .bottom-nav { display: none; }
}
@media (min-width: 1280px) {
    .wrap { width: min(1220px, calc(100% - 3rem)); }
    .hero-copy h1 { font-size: 3.5rem; }
}

/* ===== Booking page ===== */
.booking-body { background: var(--bg); }
.book-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.book-header-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
    min-height: 76px; padding-block: .65rem;
}
.book-loc { display: flex; gap: .4rem; align-items: center; }
.loc-pill, .loc-select {
    min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); font-weight: 700; padding-inline: .85rem;
}
.loc-pill { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); }
.book-search {
    flex: 1 1 220px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; display: flex; align-items: center; gap: .45rem; padding-inline: .85rem; color: var(--muted);
}
.book-search input { border: 0; outline: 0; width: 100%; min-height: 42px; background: transparent; color: var(--ink); }
.book-header-actions { display: flex; align-items: center; gap: .45rem; margin-inline-start: auto; }
.notif-btn { position: relative; }
.notif-count {
    position: absolute; top: -4px; inset-inline-end: -4px;
    min-width: 18px; height: 18px; border-radius: 999px; background: #C4512F; color: #fff;
    font-size: .68rem; font-weight: 800; display: grid; place-items: center;
}
.book-main { padding: 1rem 0 6rem; }
.book-hero {
    display: grid; gap: 1rem; padding: 1.1rem; overflow: hidden;
}
.book-hero h1 {
    margin: 0 0 .8rem; color: var(--brand); font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.35; font-weight: 800;
}
.book-checks { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-bottom: 1rem; }
.book-checks span { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-weight: 700; font-size: .9rem; }
.book-hero-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 16/10; background: var(--mint); }
.book-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.book-services {
    display: flex; gap: .65rem; overflow-x: auto; padding: 1rem 0 .4rem;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.book-services::-webkit-scrollbar { display: none; }
.book-chip {
    scroll-snap-align: start; flex: 0 0 auto; min-width: 128px;
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    padding: .8rem .7rem; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
    font-weight: 700; font-size: .88rem; text-align: center;
}
.book-chip.is-active, .book-chip:hover { outline: 2px solid rgba(15,107,91,.35); background: var(--mint); }
.book-grid { display: grid; gap: 1rem; margin-top: .6rem; }
.book-list-head {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .7rem;
}
.book-list-head h2 { margin: 0; font-size: 1.2rem; }
.book-list-head p { margin: .25rem 0 0; color: var(--muted); }
.avail-toggle {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
    padding: .2rem .8rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700;
}
.sort-row { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .7rem; scrollbar-width: none; }
.sort-chip {
    flex: none; min-height: 38px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; padding-inline: .9rem; font-weight: 700; color: var(--muted);
}
.sort-chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.provider-stack { display: grid; gap: .8rem; }
.book-provider {
    display: grid; gap: .85rem; padding: 1rem; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); border: 2px solid transparent; cursor: pointer; transition: .2s ease;
}
.book-provider.is-active, .book-provider:hover { border-color: rgba(15,107,91,.28); background: #f8fcfb; }
.book-provider-main { display: flex; gap: .85rem; }
.book-provider-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.book-provider-title h3 { margin: 0; font-size: 1.05rem; }
.fav-btn {
    width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--mint); color: var(--muted); display: grid; place-items: center;
}
.fav-btn.is-on { color: #C4512F; background: #FDECE7; }
.book-provider-side {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem;
}
.book-provider-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.map-card { padding: 1rem; }
.map-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .7rem;
}
.map-card-head h2 { margin: 0; font-size: 1.05rem; }
.care-map {
    height: 220px; border-radius: 18px; overflow: hidden; background: var(--mint); border: 1px solid var(--line);
}
.map-pin-wrap { background: transparent !important; border: 0 !important; }
.map-pin {
    background: var(--brand); color: #fff; border-radius: 999px; padding: .25rem .55rem;
    font-size: .75rem; font-weight: 800; box-shadow: 0 8px 18px rgba(15,107,91,.28);
}
.map-pin.is-active { background: #C4512F; }
.desktop-checkout { display: none; }
.checkout { padding: 1.1rem; display: grid; gap: .9rem; }
.checkout-head h2 { margin: 0; font-size: 1.15rem; }
.checkout-head p { margin: .25rem 0 0; color: var(--muted); }
.checkout-block h3 { margin: 0 0 .55rem; font-size: 1rem; }
.time-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: .5rem; }
.checkout .field input {
    min-height: 44px; border-radius: 14px; border: 1.5px solid var(--line);
    padding-inline: .75rem; width: 100%; background: #fff;
}
.lines { margin: 0; display: grid; gap: .4rem; }
.line { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.line dt, .line dd { margin: 0; }
.line.total { color: var(--ink); font-weight: 800; font-size: 1.05rem; padding-top: .35rem; border-top: 1px dashed var(--line); }
.offer { display: flex; gap: .5rem; align-items: end; }
.secure { margin: 0; color: var(--muted); display: flex; align-items: center; gap: .35rem; font-size: .9rem; }
.perk-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.2rem;
}
.perk {
    background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: .9rem;
    display: flex; align-items: center; gap: .65rem; font-weight: 700;
}
.sheet-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 45; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
}
.sheet-bar-btn {
    width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: space-between; padding-inline: 1.2rem; font-weight: 800; font-size: 1rem;
}
.sheet-back {
    position: fixed; inset: 0; background: rgba(10,30,26,.45); z-index: 55;
    display: grid; align-items: end;
}
.sheet {
    border-radius: 24px 24px 0 0; padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
    max-height: min(88vh, 720px); overflow: auto; position: relative;
}
.sheet-close {
    position: absolute; top: .8rem; inset-inline-end: .8rem;
    width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--mint); color: var(--brand);
}
.modal-back {
    position: fixed; inset: 0; background: rgba(10,30,26,.45); z-index: 70;
    display: grid; place-items: center; padding: 1rem;
}
.modal { width: min(420px, 100%); padding: 1.3rem; text-align: center; display: grid; gap: .7rem; justify-items: center; }
.modal h3 { margin: 0; }
.modal p { margin: 0; color: var(--muted); }
.panel-title { margin: 0 0 .8rem; font-size: 1.15rem; }
.provider-cover { padding: 1.2rem 0 .4rem; }
.provider-cover-card { padding: 1.2rem; display: grid; gap: 1rem; }
.provider-cover-top { display: flex; gap: .9rem; align-items: flex-start; }
.provider-cover-card h1 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--brand); }
.avatar.lg { width: 72px; height: 72px; border-radius: 22px; font-size: 1.3rem; }
.provider-detail-grid { display: grid; gap: 1rem; margin: 1rem 0 2rem; }
.detail-services { display: grid; gap: .65rem; }
.detail-service {
    display: flex; gap: .75rem; align-items: center; padding: .7rem; border-radius: 16px; background: var(--bg);
}
.detail-service strong { display: block; }
.detail-service small { color: var(--muted); }
.rating-bars { display: grid; gap: .55rem; }
.rating-bar-row { display: grid; grid-template-columns: 48px 1fr 48px; gap: .55rem; align-items: center; font-weight: 700; color: var(--muted); }
.rating-bar { height: 10px; border-radius: 999px; background: var(--mint); overflow: hidden; }
.rating-bar i { display: block; height: 100%; background: #D9962B; }

@media (min-width: 768px) {
    .book-hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 1.3rem; }
    .care-map { height: 280px; }
    .perk-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .provider-detail-grid { grid-template-columns: 1.1fr .9fr; }
}
@media (min-width: 1024px) {
    .book-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; }
    .book-side { display: grid; gap: 1rem; position: sticky; top: 92px; }
    .desktop-checkout { display: grid; }
    .sheet-bar { display: none; }
    .care-map { height: 320px; }
    .book-main { padding-bottom: 2rem; }
}
@media (min-width: 1280px) {
    .book-header-bar { gap: .85rem; }
}
@media (min-width: 1920px) {
    .wrap { width: min(1440px, calc(100% - 4rem)); }
}

/* Provider join (multi-step registration) */
.join-shell { padding: 1.5rem 0 2.5rem; display: grid; justify-items: center; }
.join-card { width: min(760px, 100%); padding: 1.4rem; }
.join-card h1 { margin: .4rem 0 .35rem; font-size: 1.6rem; }
.join-card .lead { color: var(--muted); margin: 0 0 1rem; }
.join-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.join-steps li { flex: 1; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.join-steps li::before {
    content: attr(data-n); display: grid; place-items: center; width: 32px; height: 32px;
    margin: 0 auto .25rem; border-radius: 50%; background: var(--mint); color: var(--brand);
}
.join-steps li.is-done::before, .join-steps li.is-active::before { background: var(--brand); color: #fff; }
.join-steps li.is-active { color: var(--ink); }
.join-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .join-form select {
    width: 100%; min-height: 48px; padding-inline: .8rem; border: 1.5px solid var(--line);
    border-radius: 16px; background: #fff; font-size: 1rem;
}
.join-form .phone-box input { border: 0; padding-inline: 0; }
.join-grid { display: grid; gap: 0 1rem; }
.join-error { color: #b42318; font-size: .85rem; margin: -.4rem 0 .8rem; }
.join-note { color: var(--muted); font-size: .85rem; }
.join-radio { display: grid; gap: .6rem; margin-bottom: .9rem; }
.join-radio label, .join-service {
    display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
    border: 1.5px solid var(--line); border-radius: 16px; font-weight: 700;
}
.join-service input[type="number"] { max-width: 120px; margin-inline-start: auto; }
.join-category { margin: 1rem 0 .4rem; font-weight: 800; color: var(--brand); }
.join-actions { display: flex; gap: .6rem; justify-content: space-between; margin-top: 1rem; }
.join-review { display: grid; gap: .5rem; margin: 0 0 1rem; }
.join-review div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.join-review dt { color: var(--muted); }
.join-review dd { margin: 0; font-weight: 700; text-align: end; }
@media (min-width: 640px) {
    .join-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Landing redesign (Axis 1) ===== */

/* Header: transparent at the top, solid white once scrolled (class toggled by Alpine) */
.site-header {
    background: transparent;
    backdrop-filter: none;
    transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
    background: #fff;
    border-bottom-color: var(--line);
    box-shadow: 0 8px 28px rgba(15, 107, 91, .08);
}
@media (max-width: 479px) {
    .header-actions .btn-secondary { display: none; }
    .header-actions .btn { padding-inline: .7rem; font-size: .85rem; }
}

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
    outline: 3px solid rgba(15, 107, 91, .45);
    outline-offset: 2px;
}

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes landing-rise {
    from { transform: translateY(14px); }
    to { transform: none; }
}
.hero-copy { animation: landing-rise .6s ease both; }

/* Hero */
.hero { padding: .8rem 0 .4rem; }
.hero-copy h1 { font-size: clamp(1.85rem, 7vw, 3.4rem); }
.hero-copy p { font-size: 1rem; }
.hero-actions .btn { flex: 1 1 100%; }
.hero-photo { aspect-ratio: 16 / 11; }

.hero-search {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.hero-field { display: grid; gap: .3rem; }
.hero-field span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.hero-field select {
    width: 100%;
    min-height: 50px;
    padding-inline: .85rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
}
.hero-search-btn { width: 100%; align-self: end; }

.stats-strip {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}
.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
    padding: .8rem .35rem;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.stats-item .service-icon { display: none; }
.stats-item span { display: grid; gap: .1rem; }
.stats-item b { font-size: 1.35rem; line-height: 1.1; color: var(--brand); font-weight: 800; }
.stats-item small { font-size: .72rem; line-height: 1.35; color: var(--muted); font-weight: 600; }

.section { padding: 1.4rem 0 1.6rem; }
.section-more { text-align: center; margin-top: 1.25rem; }

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.2rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    text-align: center;
    padding: 1.1rem .75rem;
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card .service-icon { transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.service-card-name { font-weight: 800; font-size: .95rem; line-height: 1.4; }
.service-card-price { display: grid; gap: 0; margin-top: auto; }
.service-card-price small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.service-card-price strong { color: var(--brand); font-size: 1.05rem; font-weight: 800; }
.service-card:hover, .service-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(15, 107, 91, .25);
    box-shadow: 0 22px 44px rgba(15, 107, 91, .14);
}
.service-card:hover .service-icon, .service-card:focus-visible .service-icon {
    background: var(--brand);
    color: #fff;
    transform: scale(1.06);
}

/* How it works: numbered steps with a connector line */
.how-steps {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: grid;
    gap: .9rem;
    counter-reset: none;
}
.how-step {
    position: relative;
    display: grid;
    grid-template-columns: 38px 48px 1fr;
    align-items: center;
    column-gap: .75rem;
    padding: .9rem 1rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.how-step strong { font-size: .98rem; line-height: 1.4; }
.how-step p { grid-column: 3; margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }
.how-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    position: relative;
    z-index: 1;
}
.how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-inline-start: calc(1rem + 18px);
    top: 100%;
    height: .9rem;
    border-inline-start: 2px dashed rgba(15, 107, 91, .35);
}

/* Why */
.why-item { transition: transform .25s ease, box-shadow .25s ease; }
.why-item:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(15, 107, 91, .12); }
.why-item small { color: var(--muted); font-weight: 500; font-size: .8rem; line-height: 1.5; }

/* Featured providers */
.featured-grid { margin-bottom: 0; }

/* Testimonials */
.testi-grid { display: grid; gap: .9rem; margin-top: 1.2rem; }
.testi-card {
    margin: 0;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.testi-card blockquote { margin: 0; color: var(--ink); line-height: 1.8; position: relative; }
.testi-card blockquote::before {
    content: "\201C";
    display: block;
    color: var(--brand);
    opacity: .35;
    font-size: 2.6rem;
    line-height: .8;
    font-weight: 800;
}
.testi-card figcaption { margin-top: auto; display: grid; }
.testi-card figcaption strong { color: var(--brand); }
.testi-card figcaption span { color: var(--muted); font-size: .82rem; }

/* Provider CTA (join) */
.provider-cta {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 24px 50px rgba(15, 107, 91, .22);
}
.provider-cta h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.35; font-weight: 800; }
.provider-cta p { margin: 0 0 1.1rem; color: rgba(255, 255, 255, .88); max-width: 34rem; }
.provider-cta-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; align-content: center; }
.provider-cta-benefits li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    font-weight: 700;
}
.provider-cta-benefits .service-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.provider-cta .btn-secondary { border-color: transparent; }

/* Partners */
.partner img { max-height: 56px; width: auto; object-fit: contain; }
.partner[href] { transition: transform .25s ease, box-shadow .25s ease; }
.partner[href]:hover { transform: translateY(-3px); }

/* FAQ */
.faq button { text-align: start; }

/* Final CTA */
.final-cta-section { padding-bottom: .4rem; }
.final-cta {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: calc(var(--radius) + 6px);
    background: var(--mint);
    border: 1px solid var(--line);
}
.final-cta h2 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 5vw, 2.1rem); font-weight: 800; color: var(--brand); line-height: 1.35; }
.final-cta p { margin: 0 auto 1.2rem; color: var(--muted); max-width: 32rem; }
.final-cta-actions { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.final-cta-actions .btn { width: 100%; max-width: 20rem; }
.final-cta-actions .btn-secondary { background: var(--brand); color: #fff; border-color: var(--brand); }
.final-cta-actions .btn-secondary:hover { background: var(--brand-dark); }
.final-cta-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 640px) {
    .hero-actions .btn { flex: 0 0 auto; }
    .stats-item { flex-direction: row; text-align: start; padding: .9rem 1rem; gap: .8rem; }
    .stats-item .service-icon { display: grid; }
    .stats-item b { font-size: 1.6rem; }
    .stats-item small { font-size: .8rem; }
    .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
    .final-cta-actions { flex-direction: row; justify-content: center; gap: 1.2rem; }
    .final-cta-actions .btn { width: auto; }
}
@media (min-width: 768px) {
    .hero-search { grid-template-columns: 1fr 1fr auto; align-items: end; padding: 1.1rem 1.2rem; }
    .hero-search-btn { width: auto; }
    .testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .hero { padding: 1.6rem 0 .6rem; }
    .hero-photo { aspect-ratio: 4 / 3; }
    .section { padding: 2rem 0 2.2rem; }
    .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .testi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .how-steps {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 1rem;
        margin-top: 1.8rem;
    }
    .how-step {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: .7rem;
        text-align: center;
        padding: 0 .5rem;
        background: transparent;
        box-shadow: none;
    }
    .how-step p { grid-column: 1; }
    .how-step-num { width: 44px; height: 44px; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--bg); }
    .how-step:not(:last-child)::after {
        top: 21px;
        height: 0;
        inset-inline-start: calc(50% + 30px);
        width: calc(100% + 1rem - 60px);
        border-inline-start: 0;
        border-top: 2px dashed rgba(15, 107, 91, .35);
    }

    .provider-cta { grid-template-columns: 1.2fr .8fr; align-items: center; padding: 2.2rem 2.4rem; gap: 2rem; }
    .final-cta { padding: 2.8rem 2rem; }
}

/* Motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero-copy { animation: none; }
    .site-header, .service-card, .service-card .service-icon, .why-item, .partner[href] { transition: none; }
    .service-card:hover, .service-card:focus-visible, .why-item:hover, .partner[href]:hover { transform: none; }
    .service-card:hover .service-icon, .service-card:focus-visible .service-icon { transform: none; }
}
