/* ==========================================================================
   React Home Care Services — INNER PAGES STYLESHEET
   ---------------------------------------------------------------------------
   Shared, reusable styles for every inner page (About Us, Services, Contact…).
   Loaded ONLY on inner pages (after rhc-theme.css) so the homepage is unaffected.

   Relies on tokens from rhc-theme.css: --teal, --red, --ink, --cloud, --line,
   --radius, --shadow, --font-head, --ease, and the .rhc-container width scale.

   SECTIONS
     1. Page hero + breadcrumb
     2. Section scaffolding + shared headings
     3. Prose (long-form copy)
     4. Split (media + text)
     5. Pillars grid (numbered feature cards)
     6. Check list (audience / benefits)
     7. Flow list (vertical numbered steps)
     8. Callout note
     9. FAQ accordion
    10. Responsive
   ========================================================================== */

/* ==========================================================================
   1. PAGE HERO + BREADCRUMB
   ========================================================================== */
.page-hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(1000px 520px at 85% -25%, rgba(25,163,161,.28), transparent 60%),
        radial-gradient(760px 420px at 12% 120%, rgba(232,25,28,.14), transparent 60%),
        linear-gradient(135deg, var(--ink) 0%, var(--teal-700) 58%, var(--teal-600) 100%);    
    color: #eafafa;
    overflow: hidden;
    padding: 78px 0 84px;
    text-align: center;
}
/* subtle dot texture for depth */
.page-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    mask-image: linear-gradient(180deg, #000, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero::after {
    content: "";
    position: absolute; right: -130px; bottom: -150px; z-index: -1;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,25,28,.18), transparent 70%);
    pointer-events: none;
}
.page-hero .rhc-container { position: relative; z-index: 1; }
.page-hero .ph-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #d7ecec;
    font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: 1.2px;
    text-transform: uppercase; padding: 8px 18px; border-radius: 50px; margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.6px; margin: 0 0 14px; line-height: 1.12; }
.page-hero .ph-sub { color: #c7e4e3; font-size: clamp(16px, 1.6vw, 18px); max-width: 720px; margin: 0 auto; }

/* Breadcrumb (pill style, matches reference) */
.rhc-breadcrumb { margin-top: 24px; }
.rhc-breadcrumb ol {
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 4px 2px; font-family: var(--font-head); font-size: 13.5px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    padding: 8px 18px; border-radius: 50px;
    backdrop-filter: blur(4px);
}
.rhc-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: #a9cfce; }
.rhc-breadcrumb li:not(:last-child)::after {
    content: "\f054"; /* fa chevron-right */
    font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px;
    color: rgba(255,255,255,.4); margin-left: 4px;
}
.rhc-breadcrumb a { color: #d7ecec; font-weight: 500; }
.rhc-breadcrumb a:hover { color: #fff; }
.rhc-breadcrumb li[aria-current="page"] { color: #fff; font-weight: 600; }

/* ==========================================================================
   2. SECTION SCAFFOLDING + SHARED HEADINGS
   ========================================================================== */
.page-section { padding: 96px 0; }
.page-section.tight { padding: 64px 0; }

/* Reuses the homepage .sec-head look but ensures spacing on inner pages */
.ip-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.ip-head.left { margin-left: 0; text-align: left; }
.ip-head .eyebrow { margin-bottom: 16px; }
.ip-head h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.5px; color: var(--ink); margin-bottom: 12px; }
.ip-head p { font-size: 17px; color: var(--slate); }

/* ==========================================================================
   3. PROSE (long-form copy)
   ========================================================================== */
/* .rhc-prose { max-width: 860px; } */
.rhc-prose.center { margin: 0 auto; }
.rhc-prose > p { font-size: 16.5px; color: var(--slate); margin-bottom: 18px; }
.rhc-prose > p:last-child { margin-bottom: 0; }
.rhc-prose h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); margin: 42px 0 14px; letter-spacing: -.3px; }
.rhc-prose h2:first-child { margin-top: 0; }
.rhc-prose h3 { font-size: 21px; color: var(--ink); margin: 28px 0 10px; }
.rhc-prose .lead-para { font-size: 19px; color: var(--ink-800); font-weight: 500; }
.rhc-prose .tagline {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; color: var(--teal); font-size: 19px;
    margin-top: 12px;
}
.rhc-prose .tagline::before { content: "\f10d"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 15px; color: var(--red); }

/* ==========================================================================
   4. SPLIT (media + text)
   ========================================================================== */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-grid.media-right .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; aspect-ratio: 4 / 3.2; object-fit: cover; }
/* decorative frame accent behind image */
.split-media::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--teal-50), transparent 70%);
    border: 2px solid var(--teal-50);
}
.split-media .media-badge {
    position: absolute; left: -22px; bottom: -22px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.split-media .media-badge .mb-icon { width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--red-50); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.split-media .media-badge b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 17px; }
.split-media .media-badge span { font-size: 13px; color: var(--slate); }
.split-text .eyebrow { margin-bottom: 16px; }
.split-text h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); margin-bottom: 14px; letter-spacing: -.3px; }
.split-text p { font-size: 16.5px; color: var(--slate); margin-bottom: 16px; }

/* ==========================================================================
   5. PILLARS GRID (numbered feature cards)
   ========================================================================== */
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.pillar {
    position: relative;
    display: flex; gap: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { transform: scaleY(1); }
.pillar:nth-child(odd)::before { background: var(--red); }
.pillar .pillar-icon {
    flex: 0 0 auto; width: 62px; height: 62px; border-radius: 16px;
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    transition: all .3s var(--ease);
}
.pillar:nth-child(odd) .pillar-icon { background: var(--red-50); color: var(--red); }
.pillar:hover .pillar-icon { transform: rotate(-6deg); }
.pillar .pillar-num { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--slate-400); letter-spacing: 2px; margin-bottom: 4px; }
.pillar h3 { font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.pillar p { font-size: 15px; color: var(--slate); margin: 0; }
.pillar.span-full { grid-column: 1 / -1; }

/* ==========================================================================
   6. CHECK LIST (audience / benefits)
   ========================================================================== */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 30px; }
.check-list.single { grid-template-columns: 1fr; }
.check-list li {
    display: flex; gap: 14px; align-items: flex-start; color: var(--ink-800);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 16px 18px; font-size: 15.5px;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.check-list li:hover { border-color: var(--teal-50); box-shadow: var(--shadow-sm); }
.check-list li i {
    flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%;
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ==========================================================================
   7. FLOW LIST (vertical numbered steps)
   ========================================================================== */
.flow-list { display: grid; gap: 18px; position: relative; grid-template-columns: repeat(2, 1fr); }
/* connector line */
.flow-list::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, var(--teal-50) 0 8px, transparent 8px 16px); }
.flow-item {
    position: relative;
    display: flex; gap: 20px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.flow-item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.flow-item .flow-num {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-700)); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(14,124,123,.3); position: relative; z-index: 1;
}
.flow-item h4 { color: var(--ink); font-size: 17px; margin: 2px 0 4px; }
.flow-item p { font-size: 15px; color: var(--slate); margin: 0; }

/* ==========================================================================
   8. CALLOUT NOTE
   ========================================================================== */
.rhc-note {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--red-50); border-left: 4px solid var(--red);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 18px 22px; color: var(--ink-800); font-size: 15px;
}
.rhc-note i { color: var(--red); margin-top: 3px; flex: none; }
.rhc-note a { color: var(--red); font-weight: 700; text-decoration: underline; }
.rhc-note a:hover { color: var(--red-600); }

/* Prominent variant — used for critical safety notices (e.g. 112 / 108) */
.rhc-note--alert {
    border: 1px solid rgba(232, 25, 28, .25);
    border-left: 5px solid var(--red);
    padding: 22px 26px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    align-items: center;
}
.rhc-note--alert > i { font-size: 24px; margin-top: 0; }

/* ==========================================================================
   9. FAQ ACCORDION
   ========================================================================== */
.faq-list { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--teal-50); box-shadow: var(--shadow-sm); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--ink);
    padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q i { color: var(--teal); font-size: 15px; transition: transform .3s var(--ease); flex: none; }
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a .faq-a-inner { padding: 0 24px 20px; color: var(--slate); font-size: 15.5px; }

/* Single-column variant for long-form FAQ answers (used on the FAQ page) */
.faq-list--single { grid-template-columns: 1fr; max-width: 920px; margin-inline: auto; }
/* Rich answers may contain paragraphs, lists and sub-sections */
.faq-a-inner p { margin: 0 0 12px; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner ul { margin: 0 0 12px; padding-left: 4px; list-style: none; display: grid; gap: 8px; }
.faq-a-inner ul li { display: flex; gap: 10px; align-items: flex-start; }
.faq-a-inner ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--teal); font-size: 11px; margin-top: 4px; }
.faq-a-inner .faq-sub { margin: 16px 0 6px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.faq-a-inner .faq-sub:first-child { margin-top: 0; }

/* FAQ topic chips (quick overview in the hero/intro) */
.faq-topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.faq-topics .faq-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #eafafa;
    font-family: var(--font-head); font-weight: 500; font-size: 13.5px;
    padding: 8px 16px; border-radius: 50px; backdrop-filter: blur(4px);
}
.faq-topics .faq-chip i { color: var(--teal-300); font-size: 12px; }

/* FAQ group label between accordion blocks */
.faq-group-label { max-width: 920px; margin: 0 auto 18px; }

/* ==========================================================================
   10. CONTACT SPLIT (intro text + contact lines)
   ========================================================================== */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-split-text .eyebrow { margin-bottom: 16px; }
.contact-split-text h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); margin-bottom: 14px; letter-spacing: -.3px; }
.contact-split-text p { font-size: 16.5px; color: var(--slate); margin-bottom: 14px; }
.contact-split-cards { display: grid; gap: 16px; }
.contact-line {
    display: flex; align-items: center; gap: 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.contact-line:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.contact-line .cl-icon {
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
    background: var(--teal-50); color: var(--teal);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-line:first-child .cl-icon { background: var(--red-50); color: var(--red); }
.contact-line .cl-body { display: flex; flex-direction: column; }
.contact-line .cl-body b { font-family: var(--font-head); color: var(--ink); font-size: 16px; }
.contact-line .cl-body span { color: var(--slate); font-size: 15px; }

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (min-width: 1600px) {
    .page-section { padding: 110px 0; }
    .ip-head p, .split-text p, .rhc-prose > p { font-size: 17px; }
}
@media (max-width: 1080px) {
    .split-grid { gap: 44px; }
}
@media (max-width: 860px) {
    .page-hero { padding: 56px 0 60px; }
    .page-section { padding: 68px 0; }
    .split-grid, .split-grid.media-right .split-media { grid-template-columns: 1fr; }
    .split-grid.media-right .split-media { order: 0; }
    .split-media { max-width: 520px; margin: 0 auto; }
    .split-media::before { inset: 12px -12px -12px 12px; }
    .pillars-grid, .check-list { grid-template-columns: 1fr; }
    .pillar.span-full { grid-column: auto; }
    .contact-split { grid-template-columns: 1fr; gap: 32px; }
    .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .split-media .media-badge { position: static; margin-top: 16px; max-width: none; }
    .flow-list::before { left: 27px; }
    .flow-item { padding: 20px; }
    .rhc-breadcrumb ol { font-size: 12.5px; }
}
