/* ─── Biztech Group — Custom CSS ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

:root {
  /* Navy */
  --navy-950: #030b14;
  --navy-900: #071120;
  --navy-800: #0c1829;
  --navy-700: #0f1e3d;
  --navy-600: #162845;
  --navy-500: #1e3560;

  /* Gold */
  --gold-600: #9a7a20;
  --gold-500: #c9a84c;
  --gold-400: #d4b86a;
  --gold-300: #e5ce8a;
  --gold-100: #fdf8e8;
  --gold-50:  #fffdf5;

  /* Surfaces */
  --surface-0: #ffffff;
  --surface-1: #f8fafc;
  --surface-2: #f1f5f9;

  /* Text */
  --text-primary:   #0f1e3d;
  --text-secondary: #374151;
  --text-muted:     #6b7280;
  --text-faint:     #9ca3af;

  /* Borders */
  --border:       #e5e7eb;
  --border-light: #f3f4f6;

  /* Multi-layer shadows (Stripe-style) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.05);
  --shadow-gold: 0 8px 28px rgba(201,168,76,.35);

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-secondary);
}

/* ─── Utility overrides ─── */
.bg-navy-900  { background-color: var(--navy-900); }
.bg-navy-800  { background-color: var(--navy-800); }
.bg-navy-700  { background-color: var(--navy-700); }
.bg-gold-500  { background-color: var(--gold-500); }
.bg-gold-100  { background-color: var(--gold-100); }
.text-gold-500 { color: var(--gold-500); }
.text-navy-900 { color: var(--navy-900); }
.text-navy-700 { color: var(--navy-700); }
.border-gold-500 { border-color: var(--gold-500); }

/* ─── Buttons ─── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 700; font-size: .95rem;
  padding: 14px 28px; border-radius: var(--radius-md);
  border: none; cursor: pointer; text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .18s;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(201,168,76,.2);
}
.btn-gold:hover {
  background: var(--gold-600);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: var(--navy-900);
}

.btn-gold-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 600; font-size: .88rem;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .18s;
  white-space: nowrap; box-shadow: 0 2px 6px rgba(201,168,76,.15);
}
.btn-gold-sm:hover {
  background: var(--gold-600);
  box-shadow: 0 6px 20px rgba(201,168,76,.32);
  transform: translateY(-1px);
  color: var(--navy-900);
}

.btn-white-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  font-weight: 600; font-size: .95rem;
  padding: 13px 28px; border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,.38); cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s, transform .18s;
  white-space: nowrap;
}
.btn-white-outline:hover {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
  color: #fff;
}

.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-700); color: #fff;
  font-weight: 600; font-size: .95rem;
  padding: 13px 28px; border-radius: var(--radius-md);
  border: none; cursor: pointer; text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .18s;
  white-space: nowrap;
}
.btn-navy:hover {
  background: var(--navy-600);
  box-shadow: 0 8px 24px rgba(15,30,61,.28);
  transform: translateY(-2px);
  color: #fff;
}

/* ─── Section spacing ─── */
.section    { padding: 112px 0; }
.section-sm { padding: 80px 0; }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  color: var(--navy-700);
}
.section-title.light { color: #fff; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-label.gold  { background: var(--gold-100); color: var(--gold-600); border: 1px solid rgba(201,168,76,.25); }
.section-label.white { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2); }

.section-sub {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.8;
  margin-top: 14px; max-width: 600px;
}

/* ─── Service cards ─── */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: box-shadow .28s, transform .28s, border-color .28s;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold-500));
  opacity: 0; transition: opacity .28s;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.service-card:hover::before { opacity: 1; }

.service-icon { display: none; }

/* ─── Proposition cards ─── */
.prop-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s, transform .28s;
}
.prop-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.prop-card img {
  transition: transform .55s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.prop-card:hover img {
  transform: scale(1.05);
}

/* ─── Project / case study cards ─── */
.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden; background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.project-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.project-thumb { height: 220px; position: relative; }
.project-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold-500); color: var(--navy-900);
  font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  letter-spacing: .02em;
}

/* ─── Insight cards (Knowledge Centre) ─── */
.insight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s, transform .28s;
}
.insight-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.insight-card-accent { height: 3px; }
.insight-card-body { padding: 28px 32px 32px; }

/* ─── Testimonial cards ─── */
.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transition: background .25s, border-color .25s;
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(201,168,76,.28);
}
.testimonial-card .quote-mark {
  font-size: 4rem; color: var(--gold-500); line-height: .6;
  display: block; margin-bottom: 16px; font-family: Georgia, serif; opacity: .8;
}

/* ─── FAQ ─── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.open {
  border-color: var(--gold-400);
  box-shadow: 0 4px 20px rgba(201,168,76,.1);
}
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; background: #fff; cursor: pointer; text-align: left;
  font-size: .95rem; font-weight: 600; color: var(--navy-700);
  border: none; transition: background .2s; line-height: 1.4;
}
.faq-trigger:hover { background: var(--surface-1); }
.faq-trigger .faq-icon {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-500);
  transition: transform .38s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: 16px;
}
.faq-item.open .faq-trigger { background: var(--gold-50); }
.faq-item.open .faq-icon    { transform: rotate(45deg); }

/* Smooth accordion using max-height */
.faq-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  background: var(--gold-50);
  color: #4b5563; line-height: 1.8; font-size: .93rem;
  transition:
    max-height .42s cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom .42s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-body {
  max-height: 600px;
  padding-bottom: 22px;
}

/* ─── Industry cards ─── */
.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s, transform .28s, border-color .28s;
  position: relative; overflow: hidden;
}
.industry-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold-500);
  opacity: 0; transition: opacity .25s;
}
.industry-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.industry-card:hover::before { opacity: 1; }
.industry-icon { display: none; }

/* ─── Certification badges ─── */
.cert-badge {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s, transform .28s, border-color .28s;
}
.cert-badge:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ─── Stats ─── */
.stat-card {
  padding: 32px 24px; border-radius: var(--radius-lg); text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.stat-num { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.04em; }
.stat-num span { color: var(--gold-500); }

/* ─── Hero grid pattern ─── */
.hero-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ─── Homepage hero ambient glow ─── */
@keyframes hero-orb-breathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: .42; }
}
@keyframes hero-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-36px, 26px); }
}
@keyframes hero-grid-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(52px, 52px); }
}
@keyframes hero-aurora-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes hero-edge-shimmer {
  0%        { transform: translateX(-100%); opacity: 0; }
  8%        { opacity: 1; }
  50%       { transform: translateX(500%); opacity: 1; }
  58%, 100% { transform: translateX(500%); opacity: 0; }
}
.hero-orb-gold {
  filter: blur(72px);
  animation: hero-orb-breathe 10s ease-in-out infinite;
  will-change: opacity;
}
.hero-orb-blue {
  filter: blur(80px);
  animation: hero-orb-drift 16s ease-in-out infinite;
  will-change: transform;
}
.hero-aurora {
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(56,115,232,.038) 55deg,
    rgba(20,184,166,.028) 130deg,
    transparent 185deg,
    rgba(201,168,76,.022) 250deg,
    transparent 310deg,
    transparent 360deg
  );
  border-radius: 50%;
  animation: hero-aurora-spin 30s linear infinite;
  will-change: transform;
}
.hero-grid-move {
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: hero-grid-drift 24s linear infinite;
  will-change: transform;
}
.hero-glow-edge::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,.45) 20%, rgba(201,168,76,.85) 50%, rgba(201,168,76,.45) 80%, transparent 100%);
  box-shadow: 0 0 32px 6px rgba(201,168,76,.13);
}
.hero-glow-edge::after {
  content: ''; position: absolute; top: 0; left: 0; width: 25%; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: hero-edge-shimmer 10s ease-in-out infinite;
  will-change: transform, opacity;
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  background-color: var(--navy-900);
  padding: 88px 0 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ─── Technology partner logo grid ─── */
.tech-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) {
  .tech-grid { grid-template-columns: repeat(2,1fr); }
}
.tech-tile {
  background: #fff; padding: 36px 28px;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.tech-tile {
  transition: box-shadow .22s, transform .22s;
}
.tech-tile:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.tech-tile img {
  max-height: 36px; max-width: 96px; width: auto; height: auto;
  object-fit: contain; display: block;
}

/* ─── Form fields ─── */
.form-field {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-md);
  border: 1.5px solid #d1d5db; background: #fff;
  font-family: inherit; font-size: .93rem; color: #1f2937;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-field:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.form-label { font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }

/* ─── Scroll-reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  .6s cubic-bezier(0.22, 1, 0.36, 1),
    transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Active nav link ─── */
.nav-active { color: var(--gold-500) !important; }

/* ─── WhatsApp float button ─── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none; font-size: 1.4rem;
  transition: transform .22s, box-shadow .22s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }

/* ─── Container ─── */
.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: 28px; }

/* ════════════════════════════════════════════════════
   MOBILE QA — Global fixes (390px · 430px · 768px)
   All rules scoped inside media queries.
   Desktop layout is entirely unchanged.
════════════════════════════════════════════════════ */

/* Prevent horizontal overflow site-wide */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
img  { max-width: 100%; height: auto; }

/* ─── 768px and below (tablet + mobile) ─── */
@media (max-width: 768px) {

  /* Container padding */
  .container { padding-inline: 20px; }

  /* Section vertical rhythm */
  .section    { padding: 64px 0; }
  .section-sm { padding: 48px 0; }

  /* Page inner-hero */
  .page-hero  { padding: 72px 0 48px; }

  /* Dark section containers that use padding:96px 24px inline */
  [style*="padding:96px 24px"] {
    padding-top:    64px !important;
    padding-bottom: 64px !important;
  }

  /* Hero container (index.html uses padding-top/bottom separately) */
  [style*="padding-top:96px;padding-bottom:96px"] {
    padding-top:    56px !important;
    padding-bottom: 60px !important;
  }

  /* ── Hero two-column grid ── */
  .hero-grid        { grid-template-columns: 1fr !important; }
  .hero-visual-wrap { display: none !important; }

  /* ── Large layout 2-col splits (text + visual) → single column ── */
  [style*="grid-template-columns:1fr 1fr;gap:72px"],
  [style*="grid-template-columns:1fr 1fr;gap:64px"],
  [style*="grid-template-columns:1fr 1fr;gap:80px"],
  [style*="grid-template-columns:1fr 1fr;gap:48px"],
  [style*="grid-template-columns:1fr 1fr;gap:32px"],
  [style*="grid-template-columns:1fr 1fr;gap:28px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* ── Case study primary card (no gap, starts with border-radius) ── */
  [style*="grid-template-columns:1fr 1fr;border-radius:20px"],
  [style*="grid-template-columns:1fr 1fr;min-height:420px"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Blog featured post (spans full grid col, inner 2-col) ── */
  [style*="grid-column:1/-1;display:grid"] {
    grid-template-columns: 1fr !important;
  }

  /* ── FAQ section (1fr 1.3fr split) ── */
  [style*="grid-template-columns:1fr 1.3fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* ── About page timeline (1fr 40px 1fr) ── */
  [style*="grid-template-columns:1fr 40px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Hide the centre dot column and empty placeholder cells */
  [style*="grid-template-columns:1fr 40px 1fr"] > div:nth-child(2) { display: none !important; }
  [style*="grid-template-columns:1fr 40px 1fr"] > div:empty        { display: none !important; }
  /* Left-align right-aligned timeline cells when stacked */
  [style*="grid-template-columns:1fr 40px 1fr"] > div[style*="text-align:right"] {
    text-align: left !important;
  }

  /* ── Form field rows (first/last name, partner form pairs) ── */
  .form-row,
  .field-row {
    grid-template-columns: 1fr !important;
  }

  /* ── Blog/case study comparison tables → scroll ── */
  [style*="grid-template-columns:2fr 1fr 1fr"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }

  /* ── 4-col metric rows → 2-col ── */
  [style*="grid-template-columns:1fr 1fr 1fr 1fr;gap:12px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── APAC country 3-col grids → 2-col ── */
  [style*="grid-template-columns:1fr 1fr 1fr;gap:10px"],
  [style*="grid-template-columns:1fr 1fr 1fr;gap:12px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── 3-col case study metric stats → 2-col ── */
  [style*="grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:16px"],
  [style*="grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:32px"],
  [style*="grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:32px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── Contact form card: reduce inner padding on mobile ── */
  [style*="padding:44px;box-shadow"] {
    padding: 24px 20px !important;
  }

  /* ── Solutions top-feature card: reduce padding ── */
  [style*="padding:40px 48px;display:grid"] {
    padding: 24px 20px !important;
  }

  /* ── Primary case study right-panel padding ── */
  [style*="padding:40px;background:#fff;display:flex;flex-direction:column;justify-content:center"] {
    padding: 24px !important;
  }

  /* ── Secondary case study card body padding ── */
  [style*="padding:28px 28px 32px;flex:1"] {
    padding: 20px !important;
  }

  /* ── Tech partner logo grid: equal-height tiles, uniform logos ── */
  .tech-grid { overflow: hidden; }
  .tech-tile {
    padding: 28px 20px;
    min-height: 104px;          /* guarantees every cell the same row height */
    align-items: center;
    justify-content: center;
  }
  /* Uniform 88×28 bounding box — all logos same element size, object-fit:contain scales
     each logo within it. Keeps left/right column flush; prevents wide wordmarks from
     dominating. 32% width reduction from previous 130px makes AWS/Cisco/Samsung balanced
     with compact badge logos like Hikvision. */
  .tech-tile img {
    height:      28px  !important;
    width:       88px  !important;
    max-height:  28px  !important;
    max-width:   88px  !important;
    object-fit:  contain !important;
    display:     block !important;
  }

  /* ── Insight / knowledge card body ── */
  .insight-card-body { padding: 22px 20px 24px; }

  /* ── Service card padding ── */
  .service-card { padding: 28px 24px; }

  /* ── Industry card padding ── */
  .industry-card { padding: 20px 22px; }

  /* ════════════════════════════════════════════════════════════════════════
     ASYMMETRIC 2-COL GRID COLLAPSE — critical mobile fixes
     These grid ratios were not matched by the existing 1fr/1fr selectors,
     causing second columns to overflow off-screen on phones.
     ════════════════════════════════════════════════════════════════════════ */

  /* contact.html (info panel + contact FORM) and SEO landing page FAQ cols */
  [style*="grid-template-columns:1fr 1.4fr;gap:64px"],
  [style*="grid-template-columns:1fr 1.4fr;gap:72px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* why-choose-us.html "True One-Stop Solution" card (label col + icon grid) */
  [style*="grid-template-columns:1fr 2fr;gap:48px"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* why-choose-us.html inner 8-service icon grid (repeat(4,1fr)) → 2-col */
  [style*="grid-template-columns:repeat(4,1fr);gap:12px"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* Blog articles + case studies: main article + fixed-width sidebar → stack */
  [style*="grid-template-columns:1fr 320px;gap:64px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Remove sticky positioning on sidebar so it scrolls naturally when stacked */
  [style*="grid-template-columns:1fr 320px;gap:64px"] aside {
    position: static !important;
    top: auto !important;
  }

}

/* ─── 480px and below (all phones) ─── */
@media (max-width: 480px) {

  /* Even tighter container on small phones */
  .container { padding-inline: 16px; }

  /* Trust bar items: remove vertical separators when they wrap */
  [style*="border-right:1px solid #e5e7eb;text-align:center"] {
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 14px 0 !important;
    width: 100%;
  }

  /* Hero heading: clamp to smaller floor on tiny screens */
  .hero-grid h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem) !important;
    line-height: 1.1 !important;
  }

  /* Hero announcement badge: prevent overflow */
  .hero-grid [style*="font-size:.76rem"] {
    font-size: .68rem !important;
    letter-spacing: .08em !important;
    white-space: normal !important;
  }

  /* Blog featured post: tighter inner padding */
  [style*="padding:40px;display:flex;flex-direction:column;justify-content:space-between"],
  [style*="padding:40px;display:flex;flex-direction:column;justify-content:center"] {
    padding: 22px !important;
  }

  /* Right-panel "In This Article" section in blog featured */
  [style*="padding:40px;display:flex;flex-direction:column;justify-content:center"] {
    padding: 22px !important;
  }

  /* Case study card metric grids: 3-col → 1-col on very small screens */
  [style*="grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:16px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Partner & contact: 3-col stat bars */
  [style*="grid-template-columns:1fr 1fr 1fr;gap:16px;margin-top:32px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Managed services 2×2 stat tiles: keep 2-col (compact enough) */

  /* FAQ buttons: full-width stacked */
  .faq-trigger { padding: 18px 20px; font-size: .9rem; }

  /* Section title: smaller floor */
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2rem) !important; }

  /* Section subtitle: tighter */
  .section-sub { font-size: .95rem; }

  /* Prop card content padding */
  .prop-card [style*="padding:28px 32px 36px"] { padding: 22px 20px 28px !important; }

  /* Page hero tighter */
  .page-hero { padding: 60px 0 36px; }

  /* Why Biztech 2×3 grid reasons: already auto-fit, fine */

  /* Footer bottom bar: stack copyright + links */
  [style*="display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

/* ─── Logo size overrides ─── */
/* Nav: 28px desktop → 24px mobile (unchanged).
   Footer: 28px → 26px desktop (inline), 26px → 22px mobile (below). */
@media (max-width: 767px) {
  /* Nav bar logo — unchanged from previous session */
  #main-nav a img {
    height: 24px !important;
    width: auto !important;
  }

  /* Footer logo — reduced further: 24px → 22px (~8% reduction on mobile) */
  footer img[alt="Biztech Group"] {
    height: 22px !important;
    width: auto !important;
  }
}

/* ─── Mobile navigation — premium interaction ─── */
#mobile-menu.nav-open {
  animation: mobileNavIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-link:hover {
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
}
.mobile-nav-link:hover svg {
  opacity: .55 !important;
}
.mobile-nav-link:active {
  background: rgba(201,168,76,.14) !important;
  color: #c9a84c !important;
}
.mobile-nav-link:active svg {
  opacity: .8 !important;
}
#nav-hamburger:active {
  opacity: .72;
}

/* ─── Desktop: APAC country flag visibility ─── */
/* On desktop (≥769px) the hero right panel and APAC Presence section
   flags must be unconditionally visible. The hero-visual-wrap is shown
   by default (only hidden at ≤768px via the mobile block above), but the
   explicit rule below closes any edge-case. The APAC section's .reveal
   columns start at opacity:0 and rely on IntersectionObserver — which can
   silently miss on wider viewports. Forcing opacity:1 on desktop ensures
   the flag grid is always rendered regardless of scroll or IO timing. */
@media (min-width: 769px) {
  /* Hero right column: definitively displayed */
  .hero-visual-wrap { display: block !important; }

  /* APAC Presence section: flag grid and text always visible on desktop */
  [style*="grid-template-columns:1fr 1fr;gap:64px;align-items:center"] > .reveal {
    opacity:   1 !important;
    transform: none !important;
  }
}
