/* Impro Solutions Bangladesh alignment patch
   Purpose: font size, mobile readability, header logo fit, safe tap size.
   This file is an override only. Keep existing home-elite.css untouched. */

:root {
  --impro-font-main: Arial, Helvetica, sans-serif;
  --impro-navy: #071b3a;
  --impro-red: #ef2b2f;
  --impro-text: #102033;
  --impro-muted: #546376;
  --impro-container: 1220px;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--impro-font-main);
  font-size: 17px;
  line-height: 1.65;
  color: var(--impro-text);
  text-rendering: optimizeLegibility;
}

.container {
  width: min(100% - 48px, var(--impro-container));
  margin-left: auto;
  margin-right: auto;
}

/* Header and logo alignment */
.site-header .nav-wrap,
.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 190px;
}

.brand img {
  display: block;
  width: 210px;
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

.footer img {
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a,
.cta,
.btn,
.mobile-panel a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: .02em;
}

.main-nav a {
  font-weight: 800;
  white-space: nowrap;
}

.cta,
.btn {
  padding: 14px 24px;
  border-radius: 9px;
  font-weight: 800;
}

/* Typography system */
h1,
h2,
h3,
h4,
.main-nav a,
.cta,
.btn {
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--impro-navy);
}

h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--impro-navy);
}

h3 {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.25;
  color: var(--impro-navy);
}

h4 {
  font-size: 18px;
  line-height: 1.3;
}

p,
li,
details p,
.sector-card p,
.method p,
.video-copy p,
.footer p {
  font-size: 17px;
  line-height: 1.65;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  max-width: 680px;
}

.eyebrow,
.breadcrumb,
.tagline,
.section-title span,
.video-copy span,
.final-card span {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .18em;
}

.section-title p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 850px;
}

.hero-pills span,
.trust-grid span,
.brand-card span,
.copy,
.topbar {
  font-size: 15px;
  line-height: 1.55;
}

/* Layout breathing room */
.section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.hero {
  padding-top: 70px;
  padding-bottom: 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.sector-showcase,
.method-grid,
.brand-grid,
.faq-grid,
.trust-grid,
.footer-grid {
  gap: 28px;
}

.sector-card,
.method,
.brand-card,
details,
.final-card,
.video-box,
.video-copy {
  border-radius: 18px;
}

.sector-card,
.method,
.brand-card,
details {
  padding: 26px;
}

.sector-card img,
.hero-card img,
.video-box video {
  max-width: 100%;
  height: auto;
}

/* Mobile safe reading and tap size */
@media (max-width: 980px) {
  .site-header .nav-wrap,
  .nav-wrap {
    min-height: 78px;
    gap: 18px;
  }

  .brand {
    min-width: 160px;
  }

  .brand img {
    width: 178px;
    max-width: 178px;
  }

  .main-nav,
  .cta {
    display: none;
  }

  .hamb {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .container {
    width: min(100% - 36px, var(--impro-container));
  }

  .topbar-inner {
    gap: 8px;
    align-items: flex-start;
  }

  .topbar,
  .topbar a {
    font-size: 13px;
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.16;
  }

  h3 {
    font-size: 21px;
  }

  p,
  li,
  details p,
  .sector-card p,
  .method p,
  .video-copy p,
  .footer p {
    font-size: 16px;
    line-height: 1.65;
  }

  .lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 46px;
  }

  .hero-pills,
  .buttons,
  .social-row {
    gap: 10px;
  }

  .btn,
  .cta,
  .mobile-panel a {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .sector-card,
  .method,
  .brand-card,
  details,
  .final-card,
  .video-copy {
    padding: 22px;
  }

  .footer img {
    width: 190px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 32px, var(--impro-container));
  }

  .brand img {
    width: 156px;
    max-width: 156px;
  }

  h1 {
    font-size: 32px;
  }

  .eyebrow,
  .breadcrumb,
  .tagline,
  .section-title span,
  .video-copy span,
  .final-card span {
    letter-spacing: .12em;
  }
}
