/* =====================================================
   MARKOPOLO FOREIGN EMPLOYMENT AGENCY
   Responsive Stylesheet — css/responsive.css
   ===================================================== */

/* =========================================
   BREAKPOINTS:
   xl: 1200px
   lg: 992px
   md: 768px
   sm: 576px
   xs: 400px
   ========================================= */

/* =========================================
   LARGE — up to 1200px
   ========================================= */
@media (max-width: 1200px) {
  :root { --container-max: 960px; }

  .hero h1 { font-size: 2.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); border-right: none; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }

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

  .hero-cards-float { right: 2%; }

  .nav-logo-name { font-size: 0.95rem; }
  .nav-link { padding: 7px 11px; font-size: 0.82rem; }
}

/* =========================================
   MEDIUM-LARGE — up to 992px
   ========================================= */
@media (max-width: 992px) {
  :root {
    --section-py: 64px;
    --nav-height: 70px;
  }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Mobile menu */
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 1px solid var(--border);
  }

  .nav-menu.open { transform: translateX(0); }

  .nav-link {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after { display: none; }

  .nav-cta {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-license { display: none; }

  /* Hero */
  .hero { min-height: auto; padding: calc(var(--nav-height) + 60px) 0 60px; }
  .hero-content { max-width: 100%; }
  .hero-cards-float { display: none; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .about-summary { grid-template-columns: 1fr; gap: 40px; }
  .about-image-block { max-width: 480px; margin: 0 auto; }

  .employer-cta-content { grid-template-columns: 1fr; gap: 40px; }

  /* Why choose */
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }

  /* Countries */
  .country-grid { grid-template-columns: repeat(4, 1fr); }

  /* Vacancies */
  .vacancies-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Vision Mission */
  .vision-mission-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Timeline */
  .timeline::before { left: 24px; }
  .timeline-item { flex-direction: row !important; gap: 24px; }
  .timeline-marker { flex-shrink: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }

  /* Cert grid */
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  /* Form row */
  .form-row { grid-template-columns: 1fr; }

  /* Quick apply */
  .quick-apply-card { padding: 32px 24px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
}

/* =========================================
   MEDIUM — up to 768px (Tablets / Large Phones)
   ========================================= */
@media (max-width: 768px) {
  :root { --section-py: 52px; }

  /* Section titles */
  .section-title { margin-bottom: 40px; }

  /* Hero */
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .hero-stat-number { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.7rem; }

  /* Breadcrumb */
  .breadcrumb-wrapper { padding: 50px 0 24px; }
  .breadcrumb-content h1 { font-size: 1.8rem; }

  /* Why */
  .why-choose-grid { grid-template-columns: 1fr; }

  /* Countries */
  .country-grid { grid-template-columns: repeat(2, 1fr); }

  /* Vacancies */
  .vacancies-grid { grid-template-columns: 1fr; }
  .vacancy-filters { flex-direction: column; align-items: stretch; }
  .search-bar { min-width: unset; }
  .filter-group { flex-wrap: wrap; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonial-inner { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-top { padding: 48px 0 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* CTA buttons */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Stats */
  .stat-number { font-size: 2.4rem; }

  /* Modal */
  .modal { padding: 36px 24px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Cert */
  .cert-grid { grid-template-columns: 1fr; }

  /* Step progress labels */
  .step-label { display: none; }

  /* Multistep form buttons */
  .form-nav-btns { flex-direction: column; }
  .form-nav-btns .btn { width: 100%; justify-content: center; }
}

/* =========================================
   SMALL — up to 576px (Phones)
   ========================================= */
@media (max-width: 576px) {
  :root { --section-py: 44px; }

  .container { padding: 0 16px; }

  /* Nav */
  .nav-logo-tag { display: none; }
  .nav-logo-name { font-size: 0.9rem; }
  .nav-logo img { height: 42px; }

  /* Hero */
  .hero { padding: calc(var(--nav-height) + 40px) 0 50px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-stat-number { font-size: 1.4rem; }
  .hero-stats { gap: 16px; }

  /* Country */
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .country-flag { font-size: 2.2rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Timeline */
  .timeline::before { display: none; }
  .timeline-item { flex-direction: column !important; gap: 12px; }

  /* Table */
  .hours-table td { font-size: 0.82rem; }

  /* Card */
  .card { padding: 20px 16px; }

  /* VM card */
  .vm-card { padding: 24px 20px; }

  /* Buttons full on small */
  .hero-actions .btn, .btn-block-sm {
    width: 100%;
    justify-content: center;
  }

  /* Notification */
  .notification-container { left: 16px; right: 16px; max-width: none; }

  /* Floating buttons */
  .whatsapp-float { bottom: 88px; right: 16px; width: 50px; height: 50px; }
  .scroll-top { bottom: 20px; right: 16px; }
  .theme-fab { bottom: 20px; left: 16px; }

  /* Step progress */
  .step-circle { width: 32px; height: 32px; font-size: 0.8rem; }
  .step-progress::before { top: 16px; }
  .step-progress-bar { top: 16px; }

  /* Quick apply */
  .quick-apply-card { padding: 24px 16px; border-radius: var(--radius-lg); }

  /* Testimonial */
  .testimonial-author { flex-wrap: wrap; }
  .testimonial-stars { margin-left: 0; }

  /* Pagination */
  .page-btn { width: 36px; height: 36px; font-size: 0.82rem; }

  /* About badge */
  .about-image-badge { right: 0; bottom: -16px; padding: 14px; }
  .about-image-badge .badge-num { font-size: 1.6rem; }

  /* Section title subtitle */
  .section-title .subtitle { font-size: 0.75rem; letter-spacing: 2px; }
}

/* =========================================
   EXTRA SMALL — up to 400px
   ========================================= */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.7rem; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  #site-header, #loading-screen, .whatsapp-float,
  .scroll-top, .theme-fab, .notification-container { display: none !important; }
  body { background: white; color: black; }
  .hero { background: white; color: black; min-height: auto; padding: 20px 0; }
  .hero h1, .hero-desc { color: black; }
}

/* =========================================
   ACCESSIBILITY — Reduced Motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   DARK MODE RESPONSIVE TWEAKS
   ========================================= */
[data-theme="dark"] .nav-menu {
  background: var(--bg-dark);
  border-top-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .nav-link { border-bottom-color: rgba(255,255,255,0.08); }
