/*
 * Bimeh 4883 v12.10 — No-Delete Accessibility + Mobile QA Layer
 * Additive-only. No page/template/asset removed or moved.
 */
:root{
  --b4883-focus:#ffcf4a;
  --b4883-focus-dark:#0c2f5d;
  --b4883-tap:48px;
  --b4883-mobile-radius:22px;
  --b4883-safe-bottom:env(safe-area-inset-bottom,0px);
}

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:smooth;
}
body.b4883-v1210-a11y-mobile{
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.001ms!important;
  }
}

/* Strong but elegant keyboard focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
  outline:3px solid var(--b4883-focus)!important;
  outline-offset:4px!important;
  box-shadow:0 0 0 6px rgba(255,207,74,.22)!important;
}
.b4883-skip-link{
  position:fixed!important;
  top:12px!important;
  right:12px!important;
  z-index:100000!important;
  transform:translateY(-150%);
  background:#fff!important;
  color:#0c2f5d!important;
  border:2px solid var(--b4883-focus)!important;
  border-radius:999px!important;
  padding:10px 18px!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 18px 35px rgba(0,0,0,.18)!important;
}
.b4883-skip-link:focus,
.b4883-skip-link:focus-visible{transform:translateY(0);}

/* Better tap targets */
.v8-header__actions a,
.v8-menu-toggle,
.v8-nav a,
.v8-mobile-cta a,
.b4883-v129-action,
.b4883-v129-copy-button,
.b4883-v129-floating a,
.b4883-v129-floating__close,
.v8-cookie button,
.v8-cookie a,
button,
input[type="submit"],
input[type="button"]{
  min-height:var(--b4883-tap);
}
.v8-nav a,
.v8-header__actions a,
.v8-mobile-cta a,
.b4883-v129-action,
.b4883-v129-copy-button{
  touch-action:manipulation;
  -webkit-tap-highlight-color:rgba(22,91,170,.18);
}

/* Header mobile menu QA */
.v8-menu-toggle{
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.18);
}
.v8-menu-toggle span{
  transform-origin:center;
  transition:transform .22s ease, opacity .18s ease;
}
body.v8-menu-open .v8-menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
body.v8-menu-open .v8-menu-toggle span:nth-child(2){opacity:0;}
body.v8-menu-open .v8-menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media (max-width:920px){
  body.v8-menu-open{overflow:hidden;}
  .v11-header.v8-header{z-index:9990;}
  .v11-nav.v8-nav{
    max-height:calc(100vh - 96px);
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    border-radius:0 0 var(--b4883-mobile-radius) var(--b4883-mobile-radius);
  }
  body.v8-menu-open .v11-nav.v8-nav{
    box-shadow:0 24px 60px rgba(6,27,61,.24);
  }
  .v8-nav a,
  .v8-menu > li > a{
    min-height:50px;
    display:flex!important;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }
  .v8-nav a::after,
  .v8-menu > li > a::after{
    content:'‹';
    margin-right:auto;
    opacity:.46;
    font-weight:900;
  }
  .v8-header__actions{
    gap:8px;
  }
  .v8-header__call,
  .v8-header__whatsapp{
    white-space:nowrap;
  }
}

@media (max-width:640px){
  .v10-brand.v8-brand{min-width:0;}
  .v8-brand__text strong{font-size:14px;line-height:1.45;}
  .v8-brand__text small{font-size:11px;line-height:1.5;}
  .v8-header__actions .v8-header__call,
  .v8-header__actions .v8-header__whatsapp{
    display:none!important;
  }
  .v8-menu-toggle{min-width:46px;min-height:46px;}
}

/* Mobile bottom CTA: safer spacing and restored WhatsApp support */
.v8-mobile-cta{
  padding-bottom:calc(8px + var(--b4883-safe-bottom))!important;
  gap:8px!important;
}
.v8-mobile-cta a{
  border-radius:18px!important;
  line-height:1.45!important;
}
.v8-mobile-cta__wa.b4883-v1210-restored-wa{
  background:linear-gradient(135deg,#139b57,#0c7d48)!important;
  color:#fff!important;
}
@media (min-width:921px){
  .v8-mobile-cta{display:none!important;}
}

/* Content readability and overflow QA */
.v8-main,
.entry-content,
.v9-content,
.b4883-v128-trust-panel,
.b4883-v129-conversion-panel{
  overflow-wrap:anywhere;
}
.entry-content img,
.v9-content img,
.v8-main img{
  max-width:100%;
  height:auto;
}
.entry-content table,
.v9-content table{
  display:block;
  max-width:100%;
  overflow:auto;
  border-radius:14px;
}
.entry-content p,
.v9-content p,
.b4883-v128-trust-panel p,
.b4883-v129-conversion-panel p{
  text-wrap:pretty;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.v9-content h1,
.v9-content h2,
.v9-content h3{
  text-wrap:balance;
}

/* Details/FAQ accessibility polish */
details summary{
  cursor:pointer;
  list-style:none;
}
details summary::-webkit-details-marker{display:none;}
.v9-faq-list details,
.b4883-v128-trust-panel,
.b4883-v129-conversion-panel,
.b4883-v129-conversion-actions{
  scroll-margin-top:110px;
}
.v9-faq-list summary,
.b4883-faq summary{
  min-height:52px;
  display:flex;
  align-items:center;
}
.v9-faq-list summary::before,
.b4883-faq summary::before{
  content:'+';
  width:28px;
  height:28px;
  margin-left:10px;
  display:inline-grid;
  place-items:center;
  border-radius:50%;
  background:rgba(18,62,117,.08);
  color:#123e75;
  font-weight:900;
  flex:0 0 auto;
}
.v9-faq-list details[open] summary::before,
.b4883-faq details[open] summary::before{content:'−';}

/* Forms: easier on mobile */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea{
  min-height:48px;
  font-size:16px;
}
textarea{min-height:120px;resize:vertical;}
label{line-height:1.7;}
::placeholder{opacity:.72;}

/* Footer QA */
.v8-footer a{
  min-height:40px;
  display:inline-flex;
  align-items:center;
}
@media (max-width:700px){
  .v8-footer__inner{gap:18px!important;}
  .v8-footer a{width:100%;justify-content:center;}
}

/* Conversion assistant accessibility fixes */
.b4883-v129-floating{
  bottom:calc(22px + var(--b4883-safe-bottom))!important;
}
.b4883-v129-floating__close{
  min-width:38px;
  min-height:38px;
}
.b4883-v129-copy-toast{
  z-index:100020!important;
}
.b4883-v1210-restored-wa{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

@media (max-width:760px){
  .b4883-v129-conversion-panel__inner,
  .b4883-v128-trust-panel__inner{
    grid-template-columns:1fr!important;
  }
  .b4883-v129-action-grid{
    grid-template-columns:1fr!important;
  }
  .b4883-v129-conversion-panel,
  .b4883-v128-trust-panel{
    margin-inline:12px!important;
    border-radius:22px!important;
  }
}

/* Print: useful for address / documents */
@media print{
  .v8-header,
  .v8-newsbar,
  .v8-mobile-cta,
  .v8-cookie,
  .b4883-v129-floating,
  .b4883-v1210-screen-only{display:none!important;}
  a[href]::after{content:''!important;}
  body{background:#fff!important;color:#111!important;}
  .v8-main{padding:0!important;}
}
