/* ==========================================================================
   MyHome Cleaning Service — the /cleaning section of Macam Macam

   Brand comes from the MyHome badge (blue circle, house + broom, condensed
   lettering). Everything is scoped under body.cx-page so the travel pages keep
   their own look; the Macam header and footer stay as they are.

   Contrast rules (spec): #4391C2 on white is ~3.4:1, so it is for icons, borders
   and numbers 24px and up only — text links use --cx-brand-deep. WhatsApp green
   always carries dark text (6.2:1); white on it fails.

   Strict CSP: no inline styles anywhere. Every rule lives here.
   ========================================================================== */

.cx-page {
    --cx-brand: #4391C2;
    --cx-brand-deep: #1E5A85;
    --cx-brand-tint: #EAF3FA;
    --cx-ink: #0F2233;
    --cx-muted: #5B6B7A;
    --cx-line: #D6E3EE;
    --cx-wa: #25D366;
    --cx-wa-ink: #0B3D1F;
    --cx-warn: #F2A93B;
    --cx-display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --cx-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --cx-r: 16px;
    --cx-shadow: 0 1px 2px rgba(15, 34, 51, .06), 0 10px 26px -14px rgba(15, 34, 51, .22);
    --cx-max: 1120px;

    font-family: var(--cx-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cx-ink);
}

.cx-page main a { color: var(--cx-brand-deep); }
.cx-page main a:hover { text-decoration: underline; }
.cx-page :focus-visible { outline: 3px solid var(--cx-brand); outline-offset: 2px; border-radius: 6px; }

.cx-page main h1, .cx-page main h2 {
    font-family: var(--cx-display); font-weight: 600; letter-spacing: 0; color: var(--cx-brand-deep);
}
.cx-page main h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; margin: 0 0 .4em; }
.cx-page main h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.15; margin: 0 0 .6em; }
.cx-page main h3, .cx-page .cx-h3 {
    font-family: var(--cx-body); font-size: 1.12rem; font-weight: 700; color: var(--cx-brand-deep);
    letter-spacing: -.01em; margin: 0 0 .4em;
}

.cx-wrap { max-width: var(--cx-max); margin: 0 auto; padding: 0 16px; }
.cx-narrow { max-width: 780px; }
.cx-section { padding: 56px 0; }
.cx-alt { background: var(--cx-brand-tint); }
.cx-sub { color: var(--cx-muted); max-width: 60ch; margin: -.2em 0 1.4em; }
.cx-small { font-size: 14px; color: var(--cx-muted); margin-top: 16px; }
.cx-small a + a::before { content: " · "; color: var(--cx-muted); }

/* Owner decisions still open: impossible to miss in development, never in production. */
.cx-tbc { background: #FFF3C4; color: #6B4E00; border: 1px dashed #D9A400; border-radius: 4px; padding: 0 4px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.cx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1.2 var(--cx-body); text-decoration: none; cursor: pointer; text-align: center;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cx-page main .cx-btn { text-decoration: none; }
.cx-btn:active { transform: translateY(1px); }
.cx-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cx-btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.cx-btn-block { width: 100%; }
.cx-page .cx-btn-wa { background: var(--cx-wa); color: var(--cx-wa-ink); }
.cx-page .cx-btn-wa:hover { background: #1fc15c; box-shadow: 0 8px 20px -10px rgba(11, 61, 31, .55); }
.cx-page .cx-btn-primary { background: var(--cx-brand-deep); color: #fff; }
.cx-page .cx-btn-primary:hover { background: #17496d; }
.cx-page .cx-btn-ghost { background: #fff; color: var(--cx-brand-deep); border-color: var(--cx-line); }
.cx-page .cx-btn-ghost:hover { border-color: var(--cx-brand); }
.cx-ico { flex: none; }
.cx-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cx-link-sm { font-size: 14px; margin-top: 2px; min-height: 44px; }

/* ── Sub-header ─────────────────────────────────────────────────────────── */

.cx-subheader { background: #fff; border-bottom: 1px solid var(--cx-line); }
.cx-subheader-bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.cx-sublogo { display: inline-flex; align-items: center; gap: 10px; color: var(--cx-ink); text-decoration: none; flex: none; }
.cx-sublogo:hover { text-decoration: none; }
.cx-sublogo img { width: 40px; height: 40px; }
.cx-sublogo b { display: block; font-family: var(--cx-display); font-weight: 600; font-size: 17px; color: var(--cx-brand-deep); line-height: 1.1; }
.cx-sublogo small { display: block; font-size: 12px; color: var(--cx-muted); }
.cx-subnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.cx-subnav::-webkit-scrollbar { display: none; }
.cx-subnav a {
    padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
    color: var(--cx-ink); white-space: nowrap; text-decoration: none;
}
.cx-subnav a:hover { background: var(--cx-brand-tint); text-decoration: none; }
.cx-subnav a[aria-current="page"] { background: var(--cx-brand-tint); color: var(--cx-brand-deep); }
.cx-subcta { flex: none; }

/* The ONLY header on these pages (Macam's bar steps aside), so it sticks to the very top.
   On phones it scrolls away: the .cx-sticky bar at the bottom carries Call / WhatsApp / Prices. */
.cx-home {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    color: var(--cx-muted); font-weight: 700; font-size: 14px; text-decoration: none;
}
.cx-home:hover { color: var(--cx-ink); text-decoration: none; }
.cx-home .brand-mark { width: 26px; height: 26px; }
.cx-divider { width: 1px; height: 28px; background: var(--cx-line); flex: none; }

@media (min-width: 769px) {
    .cx-masthead { position: sticky; top: 0; z-index: 60; }
}
@media (max-width: 960px) {
    .cx-subcta span { display: none; }
    .cx-subcta { padding: 0 12px; }
    .cx-home span { display: none; }
}
@media (max-width: 768px) {
    /* Two rows on a phone: [Macam ▾ | MyHome logo ……… 中文] then the section links. The language
       button is pinned to the first row's right edge instead of wrapping onto a row of its own. */
    .cx-subheader-bar { position: relative; flex-wrap: wrap; gap: 4px 10px; padding-top: 8px; padding-bottom: 4px; }
    .cx-sublogo { flex: 0 1 auto; min-width: 0; margin-right: 52px; }
    .cx-sublogo img { width: 34px; height: 34px; }
    .cx-sublogo > span { min-width: 0; }
    .cx-sublogo b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cx-sublogo small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cx-subnav { order: 3; flex-basis: 100%; margin: 0 -6px; gap: 0; justify-content: space-between; }
    .cx-subnav a { padding: 12px 7px; font-size: 14px; }
    .cx-subcta { display: none; }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */

.cx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin: 0; padding: 2px 0 0; font-size: 13.5px; color: var(--cx-muted); }
/* Taller tap area, same look: a finger-sized target on a 13px link. */
.cx-crumbs a { display: inline-block; padding: 12px 0; }
.cx-crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--cx-line); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.cx-hero { padding: 28px 0 48px; }
.cx-hero-page { padding: 28px 0 24px; }
.cx-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.cx-hero-page .cx-hero-grid { grid-template-columns: 1fr; }
.cx-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-brand-deep); margin: 0 0 12px; }
.cx-lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--cx-ink); max-width: 56ch; }
.cx-lede-2 { color: var(--cx-muted); font-size: 1rem; }
.cx-lede-dark { font-size: 1.12rem; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cx-actions-center { justify-content: center; }
.cx-micro { margin-top: 14px; font-size: 14px; color: var(--cx-muted); }
.cx-hero-visual img { border-radius: var(--cx-r); width: 100%; height: auto; }
.cx-badge-stage {
    aspect-ratio: 4 / 3; border-radius: 24px; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 45%, #fff 0 30%, var(--cx-brand-tint) 31% 100%);
    border: 1px solid var(--cx-line);
}
.cx-badge-stage img { width: min(300px, 62%); height: auto; }

.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cx-chips a {
    padding: 8px 14px; border-radius: 999px; background: var(--cx-brand-tint); border: 1px solid var(--cx-line);
    font-weight: 600; font-size: 14px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center;
}

@media (max-width: 820px) {
    .cx-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .cx-hero-visual { order: -1; max-width: 360px; }
    .cx-badge-stage { aspect-ratio: 16 / 9; }
    .cx-badge-stage img { width: 42%; }
    /* With no real photo, the hero visual is only the badge — already in the header above. On a
       phone it would push the headline and the WhatsApp button below the fold, so it goes. */
    .cx-hero-visual:has(.cx-badge-stage) { display: none; }
    .cx-hero { padding-top: 16px; }
}

/* ── Trust strip ────────────────────────────────────────────────────────── */

.cx-trust { background: var(--cx-brand-tint); border-block: 1px solid var(--cx-line); }
.cx-trust-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 auto; padding-top: 20px; padding-bottom: 20px; }
.cx-trust-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.cx-trust-list .cx-ico { color: var(--cx-brand); width: 24px; height: 24px; margin-top: 1px; }
@media (max-width: 900px) { .cx-trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cx-trust-list { grid-template-columns: 1fr; gap: 12px; } }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.cx-cards { display: grid; gap: 16px; }
.cx-cards-3 { grid-template-columns: repeat(3, 1fr); }
.cx-cards-buildings { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cx-cards-prices { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .cx-cards-prices { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .cx-cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cx-cards-3, .cx-cards-prices { grid-template-columns: 1fr; } }

.cx-card {
    position: relative; background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-r);
    padding: 22px; box-shadow: var(--cx-shadow); display: flex; flex-direction: column; gap: 6px;
}
.cx-card p { margin: 0 0 6px; }
.cx-card > .cx-btn, .cx-card > .cx-link { margin-top: auto; }
a.cx-card { color: var(--cx-ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.cx-page main a.cx-card:hover { border-color: var(--cx-brand); text-decoration: none; transform: translateY(-2px); }

.cx-svc-ico {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--cx-brand-tint); color: var(--cx-brand); margin-bottom: 6px;
}
.cx-svc-ico .cx-ico { width: 24px; height: 24px; }
.cx-from { font-weight: 700; color: var(--cx-brand-deep); }
.cx-price { font-family: var(--cx-display); font-weight: 600; color: var(--cx-brand); font-size: 26px; line-height: 1; }
.cx-price-xl { font-size: 38px; margin: 6px 0 2px; }
.cx-price small { font-family: var(--cx-body); font-size: 14px; font-weight: 600; color: var(--cx-muted); }
.cx-crew { color: var(--cx-muted); font-size: 14px; }
.cx-weekend { color: var(--cx-brand-deep); font-size: 13.5px; font-weight: 600; }
.cx-page .cx-matrix-table td small.cx-weekend { color: var(--cx-brand-deep); font-weight: 600; }
.cx-pricecard { text-align: left; }
.cx-pricecard .cx-btn { margin-top: 10px; }
.cx-unitline { font-weight: 700; color: var(--cx-brand-deep); margin: 0 0 14px; }
.cx-unitline span { font-weight: 400; color: var(--cx-muted); white-space: nowrap; }
.cx-unitline .cx-ico { color: var(--cx-brand); vertical-align: -4px; margin-right: 4px; }

/* Phones: five full-width price cards is a long scroll for one answer — two up, compact. */
@media (max-width: 600px) {
    .cx-page .cx-cards-prices { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cx-cards-prices > .cx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .cx-pricecard { padding: 14px; }
    .cx-pricecard h3 { font-size: 1rem; }
    .cx-pricecard .cx-price-xl { font-size: 30px; }
    .cx-pricecard .cx-crew { font-size: 13px; min-height: 2.6em; }
    .cx-pricecard .cx-btn { min-height: 44px; padding: 0 12px; }
}

.cx-building-media {
    height: 120px; border-radius: 12px; background: var(--cx-brand-tint); display: grid; place-items: center;
    color: var(--cx-brand); margin-bottom: 8px; overflow: hidden;
}
.cx-building-media .cx-ico { width: 48px; height: 48px; }
.cx-building-media img { width: 100%; height: 100%; object-fit: cover; }
.cx-building h3 a { color: var(--cx-brand-deep); }

.cx-badge {
    position: absolute; top: -12px; left: 20px; background: var(--cx-brand-deep); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px;
}
.cx-plan.is-featured { border: 2px solid var(--cx-brand); }
.cx-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-brand-deep); }
.cx-audience .cx-btn { align-self: flex-start; }

/* ── Value list / promise ───────────────────────────────────────────────── */

.cx-values, .cx-promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.cx-values li, .cx-promise-list li { display: flex; gap: 12px; }
.cx-values p, .cx-promise-list p { margin: 0; }
.cx-values .cx-ico, .cx-promise-list .cx-ico { color: var(--cx-brand); width: 26px; height: 26px; }
@media (max-width: 700px) { .cx-values, .cx-promise-list { grid-template-columns: 1fr; } }

.cx-promise { background: var(--cx-brand-deep); color: #fff; padding: 52px 0; }
.cx-page main .cx-promise h2 { color: #fff; }
.cx-promise .cx-ico { color: #9fd0ef; }
.cx-page main .cx-promise a { color: #fff; }
.cx-promise-more { margin: 22px 0 0; font-weight: 600; }

.cx-angle { background: var(--cx-brand-tint); border-left: 6px solid var(--cx-brand); margin: 32px auto 0; max-width: var(--cx-max); border-radius: 0 var(--cx-r) var(--cx-r) 0; }
.cx-angle .cx-wrap { padding-top: 20px; padding-bottom: 20px; }
.cx-angle p { margin: 0; }
.cx-angle-head { font-family: var(--cx-display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--cx-brand-deep); margin-bottom: 6px !important; }

/* ── Steps ──────────────────────────────────────────────────────────────── */

.cx-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; }
.cx-steps li { counter-increment: step; background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-r); padding: 20px; }
.cx-steps li::before {
    content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--cx-brand); color: #fff; font-family: var(--cx-display); font-size: 18px; margin-bottom: 10px;
}
.cx-steps p { margin: 0; }
@media (max-width: 860px) { .cx-steps { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.cx-faq { margin-bottom: 28px; }
.cx-faq details { border-bottom: 1px solid var(--cx-line); }
.cx-faq summary {
    cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative; min-height: 48px;
}
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after {
    content: "+"; position: absolute; right: 6px; top: 12px; font-size: 22px; color: var(--cx-brand); font-weight: 400;
}
.cx-faq details[open] summary::after { content: "−"; }
.cx-faq details p { margin: 0 0 16px; color: var(--cx-ink); }
.cx-faq-more { font-weight: 600; }

/* ── Price picker ───────────────────────────────────────────────────────── */

.cx-picker { display: none; }
.js .cx-picker {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; background: #fff;
    border: 1px solid var(--cx-line); border-radius: 20px; padding: 20px; box-shadow: var(--cx-shadow);
}
.cx-picker-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cx-field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.cx-field label, .cx-field legend, .cx-picker-addons legend { font-size: 13.5px; font-weight: 700; color: var(--cx-ink); }
.cx-stepno {
    display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--cx-brand-tint); color: var(--cx-brand-deep); font-size: 12px; margin-right: 4px;
}
.cx-page select, .cx-page input[type="text"], .cx-page input[type="date"], .cx-page textarea {
    width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9cbdb; border-radius: 12px;
    font: 400 16px/1.3 var(--cx-body); color: var(--cx-ink); background: #fff;
}
.cx-page select:disabled { background: var(--cx-brand-tint); color: var(--cx-brand-deep); font-weight: 600; opacity: 1; }
.cx-picker-addons { border: 0; padding: 0; margin: 16px 0 0; }
.cx-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.cx-check {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
    border: 1px solid var(--cx-line); border-radius: 12px; cursor: pointer; font-size: 14.5px;
}
.cx-check input { width: 20px; height: 20px; accent-color: var(--cx-brand-deep); flex: none; }
.cx-check span { flex: 1; }
.cx-check b { color: var(--cx-brand-deep); }
.cx-check[hidden] { display: none; }

.cx-picker-out { background: var(--cx-brand-tint); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; }
.cx-out-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-brand-deep); }
.cx-out-price { font-family: var(--cx-display); font-size: 48px; font-weight: 600; color: var(--cx-brand); margin: 4px 0; line-height: 1; }
.cx-out-crew { margin: 0 0 12px; color: var(--cx-muted); font-size: 14.5px; }
.cx-out-lines { margin: 0 0 16px; }
.cx-out-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--cx-line); font-size: 14.5px; }
.cx-out-lines dt { color: var(--cx-muted); }
.cx-out-lines dd { margin: 0; text-align: right; font-weight: 600; }
.cx-out-total dd { font-size: 18px; color: var(--cx-brand-deep); }
.cx-picker-out .cx-small { margin-top: 10px; }

@media (max-width: 900px) {
    .js .cx-picker { grid-template-columns: 1fr; }
    .cx-picker-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cx-checks { grid-template-columns: 1fr; } }

/* ── Matrix (table ≥768, radio tabs below) ──────────────────────────────── */

.cx-table-wrap { overflow-x: auto; }
.cx-matrix-table, .cx-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--cx-r); overflow: hidden; }
.cx-matrix-table th, .cx-matrix-table td, .cx-table th, .cx-table td {
    padding: 14px 12px; border-bottom: 1px solid var(--cx-line); text-align: left; vertical-align: top;
}
.cx-matrix-table thead th, .cx-table thead th { background: var(--cx-brand-tint); font-size: 14px; color: var(--cx-brand-deep); }
.cx-matrix-table tbody th small, .cx-matrix-table td small { display: block; font-weight: 400; color: var(--cx-muted); font-size: 13px; margin-top: 4px; }
.cx-table th[scope="row"] { font-weight: 600; }
.cx-mtabs { display: none; }

@media (max-width: 767px) {
    .cx-matrix .cx-table-wrap { display: none; }
    .cx-mtabs { display: block; }
    .cx-mtab-labels { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
    .cx-mtab-labels label {
        flex: none; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--cx-line);
        background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center;
    }
    .cx-mtab-panel { display: none; list-style: none; margin: 8px 0 0; padding: 0; background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-r); }
    .cx-mtab-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--cx-line); }
    .cx-mtab-panel li:last-child { border-bottom: 0; }
    .cx-mtab-panel small { display: block; color: var(--cx-muted); font-size: 13px; }
    .cx-mtab-panel li > span:last-child { text-align: right; }
}
.cx-mtab-in:nth-of-type(1):checked ~ .cx-mtab-panel:nth-of-type(1),
.cx-mtab-in:nth-of-type(2):checked ~ .cx-mtab-panel:nth-of-type(2),
.cx-mtab-in:nth-of-type(3):checked ~ .cx-mtab-panel:nth-of-type(3),
.cx-mtab-in:nth-of-type(4):checked ~ .cx-mtab-panel:nth-of-type(4),
.cx-mtab-in:nth-of-type(5):checked ~ .cx-mtab-panel:nth-of-type(5),
.cx-mtab-in:nth-of-type(6):checked ~ .cx-mtab-panel:nth-of-type(6) { display: block; }
.cx-mtab-in:nth-of-type(1):checked ~ .cx-mtab-labels label:nth-child(1),
.cx-mtab-in:nth-of-type(2):checked ~ .cx-mtab-labels label:nth-child(2),
.cx-mtab-in:nth-of-type(3):checked ~ .cx-mtab-labels label:nth-child(3),
.cx-mtab-in:nth-of-type(4):checked ~ .cx-mtab-labels label:nth-child(4),
.cx-mtab-in:nth-of-type(5):checked ~ .cx-mtab-labels label:nth-child(5),
.cx-mtab-in:nth-of-type(6):checked ~ .cx-mtab-labels label:nth-child(6) { background: var(--cx-brand-deep); border-color: var(--cx-brand-deep); color: #fff; }
.cx-mtab-in:nth-of-type(1):focus-visible ~ .cx-mtab-labels label:nth-child(1),
.cx-mtab-in:nth-of-type(2):focus-visible ~ .cx-mtab-labels label:nth-child(2),
.cx-mtab-in:nth-of-type(3):focus-visible ~ .cx-mtab-labels label:nth-child(3),
.cx-mtab-in:nth-of-type(4):focus-visible ~ .cx-mtab-labels label:nth-child(4),
.cx-mtab-in:nth-of-type(5):focus-visible ~ .cx-mtab-labels label:nth-child(5),
.cx-mtab-in:nth-of-type(6):focus-visible ~ .cx-mtab-labels label:nth-child(6) { outline: 3px solid var(--cx-brand); outline-offset: 2px; }

.cx-extra { margin-top: 18px; }

/* ── Service detail ─────────────────────────────────────────────────────── */

.cx-svcdetail { padding: 44px 0; scroll-margin-top: 84px; }
.cx-svcdetail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.cx-page main .cx-svcdetail h2.cx-h3 { font-family: var(--cx-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
.cx-incl h3 { font-size: 15px; margin-top: 8px; }
.cx-ticks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.cx-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.cx-ticks .cx-ico { color: #138a43; margin-top: 2px; width: 20px; height: 20px; }
.cx-crosses .cx-ico { color: #b4413a; }
.cx-ticks-2 { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.cx-ticks .is-key { grid-column: 1 / -1; }
@media (max-width: 760px) { .cx-svcdetail-grid, .cx-ticks-2 { grid-template-columns: 1fr; } }
/* Clears the one sticky 64px header on desktop; on phones the header scrolls away. */
.cx-page [id] { scroll-margin-top: 84px; }
@media (max-width: 768px) { .cx-page [id], .cx-page .cx-svcdetail { scroll-margin-top: 16px; } }

.cx-feeband { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cx-feeband li {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--cx-line); font-weight: 600;
}
.cx-feeband .cx-ico { color: var(--cx-brand); }

/* ── Photo report demo ──────────────────────────────────────────────────── */

.cx-report-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.cx-phone { background: #0f2233; border-radius: 36px; padding: 12px; box-shadow: var(--cx-shadow); max-width: 340px; }
.cx-phone-screen { background: #efe7dd; border-radius: 26px; overflow: hidden; }
.cx-phone-head { display: flex; align-items: center; gap: 8px; background: #075e54; color: #fff; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.cx-phone-head img { border-radius: 50%; background: #fff; }
.cx-phone-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px; }
.cx-phone-photos span {
    aspect-ratio: 1; border-radius: 6px; background: linear-gradient(160deg, #cfe3f1, #9fc4de);
    font-size: 9.5px; font-weight: 600; color: var(--cx-brand-deep); display: grid; place-items: end start; padding: 4px;
}
.cx-phone-msg { background: #fff; margin: 0 10px 12px; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.cx-phone-msg p { margin: 0 0 4px; }
.cx-warn { color: #8a5a00; background: color-mix(in oklab, var(--cx-warn) 22%, white); border-radius: 4px; padding: 1px 4px; }
@media (max-width: 820px) { .cx-report-grid { grid-template-columns: 1fr; } .cx-phone { margin: 0 auto; } }

/* ── Before / after ─────────────────────────────────────────────────────── */

/* One album per cleaning job: one unit on one day, its befores then its afters
   (user 2026-10-29: albums by the date we cleaned, about 20, to show we are serious). */
.cx-album-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 600 16px/1.3 var(--cx-body); }
.cx-album-h small { color: var(--cx-muted); font-weight: 500; font-size: 14px; }
.cx-ba-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 700 13px/1.4 var(--cx-body); letter-spacing: .02em; color: #fff; }
.cx-ba-tag-before { background: #5B6B7A; }
.cx-ba-tag-after { background: var(--cx-brand-deep); }
.cx-album-item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cx-brand-tint); }
.cx-album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.cx-album-item:hover img, .cx-album-item:focus-visible img { transform: scale(1.04); }

/* Teaser: the count, then the newest jobs as cards: two befores over two afters. */
.cx-job-stats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--cx-muted); font-size: 15px; }
.cx-job-stats strong { color: var(--cx-ink); font: 600 24px/1.1 var(--cx-display); margin-right: 4px; }
.cx-job-stats li:last-child strong { font-size: 16px; }
.cx-jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cx-job-card { min-width: 0; }
.cx-job-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 14px; overflow: hidden; }
.cx-job-mosaic .cx-album-item { border-radius: 0; }
/* Grand To repair cards: problem | fixed as two columns. One photo stands tall (2:3, same height
   as two 4:3 tiles stacked), so a single portrait shot of a ceiling light is not cropped away. */
.cx-job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 14px; overflow: hidden; }
.cx-job-col { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cx-job-col .cx-album-item { border-radius: 0; }
.cx-job-col .cx-album-item.cx-tall { aspect-ratio: 2 / 3; }
.cx-job-col .cx-ba-tag { position: absolute; left: 8px; top: 8px; padding: 2px 10px; font-size: 12px; pointer-events: none; }
.cx-job-mosaic .cx-ba-tag { position: absolute; left: 8px; padding: 2px 10px; font-size: 12px; pointer-events: none; }
.cx-job-mosaic .cx-ba-tag-before { top: 8px; }
.cx-job-mosaic .cx-ba-tag-after { top: calc(50% + 6px); }
.cx-job-meta { margin: 10px 0 0; font-size: 15px; }
.cx-job-count { margin: 2px 0 0; font-size: 13px; color: var(--cx-muted); }
.cx-ba-all { margin: 26px 0 0; text-align: center; }

/* Gallery: every job, every photo. */
.cx-job { padding: 28px 0; border-top: 1px solid var(--cx-line); }
.cx-job:first-child { border-top: 0; padding-top: 0; }
.cx-job-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.cx-job-h h2 { margin: 0; font-size: 22px; }
.cx-job-h p { margin: 0; color: var(--cx-muted); }
.cx-job-side + .cx-job-side { margin-top: 16px; }
.cx-album-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cx-album-grid li { min-width: 0; }
@media (max-width: 960px) {
    .cx-jobs { grid-template-columns: repeat(2, 1fr); }
    .cx-album-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .cx-jobs { grid-template-columns: 1fr; }
    .cx-album-grid { gap: 6px; }
}

/* Full-size viewer (cleaning.js). Without JavaScript the thumbnails are plain links to the photo. */
.cx-lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(8, 15, 24, .94); color: #fff; }
.cx-lb::backdrop { background: rgba(8, 15, 24, .94); }
.cx-lb-fig { position: absolute; inset: 56px 64px 64px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cx-lb-fig img { max-width: 100%; max-height: calc(100% - 34px); object-fit: contain; border-radius: 8px; }
.cx-lb-fig figcaption { font: 500 15px/1.4 var(--cx-body); text-align: center; }
.cx-lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .14); color: #fff; font: 400 28px/1 var(--cx-body); cursor: pointer; }
.cx-lb button:hover, .cx-lb button:focus-visible { background: rgba(255, 255, 255, .28); }
.cx-lb-close { top: 10px; right: 10px; }
.cx-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.cx-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .cx-lb-fig { inset: 60px 8px 76px; }
    .cx-lb-prev, .cx-lb-next { top: auto; bottom: 14px; transform: none; }
    .cx-lb-prev { left: calc(50% - 56px); }
    .cx-lb-next { right: calc(50% - 56px); }
}

/* ── Booking form ───────────────────────────────────────────────────────── */

.cx-book { display: none; }
.js .cx-book { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cx-book-fields { display: grid; gap: 18px; }
.cx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cx-req { font-weight: 400; color: var(--cx-muted); font-size: 12px; }
.cx-radiocards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-radiocards legend { margin-bottom: 6px; }
.cx-radiocard {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--cx-line);
    border-radius: 14px; cursor: pointer; background: #fff;
}
.cx-radiocard input { position: absolute; opacity: 0; pointer-events: none; }
.cx-radiocard .cx-svc-ico { width: 38px; height: 38px; margin: 0; flex: none; }
.cx-radiocard b { display: block; font-size: 15px; }
.cx-radiocard small { display: block; color: var(--cx-muted); font-size: 13px; line-height: 1.4; }
.cx-radiocard:has(input:checked) { border: 2px solid var(--cx-brand-deep); background: var(--cx-brand-tint); padding: 11px; }
.cx-radiocard:has(input:focus-visible) { outline: 3px solid var(--cx-brand); outline-offset: 2px; }
.cx-pills { display: flex; flex-wrap: wrap; gap: 8px; flex-direction: row; }
.cx-pills legend { width: 100%; margin-bottom: 6px; }
.cx-pill { position: relative; }
.cx-pill input { position: absolute; opacity: 0; }
.cx-pill span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--cx-line); background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.cx-pill input:checked + span { background: var(--cx-brand-deep); color: #fff; border-color: var(--cx-brand-deep); }
.cx-pill input:focus-visible + span { outline: 3px solid var(--cx-brand); outline-offset: 2px; }
.cx-book-summary {
    position: sticky; top: 150px; background: var(--cx-brand-tint); border: 1px solid var(--cx-line);
    border-radius: 18px; padding: 20px;
}
.cx-book-error { color: #9b1c1c; background: #fdecec; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.cx-field.is-invalid select, .cx-field.is-invalid input, .cx-field.is-invalid textarea { border-color: #c0392b; }
.cx-field.is-invalid > legend, .cx-field.is-invalid > label { color: #9b1c1c; }
.cx-alt-contact { margin-top: 24px; }

@media (max-width: 900px) {
    .js .cx-book { grid-template-columns: 1fr; }
    .cx-book-summary { position: sticky; bottom: 72px; top: auto; z-index: 5; box-shadow: var(--cx-shadow); }
    .cx-radiocards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cx-field-row { grid-template-columns: 1fr; } }

/* ── Final CTA / other buildings / legal ────────────────────────────────── */

.cx-final { background: var(--cx-brand-tint); padding: 60px 0; text-align: center; border-top: 1px solid var(--cx-line); }
.cx-final-line { font-size: 1.1rem; }
.cx-final-call { margin-top: 12px; }
.cx-others { padding: 28px 0; border-top: 1px solid var(--cx-line); }
.cx-others p { margin: 0 0 6px; }
.cx-alt-contact a, .cx-final-call a { font-weight: 600; }
.cx-legal ol { padding-left: 22px; display: grid; gap: 12px; }
.cx-legal h2 { margin-top: 32px; }
.cx-legal ul { padding-left: 22px; display: grid; gap: 8px; }

/* ── Company block ──────────────────────────────────────────────────────── */

.cx-company { background: #f4f8fb; border-top: 1px solid var(--cx-line); padding: 32px 0; font-size: 14.5px; color: var(--cx-ink); }
.cx-company-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.cx-company p { margin: 0 0 4px; }
.cx-company a { color: var(--cx-brand-deep); }
.cx-company-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px !important; font-weight: 600; }
.cx-company img { width: 72px; height: 72px; }
@media (max-width: 520px) { .cx-company-grid { grid-template-columns: 1fr; } }

/* ── Sticky mobile bar ──────────────────────────────────────────────────── */

.cx-sticky { display: none; }
@media (max-width: 768px) {
    .cx-sticky {
        display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        background: #fff; border-top: 1px solid var(--cx-line); box-shadow: 0 -6px 18px -10px rgba(15, 34, 51, .3);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .cx-sticky a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px;
        color: var(--cx-brand-deep); font-weight: 700; font-size: 13px; text-decoration: none;
    }
    .cx-sticky a.is-wa { background: var(--cx-wa); color: var(--cx-wa-ink); }
    /* Room for the bar, so it never sits over the final CTA or the footer. */
    body.cx-page { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .cx-page *, .cx-page *::before, .cx-page *::after { transition: none !important; }
}

/* ── Language: switcher + Chinese pages ─────────────────────────────────── */

.cx-lang {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px;
    border: 1px solid var(--cx-line); font-weight: 700; font-size: 14px; color: var(--cx-brand-deep);
    text-decoration: none;
}
.cx-page .cx-lang:hover { background: var(--cx-brand-tint); text-decoration: none; }

/* Oswald and Inter have no Chinese glyphs: name the system CJK faces so the browser does not pick
   a serif fallback. Nothing is downloaded — every phone and desktop already has one of these. */
html:lang(zh-Hans-MY) .cx-page,
.cx-page:lang(zh) {
    --cx-display: "Oswald", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
    --cx-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
.cx-page:lang(zh) main h1, .cx-page:lang(zh) main h2 { letter-spacing: .02em; line-height: 1.25; }
.cx-page:lang(zh) .cx-eyebrow { letter-spacing: .04em; }
.cx-page:lang(zh) { line-height: 1.75; }

@media (max-width: 768px) {
    .cx-lang { position: absolute; right: 16px; top: 10px; }
}
