/* =============================================================================
   Tel Now BD — Responsive Overrides
   ============================================================================= */

/* ─── Mobile: < 576px ───────────────────────────────────────────────────────── */
.tn-about-intro {
  grid-template-columns: 1fr;
  gap: var(--sp-10);
}

.tn-about-intro .text-wrap {
  padding-left: 0;
}

.tn-about-intro .accent-bar {
  left: 0;
  top: -16px;
  bottom: auto;
  height: 5px;
  width: 60px;
  background: linear-gradient(90deg, var(--clr-orange), var(--clr-orange-lt));
}

.tn-legal-wrapper {
  grid-template-columns: 1fr;
}

.tn-legal-toc {
  position: static;
  background: var(--clr-soft-bg);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.tn-stat-item + .tn-stat-item::before {
  top: 0;
  bottom: auto;
  left: 20%;
  right: 20%;
  height: 1px;
  width: auto;
}

.tn-steps-row::before {
  display: none;
}

.tn-fab-whatsapp {
  width: 52px;
  height: 52px;
  font-size: 1.375rem;
  bottom: 20px;
  right: 16px;
}

.tn-backtotop {
  bottom: 84px;
  right: 16px;
}

.tn-hero__float-card {
  bottom: 16px;
  left: 16px;
  min-width: auto;
  padding: var(--sp-3) var(--sp-4);
}

.tn-footer__bottom-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.tn-form-tabs .nav-tabs {
  padding: 0 var(--sp-4);
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tn-form-tabs .nav-tabs::-webkit-scrollbar {
  display: none;
}

.tn-form-tabs .nav-tabs .nav-link {
  white-space: nowrap;
  padding: var(--sp-3);
  font-size: var(--fz-xs);
}

/* Hero mobile: show mobile visual, hide desktop image col */
.tn-hero--home .col-hero-img {
  display: none;
}

.tn-hero__mobile-visual {
  display: block;
}

.tn-hero__mini-cards {
  grid-template-columns: repeat(3, 1fr);
}

/* Form sticky bar on mobile */
.tn-form-sticky-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-3) var(--sp-4);
  gap: var(--sp-3);
  box-shadow: 0 -4px 20px rgba(8, 43, 87, 0.1);
}

.tn-form-sticky-bar .tn-btn-primary,
.tn-form-sticky-bar .tn-btn-outline {
  flex: 1;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: var(--fz-sm);
}

body.page-request {
  padding-bottom: 72px;
}

.tn-safety-band .safety-grid {
  grid-template-columns: 1fr;
}

.tn-form-progress__label {
  font-size: 0.625rem;
}

.tn-form-progress__connector {
  max-width: 24px;
}

/* ─── sm: >= 576px ─────────────────────────────────────────────────────────── */
@media (min-width: 576px) {
  .tn-hero__cta-group {
    flex-wrap: nowrap;
  }

  .tn-form-progress__label {
    font-size: 0.6875rem;
  }

  .tn-form-progress__connector {
    max-width: 40px;
  }
}

/* ─── md: >= 768px ─────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .tn-about-intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }

  .tn-about-intro .text-wrap {
    padding-left: var(--sp-4);
  }

  .tn-about-intro .accent-bar {
    left: -16px;
    top: 10%;
    bottom: 10%;
    height: auto;
    width: 5px;
    background: linear-gradient(180deg, var(--clr-orange), var(--clr-orange-lt));
  }

  .tn-fab-whatsapp {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    bottom: 24px;
    right: 24px;
  }

  .tn-backtotop {
    bottom: 92px;
    right: 24px;
  }

  .tn-stat-item + .tn-stat-item::before {
    top: 20%;
    bottom: 20%;
    left: 0;
    right: auto;
    height: auto;
    width: 1px;
  }

  .tn-safety-band .safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.page-request {
    padding-bottom: 0;
  }

  .tn-form-sticky-bar {
    display: none;
  }
}

/* ─── lg: >= 992px ─────────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  .tn-hero--home .col-hero-img {
    display: block;
  }

  .tn-hero__mobile-visual {
    display: none;
  }

  .tn-steps-row::before {
    display: block;
  }

  .tn-legal-wrapper {
    grid-template-columns: 240px 1fr;
  }

  .tn-legal-toc {
    position: sticky;
    top: calc(var(--navbar-h) + var(--sp-6));
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
  }

}

/* Mobile nav — see nav-mobile.css */

/* ─── xl: >= 1200px ─────────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .tn-hero__float-card {
    bottom: -20px;
    left: -20px;
  }
}

/* ─── xxl: >= 1400px ─────────────────────────────────────────────────────────── */
@media (min-width: 1400px) {
  :root {
    --section-py: 6rem;
  }
}

/* ─── Print ──────────────────────────────────────────────────────────────────── */
@media print {
  .tn-navbar,
  .tn-footer,
  .tn-fab-whatsapp,
  .tn-backtotop,
  .tn-cta-band,
  .tn-form-sticky-bar {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 12pt;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}

/* ─── 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;
  }

  html {
    scroll-behavior: auto;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
