/* ==========================================================================
   VSH Hospital — Home Care Services section
   Scoped under .hc-page so it never collides with the global site CSS.
   Fonts match the rest of the VSH front-end: Questrial for headings and body
   (already loaded by inner-base.html), Poppins as fallback.
   ========================================================================== */

.hc-page {
    --hc-ink: #16233a;
    --hc-blue: #164d92;
    --hc-blue-dark: #0f356a;
    --hc-red: #b6202e;
    --hc-red-dark: #8f1822;
    --hc-muted: #5b6472;
    --hc-warm: #f7f2ea;
    --hc-warm-deep: #efe4d3;
    --hc-sand: #e7dccb;
    --hc-line: #e4e7ec;
    --hc-teal: #0f8a80;
    --hc-white: #ffffff;

    --hc-display: 'Questrial', 'Poppins', Arial, Helvetica, sans-serif;
    --hc-body: 'Questrial', 'Poppins', Arial, Helvetica, sans-serif;

    --hc-radius: 16px;
    --hc-shadow: 0 24px 60px -30px rgba(22, 35, 58, .35);
    --hc-shadow-sm: 0 14px 38px -22px rgba(22, 35, 58, .32);
    --hc-wrap: 1160px;

    color: var(--hc-ink);
    font-family: var(--hc-body);
    font-size: 17px;
    line-height: 1.65;
    background: var(--hc-white);
    -webkit-font-smoothing: antialiased;
}

.hc-page *,
.hc-page *::before,
.hc-page *::after { box-sizing: border-box; }

.hc-page img { max-width: 100%; display: block; }

.hc-wrap {
    max-width: var(--hc-wrap);
    margin: 0 auto;
    padding: 0 22px;
}

/* ---- Typography ------------------------------------------------------- */
.hc-page h1,
.hc-page h2,
.hc-page h3 {
    font-family: var(--hc-display);
    color: var(--hc-ink);
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin: 0;
    font-weight: 700;
}
.hc-page h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 2.9rem); line-height: 1.1; }
.hc-page h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); }
.hc-page h3 { font-size: 1.2rem; letter-spacing: -0.006em; }
.hc-page p { margin: 0 0 1rem; }
.hc-page a { color: var(--hc-blue); text-decoration: none; }
.hc-page a:hover { color: var(--hc-red); }

/* Eyebrow + double-rule motif — framed like an address line for the
   "care that travels to you" idea, repeated under every section title. */
.hc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hc-display);
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--hc-red);
    margin: 0 0 14px;
}
.hc-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--hc-red);
}
.hc-rule {
    border: 0;
    height: 0;
    border-top: 1px solid var(--hc-red);
    box-shadow: 0 3px 0 -2px var(--hc-sand);
    margin: 20px 0 30px;
    max-width: 100%;
}

/* ---- Section rhythm ------------------------------------------------- */
.hc-section { padding: 78px 0; }
.hc-section--warm { background: var(--hc-warm); }
.hc-section--tight { padding: 52px 0; }
.hc-lead {
    font-size: 1.16rem;
    color: var(--hc-muted);
    max-width: 66ch;
}

/* ---- Hero --------------------------------------------------------- */
.hc-hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 90% -15%, rgba(22, 77, 146, .12), transparent 70%),
        linear-gradient(180deg, #f9fbfe 0%, #ffffff 60%);
    border-bottom: 1px solid var(--hc-line);
    padding: 44px 0 66px;
    overflow: hidden;
}
.hc-breadcrumb {
    font-size: 0.88rem;
    color: var(--hc-muted);
    margin-bottom: 24px;
}
.hc-breadcrumb a { color: var(--hc-muted); }
.hc-breadcrumb a:hover { color: var(--hc-red); }
.hc-breadcrumb span { color: var(--hc-ink); }

.hc-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 52px;
    align-items: center;
}
.hc-hero h1 { margin-bottom: 20px; }
.hc-hero h1 em {
    font-style: normal;
    color: var(--hc-blue);
    display: block;
}
.hc-hero-answer {
    font-size: 1.12rem;
    color: var(--hc-ink);
    background: var(--hc-warm);
    border-left: 3px solid var(--hc-red);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    max-width: 58ch;
    margin: 0 0 26px;
    line-height: 1.6;
}
.hc-hero-answer b { color: var(--hc-red); font-weight: 400; }

/* Hero image — framed photo with a soft ring + the "Home Care desk" badge.
   This is the section's signature: the call desk lives on the picture of care. */
.hc-hero-media { position: relative; }
.hc-hero-media > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
}
.hc-hero-media::after {
    content: "";
    position: absolute;
    inset: -14px -14px 24px 24px;
    border: 1px solid var(--hc-sand);
    border-radius: var(--hc-radius);
    z-index: -1;
}
.hc-hero-badge {
    position: absolute;
    left: -26px;
    bottom: 44px;
    background: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-top: 3px solid var(--hc-red);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--hc-shadow-sm);
    max-width: 235px;
}
.hc-hero-badge .hc-hb-label {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hc-muted);
    margin: 0 0 3px;
}
.hc-hero-badge .hc-hb-number {
    font-family: var(--hc-display);
    font-size: 1.32rem;
    color: var(--hc-blue);
    display: block;
    letter-spacing: -0.01em;
}
.hc-hero-badge .hc-hb-number:hover { color: var(--hc-red); }
.hc-hero-badge .hc-hb-sub { font-size: 0.82rem; color: var(--hc-muted); margin: 2px 0 0; }

/* ---- Buttons ---------------------------------------------------- */
.hc-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}
.hc-page .hc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hc-display);
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.hc-page .hc-btn svg { width: 16px; height: 16px; flex: none; }
.hc-page .hc-btn--primary { background: var(--hc-red) !important; color: #fff !important; box-shadow: 0 12px 26px -12px rgba(182, 32, 46, .6); }
.hc-page .hc-btn--primary:hover { background: var(--hc-red-dark) !important; color: #fff !important; transform: translateY(-2px); }
.hc-page .hc-btn--ghost { border-color: var(--hc-blue); color: var(--hc-blue) !important; background: transparent !important; }
.hc-page .hc-btn--ghost:hover { background: var(--hc-blue) !important; color: #fff !important; transform: translateY(-2px); }
.hc-page .hc-btn--onred { background: #fff !important; color: var(--hc-red) !important; }
.hc-page .hc-btn--onred:hover { background: var(--hc-ink) !important; color: #fff !important; transform: translateY(-2px); }
.hc-page .hc-btn--onred-ghost { border-color: rgba(255,255,255,.75); color: #fff !important; background: transparent !important; }
.hc-page .hc-btn--onred-ghost:hover { background: #fff !important; color: var(--hc-red) !important; transform: translateY(-2px); }

/* ---- Service directory (hub) --------------------------------------- */
.hc-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 38px;
}
.hc-svc {
    display: flex;
    flex-direction: column;
    background: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    padding: 28px 26px 24px;
    box-shadow: var(--hc-shadow-sm);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hc-svc:hover {
    transform: translateY(-4px);
    border-color: var(--hc-blue);
    box-shadow: var(--hc-shadow);
}
.hc-svc-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--hc-warm), var(--hc-warm-deep));
    color: var(--hc-blue);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.hc-svc-icon svg { width: 27px; height: 27px; }
.hc-svc h3 { color: var(--hc-blue) !important; margin-bottom: 8px; }
.hc-svc p { color: var(--hc-muted); font-size: 0.99rem; margin: 0 0 18px; }
.hc-svc-more {
    margin-top: auto;
    font-family: var(--hc-display);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-red) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hc-svc:hover .hc-svc-more { gap: 12px; }
.hc-svc-more svg { width: 15px; height: 15px; }

/* ---- Media band (image + copy side by side) ---------------------- */
.hc-media {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: center;
}
.hc-media--flip { grid-template-columns: 1.1fr 0.9fr; }
.hc-media--flip .hc-media-figure { order: 2; }

/* Stack variant: figure on the left, the two content blocks (chips, then
   "why VSH") stacked on the right — no wrapper div needed. */
.hc-media--stack {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: start;
    align-content: start;
    row-gap: 0;
    grid-auto-rows: min-content;
}
.hc-media--stack > .hc-media-figure { grid-column: 1; grid-row: 1 / span 2; }
.hc-media--stack > *:not(.hc-media-figure) { grid-column: 2; align-self: start; }
.hc-media--stack .hc-why { margin-top: 26px; }
.hc-media-figure { position: relative; }
.hc-media-figure > img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
}
.hc-media-figure::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 62%;
    height: 58%;
    border: 1px solid var(--hc-sand);
    border-radius: var(--hc-radius);
    z-index: -1;
}
.hc-media--flip .hc-media-figure::after { right: auto; left: -16px; }

/* ---- Pricing / charges card --------------------------------- */
.hc-pricing {
    background: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-top: 3px solid var(--hc-red);
    border-radius: var(--hc-radius);
    padding: 6px 30px 24px;
    box-shadow: var(--hc-shadow-sm);
    max-width: 660px;
}
.hc-pricing-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hc-line);
}
.hc-pricing-row:last-of-type { border-bottom: 0; }
.hc-pr-label { font-family: var(--hc-display); color: var(--hc-ink); font-size: 1.04rem; }
.hc-pr-dots { flex: 1 1 auto; border-bottom: 1px dotted var(--hc-sand); transform: translateY(-4px); min-width: 20px; }
.hc-pr-amount { font-family: var(--hc-display); color: var(--hc-blue); font-size: 1.14rem; white-space: nowrap; }
.hc-pricing-note {
    display: block;
    margin: 20px 0 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--hc-muted);
    overflow: hidden;
}
.hc-pricing-note svg {
    float: left;
    width: 18px;
    height: 18px;
    color: var(--hc-red);
    margin: 3px 9px 0 0;
}
.hc-pricing-note a { white-space: nowrap; }

/* ---- Checklist ("how this service helps") ---------------------- */
.hc-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.hc-checklist li {
    position: relative;
    padding: 16px 18px 16px 52px;
    background: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-radius: 12px;
    font-size: 1rem;
}
.hc-checklist li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 17px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--hc-teal);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 16px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 16px no-repeat;
}

/* ---- Steps (real sequence -> numbered) ----------------------- */
.hc-steps {
    counter-reset: hcstep;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 12px;
}
.hc-step {
    position: relative;
    background: var(--hc-white);
    border: 1px solid var(--hc-line);
    border-radius: 14px;
    padding: 32px 20px 22px;
}
.hc-step::before {
    counter-increment: hcstep;
    content: counter(hcstep, decimal-leading-zero);
    position: absolute;
    top: -16px;
    left: 20px;
    font-family: var(--hc-display);
    font-size: 1rem;
    color: #fff;
    background: var(--hc-blue);
    width: 42px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}
.hc-step h3 { font-size: 1.04rem; margin-bottom: 6px; color: var(--hc-ink); }
.hc-step p { font-size: 0.95rem; color: var(--hc-muted); margin: 0; }

/* ---- "Who it's for" chips + why block ----------------------- */
.hc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}
.hc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.hc-chips span {
    background: var(--hc-white);
    border: 1px solid var(--hc-sand);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.95rem;
    color: var(--hc-ink);
}
.hc-why h3 { color: var(--hc-blue) !important; margin-bottom: 10px; }
.hc-why p { color: var(--hc-muted); margin: 0; }

/* ---- Why-VSH strip (hub) — quiet, no cards ---------------- */
.hc-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
    margin-top: 10px;
}
.hc-point { border-top: 2px solid var(--hc-red); padding-top: 16px; }
.hc-point h3 { margin-bottom: 6px; }
.hc-point p { color: var(--hc-muted); margin: 0; font-size: 0.98rem; }

/* ---- Callout (emergency / important notes) --------------- */
.hc-callout {
    background: #fff6f0;
    border: 1px solid #f2d3bd;
    border-left: 4px solid var(--hc-red);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 30px;
}
.hc-callout b { color: var(--hc-red); font-weight: 400; }
.hc-callout p { margin: 0; }

/* ---- FAQ ----------------------------------------------- */
.hc-faq { max-width: 880px; margin-top: 10px; }
.hc-faq details {
    border-bottom: 1px solid var(--hc-line);
    padding: 6px 0;
}
.hc-faq details:first-of-type { border-top: 1px solid var(--hc-line); }
.hc-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 44px 18px 0;
    position: relative;
    font-family: var(--hc-display);
    font-size: 1.08rem;
    color: var(--hc-ink);
}
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background: var(--hc-red);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M11 5h2v14h-2z'/><path fill='white' d='M5 11h14v2H5z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M11 5h2v14h-2z'/><path fill='white' d='M5 11h14v2H5z'/></svg>") center / contain no-repeat;
    transition: transform .18s ease;
}
.hc-faq details[open] summary::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M5 11h14v2H5z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M5 11h14v2H5z'/></svg>");
}
.hc-faq .hc-faq-a {
    padding: 0 30px 20px 0;
    color: var(--hc-muted);
    font-size: 1rem;
}

/* ---- CTA band ---------------------------------------- */
.hc-ctaband {
    background:
        radial-gradient(720px 320px at 12% 0%, rgba(255,255,255,.16), transparent 70%),
        linear-gradient(120deg, var(--hc-red) 0%, var(--hc-red-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 70px 22px;
}
.hc-ctaband h2 { color: #fff; margin-bottom: 12px; }
.hc-ctaband p { color: rgba(255,255,255,.92); max-width: 60ch; margin: 0 auto 26px; font-size: 1.12rem; }
.hc-ctaband .hc-cta-row { justify-content: center; }

/* ---- Back link -------------------------------------- */
.hc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hc-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-muted) !important;
}
.hc-back:hover { color: var(--hc-red) !important; gap: 12px; }
.hc-back svg { width: 14px; height: 14px; }

/* ---- Responsive ------------------------------------ */
@media (max-width: 980px) {
    .hc-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hc-hero-media { max-width: 460px; }
    .hc-hero-badge { left: auto; right: 18px; }
    .hc-directory { grid-template-columns: repeat(2, 1fr); }
    .hc-steps { grid-template-columns: repeat(2, 1fr); }
    .hc-split { grid-template-columns: 1fr; gap: 30px; }
    .hc-points { grid-template-columns: 1fr; gap: 24px; }
    .hc-media, .hc-media--flip { grid-template-columns: 1fr; gap: 32px; }
    .hc-media--flip .hc-media-figure { order: 0; }
}
@media (max-width: 620px) {
    .hc-page { font-size: 16px; }
    .hc-section { padding: 54px 0; }
    .hc-directory { grid-template-columns: 1fr; }
    .hc-checklist { grid-template-columns: 1fr; }
    .hc-steps { grid-template-columns: 1fr; }
    .hc-pricing { padding: 4px 20px 20px; }
    .hc-pricing-row { flex-wrap: wrap; gap: 4px; padding: 14px 0; }
    .hc-pr-dots { display: none; }
    .hc-pr-amount { width: 100%; color: var(--hc-red); }
    .hc-hero-badge { position: static; margin-top: 16px; max-width: none; }
    .hc-hero-media::after { display: none; }
    .hc-cta-row .hc-btn { flex: 1 1 100%; justify-content: center; }
}

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