/* REAL.PRO Studios · HEADER VISUAL REFINEMENT V6 */

/* Closed header: tighten the existing hamburger without changing behavior. */
html body .site-header[data-header] .menu-toggle,
html body .site-header[data-header].is-scrolled .menu-toggle{
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:0!important;
  border-radius:14px!important;
  transition:border-color .14s ease,background-color .14s ease,box-shadow .14s ease,transform .14s ease!important;
}

html body .site-header[data-header] .menu-toggle span{
  display:block!important;
  width:23px!important;
  height:2px!important;
  min-height:2px!important;
  margin:1.85px 0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  transform:none!important;
  opacity:1!important;
  transition:width .15s ease,margin-left .15s ease,background-color .12s linear!important;
}

html body .site-header[data-header] .menu-toggle span:nth-child(2){
  width:13px!important;
  margin-left:10px!important;
  background:var(--rp-v5-red,#e63236)!important;
}

html body .site-header[data-header] .menu-toggle:hover,
html body .site-header[data-header] .menu-toggle:focus-visible{
  transform:translateY(-1px)!important;
}

html body .site-header[data-header] .menu-toggle:hover span:nth-child(2),
html body .site-header[data-header] .menu-toggle:focus-visible span:nth-child(2){
  width:18px!important;
  margin-left:5px!important;
}

/* Open menu: keep the already-established official REAL.PRO symbol. */
html body .fullscreen-menu#siteMenu.is-open .menu-top{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

html body .fullscreen-menu#siteMenu.is-open .menu-top::before{
  width:var(--rp-v6-symbol-w)!important;
  min-width:var(--rp-v6-symbol-w)!important;
  max-width:var(--rp-v6-symbol-w)!important;
  height:var(--rp-v6-symbol-h)!important;
  min-height:var(--rp-v6-symbol-h)!important;
  max-height:var(--rp-v6-symbol-h)!important;
  background-size:contain!important;
  background-position:left center!important;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.12))!important;
}

/* Close X: same control, only refined visually. */
html body .fullscreen-menu#siteMenu.is-open [data-menu-close],
html body .fullscreen-menu#siteMenu.is-open .rp-v52-primary-close{
  box-sizing:border-box!important;
  width:var(--rp-v6-control)!important;
  min-width:var(--rp-v6-control)!important;
  max-width:var(--rp-v6-control)!important;
  height:var(--rp-v6-control)!important;
  min-height:var(--rp-v6-control)!important;
  max-height:var(--rp-v6-control)!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.105)!important;
  border-radius:15px!important;
  background:rgba(5,20,37,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.032),0 7px 18px rgba(0,0,0,.055)!important;
}

html body .fullscreen-menu#siteMenu.is-open [data-menu-close]::before,
html body .fullscreen-menu#siteMenu.is-open [data-menu-close]::after,
html body .fullscreen-menu#siteMenu.is-open .rp-v52-primary-close::before,
html body .fullscreen-menu#siteMenu.is-open .rp-v52-primary-close::after{
  width:var(--rp-v6-x)!important;
  height:2px!important;
  border-radius:999px!important;
}

html body .fullscreen-menu#siteMenu.is-open [data-menu-close]::before,
html body .fullscreen-menu#siteMenu.is-open .rp-v52-primary-close::before{background:#fff!important;}
html body .fullscreen-menu#siteMenu.is-open [data-menu-close]::after,
html body .fullscreen-menu#siteMenu.is-open .rp-v52-primary-close::after{background:var(--rp-v5-red,#e63236)!important;}

/* Typography/rhythm only — no content changes. */
html body .fullscreen-menu#siteMenu.is-open .menu-content{
  padding-top:var(--rp-v6-content-top)!important;
  padding-bottom:max(var(--rp-v6-bottom-space),calc(env(safe-area-inset-bottom) + var(--rp-v6-bottom-space)))!important;
}

html body .fullscreen-menu#siteMenu.is-open .menu-links{
  width:min(100%,var(--rp-v6-links-max))!important;
  max-width:var(--rp-v6-links-max)!important;
}

html body .fullscreen-menu#siteMenu.is-open .menu-links a{
  padding:var(--rp-v6-link-py) 0!important;
  font-size:var(--rp-v6-menu-font)!important;
  line-height:.92!important;
  letter-spacing:-.035em!important;
  border-bottom-color:rgba(255,255,255,.105)!important;
}

html body .fullscreen-menu#siteMenu.is-open .menu-links a:hover,
html body .fullscreen-menu#siteMenu.is-open .menu-links a:focus-visible{
  padding-left:3px!important;
}

html body .fullscreen-menu#siteMenu.is-open .menu-signature{
  margin-top:var(--rp-v6-signature-gap)!important;
  padding-bottom:0!important;
  color:rgba(255,255,255,.58)!important;
  font-size:var(--rp-v6-signature-font)!important;
  line-height:1.45!important;
  letter-spacing:.30em!important;
}

@media (max-width:359px){
  :root{--rp-v6-symbol-w:58px;--rp-v6-symbol-h:42px;--rp-v6-control:48px;--rp-v6-x:21px;--rp-v6-content-top:100px;--rp-v6-links-max:100%;--rp-v6-menu-font:clamp(36px,11vw,41px);--rp-v6-link-py:10px;--rp-v6-signature-gap:26px;--rp-v6-signature-font:8.5px;--rp-v6-bottom-space:28px;}
}

@media (min-width:360px) and (max-width:599px){
  :root{--rp-v6-symbol-w:66px;--rp-v6-symbol-h:47px;--rp-v6-control:50px;--rp-v6-x:22px;--rp-v6-content-top:112px;--rp-v6-links-max:100%;--rp-v6-menu-font:clamp(43px,11.5vw,54px);--rp-v6-link-py:11px;--rp-v6-signature-gap:30px;--rp-v6-signature-font:9.5px;--rp-v6-bottom-space:32px;}
}

@media (min-width:600px) and (max-width:760px){
  :root{--rp-v6-symbol-w:70px;--rp-v6-symbol-h:50px;--rp-v6-control:50px;--rp-v6-x:22px;--rp-v6-content-top:118px;--rp-v6-links-max:640px;--rp-v6-menu-font:clamp(49px,8vw,60px);--rp-v6-link-py:12px;--rp-v6-signature-gap:32px;--rp-v6-signature-font:9.5px;--rp-v6-bottom-space:34px;}
}

@media (min-width:761px) and (max-width:1024px){
  :root{--rp-v6-symbol-w:72px;--rp-v6-symbol-h:51px;--rp-v6-control:52px;--rp-v6-x:23px;--rp-v6-content-top:128px;--rp-v6-links-max:690px;--rp-v6-menu-font:clamp(54px,6.7vw,68px);--rp-v6-link-py:12px;--rp-v6-signature-gap:34px;--rp-v6-signature-font:9.5px;--rp-v6-bottom-space:36px;}
}

@media (min-width:1025px) and (max-width:1439px){
  :root{--rp-v6-symbol-w:76px;--rp-v6-symbol-h:53px;--rp-v6-control:52px;--rp-v6-x:23px;--rp-v6-content-top:136px;--rp-v6-links-max:740px;--rp-v6-menu-font:clamp(58px,4.9vw,72px);--rp-v6-link-py:11px;--rp-v6-signature-gap:34px;--rp-v6-signature-font:9.5px;--rp-v6-bottom-space:38px;}
}

@media (min-width:1440px){
  :root{--rp-v6-symbol-w:80px;--rp-v6-symbol-h:55px;--rp-v6-control:54px;--rp-v6-x:24px;--rp-v6-content-top:144px;--rp-v6-links-max:780px;--rp-v6-menu-font:clamp(62px,4vw,78px);--rp-v6-link-py:10px;--rp-v6-signature-gap:36px;--rp-v6-signature-font:10px;--rp-v6-bottom-space:40px;}
}

@media (max-width:760px) and (max-height:560px) and (orientation:landscape){
  :root{--rp-v6-symbol-w:52px;--rp-v6-symbol-h:36px;--rp-v6-control:46px;--rp-v6-x:20px;--rp-v6-content-top:68px;--rp-v6-menu-font:clamp(28px,5vw,35px);--rp-v6-link-py:4px;--rp-v6-signature-gap:10px;--rp-v6-signature-font:8px;--rp-v6-bottom-space:14px;}
}

@media (prefers-reduced-motion:reduce){
  html body .site-header[data-header] .menu-toggle,
  html body .site-header[data-header] .menu-toggle span,
  html body .fullscreen-menu#siteMenu.is-open .menu-links a{transition:none!important;}
}
