/**
 * BR STAR — THE MECHANICS
 * Master Mobile & Multi-Device Responsive Stylesheet
 * 
 * Engineered for 100% responsiveness across all modern screen form-factors:
 * - Ultra-compact & Foldable Phones (280px - 359px)
 * - Compact & Standard Smartphones (360px - 428px, iPhone SE/12/13/14/15/16, Samsung Galaxy, Pixel)
 * - Phablets & Large Phones (429px - 767px)
 * - Tablets (768px - 991px, iPad, Galaxy Tab portrait & landscape)
 * - Laptops & Desktops (992px - 1400px+)
 */

/* ==========================================================================
   1. GLOBAL RESET & OVERFLOW PROTECTION
   ========================================================================== */
html {
  overflow-x: hidden !important;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Universal text break to prevent horizontal overflow */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
dt,
dd {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Fluid Media */
img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* Accessible touch targets (WCAG 2.5.5) */
button,
.btn,
.nav-link,
.filter-btn,
.mobile-action-btn,
a.btn {
  touch-action: manipulation;
}

/* Container safety gutter */
.container,
.container-fluid {
  padding-left: clamp(12px, 3.5vw, 24px);
  padding-right: clamp(12px, 3.5vw, 24px);
}

/* ==========================================================================
   2. TOP ANNOUNCEMENT STRIP
   ========================================================================== */
.announcement-bar {
  background-color: var(--color-midnight-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: #E2E8F0;
  line-height: 1.35;
}

.announcement-bar .badge-emergency {
  background-color: var(--color-machinery-amber);
  color: var(--color-midnight-navy);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.45rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* ==========================================================================
   3. PRIMARY NAVIGATION BAR (.site-navbar)
   ========================================================================== */
.site-navbar {
  background-color: var(--color-midnight-navy);
  padding: 0.75rem 0;
  border-bottom: 2px solid rgba(245, 164, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.site-navbar.scrolled {
  padding: 0.55rem 0;
  background-color: rgba(16, 28, 53, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Navbar container flex behavior: Keep Brand and Actions aligned on ONE plane */
.site-navbar>.container,
.site-navbar>.container-fluid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1360px !important;
  margin: 0 auto !important;
}

/* Nav links and navbar CTA buttons NEVER wrap text into 2 lines */
.site-navbar .nav-link {
  white-space: nowrap !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.site-navbar .btn {
  white-space: nowrap !important;
}

.site-navbar .navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: clamp(0.4rem, 2vw, 0.65rem) !important;
  margin-right: 0 !important;
  padding: 0 !important;
  max-width: calc(100% - 105px);
  min-width: 0;
  flex: 0 1 auto;
  text-decoration: none;
}

.navbar-brand-logo {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  transition: transform var(--transition-fast);
}

.site-navbar .brand-text {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-navbar .brand-name {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.1rem, 4.2vw, 1.45rem) !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-navbar .brand-name .brand-star {
  color: var(--color-machinery-amber) !important;
}

.site-navbar .brand-tagline {
  font-size: clamp(0.55rem, 1.8vw, 0.64rem) !important;
  letter-spacing: 0.16em !important;
  color: #BAC7D5 !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-navbar .navbar-toggler {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 164, 0, 0.45);
  background: rgba(245, 164, 0, 0.06);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.site-navbar .navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(245, 164, 0, 0.25);
}

.site-navbar .navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F5A400' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   4. FLOATING BUTTONS & MOBILE STICKY ACTION BAR
   ========================================================================== */
/* Floating WhatsApp (Desktop / Tablet) */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 54px;
  height: 54px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 1035;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  animation: wa-pulse 3s infinite;
}

.floating-whatsapp-btn:hover {
  background-color: #1EBE5D;
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp-btn .whatsapp-tooltip {
  position: absolute;
  left: 64px;
  background: rgba(16, 28, 53, 0.95);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  border-left: 2px solid var(--color-machinery-amber);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.floating-whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(4px);
}

@keyframes wa-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* Mobile Sticky Quick Action Bar (< 768px) */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(16, 28, 53, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid var(--color-machinery-amber);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-action-bar .container {
  padding-left: 0;
  padding-right: 0;
}

.mobile-action-btn {
  flex: 1 1 0;
  min-width: 0;
  /* Prevents overflow inside flex container */
  min-height: 46px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.7rem, 2.7vw, 0.84rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0 0.35rem;
  overflow: hidden;
}

.mobile-action-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-action-btn i {
  font-size: clamp(0.88rem, 3.2vw, 1.05rem);
  flex-shrink: 0;
}

.mobile-action-call {
  background: var(--color-machinery-amber);
  color: var(--color-midnight-navy);
  box-shadow: 0 2px 8px rgba(245, 164, 0, 0.35);
}

.mobile-action-call:hover,
.mobile-action-call:active {
  background: var(--color-machinery-amber-hover);
  color: var(--color-midnight-navy);
}

.mobile-action-wa {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.mobile-action-wa:hover,
.mobile-action-wa:active {
  background: #1EBE5D;
  color: #FFFFFF;
}

.mobile-action-enquire {
  background: #172C52;
  color: #FFFFFF;
  border: 1px solid rgba(245, 164, 0, 0.4);
}

.mobile-action-enquire:hover,
.mobile-action-enquire:active {
  background: #1F3B6E;
  color: #FFFFFF;
}

/* ==========================================================================
   5. RESPONSIVE COMPONENT CLASSES
   ========================================================================== */
.service-detail-image-wrapper {
  height: clamp(210px, 45vw, 420px);
  background: var(--color-midnight-navy);
}

.service-row-img-wrapper {
  height: clamp(190px, 35vw, 300px);
  background: var(--color-midnight-navy);
}

/* ==========================================================================
   6. TABLET & MOBILE NAVBAR DRAWER (max-width: 1199.98px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .site-navbar {
    padding: 0.65rem 0;
  }

  .site-navbar>.container,
  .site-navbar>.container-fluid {
    flex-wrap: wrap !important;
  }

  .site-navbar .navbar-brand {
    flex: 0 1 auto !important;
    flex-shrink: 0 !important;
    max-width: calc(100% - 110px) !important;
  }

  .site-navbar .mobile-action-cluster {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .site-navbar .navbar-collapse {
    flex-basis: 100% !important;
    width: 100% !important;
    order: 3 !important;
    background-color: var(--color-midnight-navy) !important;
    padding: 1.25rem 1rem !important;
    margin-top: 0.75rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(245, 164, 0, 0.35) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
  }

  .site-navbar .navbar-nav {
    width: 100% !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .site-navbar .navbar-nav .nav-item {
    width: 100% !important;
  }

  .nav-link {
    width: 100% !important;
    padding: 0.75rem 0.65rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    white-space: nowrap !important;
    color: #E2E8F0 !important;
  }

  .nav-link:hover,
  .nav-link:focus {
    color: var(--color-machinery-amber) !important;
    background: rgba(245, 164, 0, 0.04);
  }

  .nav-link.active {
    color: var(--color-machinery-amber) !important;
    background: rgba(245, 164, 0, 0.08) !important;
    border-radius: 6px !important;
    padding-left: 0.85rem !important;
  }

  .nav-link.active::after {
    display: none !important;
  }

  .navbar-nav .btn-amber {
    margin-top: 1rem !important;
    width: 100% !important;
    min-height: 48px !important;
    font-size: 1rem !important;
  }
}

/* ==========================================================================
   6B. DESKTOP NAVBAR HORIZONTAL FLUID SYSTEM (min-width: 1200px)
   ========================================================================== */
@media (min-width: 1200px) {

  .site-navbar>.container,
  .site-navbar>.container-fluid {
    flex-wrap: nowrap !important;
  }

  .site-navbar .navbar-brand {
    flex-shrink: 0 !important;
    max-width: none !important;
  }

  .site-navbar .brand-name {
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .site-navbar .brand-tagline {
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .site-navbar .navbar-collapse {
    flex-basis: auto !important;
    width: auto !important;
    order: unset !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
  }

  .site-navbar .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(0.25rem, 0.65vw, 1rem) !important;
  }

  .site-navbar .nav-link {
    font-size: clamp(0.82rem, 0.86vw, 0.92rem) !important;
    padding: 0.45rem clamp(0.45rem, 0.65vw, 0.85rem) !important;
    letter-spacing: clamp(0.02em, 0.035vw, 0.05em) !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  /* Exact matching geometry for Workshop and Request a Service buttons */
  .site-navbar .navbar-cta-btn,
  .site-navbar .btn-outline-warning,
  .site-navbar .btn-amber {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 1rem !important;
    font-family: var(--font-heading) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .site-navbar .navbar-cta-btn span,
  .site-navbar .btn-outline-warning span,
  .site-navbar .btn-amber span {
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  .site-navbar .navbar-cta-btn i,
  .site-navbar .btn-outline-warning i,
  .site-navbar .btn-amber i {
    font-size: 0.95rem !important;
    line-height: 1 !important;
    display: inline-block !important;
  }
}

/* Tablet Layout Adjustments (max-width: 991.98px) */
@media (max-width: 991.98px) {

  /* Hero adjustments for tablet */
  .hero-section {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }

  .about-image-wrapper {
    margin-bottom: 2rem;
  }

  .about-experience-badge {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .emergency-box {
    padding: 2rem 1.5rem;
  }

  /* Admin Sidebar Offcanvas on < 992px */
  .admin-wrapper {
    display: block;
    position: relative;
  }

  .admin-sidebar.offcanvas-lg {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    background: #101C35 !important;
    z-index: 1055;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .admin-sidebar.offcanvas-lg.show {
    transform: none;
    visibility: visible;
  }

  .admin-content {
    padding: 1rem 0.75rem;
    width: 100%;
    min-width: 0;
  }

  .admin-topbar {
    padding: 0.65rem 0.85rem;
    position: sticky;
    top: 0;
    z-index: 1030;
  }
}

/* ==========================================================================
   7. SMARTPHONES & SMALL TABLETS (max-width: 767.98px)
   ========================================================================== */
@media (max-width: 767.98px) {

  /* Prevent mobile sticky action bar from obscuring content */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Compact section padding for ergonomic thumb reach */
  .about-section,
  .services-section,
  .feature-block,
  .steps-section,
  .gallery-section,
  .py-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  /* Typography Scaling */
  .display-title {
    font-size: clamp(1.65rem, 6.2vw, 2.25rem);
    line-height: 1.15;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  /* Top Announcement Bar */
  .announcement-bar {
    padding: 0.35rem 0;
    font-size: 0.8rem;
  }

  .announcement-bar .container>div {
    justify-content: center !important;
    text-align: center;
    gap: 0.4rem;
  }

  .announcement-bar .header-phone-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 3.25rem 0 2.25rem;
    background-position: 70% center;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.8vw, 2.35rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-emergency-card {
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem;
  }

  .hero-scroll-indicator {
    display: none !important;
  }

  /* Capabilities 2-Column Grid on Mobile */
  .capabilities-strip {
    padding: 0.85rem 0;
  }

  .capabilities-strip .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  .capabilities-strip .col-sm-6 {
    width: 50% !important;
  }

  .capability-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.75rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    height: 100%;
  }

  .capability-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .capability-title {
    font-size: 0.86rem;
    margin-bottom: 0.15rem;
    line-height: 1.2;
  }

  .capability-desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  /* Service Cards */
  .service-card-image {
    height: clamp(170px, 45vw, 220px);
  }

  .service-card-body {
    padding: 1.25rem 1rem;
  }

  .service-card-title {
    font-size: 1.15rem;
  }

  .service-card-desc {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .service-link {
    font-size: 0.88rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Horizontal Momentum Swipeable Category Filter Bars */
  .gallery-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0.25rem 0.6rem;
    gap: 0.45rem;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.45rem 0.95rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  /* Gallery Grid on Mobile */
  .gallery-item {
    height: clamp(200px, 50vw, 260px);
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 20%, rgba(16, 28, 53, 0.88) 100%);
    padding: 1rem;
  }

  .gallery-overlay-title {
    font-size: 1rem;
  }

  /* Lightbox Modal on Mobile */
  .lightbox-modal img {
    max-height: 70vh;
  }

  .lightbox-close-btn {
    top: -10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  /* Wash Services Grid */
  .wash-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .wash-service-item {
    padding: 1rem 0.5rem;
  }

  .wash-service-icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .wash-service-name {
    font-size: 0.88rem;
  }

  /* Reposition Floating Back-to-Top Button Above Mobile Sticky Bar */
  .back-to-top {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    opacity: 0.9;
  }

  /* Step Cards */
  .step-card {
    padding: 1.5rem 1.25rem;
  }

  .step-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  /* Inner Page Header */
  .inner-page-header {
    padding: 3rem 0 2rem;
  }

  .inner-page-header h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.15rem);
  }

  .inner-page-header p {
    font-size: 0.92rem;
  }

  /* Contact Page Left Dark Card */
  .contact-info-card {
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 3.5vw, 1.75rem);
    margin-bottom: 1.5rem;
  }

  .contact-detail-row {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .contact-detail-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .contact-detail-val {
    font-size: 0.92rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .contact-detail-val a {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .contact-detail-val .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Forms & Touch Targets (Prevent iOS Zoom with 16px minimum) */
  .form-card {
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 3.5vw, 1.75rem);
  }

  .form-control,
  .form-select {
    font-size: 16px !important;
    /* 16px minimum strictly prevents auto-zoom on mobile Safari */
    min-height: 48px;
    padding: 0.65rem 0.85rem;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
  }

  .form-check-label {
    font-size: 0.85rem;
    padding-left: 0.35rem;
  }

  button[type="submit"].btn-amber {
    min-height: 50px;
    font-size: 1rem;
    width: 100%;
  }

  /* Spare parts card actions */
  .product-card-body {
    padding: 1rem;
  }

  .product-card-body .status-enquire {
    font-size: 0.72rem;
  }

  /* Footer Layout */
  .site-footer {
    padding: 2.75rem 0 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  /* Admin Dashboard & Tables */
  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .table-responsive {
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive .table {
    min-width: 680px;
  }
}

/* ==========================================================================
   8. COMPACT & EXTRA-SMALL PHONES (max-width: 400px, e.g. iPhone SE, Fold)
   ========================================================================== */
@media (max-width: 400px) {
  .navbar-brand-logo {
    width: 38px !important;
    height: 38px !important;
  }

  .site-navbar .brand-name {
    font-size: 1.15rem !important;
  }

  .site-navbar .brand-tagline {
    font-size: 0.54rem !important;
  }

  .site-navbar .navbar-toggler {
    width: 40px;
    height: 40px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .capabilities-strip .col-sm-6 {
    width: 50% !important;
  }

  .capability-card {
    padding: 0.55rem 0.4rem;
    gap: 0.35rem;
  }

  .capability-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .capability-title {
    font-size: 0.78rem;
  }

  .capability-desc {
    font-size: 0.67rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wash-service-grid {
    grid-template-columns: 1fr;
  }

  .btn-amber,
  .btn-outline-amber,
  .btn-navy {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
  }

  .mobile-action-btn {
    font-size: 0.7rem;
    gap: 0.2rem;
    padding: 0 0.25rem;
  }

  .mobile-action-btn i {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   9. ULTRA-NARROW FOLDABLES (max-width: 340px)
   ========================================================================== */
@media (max-width: 340px) {
  .site-navbar .brand-name {
    font-size: 1.05rem !important;
  }

  .site-navbar .brand-tagline {
    display: none;
  }

  .capabilities-strip .col-sm-6 {
    width: 100% !important;
  }

  .mobile-action-btn span {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   10. PRODUCT CARD ENQUIRY BUTTONS RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 420px) {
  .product-card-action-row .product-btn-wa .wa-text {
    display: none !important;
  }

  .product-card-action-row .product-btn-wa {
    padding: 0.45rem 0.55rem !important;
    width: 40px !important;
    min-width: 40px !important;
  }

  .product-card-action-row .product-btn-enquire {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.65rem !important;
  }
}