/* YRH Corporate Blue v2.3 — premium navigation, contact panel and footer.
   Loaded after existing theme CSS; scoped to header/footer to preserve home modules. */
:root {--shell-navy:#0f2e51;--shell-blue:#1868ae;--shell-gold:#d5a95d}
.top{background:#0e3157;color:#c8dcee;border-bottom:1px solid rgba(255,255,255,.10);padding:0;font-size:12px;line-height:1.5}
.top .wrap.top-inner{width:min(1260px,calc(100% - 48px));max-width:1260px;min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.top-identity{display:inline-flex;align-items:center;gap:9px;min-width:0;font-size:11px;letter-spacing:.018em;color:#d9e7f5}
.top-status-dot{width:6px;height:6px;background:#dbb56c;border-radius:50%;box-shadow:0 0 0 4px rgba(219,181,108,.12);flex:none}
.top .top-tools{display:flex;align-items:center;gap:17px}
.top .top-phone{display:inline-flex;align-items:center;gap:7px;color:#e1eef8;font-size:12px;text-decoration:none;white-space:nowrap;font-weight:500}
.top .top-phone svg,.footer-phone svg,.contact-phone-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.top .top-phone:hover{color:#fff}
.top .language-switcher{padding-left:15px;border-left:1px solid rgba(255,255,255,.22);min-height:25px}
.header{position:relative;z-index:50;background:rgba(255,255,255,.985);border-bottom:1px solid #e1ebf4;box-shadow:0 8px 28px rgba(16,53,89,.075)}
.header::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent 0%,#c8aa71 30%,#1f78ba 67%,transparent 100%);opacity:.45;pointer-events:none}
.header .wrap.header-inner{width:min(1260px,calc(100% - 48px));max-width:1260px;min-height:85px;display:flex;align-items:center;justify-content:space-between;gap:17px;padding-top:6px;padding-bottom:6px}
.header .brand{display:flex;align-items:center;flex:0 0 auto;padding:0;border-radius:8px}
.header .brand img{display:block;width:225px;max-width:100%;height:auto}
.header .nav{display:flex;align-items:center;justify-content:flex-end;gap:15px;min-width:0;width:auto}
.header .menu{display:flex;align-items:center;gap:0;flex-wrap:nowrap}
.header .menu>li{position:relative;flex:none}
.header .menu>li>a{display:flex;align-items:center;min-height:42px;padding:11px 8px;font-size:12px;font-weight:500;color:#24445d;letter-spacing:0;white-space:nowrap;border-radius:9px;transition:background .18s,color .18s}
.header .menu>li>a:hover,.header .menu>li:focus-within>a{color:#0f5f9e;background:#f0f6fc}
.header .menu>li.current-menu-item>a,.header .menu>li.current-menu-ancestor>a{color:#0c619e;background:#edf5fc;font-weight:600}
.header .menu-item-has-children>a:after{color:#62809c;font-size:12px;margin-left:2px}
.header .sub-menu{top:calc(100% + 4px);min-width:218px;padding:9px;border-radius:13px;border:1px solid #dce8f2;background:#fff;box-shadow:0 18px 42px rgba(14,52,86,.15)}
.header .sub-menu a{display:block;padding:10px 12px;font-size:12px;line-height:1.6;color:#24445d;white-space:normal}
.header .sub-menu a:hover,.header .sub-menu a:focus-visible{background:#edf5fc;color:#0f5f9e}
.header .member-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px!important;white-space:nowrap;background:linear-gradient(115deg,#166eae,#104e8c);border:1px solid rgba(16,78,140,.12);border-radius:10px;box-shadow:0 5px 12px rgba(16,90,150,.17);color:#fff!important;font-size:12px;font-weight:600;line-height:1.5;transition:box-shadow .2s ease,transform .2s ease,background .2s ease}
.header .member-link:hover{background:linear-gradient(115deg,#0f5c98,#103c75);box-shadow:0 8px 16px rgba(16,90,150,.23);transform:translateY(-1px)}
.header .member-link svg,.contact-page-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.header a:focus-visible,.header button:focus-visible,.top a:focus-visible,.footer a:focus-visible,.contact-band a:focus-visible{outline:3px solid #8ec6f6;outline-offset:3px}
.header .menu-toggle{display:none;align-items:center;gap:8px;border:1px solid #d4e3f0;border-radius:10px;background:#f3f8fc;color:#104a80;padding:10px 13px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}
.header .menu-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* Light contact panel across full page width, linked visually with navy footer. */
.contact-band{position:relative;isolation:isolate;margin:0;padding:56px 0 50px;background:linear-gradient(125deg,#edf5fc 0%,#f7faff 62%,#e7f1f9 100%);border-top:1px solid #e0ebf5;overflow:hidden}
.contact-band::before{content:"";position:absolute;inset:-60px -20% auto auto;width:480px;height:310px;border-radius:50%;background:radial-gradient(closest-side,rgba(90,160,214,.12),transparent);pointer-events:none;z-index:-1}
.contact-band .wrap.contact-band-inner{width:min(1260px,calc(100% - 48px));max-width:1260px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:36px;padding:32px 36px;background:rgba(255,255,255,.83);border:1px solid #d9e7f2;border-radius:20px;box-shadow:0 14px 32px rgba(30,77,116,.075);position:relative}
.contact-band-inner::before{content:"";position:absolute;left:0;top:30px;bottom:30px;width:4px;border-radius:0 4px 4px 0;background:linear-gradient(#277cba,#ddb266)}
.contact-intro{min-width:0}
.contact-band .resources-kicker{display:flex;align-items:center;gap:10px;margin:0 0 12px;color:#aa7e32;font-size:10px;letter-spacing:.14em;font-weight:700}
.contact-kicker-line{width:21px;height:1px;background:#d1b274}
.contact-band .section-title-with-icon{gap:12px;margin:0 0 11px;font-size:clamp(24px,2.5vw,32px);line-height:1.4;font-weight:600;color:#123b5b}
.contact-band .section-title-icon{width:46px;height:46px;border-radius:12px;background:linear-gradient(155deg,#e9f5ff,#dfeeff);border:1px solid #d3e5f5;color:#146cae;box-shadow:none}
.contact-band .section-title-icon svg{width:23px;height:23px}
.contact-address{display:flex;align-items:flex-start;gap:8px;color:#58718a;font-size:13px;line-height:1.8;margin:0;max-width:630px}
.contact-address svg{width:16px;height:16px;flex:none;margin-top:3px;fill:none;stroke:#3986bc;stroke-width:1.8;stroke-linejoin:round}
.contact-band .contact-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.contact-band .contact-phone{display:flex;align-items:center;flex-direction:row;gap:12px;padding:11px 15px 11px 11px;border:1px solid #dce8f1;border-radius:13px;background:#fff;color:#113d61;white-space:nowrap;text-decoration:none;box-shadow:0 4px 13px rgba(20,66,108,.045);transition:border-color .2s,box-shadow .2s}
.contact-band .contact-phone:hover{border-color:#9dcbeb;box-shadow:0 7px 17px rgba(20,66,108,.09)}
.contact-phone-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:#e9f4ff;color:#166da9}
.contact-phone-icon svg{width:19px;height:19px}
.contact-phone-copy{display:flex;flex-direction:column;gap:0;text-align:left}
.contact-phone-copy>span{font-size:11px;line-height:1.5;color:#607c95}
.contact-band .contact-phone strong{font-size:19px;line-height:1.35;letter-spacing:.01em;font-weight:600;color:#123c61}
.contact-band .contact-page-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:14px 20px;border-radius:12px;color:#fff;background:linear-gradient(125deg,#197ab8,#114f8a);font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 7px 15px rgba(16,89,147,.17);transition:transform .2s ease,box-shadow .2s ease}
.contact-band .contact-page-link:hover{background:linear-gradient(125deg,#116aa7,#0e4075);transform:translateY(-2px);box-shadow:0 11px 22px rgba(16,89,147,.22);text-decoration:none}
/* Footer: restrained executive navy, stronger typography and links. */
.footer{position:relative;isolation:isolate;overflow:hidden;margin-top:38px;padding:55px 0 24px;background:#102e50;color:#d9e6f1;box-shadow:none}
.footer::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 90% 0%,rgba(48,114,169,.22),transparent 53%),linear-gradient(135deg,#12385e 0%,#0e2949 58%,#0a223e 100%);z-index:-2}
.footer::after{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#d3a75c 0%,#2685c3 48%,#d5aa5e 100%);opacity:.85;z-index:-1}
body.home .footer{margin-top:0}
.footer .wrap.footer-grid{width:min(1260px,calc(100% - 48px));max-width:1260px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,.8fr) minmax(0,1.1fr);gap:clamp(35px,5vw,75px);align-items:start;flex-wrap:initial}
.footer-brand-col{min-width:0;max-width:460px}
.footer-brand-link{display:inline-flex;padding:8px;background:#fff;border:1px solid rgba(255,255,255,.48);border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.12);margin:0 0 18px!important}
.footer .footer-logo{display:block;width:216px;height:auto;background:transparent;padding:0;border-radius:5px}
.footer-eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:.12em;line-height:1.5;color:#e3b96b;margin-bottom:6px}
.footer h2{font-size:16px;font-weight:600;line-height:1.65;margin:0 0 8px;color:#fff}
.footer p{max-width:420px;font-size:12.5px;line-height:1.9;color:#bad0df;margin:0}
.footer-nav-col{min-width:0}
.footer .footer-nav-col h3{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.65;color:#fff;font-weight:600;margin:4px 0 18px}
.footer-heading-mark{display:inline-block;width:3px;height:20px;flex:none;border-radius:3px;background:#dcad61}
.footer .footer-nav-col>a{display:flex;align-items:center;justify-content:space-between;gap:12px;width:fit-content;min-width:130px;padding:5px 0;margin:5px 0;border-bottom:1px solid transparent;font-size:12.5px;font-weight:400;line-height:1.75;color:#cbdbe9;text-decoration:none;transition:color .2s ease,border-color .2s ease}
.footer .footer-nav-col>a span{font-size:13px;color:#80aacb;opacity:.8;transition:transform .2s}
.footer .footer-nav-col>a:hover{color:#fff;border-color:rgba(255,255,255,.22)}
.footer .footer-nav-col>a:hover span{color:#e3b96b;transform:translate(2px,-2px)}
.footer .footer-nav-col>a.footer-phone{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;width:auto;margin-top:18px;padding:10px 12px;border:1px solid rgba(153,191,222,.25);border-radius:10px;background:rgba(255,255,255,.045);color:#e8f3fb;font-size:12.5px;font-weight:600}
.footer .footer-nav-col>a.footer-phone:hover{border-color:rgba(153,191,222,.48);background:rgba(255,255,255,.09)}
.footer-phone svg{width:16px;height:16px;color:#95c4ea;flex:none}
.footer .wrap.footer-bottom{width:min(1260px,calc(100% - 48px));max-width:1260px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:42px;padding-top:18px;border-top:1px solid rgba(208,228,243,.18);color:#a8c0d2;font-size:11px;line-height:1.8}
.footer-bottom-note{letter-spacing:.03em;color:#d5b579}
@media(max-width:1230px){
 .header .wrap.header-inner{flex-wrap:wrap;gap:8px;padding-top:12px;padding-bottom:10px}
 .header .brand img{width:215px}
 .header .nav{width:100%;justify-content:space-between;gap:14px}
 .header .menu{flex:1;justify-content:space-between}
 .header .menu>li>a{padding:9px 8px}
 .contact-band .wrap.contact-band-inner{grid-template-columns:1fr;gap:20px;padding:27px 30px}
 .contact-band .contact-actions{justify-content:flex-start}
}
@media(max-width:800px){
 .top .wrap.top-inner{width:min(100% - 32px,1260px)}
 .top-identity{font-size:10px}
 .header .wrap.header-inner{width:min(100% - 32px,1260px);display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:73px;padding-top:11px;padding-bottom:11px}
 .header .brand img{width:208px}
 .header .menu-toggle{display:inline-flex;margin-left:auto}
 .header .nav{display:none;width:100%;align-items:stretch;flex-direction:column;gap:14px;padding:10px 0 6px}
 .header .nav.is-open{display:flex}
 .header .menu{display:block;width:100%;padding:6px;border:1px solid #e3edf5;background:#f6f9fc;border-radius:12px}
 .header .menu>li>a{display:flex;min-height:40px;padding:9px 12px;font-size:13px;white-space:normal}
 .header .sub-menu{display:block;position:static;box-shadow:none;border:none;border-radius:9px;background:#eaf2f8;padding:5px 8px;margin:0 6px 6px}
 .header .member-link{align-self:stretch;min-height:42px}
 .contact-band .wrap.contact-band-inner{width:min(100% - 32px,1260px)}
 .footer .wrap.footer-grid{width:min(100% - 32px,1260px);grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
 .footer-brand-col{grid-column:1/-1;max-width:none}
 .footer .wrap.footer-bottom{width:min(100% - 32px,1260px)}
}
@media(max-width:600px){
 .top .wrap.top-inner{min-height:33px;display:flex;gap:8px}
 .top-identity{max-width:50%;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .top .top-tools{gap:8px}
 .top .top-phone{display:inline-flex;gap:5px;font-size:10px}
 .top .top-phone svg{width:13px;height:13px}
 .top .language-switcher{padding-left:9px;min-height:23px}
 .header .brand img{width:min(206px,55vw)}
 .header .menu-toggle{padding:9px 11px}
 .contact-band{padding:34px 0 32px}
 .contact-band .wrap.contact-band-inner{padding:25px 21px;gap:20px;border-radius:16px}
 .contact-band-inner::before{top:22px;bottom:22px;width:3px}
 .contact-band .section-title-with-icon{font-size:25px;gap:10px}
 .contact-band .section-title-icon{width:41px;height:41px}
 .contact-address{font-size:12px}
 .contact-band .contact-actions{display:grid;grid-template-columns:1fr;width:100%;gap:10px}
 .contact-band .contact-phone{width:100%;padding:10px 12px}
 .contact-band .contact-page-link{width:100%;min-height:48px;font-size:13px}
 .footer{padding:42px 0 22px}
 .footer .wrap.footer-grid{grid-template-columns:1fr 1fr;gap:26px 15px}
 .footer .footer-logo{width:200px}
 .footer .footer-nav-col h3{font-size:13px;margin-bottom:12px}
 .footer .footer-nav-col>a{font-size:12px;min-width:0}
 .footer .wrap.footer-bottom{align-items:flex-start;flex-direction:column;gap:4px;margin-top:28px}
}
@media(max-width:360px){.footer .wrap.footer-grid{grid-template-columns:1fr}.footer-brand-col{grid-column:auto}.top .top-phone span{display:none}}
@media(prefers-reduced-motion:reduce){.header .member-link,.contact-band .contact-page-link,.footer .footer-nav-col>a,.header .menu>li>a{transition:none}.header .member-link:hover,.contact-band .contact-page-link:hover{transform:none}}
/* Final layout refinements: compact footer logo and tablet navigation. */
.footer .footer-brand-link{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:8px 10px;margin:0 0 18px}
@media(max-width:1230px){
 .header .wrap.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:74px;padding-top:12px;padding-bottom:12px}
 .header .brand img{width:215px}
 .header .menu-toggle{display:inline-flex;margin-left:auto}
 .header .nav{display:none;width:100%;align-items:stretch;flex-direction:column;gap:14px;padding:10px 0 6px}
 .header .nav.is-open{display:flex}
 .header .menu{display:block;width:100%;padding:6px;border:1px solid #e3edf5;background:#f6f9fc;border-radius:12px}
 .header .menu>li>a{display:flex;min-height:40px;padding:9px 12px;font-size:13px;white-space:normal}
 .header .sub-menu{display:block;position:static;box-shadow:none;border:none;border-radius:9px;background:#eaf2f8;padding:5px 8px;margin:0 6px 6px}
 .header .member-link{align-self:stretch;min-height:42px}
}
@media(max-width:360px){
 .top .top-identity{display:none}
 .top .top-tools{width:100%;justify-content:space-between}
 .top .language-switcher{white-space:nowrap}
}
@media(max-width:360px){.header .brand img{width:184px}}


/* YRH Corporate Blue v2.4 — refined homepage hero focal point and credibility framing. */
body.home .hero{
 position:relative;
 overflow:hidden;
 background-image:
  linear-gradient(90deg, rgba(9,39,71,.93) 0%, rgba(12,47,83,.82) 34%, rgba(17,66,106,.44) 64%, rgba(19,83,130,.16) 100%),
  linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 34%, rgba(6,28,48,.14) 100%),
  var(--hero-image, url('assets/hospital.jpg'));
 background-repeat:no-repeat;
 background-size:auto, auto, 108% auto;
 background-position:0 0, 0 0, 61% 38%;
}
body.home .hero::after{
 content:"";
 position:absolute;
 inset:0;
 pointer-events:none;
 background:linear-gradient(90deg, rgba(255,255,255,.03), transparent 28%, transparent 100%);
}
body.home .hero .wrap{position:relative;z-index:1}
body.home .hero h1{max-width:860px}
body.home .hero p{max-width:720px}
@media(max-width:1280px){
 body.home .hero{background-size:auto, auto, 116% auto;background-position:0 0, 0 0, 60% 40%}
}
@media(max-width:900px){
 body.home .hero{background-size:auto, auto, cover;background-position:0 0, 0 0, 58% 42%}
}
@media(max-width:600px){
 body.home .hero{background-image:
  linear-gradient(90deg, rgba(9,39,71,.92) 0%, rgba(13,52,89,.79) 52%, rgba(19,83,130,.22) 100%),
  linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 34%, rgba(6,28,48,.14) 100%),
  var(--hero-image, url('assets/hospital.jpg'));
  background-size:auto, auto, cover;
  background-position:0 0, 0 0, 64% 40%;
 }
}
