/* EUROVISA GROUP — FINAL RESPONSIVE PATCH V6
   Fixes: medium desktop menu wrapping + Android/iPhone horizontal cut-off.
*/
*,*::before,*::after{box-sizing:border-box;}
html,body{max-width:100%;overflow-x:hidden;}
img,svg,video,canvas,iframe{max-width:100%;height:auto;}

/* Medium laptop/tablet: use hamburger instead of broken wrapped nav */
@media screen and (max-width:1320px){
  .site-header{height:72px!important;min-height:72px!important;position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:10000!important;background:rgba(7,24,39,.97)!important;}
  .header-inner,.site-header__inner{height:72px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:8px 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}
  .header-logo{flex:0 0 auto!important;width:150px!important;min-width:150px!important;max-width:150px!important;height:54px!important;min-height:54px!important;padding:6px 10px!important;border-radius:12px!important;background:#fff!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;}
  .header-logo img{display:block!important;width:auto!important;max-width:130px!important;height:auto!important;max-height:42px!important;object-fit:contain!important;}
  .nav-toggle{display:inline-flex!important;flex:0 0 auto!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:5px!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:12px!important;background:rgba(255,255,255,.10)!important;padding:0!important;margin-left:auto!important;color:#fff!important;z-index:10002!important;}
  .nav-toggle-bar{display:block!important;width:22px!important;height:2px!important;border-radius:999px!important;background:#fff!important;margin:0!important;}
  .nav-toggle.is-active .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg)!important;}
  .nav-toggle.is-active .nav-toggle-bar:nth-child(2){opacity:0!important;}
  .nav-toggle.is-active .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)!important;}
  .nav-menu:not(.is-open){display:none!important;}
  .nav-menu.is-open{display:flex!important;position:fixed!important;top:72px!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;max-width:100vw!important;background:#071827!important;padding:24px 22px 34px!important;overflow-y:auto!important;overflow-x:hidden!important;flex-direction:column!important;align-items:stretch!important;gap:18px!important;z-index:10001!important;}
  .nav-menu.is-open .nav-list{display:flex!important;width:100%!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;list-style:none!important;margin:0!important;padding:0!important;}
  .nav-menu.is-open li{width:100%!important;border-bottom:1px solid rgba(255,255,255,.10)!important;}
  .nav-menu.is-open .nav-link,.nav-menu.is-open .nav-cta{display:flex!important;width:100%!important;min-height:48px!important;align-items:center!important;justify-content:flex-start!important;padding:13px 0!important;color:#fff!important;font-size:17px!important;line-height:1.25!important;text-decoration:none!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;}
  .nav-menu.is-open .nav-link.is-active{color:#d4af37!important;}
  .nav-menu.is-open .nav-cta{justify-content:center!important;background:#d4af37!important;color:#071827!important;border-radius:999px!important;padding:14px 18px!important;margin-top:12px!important;font-weight:800!important;}
  main{padding-top:72px!important;}
  .hero,.page-hero{padding-top:0!important;}
}

/* Desktop wide: keep one-line nav if visible */
@media screen and (min-width:1321px){
  .nav-toggle{display:none!important;}
  .nav-menu{display:flex!important;align-items:center!important;gap:18px!important;min-width:0!important;}
  .nav-list{display:flex!important;align-items:center!important;gap:15px!important;flex-wrap:nowrap!important;min-width:0!important;}
  .nav-link{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-size:14px!important;line-height:1!important;}
  .nav-cta{white-space:nowrap!important;font-size:14px!important;padding-left:18px!important;padding-right:18px!important;}
}

/* True mobile: eliminate horizontal cut-off and force readable one-column content */
@media screen and (max-width:900px){
  html,body{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}
  body{margin:0!important;padding:0!important;background:#fff!important;}
  body>*{max-width:100vw!important;overflow-x:hidden!important;}
  main,#main-content{display:block!important;width:100%!important;max-width:100vw!important;min-width:0!important;overflow-x:hidden!important;padding-top:72px!important;}
  header,footer,section,article,aside,nav,form,.site-header,.site-footer,.hero,.page-hero,.section,.section-light,.section-soft,.section-dark,.section-white,.section-cta-block{width:100%!important;max-width:100vw!important;min-width:0!important;overflow-x:hidden!important;}
  .container,.container--narrow,.container--wide,.hero-inner,.hero__inner,.page-hero-inner,.page-hero__inner,.section>.container,.section-light>.container,.section-soft>.container,.section-dark>.container,.section-white>.container,.section-cta-block>.container{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;padding-left:18px!important;padding-right:18px!important;}
  .hero-content,.hero__content,.page-hero-content,.page-hero__content,.content-block,.content-block-narrow,.content-block-centered,.section-header,.section-header-light,.cta-block,.faq-list,.work-sector-header{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;text-align:left!important;}
  main *,#main-content *{max-width:100%!important;min-width:0!important;}
  h1,.hero-heading,.hero__title,.page-hero-title,.page-hero__title{font-size:clamp(28px,8.5vw,36px)!important;line-height:1.14!important;letter-spacing:-.03em!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;}
  h2,.section-title{font-size:clamp(24px,7vw,30px)!important;line-height:1.18!important;letter-spacing:-.02em!important;white-space:normal!important;overflow-wrap:break-word!important;}
  h3{font-size:21px!important;line-height:1.25!important;}
  p,li{font-size:16px!important;line-height:1.62!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;}
  a,span,div,strong,em{overflow-wrap:break-word!important;word-break:normal!important;}
  .grid,.grid-2,.grid-3,.grid-4,.grid--2,.grid--3,.grid--4,.content-two-col,.for-grid,.partner-types-grid,.contact-options-grid,.contact-grid,.contact-methods-grid,.countries-grid,.countries-detail-grid,.resources-country-grid,.study-countries-grid,.trust-strip-list,.resources-grid,.about-model-grid,.credibility-grid,.process-steps,.work-sector-grid,.work-sector-grid-home,.footer-grid,.site-footer__grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;gap:18px!important;}
  .visa-type-block,.process-page-step,.resource-card,.why-card,.not-card,.provides-card,.service-card,.credibility-card,.country-card,.country-detail-card,.partner-type-card,.limit-card,.contact-option,.contact-option-card,.contact-method-card,.contact-card,.form-wrapper,.pre-assessment-wrapper,.assessment-form-wrapper,.form-fieldset,.trust-note,.info-card,.legal-notice{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;padding-left:18px!important;padding-right:18px!important;}
  .hero,.page-hero{min-height:auto!important;height:auto!important;padding-top:0!important;padding-bottom:44px!important;display:block!important;}
  .hero-bg,.hero-bg-img,.hero__visual,.hero__texture{max-width:100vw!important;overflow:hidden!important;}
  .hero-bg-img,.hero__visual img{width:100%!important;height:100%!important;object-fit:cover!important;}
  .hero-overlay{background:linear-gradient(180deg,rgba(7,24,39,.86),rgba(7,24,39,.68))!important;}
  .hero-cta-group,.hero__actions,.btn-group,.cta-block-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:12px!important;}
  .hero-cta-group .btn,.hero__actions .btn,.btn-group .btn,.cta-block-actions .btn,.btn{width:100%!important;max-width:100%!important;white-space:normal!important;text-align:center!important;}
  .country-card-img-wrap,.country-detail-img-wrap,.work-sector-card img{height:180px!important;}
  .highlight-block,.highlight-block-reverse,.qr-card,.whatsapp-card,.contact-whatsapp-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;}
  .highlight-block-image,.highlight-block-image img{width:100%!important;min-height:210px!important;height:auto!important;}
  .form-row,.form-row-2{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;}
  input,select,textarea,.form-input,.form-select,.form-textarea,.pre-assessment-form input,.pre-assessment-form select,.pre-assessment-form textarea{width:100%!important;max-width:100%!important;min-width:0!important;font-size:16px!important;}
  .form-consent-label{width:100%!important;align-items:flex-start!important;}
  .floating-whatsapp,.wa-widget-trigger,.whatsapp-floating,.wa-floating-button{right:12px!important;bottom:12px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;padding:0!important;border-radius:999px!important;font-size:0!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;z-index:9000!important;}
  .floating-whatsapp__text{display:none!important;}
  .floating-whatsapp__icon,.wa-widget-trigger__icon{width:24px!important;height:24px!important;}
  .wa-widget-panel{left:12px!important;right:12px!important;bottom:72px!important;width:auto!important;max-width:calc(100vw - 24px)!important;}
}

@media screen and (max-width:420px){
  .container,.header-inner,.site-header__inner,.hero-inner,.hero__inner,.page-hero-inner,.page-hero__inner,.section>.container,.section-light>.container,.section-soft>.container,.section-dark>.container,.section-white>.container{padding-left:16px!important;padding-right:16px!important;}
  .header-logo{width:128px!important;min-width:128px!important;max-width:128px!important;height:50px!important;}
  .header-logo img{max-width:112px!important;max-height:36px!important;}
}
