/**
 * ARH Transport BD - Enhanced Typography System (Noto Sans Bengali)
 * Purpose: Crisp, open, and effortless reading across all desktop & mobile screens
 */

/* ======================================================== */
/* CRITICAL SAFEGUARDS: Prevent FOUC & Giant Image Blowups  */
/* ======================================================== */
img {
  max-width: 100%;
  height: auto;
}

img[alt*="Logo"],
img[alt*="logo"],
.brand-logo-img {
  max-height: 52px !important;
  width: auto !important;
  object-fit: contain;
}

html, body {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.012em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
  /* ======================================================== */
  /* 1. GLOBAL BASE & SCALE RESETS FOR MOBILE                 */
  /* ======================================================== */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Micro-text overrides: No Bengali text below 12px */
  .text-\[8px\] {
    font-size: 0.6875rem !important; /* 11px */
    line-height: 1.25 !important;
  }
  .text-\[9px\] {
    font-size: 0.75rem !important; /* 12px */
    line-height: 1.3 !important;
  }
  .text-\[10px\] {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.35 !important;
  }
  .text-\[11px\] {
    font-size: 0.84375rem !important; /* 13.5px */
    line-height: 1.4 !important;
  }
  .text-xs {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.5 !important;
  }
  .text-sm {
    font-size: 0.96875rem !important; /* 15.5px */
    line-height: 1.625 !important;
  }

  /* ======================================================== */
  /* 2. TOP BAR & NAVIGATION                                  */
  /* ======================================================== */
  .bg-slate-100.dark\:bg-slate-900.text-xs {
    font-size: 0.8125rem !important; /* 13px */
  }
  .bg-slate-100.dark\:bg-slate-900 a {
    font-size: 0.84375rem !important; /* 13.5px */
  }

  /* Header brand title and subtitle */
  header .font-display.text-2xl {
    font-size: 1.625rem !important; /* 26px */
  }
  header a p,
  header a span.text-\[10px\] {
    font-size: 0.8125rem !important; /* 13px */
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
  }

  /* ======================================================== */
  /* 3. HERO SLIDER & FLOATING GLASS TRIO CARDS              */
  /* ======================================================== */
  .hero-slide h2 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.3 !important;
    font-weight: 800 !important;
  }
  .hero-slide p {
    font-size: 0.96875rem !important; /* 15.5px */
    line-height: 1.6 !important;
  }
  .hero-slide .inline-flex.rounded-full {
    font-size: 0.84375rem !important; /* 13.5px */
    padding: 0.35rem 0.85rem !important;
  }
  .hero-slide a {
    font-size: 0.9375rem !important; /* 15px */
  }

  /* Floating Apple Liquid Glass Cards on banner */
  .hero-glass-card {
    padding: 0.65rem 0.4rem !important;
  }
  .hero-glass-card span.text-\[11px\] {
    font-size: 0.84375rem !important; /* 13.5px */
    font-weight: 800 !important;
    line-height: 1.25 !important;
  }
  .hero-glass-card span.text-\[9px\] {
    font-size: 0.71875rem !important; /* 11.5px */
    font-weight: 700 !important;
  }
  .hero-glass-card .w-8.h-8 {
    width: 2.25rem !important;
    height: 2.25rem !important;
    font-size: 0.95rem !important;
  }

  /* ======================================================== */
  /* 4. KEY STATS COUNTER BAR                                 */
  /* ======================================================== */
  .stat-counter,
  section .text-3xl.font-display {
    font-size: 1.875rem !important; /* 30px */
  }
  section .text-3xl.font-display + p {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.4 !important;
  }

  /* ======================================================== */
  /* 5. SERVICE CARDS (RENT-A-CAR, AMBULANCE, HORSE CARRIAGE) */
  /* ======================================================== */
  section span.text-orange-500.uppercase {
    font-size: 0.78125rem !important; /* 12.5px */
    letter-spacing: 0.1em !important;
  }
  section h2 {
    font-size: 1.5rem !important; /* 24px */
    line-height: 1.35 !important;
  }
  section p.text-slate-600,
  section p.text-slate-400 {
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.6 !important;
  }

  /* Card headers and body */
  .group h3.text-xl {
    font-size: 1.375rem !important; /* 22px */
    line-height: 1.3 !important;
  }
  .group p.text-xs.font-semibold {
    font-size: 0.875rem !important; /* 14px */
  }
  .group p.text-sm {
    font-size: 0.96875rem !important; /* 15.5px */
    line-height: 1.65 !important;
  }

  /* Badges inside card images */
  .relative .absolute.top-3 span,
  .relative .absolute.top-3 div,
  .relative .absolute.top-3 {
    font-size: 0.8125rem !important; /* 13px */
  }
  .relative .absolute.bottom-3 {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* Feature tags (✓ Premio, ✓ Noah) */
  .flex.flex-wrap.gap-2 span {
    font-size: 0.84375rem !important; /* 13.5px */
    padding: 0.35rem 0.75rem !important;
  }

  /* Card action buttons */
  .group a.font-bold {
    font-size: 0.96875rem !important; /* 15.5px */
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }
  .group a.text-xs.font-semibold {
    font-size: 0.875rem !important; /* 14px */
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  /* ======================================================== */
  /* 6. WHY CHOOSE US & VALUE PROPOSITION                     */
  /* ======================================================== */
  .lg\:col-span-7 h4.text-sm {
    font-size: 1rem !important; /* 16px */
    line-height: 1.35 !important;
  }
  .lg\:col-span-7 p.text-xs {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.55 !important;
  }

  /* ======================================================== */
  /* 7. FLEET SHOWCASE TABS                                   */
  /* ======================================================== */
  .fleet-tab {
    font-size: 0.90625rem !important; /* 14.5px */
    padding: 0.65rem 1.15rem !important;
    font-weight: 700 !important;
  }
  .fleet-card h4 {
    font-size: 1.125rem !important; /* 18px */
  }
  .fleet-card .text-xs {
    font-size: 0.84375rem !important; /* 13.5px */
  }

  /* ======================================================== */
  /* 8. FAST BOOKING FORM                                     */
  /* ======================================================== */
  form label {
    font-size: 0.90625rem !important; /* 14.5px */
    font-weight: 700 !important;
    margin-bottom: 0.4rem !important;
  }
  form input,
  form select,
  form textarea {
    font-size: 0.96875rem !important; /* 15.5px */
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    line-height: 1.5 !important;
  }
  form span.text-\[11px\] {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.4 !important;
  }
  form button[type="submit"] {
    font-size: 1.0625rem !important; /* 17px */
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    font-weight: 800 !important;
  }

  /* ======================================================== */
  /* 9. CUSTOMER REVIEWS / TESTIMONIALS                       */
  /* ======================================================== */
  #customer-reviews p.text-sm {
    font-size: 0.96875rem !important; /* 15.5px */
    line-height: 1.7 !important;
  }
  #customer-reviews h4.text-sm {
    font-size: 0.96875rem !important; /* 15.5px */
  }
  #customer-reviews p.text-\[11px\] {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* ======================================================== */
  /* 10. FAQ ACCORDION                                        */
  /* ======================================================== */
  .faq-toggle span {
    font-size: 0.96875rem !important; /* 15.5px */
    line-height: 1.45 !important;
  }
  .faq-content {
    font-size: 0.90625rem !important; /* 14.5px */
    line-height: 1.65 !important;
  }

  /* ======================================================== */
  /* 11. FOOTER TYPOGRAPHY                                    */
  /* ======================================================== */
  footer h4 {
    font-size: 1rem !important; /* 16px */
    font-weight: 800 !important;
  }
  footer p,
  footer a,
  footer span {
    font-size: 0.84375rem !important; /* 13.5px */
    line-height: 1.65 !important;
  }

  /* ======================================================== */
  /* 12. FIXED MOBILE BOTTOM ACTION BAR                       */
  /* ======================================================== */
  aside.fixed.bottom-0 {
    padding-top: 0.45rem !important;
    padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  aside.fixed.bottom-0 a {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }
  aside.fixed.bottom-0 i {
    font-size: 1.15rem !important; /* 18.5px */
    margin-bottom: 0.2rem !important;
  }
  aside.fixed.bottom-0 span.text-\[10px\] {
    font-size: 0.78125rem !important; /* 12.5px */
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }
  aside.fixed.bottom-0 span.text-\[8px\] {
    font-size: 0.6875rem !important; /* 11px */
    font-weight: 700 !important;
    margin-top: 0.1rem !important;
  }

  /* ======================================================== */
  /* 13. WELCOME VOICE WIDGET (MOBILE CLEARANCE & TEXT)       */
  /* ======================================================== */
  #arh-voice-bubble {
    max-width: calc(100vw - 20px) !important;
  }
  #arh-voice-text-box p {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.65 !important;
  }
  #arh-voice-timer {
    font-size: 0.78125rem !important; /* 12.5px */
  }
  #arh-voice-play-label {
    font-size: 0.8125rem !important; /* 13px */
  }
}
