/* ─────────────────────────────────────────
   Responsive — Mobile First
   Breakpoints: xs <576  sm 576  md 768  lg 992  xl 1200
───────────────────────────────────────── */

/* ── Large (≤1199px) ── */
@media (max-width: 1199.98px) {
  .hero-title    { font-size: 50px; }
  .section-title { font-size: 38px; }
}

/* ── Tablet landscape (≤991px) ── */
@media (max-width: 991.98px) {
  :root { --section-py: 64px; }

  /* Navbar */
  .navbar-icon { height: 36px; }
  .brand-impro  { font-size: 20px; }
  .head-btn { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

  /* Hero */
  .hero-sec { padding: 72px 0 56px; }
  .hero-title { font-size: 42px; }
  .hero-desc { font-size: 17px; }
  .hero-image-wrap {
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image-wrap img { max-height: 360px; object-fit: contain; }
  /* pill goes relative at tablet so it doesn't overflow the section */
  .hero-video-pill {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 16px auto 0;
    display: inline-flex;
  }

  /* Sections */
  .section-title    { font-size: 34px; }
  .section-subtitle { font-size: 16px; }

  /* Stats */
  .stats-grid .stat-item { padding: 0 12px; }

  /* Contact */
  .contact-card { padding: 40px 32px; }

  /* Footer */
  .foot-body .links-detail { margin-top: 32px; }
  .footer-bottom { margin-top: 20px; }
}

/* ── Tablet portrait (≤767px) ── */
@media (max-width: 767.98px) {
  :root { --section-py: 56px; }

  /* Navbar */
  .navbar-icon { height: 32px; }
  .brand-impro  { font-size: 18px; }
  .brand-sys    { font-size: 9px; letter-spacing: 2.5px; }

  /* Hero */
  .hero-sec { padding: 60px 0 48px; text-align: center; }
  .hero-title { font-size: 36px; }
  .hero-badge { font-size: 11px; }
  .hero-desc  { font-size: 16px; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta   { justify-content: center; }
  .hero-image-wrap { margin-top: 36px; max-width: 400px; }
  .hero-image-wrap img { max-height: 300px; }
  .hero-video-pill { margin: 14px auto 0; }

  /* Sections */
  .section-title    { font-size: 30px; }
  .section-subtitle { font-size: 15px; }

  /* Stats — wrap to 2×2 */
  .stats-grid { flex-wrap: wrap; }
  .stats-grid .stat-item { flex: 0 0 50%; padding: 16px 12px; }
  .stats-grid .stat-item + .stat-item::before { display: none; }
  .stat-number  { font-size: 36px; }
  .stats-bar    { padding: 24px 0; }

  /* Why Us / Services — ensure single col gap is comfortable */
  .ips-card, .service-card { padding: 24px 20px; }

  /* Offer cards */
  .offer-card > img { height: 200px; }

  /* Benefits */
  .benefits-sec .row.pt-4 { padding-top: 2rem !important; }
  .benefit-body { padding: 8px 20px 24px; }

  /* Video section */
  .play-circle { width: 64px; height: 64px; font-size: 20px; }

  /* Testimonial */
  .testimonial-card { padding: 32px 20px; }
  .testimonial-card blockquote p { font-size: 16px; }

  /* Badges — 2 columns */
  .badge-item { padding: 12px 14px; }

  /* Contact */
  .contact-sec  { padding: 56px 0; }
  .contact-card { padding: 32px 20px; }
  .contact-card h3 { font-size: 24px; }

  /* Footer stacking */
  .footer-sec   { padding: 28px 0 0; }
  .footer-bottom { margin-top: 16px; }
  .footer-terms  { margin-top: 10px; text-align: left !important; }
  .footer-terms a { margin-left: 0; margin-right: 20px; }

  /* Copyright */
  .copyright-cont p { text-align: center; margin-bottom: 8px; }
  .copyright-cont .terms-cont { text-align: center; }
  .copyright-cont .terms-cont a { margin-left: 10px; margin-right: 0; }
  .copyright-cont .terms-cont a:first-child { margin-left: 0; }

  /* Terms / Privacy pages */
  .terms-sec { padding: 56px 0; }
  .terms-sec h2 { font-size: 32px; margin-bottom: 32px; }

  /* Cookie banner */
  #cookieBanner { padding: 14px 16px; }
  #cookieBanner .d-flex { flex-direction: column; gap: 10px !important; text-align: center; }
}

/* ── Mobile (≤575px) ── */
@media (max-width: 575.98px) {
  :root { --section-py: 48px; }

  /* Navbar */
  .navbar-icon  { height: 28px; }
  .brand-impro  { font-size: 16px; }
  .brand-sys    { font-size: 8px; letter-spacing: 2px; }
  .navbar .gap-2 { gap: 0.4rem !important; }

  /* Hero */
  .hero-sec   { padding: 48px 0 36px; }
  .hero-title { font-size: 28px; }
  .hero-badge { padding: 5px 12px; font-size: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-image-wrap { max-width: 320px; }
  .hero-image-wrap img { max-height: 240px; border-radius: var(--radius-lg); }
  .hero-video-pill { width: 100%; justify-content: center; }

  /* Sections */
  .section-title  { font-size: 24px; }
  .section-label  { font-size: 10px; letter-spacing: 1.5px; }
  .section-label::before, .section-label::after { width: 16px; }

  /* Stats */
  .stat-number { font-size: 30px; }
  .stat-number em { font-size: 22px; }
  .stat-label  { font-size: 10px; }

  /* Why Us / Services */
  .ips-card, .service-card { padding: 20px 16px; }
  .ips-card h5, .service-card h4 { font-size: 17px; }
  .service-card { flex-direction: column; gap: 12px; }
  .service-card .svc-icon { width: 44px; height: 44px; }

  /* Offer cards */
  .offer-card > img  { height: 180px; }
  .offer-body        { padding: 20px 16px 24px; }
  .offer-body h3     { font-size: 18px; }

  /* Benefits & Offer — circle overlay */
  .benefit-img-wrap,
  .offer-img-wrap   { width: 60px; height: 60px; top: -22px; left: 16px; }
  .benefit-card,
  .offer-card       { padding-top: 36px; }
  .benefit-body     { padding: 6px 16px 20px; }
  .benefit-body h4  { font-size: 16px; }
  .offer-body       { padding: 6px 16px 24px; }
  .offer-body h3    { font-size: 18px; }

  /* Video */
  .play-circle { width: 56px; height: 56px; font-size: 18px; box-shadow: 0 0 0 12px rgba(10,117,173,.2); }

  /* Testimonial */
  .testimonial-card { padding: 24px 14px; }
  .testimonial-card .quote-mark { font-size: 52px; }
  .testimonial-card blockquote p { font-size: 15px; }
  .testimonial-card .t-name { font-size: 15px; }

  /* Badges */
  .badges-sec { padding: 48px 0; }
  .badge-item { padding: 12px; gap: 10px; }
  .badge-item i { font-size: 18px; }
  .badge-item p { font-size: 12px; }

  /* Contact */
  .contact-sec  { padding: 48px 0; }
  .contact-card { padding: 20px 14px; border-radius: var(--radius-lg); }
  .contact-card h3 { font-size: 20px; }
  .contact-card .form-control,
  .contact-card .form-select { height: 48px; font-size: 14px; }
  .contact-card textarea.form-control { height: auto; }
  .contact-card .btn-submit { height: 48px; font-size: 14px; }

  /* Footer */
  .footer-desc    { font-size: 13px; }
  .footer-heading { font-size: 14px; }
  .footer-contact-item { font-size: 13px; }
  .footer-bottom p { font-size: 12px; }
  .footer-terms a  { font-size: 12px; }

  /* Back to top */
  #backToTopBtn { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 16px; }

  /* reCAPTCHA badge */
  .grecaptcha-badge { transform: scale(0.6); }

  /* Terms / Privacy pages */
  .terms-sec { padding: 40px 0; }
  .terms-sec h2  { font-size: 26px; margin-bottom: 24px; }
  .terms-sec h3  { font-size: 17px; margin-top: 24px; }
  .terms-sec p, .terms-sec li { font-size: 14px; }

  /* Offcanvas */
  .offcanvas { width: 100% !important; }
  .offcanvas-header h2 { font-size: 20px; }

  /* Modal */
  .modal-dialog { margin: 12px; }
  .modal-video-close { padding: 12px; }
}
