/* ============================================================
   EUROVISA GROUP — FINAL RESPONSIVE LOCK
   File: assets/css/responsive-v8-final.css
   Purpose: final CSS-only patch for desktop/laptop header + iPhone/Android layout.
   Loaded last, after style.css, mobile-final-v6-critical.css and responsive-v7-final.css.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box !important;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

body {
  position: relative !important;
}

img, svg, video, canvas, iframe {
  max-width: 100% !important;
  height: auto;
}

/* ============================================================
   DESKTOP / LAPTOP HEADER
   - Full desktop can show menu.
   - Medium laptop/tablet switches to hamburger to avoid overlap forever.
   ============================================================ */

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 72px !important;
  min-height: 72px !important;
  background: rgba(7, 24, 39, 0.97) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
  overflow: visible !important;
  z-index: 99999 !important;
}

.header-inner,
.site-header__inner {
  height: 72px !important;
  width: 100% !important;
  max-width: 1440px !important;
  min-width: 0 !important;
  margin: 0 auto !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;
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 6px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.18) !important;
}

.header-logo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 130px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

/* Wide desktop: show full menu, hide CTA until there is enough room. */
@media screen and (min-width: 1501px) {
  main, #main-content { padding-top: 72px !important; }

  .nav-toggle { display: none !important; }

  .nav-menu,
  .nav-menu:not(.is-open) {
    position: static !important;
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 170px) !important;
    min-width: 0 !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    z-index: auto !important;
  }

  .nav-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .nav-list li {
    width: auto !important;
    min-width: 0 !important;
    border: 0 !important;
  }

  .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-height: auto !important;
    padding: 8px 7px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    color: rgba(255,255,255,.86) !important;
    text-decoration: none !important;
  }

  .nav-link.is-active { color: #d4af37 !important; }

  .nav-cta {
    display: none !important;
  }
}

@media screen and (min-width: 1760px) {
  .nav-cta {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1 !important;
    padding: 11px 16px !important;
    margin-left: 8px !important;
    max-width: 240px !important;
  }
}

/* Laptop / tablet / phone: hamburger menu. This prevents the header from ever overlapping. */
@media screen and (max-width: 1500px) {
  main, #main-content { padding-top: 72px !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,.32) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.11) !important;
    padding: 0 !important;
    margin-left: auto !important;
    color: #ffffff !important;
    cursor: pointer !important;
    z-index: 100002 !important;
  }

  .nav-toggle-bar {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    opacity: 1 !important;
    transition: transform .2s ease, opacity .2s ease !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;
  }

  body.nav-open {
    overflow: hidden !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;
    min-width: 0 !important;
    height: calc(100vh - 72px) !important;
    height: calc(100dvh - 72px) !important;
    background: #071827 !important;
    padding: 20px 22px 34px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    z-index: 100001 !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
  }

  .nav-menu.is-open .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    list-style: none !important;
  }

  .nav-menu.is-open .nav-list li {
    display: block !important;
    width: 100% !important;
    max-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;
    max-width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 13px 0 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: 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: 14px !important;
    font-weight: 900 !important;
  }
}

/* ============================================================
   TRUE MOBILE / ANDROID / iPHONE CONTENT LOCK
   ============================================================ */
@media screen and (max-width: 900px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body > * {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  main,
  #main-content,
  .site-main {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-top: 72px !important;
    overflow-x: hidden !important;
  }

  header,
  footer,
  section,
  article,
  aside,
  form,
  .site-header,
  .site-footer,
  .section,
  .section-light,
  .section-soft,
  .section-dark,
  .section-white,
  .section-cta-block,
  .page-hero,
  .hero {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 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: 16px !important;
    padding-right: 16px !important;
  }

  main *,
  #main-content * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hero {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #071827 !important;
  }

  .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .hero-bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7,24,39,.90), rgba(7,24,39,.72)) !important;
  }

  .hero-inner,
  .hero__inner {
    position: relative !important;
    z-index: 2 !important;
    padding-top: 58px !important;
    padding-bottom: 46px !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;
  }

  .page-hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 112px !important;
    padding-bottom: 48px !important;
  }

  h1,
  .hero-heading,
  .hero__title,
  .page-hero-title,
  .page-hero__title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.035em !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  h2,
  .section-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(24px, 7vw, 31px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  h3 {
    font-size: 21px !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !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 {
    white-space: normal !important;
    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,
  .content-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,
  .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;
    min-width: 0 !important;
    gap: 18px !important;
  }

  .process-page-step,
  .visa-type-block,
  .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;
    overflow: visible !important;
  }

  .process-page-step-label {
    display: none !important;
  }

  .process-page-step-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .country-card-img-wrap,
  .country-detail-img-wrap,
  .work-sector-card img {
    height: 180px !important;
  }

  .highlight-block-image,
  .highlight-block-image img {
    width: 100% !important;
    min-height: 210px !important;
    height: auto !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;
    max-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;
  }

  .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: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !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: 70px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
  }
}

@media screen and (max-width: 420px) {
  .container,
  .container--narrow,
  .container--wide,
  .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: 14px !important;
    padding-right: 14px !important;
  }

  .header-logo {
    width: 126px !important;
    min-width: 126px !important;
    max-width: 126px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  .header-logo img {
    max-width: 112px !important;
    max-height: 36px !important;
  }

  h1,
  .hero-heading,
  .hero__title,
  .page-hero-title,
  .page-hero__title {
    font-size: 28px !important;
  }

  h2,
  .section-title {
    font-size: 24px !important;
  }
}
