/* ==========================================================================
   RAAS Hospital - design system (Phase 1)
   ========================================================================== */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
    --navy: #0A2342;
    --navy-2: #123560;
    --blue: #1565C0;
    --blue-dark: #0F4C94;
    --sky: #EAF3FC;
    --sky-2: #DCEBFA;
    --line: #D8E4F2;
    --text: #2B425F;
    --muted: #5B7089;
    --white: #fff;
    --ok: #1B7F5C;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(10, 35, 66, .06), 0 4px 14px rgba(10, 35, 66, .05);
    --shadow-md: 0 2px 4px rgba(10, 35, 66, .06), 0 14px 32px rgba(10, 35, 66, .10);
    --section-y: clamp(3.5rem, 7vw, 5.5rem);

    --bs-primary: #1565C0;
    --bs-primary-rgb: 21, 101, 192;
    --bs-body-font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --bs-body-color: var(--text);
    --bs-link-color: var(--blue);
    --bs-link-hover-color: var(--blue-dark);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--bs-body-font-family); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { max-width: 70ch; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid rgba(21, 101, 192, .45); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 2000; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ------------------------------------------------------------- Buttons */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .6rem 1.2rem; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem .85rem; font-size: .88rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-dark); --bs-btn-hover-border-color: var(--blue-dark);
    --bs-btn-active-bg: var(--blue-dark); --bs-btn-active-border-color: var(--blue-dark); --bs-btn-disabled-bg: var(--blue); --bs-btn-disabled-border-color: var(--blue); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(21, 101, 192, .28); }
.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue); --bs-btn-hover-border-color: var(--blue); --bs-btn-active-bg: var(--blue); }
.btn-light { --bs-btn-color: var(--navy); font-weight: 700; }

/* ------------------------------------------------------------- Top bar */
.topbar { background: var(--navy); color: #C9D8EC; font-size: .85rem; padding: .45rem 0; }
.topbar a { color: #fff; }
.topbar i { color: #7FB3F0; margin-right: .35rem; }
.topbar-emergency a { font-weight: 700; }

/* -------------------------------------------------------------- Header */
.site-header { background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); z-index: 1030; transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.navbar { padding: .65rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.5rem; color: var(--navy); font-weight: 800; letter-spacing: .01em; }
.brand-text small { font-size: .78rem; color: var(--blue); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 3px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #8FC0FA; }
.navbar-nav .nav-link { color: var(--navy); font-weight: 600; font-size: .95rem; padding: .55rem .85rem; position: relative; }
.navbar-nav .nav-link:hover { color: var(--blue); }
.navbar-nav .nav-link.active { color: var(--blue); }
@media (min-width: 992px) {
    .navbar-nav .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .1rem; height: 2px; background: var(--blue); border-radius: 2px; }
}
.navbar-toggler { border: 1px solid var(--line); color: var(--navy); padding: .45rem .7rem; font-size: 1.1rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(21, 101, 192, .25); }
.btn-book { white-space: nowrap; }
@media (max-width: 991.98px) {
    .navbar-collapse { padding: 1rem 0 .5rem; }
    .navbar-nav .nav-link { padding: .75rem .25rem; border-bottom: 1px solid var(--line); }
    .btn-book { width: 100%; }
}

/* ---------------------------------------------------------------- Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #F6FAFE 100%); position: relative; overflow: visible; padding: clamp(2.5rem, 6vw, 4.5rem) 0 9.5rem; }
.hero::before { content: ""; position: absolute; inset: 0; overflow: hidden; background: url("../images/hero/pattern.svg"); opacity: .9; pointer-events: none; }
.hero .container { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--blue); font-weight: 600; font-size: .88rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 1.1rem; }
.hero-badge i { font-size: .8rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.75rem; }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.hero-points li { font-weight: 600; font-size: .92rem; color: var(--navy); }
.hero-points i { color: var(--ok); margin-right: .4rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: 24px; box-shadow: var(--shadow-md); width: 100%; }
.hero-float { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; font-size: .88rem; }
.hero-float strong { display: block; color: var(--navy); line-height: 1.2; }
.hero-float span { color: var(--muted); font-size: .8rem; }
.hero-float .icon-tile { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
.hero-float.f1 { left: -14px; bottom: 28px; }
.hero-float.f2 { right: -10px; top: 26px; }
@media (max-width: 575.98px) { .hero-float.f1 { left: 8px; } .hero-float.f2 { right: 8px; } }

/* One orchestrated entrance for the hero only */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero .rise-2 { animation-delay: .12s; }
.hero .rise-3 { animation-delay: .24s; }

/* Doctor finder overlapping hero */
.finder-wrap { margin-top: -4.5rem; position: relative; z-index: 5; }
.finder { background: #fff; border-radius: 18px; box-shadow: var(--shadow-md); border: 1px solid var(--line); padding: 1.5rem; }
.finder h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.form-label { font-weight: 600; color: var(--navy); font-size: .9rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #C5D5E8; padding: .65rem .85rem; color: var(--navy); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .22rem rgba(21, 101, 192, .15); }
.form-control::placeholder { color: #8DA0B8; }

/* ------------------------------------------------------------ Sections */
.section { padding: var(--section-y) 0; }
.section-sky { background: var(--sky); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .6rem; }
.lead-muted { color: var(--muted); font-size: 1.05rem; }
.demo-note { display: inline-flex; gap: .5rem; align-items: center; font-size: .82rem; color: #7A5A00; background: #FFF6D8; border: 1px solid #F1DE9C; border-radius: 8px; padding: .35rem .7rem; margin: 1rem 0 0; }

/* ---------------------------------------------------------- Highlights */
.highlight { display: flex; gap: 1rem; align-items: flex-start; }
.highlight h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.highlight p { margin: 0; font-size: .92rem; color: var(--muted); }

/* --------------------------------------------------------------- Cards */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; transition: box-shadow .25s, border-color .25s, transform .25s; }
.card-x:hover { box-shadow: var(--shadow-md); border-color: #BBD3EE; transform: translateY(-3px); }
.icon-tile { width: 54px; height: 54px; border-radius: 14px; background: var(--sky-2); color: var(--blue); display: inline-grid; place-items: center; font-size: 1.35rem; flex: none; }
.icon-tile-sm { width: 48px; height: 48px; font-size: 1.2rem; }
.service-card h3 { margin: 1.1rem 0 .5rem; }
.service-card p { color: var(--muted); font-size: .95rem; }
.specialty-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.35rem; }
.specialty-card h3 { margin-bottom: .3rem; }
.specialty-card p { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }
.link-arrow { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { font-size: .75rem; transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }
.chip { display: inline-block; background: var(--sky-2); color: var(--blue-dark); font-weight: 600; font-size: .78rem; padding: .22rem .65rem; border-radius: 999px; }

/* ------------------------------------------------------------- Stats */
.stats-panel { background: var(--navy); border-radius: 22px; padding: clamp(1.75rem, 4vw, 2.75rem); color: #fff; position: relative; overflow: hidden; }
.stats-panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.stat { text-align: center; position: relative; z-index: 1; }
.stat i { color: #8FC0FA; font-size: 1.4rem; margin-bottom: .6rem; }
.stat strong { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { color: #C3D4EA; font-size: .92rem; }
.stats-note { color: #9FB6D4; font-size: .8rem; text-align: center; margin: 1.25rem 0 0; position: relative; z-index: 1; max-width: none; }

/* ----------------------------------------------------------- Doctors */
.doctor-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.doctor-photo { display: block; background: var(--sky-2); overflow: hidden; }
.doctor-photo img { width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover; object-position: top; transition: transform .4s; }
.doctor-card:hover .doctor-photo img { transform: scale(1.03); }
.doctor-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.doctor-body h3 { margin: .5rem 0 .1rem; font-size: 1.1rem; }
.doctor-body h3 a { color: var(--navy); }
.doctor-body h3 a:hover { color: var(--blue); }
.doctor-qual { color: var(--muted); font-size: .88rem; margin: 0; }
.doctor-exp { color: var(--navy); font-weight: 600; font-size: .88rem; margin: .35rem 0 1rem; }
.doctor-exp i { color: var(--blue); margin-right: .3rem; }

.profile-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--sky-2); }
.profile-photo img { width: 100%; display: block; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list i { color: var(--blue); width: 1.2rem; text-align: center; margin-top: .25rem; }
.fact-list strong { display: block; color: var(--navy); font-size: .88rem; }
.fact-list span { color: var(--muted); font-size: .92rem; }

/* -------------------------------------------------------- Why choose */
.why-item { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; height: 100%; }
.why-item h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------ Testimonials */
.quote-card { height: 100%; display: flex; flex-direction: column; }
.quote-card .stars { color: #E6A700; font-size: .85rem; margin-bottom: .75rem; }
.quote-card blockquote { margin: 0 0 1.25rem; color: var(--text); flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: .75rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sky-2); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.quote-card figcaption strong { display: block; color: var(--navy); font-size: .92rem; line-height: 1.2; }
.quote-card figcaption span { color: var(--muted); font-size: .82rem; }

/* ---------------------------------------------------------- CTA band */
.cta-band { background: var(--blue); color: #fff; padding: 2.75rem 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .35rem; }
.cta-band p { color: #D6E6FA; }
.btn-outline-light { --bs-btn-hover-color: var(--blue); font-weight: 700; }

/* ------------------------------------------------------- Page banner */
.page-banner { background: var(--sky); border-bottom: 1px solid var(--line); padding: 2.5rem 0 2.25rem; position: relative; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: url("../images/hero/pattern.svg"); }
.page-banner .container { position: relative; }
.page-banner h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .5rem; }
.breadcrumb { font-size: .85rem; margin-bottom: .75rem; }
.breadcrumb-item + .breadcrumb-item::before { color: #8DA0B8; }
.breadcrumb-item.active { color: var(--muted); }

/* ------------------------------------------------------------ Content */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: .4rem 0 .4rem 1.9rem; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .5rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #DDF1E9; color: var(--ok); font-size: .68rem; display: grid; place-items: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.5rem 3.4rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 1.17rem; top: 2.5rem; bottom: .3rem; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; } .steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: .94rem; }
.side-card { position: sticky; top: 100px; }
.side-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: .65rem .85rem; border-radius: 10px; color: var(--navy); font-weight: 600; font-size: .94rem; }
.side-list a:hover, .side-list a.active { background: var(--sky); color: var(--blue); }
.about-img { border-radius: 22px; box-shadow: var(--shadow-md); }
.mv-card { height: 100%; }
.mv-card .icon-tile { margin-bottom: 1rem; }

/* ------------------------------------------------------------ Accordion */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .22rem rgba(21, 101, 192, .15); --bs-accordion-active-bg: var(--sky); --bs-accordion-active-color: var(--navy); }
.accordion-item { margin-bottom: .75rem; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--navy); padding: 1.05rem 1.25rem; }
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-body { color: var(--text); }

/* -------------------------------------------------------- Contact / forms */
.contact-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item strong { display: block; color: var(--navy); }
.contact-item a { color: var(--text); } .contact-item a:hover { color: var(--blue); }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--sky); }
.map-box iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-placeholder { min-height: 340px; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted);
    background: repeating-linear-gradient(45deg, var(--sky), var(--sky) 14px, #E2EFFB 14px, #E2EFFB 28px); }
.map-placeholder i { font-size: 2.2rem; color: var(--blue); margin-bottom: .75rem; }
.btn-whatsapp { background: #1FA855; border-color: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; border-color: #178a45; color: #fff; }
.form-alert { display: none; }
.form-alert.show { display: block; }

/* ----------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: #B8CBE3; padding: 4rem 0 1.5rem; font-size: .94rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #B8CBE3; }
.site-footer a:hover { color: #fff; }
.footer-about { max-width: 38ch; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.footer-contact i { color: #7FB3F0; margin-top: .3rem; width: 1rem; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; transition: background .2s; }
.social a:hover { background: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .84rem; color: #8FA6C4; }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 22px rgba(10, 35, 66, .25); z-index: 1040; transition: transform .2s; }
.whatsapp-float:hover { color: #fff; transform: scale(1.07); }
.to-top { position: fixed; right: 24px; bottom: 82px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; }

/* --------------------------------------------------------- Not found */
.nf { text-align: center; padding: 5rem 0; }
.nf .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--sky-2); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Homepage hero: highlights + floating statistics ---- */
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.hero-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.5rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hl { display: flex; gap: .8rem; align-items: flex-start; }
.hl h3 { font-size: .98rem; margin-bottom: .15rem; }
.hl p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 575.98px) { .hero-highlights { grid-template-columns: 1fr; } }
.hero { padding-bottom: 7rem; }
.hero-stats-wrap { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(50%); z-index: 6; }
.hero-stats { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 1.5rem .5rem; }
.hs-item { display: flex; align-items: center; gap: .9rem; padding: .6rem 1.4rem; }
.hs-item strong { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--navy); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hs-item span:not(.icon-tile) { color: var(--muted); font-size: .88rem; }
@media (min-width: 992px) { .hs-item { border-left: 1px solid var(--line); } .col-lg-3:first-child .hs-item { border-left: 0; } }
.hs-note { text-align: center; color: var(--muted); font-size: .76rem; margin: .6rem 0 0; max-width: none; }
.hero + .section, .hero + section { padding-top: calc(var(--section-y) + 5rem); }
.finder-wrap-flat .finder { box-shadow: var(--shadow-sm); }
@media (max-width: 991.98px) {
    .hero { padding-bottom: 3rem; }
    .hero-stats-wrap { position: static; transform: none; margin-top: 2.5rem; }
    .hero + section { padding-top: var(--section-y); }
}

/* Legal pages and footer legal links */
.legal-text h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal-text p, .legal-text li { color: #3A4A66; line-height: 1.75; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-legal a { color: inherit; text-decoration: none; opacity: .9; }
.footer-legal a:hover { text-decoration: underline; opacity: 1; }

/* ---- Homepage hero: full-width real photo background ---- */
.hero { background-color: var(--sky); background-image: var(--hero-bg); background-size: cover; background-position: right center; background-repeat: no-repeat; }
.hero::before { background: linear-gradient(90deg, rgba(234, 243, 252, .97) 0%, rgba(234, 243, 252, .92) 38%, rgba(234, 243, 252, .3) 54%, rgba(234, 243, 252, 0) 66%); opacity: 1; }
.hero-media { min-height: 440px; }
.hero-media img { display: none; }
@media (max-width: 991.98px) { .hero::before { background: rgba(234, 243, 252, .88); } }

/* ---- Page banners with a real photo ---- */
.page-banner.has-photo { background-color: var(--navy); background-image: var(--banner-bg); background-size: cover; background-position: center; border-bottom: 0; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.75rem, 6vw, 4.25rem); }
.page-banner.has-photo::before { background: linear-gradient(90deg, rgba(10, 35, 66, .88) 0%, rgba(10, 35, 66, .7) 50%, rgba(10, 35, 66, .35) 100%); }
.page-banner.has-photo h1 { color: #fff; }
.page-banner.has-photo .lead-muted { color: rgba(255, 255, 255, .85); }
.page-banner.has-photo .breadcrumb a { color: #fff; }
.page-banner.has-photo .breadcrumb-item.active { color: rgba(255, 255, 255, .75); }
.page-banner.has-photo .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---- NIK logo ---- */
.brand-logo { height: 44px; width: auto; display: block; }
.brand .brand-text { justify-content: center; }

/* ---- Hero v2: whole photo visible, smaller type, stats band inside the hero ---- */
.hero { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: var(--hero-ratio, 16 / 7); padding: 1.5rem 0 0; background-size: cover; background-position: center; }
.hero > .container:first-child { flex: 1; display: flex; align-items: center; }
.hero > .container:first-child > .row { width: 100%; }
.hero::before { background: linear-gradient(90deg, rgba(234, 243, 252, .95) 0%, rgba(234, 243, 252, .88) 32%, rgba(234, 243, 252, 0) 52%); }
.hero h1 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); margin-bottom: .7rem; }
.hero p.lead { font-size: .95rem; margin-bottom: 1.1rem; }
.hero-badge { font-size: .78rem; padding: .3rem .75rem; margin-bottom: .8rem; }
.hero .btn-lg { font-size: .9rem; padding: .5rem 1.05rem; }
.hero-highlights { margin-top: 1.2rem; padding-top: 1rem; gap: .7rem 1.25rem; }
.hl h3 { font-size: .85rem; }
.hl p { font-size: .76rem; line-height: 1.4; }
.hero .icon-tile-sm { width: 34px; height: 34px; font-size: .85rem; }
.hero-media { min-height: 300px; }
.hero-float { padding: .55rem .8rem; font-size: .8rem; }
.hero-stats-wrap { position: static; transform: none; margin: 0 0 1.25rem; }
.hero-stats { padding: .7rem .25rem; border-radius: 16px; }
.hs-item { padding: .3rem 1.1rem; gap: .7rem; }
.hs-item strong { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.hs-item span:not(.icon-tile) { font-size: .78rem; }
.hero .hs-item .icon-tile { width: 40px; height: 40px; font-size: 1rem; }
.hs-note { font-size: .7rem; margin: .25rem 0 0; }
.hero + .section, .hero + section { padding-top: var(--section-y); }
@media (max-width: 991.98px) {
    .hero { aspect-ratio: auto; background-position: right top; padding-top: 2rem; }
    .hero > .container:first-child { display: block; }
    .hero::before { background: rgba(234, 243, 252, .9); }
    .hero-stats-wrap { margin-top: 1.5rem; }
}
