/* ============================================================
   Visa Document Support BD — responsive.css
   Breakpoints: 1200px / 992px / 768px / 576px / 375px
============================================================ */

/* ---------- ≤1200px (laptop) ---------- */
@media (max-width: 1200px) {
  .nav-list { gap: 18px; }
  .nav-link { font-size: 0.88rem; }

  .service-grid { grid-template-columns: repeat(4, 1fr); }

  .about-grid { grid-template-columns: 320px minmax(0, 1fr) 190px; gap: 26px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; }
  .footer-grid .footer-col:last-child { grid-column: 2 / 4; }
  .footer-map svg { max-width: 220px; }
}

/* ---------- 993–1080px: keep the header uncrowded before the
   hamburger takes over (phone block yields first) ---------- */
@media (max-width: 1080px) and (min-width: 993px) {
  .nav-list { gap: 13px; }
  .nav-link { font-size: 0.85rem; }
  .header-call { display: none; }
}

/* ---------- ≤992px (tablet landscape) ---------- */
@media (max-width: 992px) {
  /* Header: switch to hamburger */
  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100dvh;
    margin: 0;
    background: var(--color-white);
    box-shadow: -12px 0 40px rgba(6, 23, 71, 0.18);
    padding: 88px 24px 24px;
    overflow-y: auto;
    transition: right var(--transition);
    z-index: 890;
  }
  .main-nav.is-open { right: 0; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    padding: 13px 10px;
    min-height: 44px;
    border-radius: var(--radius-small);
    justify-content: space-between;
  }
  .nav-link:hover { background: var(--color-light); }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: #e9f1ff; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    margin: 2px 0 4px 14px;
    padding: 0 0 0 8px;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }

  .header-cta .header-call { display: none; }
  .hamburger { display: flex; }

  /* Call / WhatsApp / Apply actions inside the mobile menu */
  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
  }
  .nav-mobile-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* Hero: stacked */
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }
  .hero-content { padding-bottom: 8px; text-align: left; }
  .hero-media { margin-top: 22px; }
  .hero-media::before { display: none; }
  .hero-img {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-medium);
    object-position: 70% center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
    margin-top: -34px;
  }
  .stat { justify-content: flex-start; }
  .stat:nth-child(2n) { border-right: 0; }

  .featured-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }

  /* Process: 2×2 grid, hide connectors */
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .process-step::after, .process-step::before { display: none; }
  .process-step .step-number { left: calc(50% - 56px); }

  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid .why-card:nth-child(4) { grid-column: 1 / 2; }

  /* About: image top, content below, stats side by side */
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .about-stats { flex-direction: row; }
  .about-stat-card { flex: 1; }

  /* Testimonials: 2 visible would look cramped; show 1 large */
  .testimonial-card { flex: 0 0 50%; }

  .faq-layout { grid-template-columns: 1fr; }
  .faq-art { display: none; }

  .cta-banner { flex-direction: column; text-align: center; padding: 34px 28px; }
  .cta-actions { margin-right: 0; flex-wrap: wrap; justify-content: center; }
  .cta-dots { right: 18px; top: 18px; transform: none; width: 48px; height: 48px; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; max-width: 460px; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
}

/* ---------- ≤768px (tablet portrait) ---------- */
@media (max-width: 768px) {
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .hero-trust { gap: 18px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .services-panel { padding: 26px 18px 30px; }

  /* Process: vertical timeline */
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "icon title"
      "icon desc";
    column-gap: 20px;
    text-align: left;
    align-items: start;
    padding: 0 0 34px;
  }
  .process-step .step-icon { grid-area: icon; margin: 0; width: 72px; height: 72px; }
  .process-step .step-icon svg { width: 32px; height: 32px; }
  .process-step .step-number { top: -6px; left: 52px; }
  .process-step .step-title { grid-area: title; align-self: end; margin-bottom: 4px; }
  .process-step .step-desc { grid-area: desc; margin: 0; max-width: none; }
  /* vertical dotted connector */
  .process-step:not(:last-child)::after {
    display: block;
    content: "";
    position: absolute;
    top: 76px;
    left: 35px;
    width: 0;
    height: calc(100% - 82px);
    border-top: 0;
    border-left: 2px dashed #c6d4e6;
  }
  .process-step:not(:last-child)::before { display: none; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid .why-card:nth-child(4) { grid-column: auto; }
  .why-grid .why-card:last-child { grid-column: 1 / -1; }

  .about-checklist { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; }

  /* Testimonials: single slide */
  .testimonial-card { flex: 0 0 100%; }

  .faq-columns { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≤576px (mobile) ---------- */
@media (max-width: 576px) {
  .container { padding-inline: 16px; }

  .brand-text { display: none; }
  .btn-header { display: none; }
  .header-inner { min-height: 64px; }
  .brand-logo { width: 62px; }

  .hero-badge { font-size: 0.72rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-img { aspect-ratio: 4 / 3; object-position: 72% center; }
  .hero-media { margin-right: -16px; }

  .stats-bar { grid-template-columns: 1fr; padding: 20px 18px; }
  .stat { border-right: 0; border-bottom: 1px solid #e9eef6; padding: 14px 4px; }
  .stat:last-child { border-bottom: 0; }

  .services { padding: 56px 0 62px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 64px; }

  .featured-card { grid-template-columns: 1fr; }
  .featured-media { order: -1; }

  .why-grid { grid-template-columns: 1fr; }
  .why-grid .why-card:last-child { grid-column: auto; }

  .about { padding: 56px 0; }

  .cta-banner { padding: 28px 20px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; padding-top: 42px; }
  .footer-map svg { max-width: 260px; }

  .slider { gap: 8px; }
  .slider-btn { width: 44px; height: 44px; }

  .floating-whatsapp { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .back-to-top { right: 19px; bottom: 80px; width: 44px; height: 44px; }
}

/* ---------- ≤375px (small mobile) ---------- */
@media (max-width: 375px) {
  .main-nav { width: 86vw; }
  .process-step { grid-template-columns: 76px 1fr; column-gap: 14px; }
  .process-step .step-icon { width: 64px; height: 64px; }
  .process-step:not(:last-child)::after { left: 31px; top: 68px; height: calc(100% - 74px); }
  .process-step .step-number { left: 46px; }
}


/* ---------- <=320px (minimum supported width) ---------- */
@media (max-width: 320px) {
  .container { padding-inline: 14px; }
  .hero-media { margin-right: -14px; }
  .main-nav { width: 92vw; }
  .hero-badge { font-size: 0.66rem; padding: 6px 12px; }
  .hero-trust { gap: 12px; }
  .btn { padding-inline: 16px; font-size: 0.9rem; }
  .stats-bar { padding: 16px 14px; }
  .services-panel { padding: 22px 12px 26px; }
  .cta-banner { padding: 24px 16px; }
  .cta-dots { display: none; }
  .footer-map svg { max-width: 100%; }
}
