/* R65 — recovery pass after R64 staging feedback.
 * Goal: one clean header, faithful KA identity without a sticker, full doctor framing,
 * restrained slider controls, and a centred legal/copyright footer line.
 */
:root{
  --r65-deep:#031a31;
  --r65-navy:#052846;
  --r65-navy-2:#0b3a61;
  --r65-gold:#d8a94f;
  --r65-gold-soft:#efc978;
  --r65-ivory:#fffaf1;
  --r65-muted:#c7d5de;
}

/* The hidden mobile menu must stay hidden on desktop and when closed. */
.mobile-nav[hidden]{display:none!important}
.site-header .mobile-nav[hidden]{display:none!important}
@media(min-width:942px){
  .site-header .mobile-nav{display:none!important}
  .site-header .menu-toggle{display:none!important}
}

/* --- Header reset: one row only, using the legal-page pill treatment the user preferred. --- */
.site-header,
.home .site-header{
  min-height:86px!important;
  height:auto!important;
  overflow:visible!important;
  background:linear-gradient(90deg,#031a31 0%,#052846 56%,#073151 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;
  box-shadow:0 8px 28px rgba(0,14,30,.14)!important;
}
.site-header .header-inner,
.home .site-header .header-inner{
  width:min(1280px,calc(100% - 54px))!important;
  min-height:86px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:minmax(275px,1fr) auto auto auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:8px 0!important;
  margin-inline:auto!important;
  overflow:visible!important;
}
.site-header .brand,.home .site-header .brand{grid-column:1!important;grid-row:1!important;justify-self:start!important;min-width:0!important;width:auto!important;max-width:none!important;gap:13px!important;padding:4px 10px 4px 2px!important;border-radius:18px!important;background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,0))!important;border:0!important;box-shadow:none!important;transform:none!important}
.site-header .desktop-nav,.home .site-header .desktop-nav{grid-column:2!important;grid-row:1!important;justify-self:center!important;margin:0!important}
.site-header .language-switch,.home .site-header .language-switch{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important}
.site-header .header-cta,.home .site-header .header-cta{grid-column:4!important;grid-row:1!important;justify-self:end!important;margin:0!important;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important;clip-path:none!important;min-height:44px!important;padding:0 18px!important;border-radius:999px!important;font-size:10.5px!important;letter-spacing:.065em!important;box-shadow:0 10px 22px rgba(0,14,28,.15)!important}

.site-header .desktop-nav .menu,.home .site-header .desktop-nav .menu{
  display:flex!important;align-items:center!important;gap:0!important;
  margin:0!important;padding:4px!important;list-style:none!important;
  border-radius:999px!important;background:rgba(2,20,38,.42)!important;
  border:1px solid rgba(255,255,255,.13)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.site-header .desktop-nav .menu a,.home .site-header .desktop-nav .menu a{
  min-height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:0 13px!important;border-radius:999px!important;
  color:#eef4f7!important;font-size:11.5px!important;font-weight:760!important;line-height:1!important;
  letter-spacing:.018em!important;text-transform:none!important;white-space:nowrap!important;text-decoration:none!important;
}
.site-header .desktop-nav .menu a::after,.home .site-header .desktop-nav .menu a::after{bottom:3px!important;height:1px!important;background:var(--r65-gold)!important}
.site-header .desktop-nav .current-menu-item>a,.site-header .desktop-nav a:hover,.site-header .desktop-nav a:focus-visible,
.home .site-header .desktop-nav .current-menu-item>a,.home .site-header .desktop-nav a:hover,.home .site-header .desktop-nav a:focus-visible{
  background:rgba(255,255,255,.06)!important;color:#fff!important;
}

/* --- Brand identity: transparent mark, no cream/pearl box. Isolation follows the silhouette itself. --- */
.site-header .brand-mark,.home .site-header .brand-mark,
.site-footer .footer-brand .brand-mark,.home .site-footer .footer-brand .brand-mark{
  width:62px!important;height:62px!important;flex:0 0 62px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;overflow:visible!important;isolation:auto!important;
}
.site-footer .footer-brand .brand-mark,.home .site-footer .footer-brand .brand-mark{width:66px!important;height:66px!important;flex-basis:66px!important}
.site-header .brand-mark::before,.site-header .brand-mark::after,.home .site-header .brand-mark::before,.home .site-header .brand-mark::after,
.site-footer .footer-brand .brand-mark::before,.site-footer .footer-brand .brand-mark::after,.home .site-footer .footer-brand .brand-mark::before,.home .site-footer .footer-brand .brand-mark::after{content:none!important;display:none!important}
.site-header .approved-brand-raster,.home .site-header .approved-brand-raster,
.site-footer .footer-brand .approved-brand-raster,.home .site-footer .footer-brand .approved-brand-raster{
  position:relative!important;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;
  filter:
    drop-shadow(0 0 1px rgba(255,241,203,.92))
    drop-shadow(0 0 3px rgba(239,201,120,.25))
    drop-shadow(0 5px 10px rgba(0,8,20,.34))!important;
}
.site-header .brand-copy,.home .site-header .brand-copy,
.site-footer .footer-brand .brand-copy,.home .site-footer .footer-brand .brand-copy{
  display:grid!important;gap:6px!important;padding:0!important;border:0!important;max-width:260px!important;text-align:left!important;align-items:start!important;
}
.site-header .brand-title strong,.home .site-header .brand-title strong,
.site-footer .footer-brand .brand-title strong,.home .site-footer .footer-brand .brand-title strong{
  display:block!important;margin:0!important;color:#fffaf1!important;
  font-family:Georgia,'Times New Roman',serif!important;font-size:17px!important;font-weight:700!important;line-height:1.05!important;letter-spacing:0!important;white-space:nowrap!important;
}
.site-footer .footer-brand .brand-title strong,.home .site-footer .footer-brand .brand-title strong{font-size:18px!important}
.site-header .brand-title strong em,.home .site-header .brand-title strong em,
.site-footer .footer-brand .brand-title strong em,.home .site-footer .footer-brand .brand-title strong em{
  display:inline!important;font:800 .72em/1 'Plus Jakarta Sans',Arial,sans-serif!important;font-style:normal!important;color:var(--r65-gold-soft)!important;letter-spacing:.025em!important;
}
.site-header .brand-copy small,.home .site-header .brand-copy small,
.site-footer .footer-brand .brand-copy small,.home .site-footer .footer-brand .brand-copy small{
  display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;
  color:#cbd9e2!important;font-size:8.3px!important;font-weight:800!important;line-height:1!important;letter-spacing:.11em!important;text-transform:uppercase!important;white-space:nowrap!important;
}
.site-header .brand-copy small i,.home .site-header .brand-copy small i,
.site-footer .footer-brand .brand-copy small i,.home .site-footer .footer-brand .brand-copy small i{color:var(--r65-gold)!important;font-style:normal!important}
html[dir="rtl"] .site-header .brand-copy,html[dir="rtl"] .site-footer .footer-brand .brand-copy{text-align:right!important;direction:rtl!important}
html[dir="rtl"] .site-header .brand-copy small,html[dir="rtl"] .site-footer .footer-brand .brand-copy small{direction:rtl!important}

/* --- Hero/slider reset: preserve the full doctor portrait and calm the controls. --- */
body.home .hero{padding:0!important;background:radial-gradient(circle at 82% 25%,rgba(31,94,137,.36),transparent 42%),linear-gradient(115deg,#031a31 0%,#052a4b 58%,#104d79 100%)!important}
body.home .hero-layout{
  width:min(1180px,calc(100% - 54px))!important;min-height:590px!important;
  display:grid!important;grid-template-columns:minmax(0,.86fr) minmax(520px,1.14fr)!important;
  align-items:center!important;gap:58px!important;padding:46px 0 48px!important;margin-inline:auto!important;
}
body.home .hero-copy{align-self:center!important;max-width:520px!important;padding:0!important}
body.home .hero-copy h1{font-size:clamp(54px,4.7vw,74px)!important;line-height:.94!important;letter-spacing:-.035em!important;margin:16px 0 24px!important}
body.home .hero-copy .hero-intro{max-width:480px!important;font-size:16px!important;line-height:1.72!important;color:#c7d5df!important}
body.home .hero-media{
  align-self:center!important;justify-self:end!important;width:min(620px,100%)!important;height:auto!important;
  aspect-ratio:1358/1159!important;position:relative!important;overflow:hidden!important;
  border-radius:34px 76px 34px 34px!important;background:#eef2f1!important;
  border:1px solid rgba(255,255,255,.17)!important;box-shadow:0 30px 72px rgba(0,10,24,.34)!important;
}
body.home .hero-slides,body.home .hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important}
body.home .hero-slide[hidden]{display:none!important}
body.home .hero-slide img{display:block!important;width:100%!important;height:100%!important}
body.home .hero-slide:first-child img{object-fit:cover!important;object-position:center center!important}
body.home .hero-slide:nth-child(2) img{object-fit:cover!important;object-position:center center!important}
body.home .hero-media::before{content:""!important;display:block!important;position:absolute!important;z-index:3!important;inset:0!important;pointer-events:none!important;border-radius:inherit!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important}
body.home .hero-media::after{content:""!important;display:block!important;position:absolute!important;z-index:2!important;inset:0!important;pointer-events:none!important;background:linear-gradient(180deg,transparent 62%,rgba(3,24,45,.10) 100%)!important}
body.home .hero-slider-controls{
  position:absolute!important;z-index:5!important;right:18px!important;bottom:18px!important;left:auto!important;
  display:flex!important;align-items:center!important;gap:6px!important;padding:5px!important;
  border-radius:999px!important;background:rgba(3,25,46,.58)!important;border:1px solid rgba(255,255,255,.14)!important;backdrop-filter:blur(12px)!important;
}
body.home .hero-slider-controls button{
  width:34px!important;height:34px!important;display:grid!important;place-items:center!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:50%!important;background:transparent!important;color:#fff!important;font-size:16px!important;box-shadow:none!important;
}
body.home .hero-slider-controls button:hover,body.home .hero-slider-controls button:focus-visible{background:rgba(255,255,255,.10)!important;color:var(--r65-gold-soft)!important}
html[dir="rtl"] body.home .hero-layout{grid-template-columns:minmax(520px,1.14fr) minmax(0,.86fr)!important;direction:rtl!important}
html[dir="rtl"] body.home .hero-copy{grid-column:2!important;text-align:right!important}
html[dir="rtl"] body.home .hero-media{grid-column:1!important;justify-self:start!important;border-radius:76px 34px 34px 34px!important}
html[dir="rtl"] body.home .hero-slider-controls{right:auto!important;left:18px!important}

/* --- Footer legal/copyright line: centred as one deliberate composition. --- */
.site-footer .footer-bottom-r64,.home .site-footer .footer-bottom-r64{
  width:min(1120px,calc(100% - 40px))!important;min-height:62px!important;margin:0 auto!important;padding:16px 0 18px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:18px 26px!important;flex-wrap:wrap!important;text-align:center!important;
  border-top:1px solid rgba(255,255,255,.095)!important;
}
.site-footer .footer-copyright,.home .site-footer .footer-copyright{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex-wrap:wrap!important;margin:0!important;color:#aebfca!important;font-size:12.5px!important;line-height:1.5!important}
.site-footer .footer-copyright b,.home .site-footer .footer-copyright b{color:#eef4f7!important;font-weight:700!important}
.site-footer .footer-copyright i,.home .site-footer .footer-copyright i{color:var(--r65-gold)!important;font-style:normal!important}
.site-footer .footer-legal-nav,.home .site-footer .footer-legal-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important}
.site-footer .footer-legal-nav a,.home .site-footer .footer-legal-nav a{position:relative!important;display:inline-flex!important;align-items:center!important;min-height:30px!important;padding:0 11px!important;color:#c7d5de!important;font-size:12.5px!important;text-decoration:none!important}
.site-footer .footer-legal-nav a+a::before,.home .site-footer .footer-legal-nav a+a::before{content:"·"!important;position:absolute!important;left:-2px!important;color:rgba(239,201,120,.7)!important}
.site-footer .footer-legal-nav a:hover,.site-footer .footer-legal-nav a:focus-visible{color:#fff!important}

@media(max-width:1280px){
  .site-header .header-inner,.home .site-header .header-inner{width:min(1140px,calc(100% - 34px))!important;grid-template-columns:minmax(240px,1fr) auto auto!important;gap:10px!important}
  .site-header .language-switch,.home .site-header .language-switch{display:none!important}
  .site-header .header-cta,.home .site-header .header-cta{grid-column:3!important}
  .site-header .brand-mark,.home .site-header .brand-mark{width:56px!important;height:56px!important;flex-basis:56px!important}
  .site-header .brand-title strong,.home .site-header .brand-title strong{font-size:15px!important}
  .site-header .desktop-nav .menu a,.home .site-header .desktop-nav .menu a{font-size:10.5px!important;padding-inline:10px!important}
  body.home .hero-layout{grid-template-columns:minmax(0,.9fr) minmax(470px,1.1fr)!important;gap:38px!important}
  html[dir="rtl"] body.home .hero-layout{grid-template-columns:minmax(470px,1.1fr) minmax(0,.9fr)!important}
}
@media(max-width:941px){
  .site-header,.home .site-header{min-height:76px!important}
  .site-header .header-inner,.home .site-header .header-inner{width:calc(100% - 30px)!important;min-height:76px!important;display:flex!important;justify-content:space-between!important;padding-block:7px!important}
  .site-header .desktop-nav,.site-header .header-cta,.site-header .language-switch,.home .site-header .desktop-nav,.home .site-header .header-cta,.home .site-header .language-switch{display:none!important}
  .site-header .menu-toggle,.home .site-header .menu-toggle{display:flex!important;position:static!important;flex:0 0 48px!important}
  .site-header .brand,.home .site-header .brand{max-width:calc(100% - 62px)!important;padding-right:0!important}
  .site-header .brand-mark,.home .site-header .brand-mark{width:54px!important;height:54px!important;flex-basis:54px!important}
  .site-header .brand-title strong,.home .site-header .brand-title strong{font-size:15px!important}
  body.home .hero-layout,html[dir="rtl"] body.home .hero-layout{width:calc(100% - 32px)!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:30px!important;padding:42px 0 44px!important;direction:inherit!important}
  body.home .hero-copy,html[dir="rtl"] body.home .hero-copy{order:1!important;width:100%!important;max-width:720px!important;grid-column:auto!important;text-align:start!important}
  body.home .hero-media,html[dir="rtl"] body.home .hero-media{order:2!important;grid-column:auto!important;justify-self:center!important;width:min(650px,100%)!important;aspect-ratio:1358/1159!important;border-radius:30px 62px 30px 30px!important}
  html[dir="rtl"] body.home .hero-media{border-radius:62px 30px 30px 30px!important}
  body.home .hero-copy h1{font-size:clamp(48px,8vw,68px)!important}
}
@media(max-width:620px){
  .site-header .brand,.home .site-header .brand{gap:9px!important;background:transparent!important;padding-left:0!important}
  .site-header .brand-mark,.home .site-header .brand-mark{width:48px!important;height:48px!important;flex-basis:48px!important}
  .site-header .brand-title strong,.home .site-header .brand-title strong{font-size:13.5px!important}
  .site-header .brand-copy small,.home .site-header .brand-copy small{display:none!important}
  body.home .hero-layout,html[dir="rtl"] body.home .hero-layout{width:calc(100% - 26px)!important;padding:34px 0 36px!important;gap:24px!important}
  body.home .hero-copy h1{font-size:46px!important;margin-bottom:18px!important}
  body.home .hero-copy .hero-intro{font-size:15px!important}
  body.home .hero-media,html[dir="rtl"] body.home .hero-media{width:100%!important;border-radius:24px 46px 24px 24px!important}
  html[dir="rtl"] body.home .hero-media{border-radius:46px 24px 24px 24px!important}
  body.home .hero-slider-controls{right:12px!important;bottom:12px!important}html[dir="rtl"] body.home .hero-slider-controls{left:12px!important;right:auto!important}
  .site-footer .footer-bottom-r64,.home .site-footer .footer-bottom-r64{width:calc(100% - 28px)!important;display:grid!important;justify-items:center!important;gap:8px!important;padding:16px 0 18px!important}
  .site-footer .footer-copyright,.home .site-footer .footer-copyright{font-size:12px!important}
  .site-footer .footer-legal-nav,.home .site-footer .footer-legal-nav{flex-wrap:wrap!important}
}
@media(max-width:390px){
  .site-header .brand-mark,.home .site-header .brand-mark{width:45px!important;height:45px!important;flex-basis:45px!important}
  .site-header .brand-title strong,.home .site-header .brand-title strong{font-size:12.5px!important}
  body.home .hero-copy h1{font-size:42px!important}
}

/* Explicit row placement avoids CSS Grid auto-placement putting RTL hero items on separate rows. */
@media(min-width:942px){
  body.home .hero-copy{grid-column:1!important;grid-row:1!important}
  body.home .hero-media{grid-column:2!important;grid-row:1!important}
  html[dir="rtl"] body.home .hero-copy{grid-column:2!important;grid-row:1!important}
  html[dir="rtl"] body.home .hero-media{grid-column:1!important;grid-row:1!important}
}
@media(max-width:941px){
  .site-header .mobile-nav:not([hidden]),.home .site-header .mobile-nav:not([hidden]){
    display:grid!important;
    position:absolute!important;top:100%!important;left:14px!important;right:14px!important;z-index:100!important;
    padding:12px!important;border-radius:0 0 22px 22px!important;
    background:rgba(3,26,49,.985)!important;border:1px solid rgba(255,255,255,.10)!important;border-top:0!important;
    box-shadow:0 22px 46px rgba(0,13,28,.28)!important;backdrop-filter:blur(18px)!important;
  }
  .site-header .mobile-nav:not([hidden]) a,.home .site-header .mobile-nav:not([hidden]) a{
    min-height:46px!important;padding:0 14px!important;color:#f4f7f9!important;border-bottom:1px solid rgba(255,255,255,.08)!important;
    font-size:14px!important;text-decoration:none!important;
  }
  .site-header .mobile-nav:not([hidden]) .button,.home .site-header .mobile-nav:not([hidden]) .button{
    margin-top:10px!important;border-bottom:0!important;justify-content:center!important;color:#082b4c!important;background:linear-gradient(135deg,#e2b65b,#cf9737)!important;
  }
}
