/* Website home page sections (application/views/themes/_shared/home_sections.php). Scoped to .fh */
.fh {
    --fh-teal: #10b89a;
    --fh-blue: #1683f2;
    --fh-navy: #0b4fb3;
    --fh-ink: #0f172a;
    --fh-muted: #64748b;
    --fh-line: #e2e8f0;
    --fh-soft: #f4f8fc;
    --fh-radius: 16px;
    --fh-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
    --fh-ease: cubic-bezier(.22, .61, .36, 1);
    color: var(--fh-ink);
    font-size: 15px;
}
.fh h1, .fh h2, .fh h3 { color: var(--fh-ink); margin: 0; font-weight: 700; }
.fh a { text-decoration: none; }

/* ---------- hero ---------- */
.fh-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 46px 44px;
    margin: -20px 0 40px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .22), transparent 40%),
        radial-gradient(circle at 5% 110%, rgba(16, 184, 154, .55), transparent 45%),
        linear-gradient(125deg, var(--fh-navy), var(--fh-blue) 60%, #22a6d8);
    box-shadow: 0 20px 50px rgba(11, 79, 179, .25);
    overflow: hidden;
}
.fh-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 50px solid rgba(255, 255, 255, .06);
    animation: fhFloat 10s ease-in-out infinite;
}
.fh-hero h1 { color: #fff; font-size: 44px; line-height: 1.1; margin: 10px 0 12px; }
.fh-hero p { font-size: 16px; line-height: 1.6; opacity: .92; max-width: 560px; margin: 0; }
.fh-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
    border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
}
.fh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.fh-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
    font-weight: 600; font-size: 14.5px; border-radius: 12px; transition: transform .2s var(--fh-ease), box-shadow .2s;
}
.fh-btn:hover { transform: translateY(-2px); }
.fh-btn-primary { color: #fff !important; background: linear-gradient(120deg, var(--fh-teal), #0fa58a); box-shadow: 0 8px 20px rgba(16, 184, 154, .35); }
.fh-btn-light { color: var(--fh-navy) !important; background: #fff; }
.fh-btn-ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.fh-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; position: relative; z-index: 1; }
.fh-stat {
    padding: 18px; border-radius: 16px; text-align: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(4px);
}
.fh-stat .fh-num { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.fh-stat span:last-child { display: block; margin-top: 6px; font-size: 13px; opacity: .9; }

/* ---------- about ---------- */
.fh-about {
    margin: 0 0 40px; padding: 22px 26px; border-radius: var(--fh-radius);
    border-left: 5px solid var(--fh-teal); background: var(--fh-soft); line-height: 1.7;
}

/* ---------- section heads ---------- */
.fh-section { margin-bottom: 46px; }
.fh-head { text-align: center; margin-bottom: 24px; }
.fh-head h2 { font-size: 30px; }
.fh-head h2::after {
    content: ""; display: block; width: 60px; height: 4px; margin: 10px auto 0; border-radius: 4px;
    background: linear-gradient(90deg, var(--fh-teal), var(--fh-blue));
}
.fh-head p { margin: 10px 0 0; color: var(--fh-muted); }

/* ---------- specialities ---------- */
.fh-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.fh-spec {
    padding: 22px 18px; text-align: center; border-radius: var(--fh-radius);
    background: #fff; border: 1px solid var(--fh-line); box-shadow: var(--fh-shadow);
    transition: transform .25s var(--fh-ease), box-shadow .25s;
}
.fh-spec:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(22, 131, 242, .15); }
.fh-spec i {
    display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; font-size: 24px;
    border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--fh-teal), var(--fh-blue));
    box-shadow: 0 8px 18px rgba(22, 131, 242, .28); margin-bottom: 12px;
}
.fh-spec h3 { font-size: 16px; }
.fh-spec span { display: block; margin-top: 4px; color: var(--fh-muted); font-size: 13px; }

/* ---------- doctors ---------- */
.fh-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.fh-doc {
    display: flex; flex-direction: column; padding: 20px; border-radius: var(--fh-radius);
    background: #fff; border: 1px solid var(--fh-line); box-shadow: var(--fh-shadow);
    transition: transform .25s var(--fh-ease), box-shadow .25s;
}
.fh-doc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
.fh-doc-top { display: flex; align-items: center; gap: 14px; }
.fh-doc-top img, .fh-avatar { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.fh-avatar {
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--fh-teal), var(--fh-navy));
}
.fh-doc h3 { font-size: 17px; }
.fh-doc-spec { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--fh-blue); }
.fh-doc-qual { margin: 12px 0 0; font-size: 13px; color: var(--fh-muted); }
.fh-doc-meta { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px dashed var(--fh-line); font-size: 13.5px; flex: 1 1 auto; }
.fh-doc-meta li { margin-bottom: 6px; }
.fh-doc-meta i { width: 18px; color: var(--fh-teal); }
.fh-doc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--fh-line); }
.fh-fee { font-size: 13px; color: var(--fh-muted); }
.fh-fee b { color: var(--fh-ink); font-size: 15px; }
.fh-doc-foot a { font-weight: 700; color: var(--fh-navy); }
.fh-doc-foot a i { transition: transform .2s; }
.fh-doc-foot a:hover i { transform: translateX(4px); }

/* ---------- facilities ---------- */
.fh-fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fh-fac {
    position: relative; padding: 22px 20px 20px 84px; min-height: 104px; border-radius: var(--fh-radius);
    background: #fff; border: 1px solid var(--fh-line); box-shadow: var(--fh-shadow);
}
.fh-fac i {
    position: absolute; left: 20px; top: 22px; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; font-size: 20px; border-radius: 14px; color: var(--fh-navy); background: rgba(22, 131, 242, .1);
}
.fh-fac h3 { font-size: 16px; }
.fh-fac p { margin: 6px 0 0; font-size: 13.5px; color: var(--fh-muted); }
.fh-fac .fh-num { font-weight: 700; color: var(--fh-ink); }

/* ---------- panels ---------- */
.fh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fh-panel { padding: 22px; border-radius: var(--fh-radius); background: #fff; border: 1px solid var(--fh-line); box-shadow: var(--fh-shadow); }
.fh-panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 18px; font-weight: 700; }
.fh-panel-title i { color: var(--fh-blue); }
.fh-live {
    margin-left: auto; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    color: #047857; background: #ecfdf5; border-radius: 999px; position: relative; padding-left: 20px;
}
.fh-live::before {
    content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
    background: #10b981; animation: fhPing 1.6s ease-out infinite;
}
.fh-ward { margin-bottom: 12px; }
.fh-ward-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.fh-ward-row small { color: var(--fh-muted); }
.fh-bar { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.fh-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--fh-teal), var(--fh-blue)); transition: width 1.2s var(--fh-ease); }
.fh-bar span.is-low { background: linear-gradient(90deg, #f97316, #ef4444); }
.fh-blood { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fh-drop { padding: 14px 8px; text-align: center; border-radius: 14px; border: 1px solid var(--fh-line); }
.fh-drop strong { display: block; font-size: 22px; }
.fh-drop span { font-size: 12px; color: var(--fh-muted); }
.fh-drop.is-in { background: #fff1f2; border-color: #fecdd3; }
.fh-drop.is-in strong { color: #e11d48; }
.fh-drop.is-out strong { color: #94a3b8; }
.fh-note { margin: 14px 0 0; font-size: 13px; color: var(--fh-muted); }

/* ---------- insurance ---------- */
.fh-insure {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: center; padding: 28px 30px;
    border-radius: var(--fh-radius); background: linear-gradient(120deg, #ecfdf5, #eff6ff);
    border: 1px solid #d1fae5;
}
.fh-insure h2 { font-size: 24px; }
.fh-insure p { margin: 8px 0 0; color: var(--fh-muted); }
.fh-insurers { display: flex; flex-wrap: wrap; gap: 10px; }
.fh-insurers span {
    padding: 10px 14px; font-size: 14px; font-weight: 600; border-radius: 12px; background: #fff;
    border: 1px solid var(--fh-line); box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
}
.fh-insurers i { color: var(--fh-teal); margin-right: 4px; }

/* ---------- news & events ---------- */
.fh-news { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--fh-line); color: var(--fh-ink); }
.fh-news:first-of-type { border-top: 0; padding-top: 0; }
.fh-date {
    flex: 0 0 54px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 12px; text-transform: uppercase; color: #fff; border-radius: 12px; background: linear-gradient(135deg, var(--fh-teal), var(--fh-blue));
}
.fh-date b { font-size: 20px; line-height: 1; }
.fh-news strong { display: block; font-size: 15px; }
.fh-news small { display: block; margin-top: 3px; color: var(--fh-muted); font-size: 13px; line-height: 1.5; }

/* ---------- contact ---------- */
.fh-contact {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; border-radius: var(--fh-radius);
    background: var(--fh-ink); color: #cbd5e1;
}
.fh-contact > div { display: flex; gap: 12px; align-items: flex-start; }
.fh-contact i {
    flex: 0 0 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .1); font-size: 17px;
}
.fh-contact small { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #94a3b8; }
.fh-contact span { word-break: break-word; font-weight: 600; color: #fff; font-size: 14px; }
.fh-contact a { color: #fff; }

/* ---------- motion ---------- */
.fh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--fh-ease), transform .6s var(--fh-ease); }
.fh-reveal.fh-in { opacity: 1; transform: none; }
@keyframes fhFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, -14px); } }
@keyframes fhPing { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); } 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }

@media (max-width: 991px) {
    .fh-hero, .fh-two, .fh-insure { grid-template-columns: 1fr; }
    .fh-contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .fh-hero { padding: 30px 22px; }
    .fh-hero h1 { font-size: 32px; }
    .fh-contact, .fh-blood { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .fh *, .fh *::before, .fh *::after { animation: none !important; transition: none !important; }
    .fh-reveal { opacity: 1; transform: none; }
}
