/* ═══════════════════════════════════════════════════════════
   responsive.css  –  Edge-case responsive overrides
   Loaded AFTER style.css & inner.css to override inline styles
   ═══════════════════════════════════════════════════════════ */

/* ── 1024px – Tablet landscape ───────────────────────────── */
@media (max-width: 1024px) {
  /* Override inline min-width on service mega-dropdown */
  .dropdown[style*="min-width:660px"] {
    min-width: 480px !important;
  }

  /* our-team.html – Join Us section inline 1fr 1fr grid */
  div[style*="grid-template-columns:1fr 1fr;gap:72px"] {
    gap: 48px !important;
  }
}

/* ── 768px – Tablet portrait / Mobile landscape ──────────── */
@media (max-width: 768px) {
  /* Dropdowns are hidden (mobile menu takes over), but safety net */
  .dropdown[style*="min-width:660px"] {
    min-width: auto !important;
    grid-template-columns: 1fr !important;
  }

  /* why-choose-us.html – stat-pill grid inline 4-col → 2 */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  /* cloud-services.html – inline glass-cards 2-col stays 2 but reduce max-width */
  .glass-cards-grid[style*="max-width:800px"] {
    max-width: 100% !important;
  }

  /* our-team.html – Join Us section inline 1fr 1fr → single column */
  div[style*="grid-template-columns:1fr 1fr;gap:72px"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }

  /* our-team.html – Join Us inner glass-card 2-col grid */
  div[style*="grid-template-columns:1fr 1fr;gap:16px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* portfolio.html – filter row (already flex-wrap, reduce bottom margin) */
  #filter-row {
    margin-bottom: 32px !important;
  }

  /* portfolio.html – project card header rows */
  div[style*="display:flex;align-items:center;justify-content:space-between;margin-bottom:16px"] {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Filter buttons – tighter on tablet */
  .filter-btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* terms.html / privacy.html – legal content inline max-width */
  div[style*="max-width:760px"] {
    max-width: 100% !important;
  }

  /* Section header reveal with inline text-center (keep working, lower bottom margin) */
  .reveal[style*="text-align:center;max-width"] {
    margin-bottom: 36px !important;
  }

  /* Careers inline section headers */
  .reveal[style*="max-width:600px"],
  .reveal[style*="max-width:560px"] {
    margin-bottom: 36px !important;
  }
}

/* ── 520px – Mobile portrait ─────────────────────────────── */
@media (max-width: 520px) {
  /* why-choose-us.html – stat-pill grid inline 4-col → single col */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* cloud-services.html – inline glass-cards 2-col → 1 col */
  .glass-cards-grid[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* our-team.html – Join Us section */
  div[style*="grid-template-columns:1fr 1fr;gap:72px"] {
    gap: 30px !important;
  }

  /* our-team.html – inner glass-card grid → single col */
  div[style*="grid-template-columns:1fr 1fr;gap:16px"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Filter buttons – even tighter on mobile */
  .filter-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  #filter-row {
    margin-bottom: 24px !important;
    gap: 6px !important;
  }

  /* Section header reveal – reduce bottom margin */
  .reveal[style*="text-align:center;max-width"] {
    margin-bottom: 28px !important;
  }

  /* Legal pages – inline section headings */
  div[style*="margin-bottom:36px"] h3 {
    font-size: 16px !important;
  }

  /* Ensure all images and media are responsive */
  img, video, iframe, svg {
    max-width: 100%;
    height: auto;
  }

  /* Prevent horizontal overflow anywhere */
  body {
    overflow-x: hidden;
  }

  /* Ensure tables don't overflow */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-cta{
    display: none;
  }

}
