/* Sevana Polymers - Precision Industrial Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --color-primary: #00162d;
  --color-primary-container: #0f2b48;
  --color-secondary: #006398;
  --color-secondary-hover: #004d77;
  --color-tertiary: #d97706;
  --color-tertiary-hover: #b45309;
  --color-surface: #f8f9ff;
  --color-surface-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-subtle: #cbd5e1;
  --color-text-primary: #0d1c2e;
  --color-text-secondary: #475569;
}

/* Zero-Overflow Reset, Tap Highlight Removal & Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

/* Eliminate browser blue container box on clicking buttons, links and touch elements */
button, a, input, select, textarea, [role="button"], label, .btn {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-secondary) !important;
  outline-offset: 2px;
}

/* High-Performance Material Symbols Icon Rendering & FOIT / FOUT Prevention */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  font-display: swap;
  vertical-align: middle;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  font-size: clamp(0.875rem, 0.4vw + 0.8rem, 1rem);
  line-height: 1.6;
}

/* Ensure images, media and iframes never cause horizontal overflow */
img, picture, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}
iframe {
  width: 100%;
}

/* Global text wrapping & word break protection across all viewports */
p, h1, h2, h3, h4, h5, h6, span, a, li, button, td, th {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Custom Engineered Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Header Glassmorphism & Shadow on scroll */
header.header-scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 43, 72, 0.12);
  background-color: rgba(255, 255, 255, 0.98);
}

/* Active Nav Link Styling */
.nav-link.active-nav {
  color: var(--color-secondary) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--color-secondary) !important;
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(15, 43, 72, 0.12), 0 4px 10px -2px rgba(15, 43, 72, 0.05);
  padding: 6px 0;
  z-index: 60;
  display: none;
  animation: dropdownFadeIn 0.18s ease-out forwards;
}
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.show-dropdown {
  display: block;
}
.dropdown-item {
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown-item.active-nav {
  color: var(--color-secondary) !important;
  background-color: #f0f7ff !important;
  font-weight: 700 !important;
}

/* Mobile Nav Drawer Animations */
#mobile-menu {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
#mobile-menu.hidden {
  display: none;
}

/* Industrial Card Hover Lift */
.industrial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.industrial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(15, 43, 72, 0.1), 0 4px 10px -2px rgba(15, 43, 72, 0.04);
  border-color: #94a3b8;
}

/* Technical Badge Pulsing Indicator */
.pulse-indicator {
  position: relative;
  display: inline-flex;
}
.pulse-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: inherit;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.6;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  width: min(calc(100vw - 32px), 400px);
  min-width: 0;
  max-width: 100%;
  background: #ffffff;
  border-left: 4px solid var(--color-secondary);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 22, 45, 0.18);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (max-width: 480px) {
  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
  .toast-item {
    width: 100%;
  }
}
.toast-item.success {
  border-left-color: #059669;
}
.toast-item.warning {
  border-left-color: #d97706;
}
.toast-item.info {
  border-left-color: #0284c7;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Floating Action / Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  #back-to-top {
    bottom: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
  }
}

/* Technical Specification Table Enhancements */
.spec-table th {
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}
.spec-table tr:hover td {
  background-color: #f1f5f9;
}

/* Form Focus Rings */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #006398 !important;
  box-shadow: 0 0 0 3px rgba(0, 99, 152, 0.15) !important;
}

/* Print Styles */
@media print {
  header, footer, #back-to-top, #toast-container, #website-preloader, .no-print {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   Website Loader - UIverse Domino Spinner (Blue & White Theme, White Background)
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 999999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  touch-action: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: auto;
}

.preloader-overlay.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Spinner dimensions: 125px width perfectly centers the 8 domino spans
   Leftmost domino (span 8) starts at 10px; rightmost domino (span 1) reaches 80 + 35 = 115px.
   Occupied span: 10px to 115px (105px wide).
   Left margin = 10px; Right margin = 125 - 115 = 10px.
   Geometric Center = 125 / 2 = 62.5px. Dominoes Visual Center = (10 + 115) / 2 = 62.5px! */
.spinner {
  position: relative;
  width: 125px;
  height: 60px;
  margin: 0 auto;
  padding: 0;
  display: block;
  flex-shrink: 0;
  transform: scale(1);
  transform-origin: center center;
}

.spinner span {
  position: absolute;
  top: calc(50% - 3.5px);
  width: 35px;
  height: 7px;
  background: #006398;
  border: 1.5px solid #004b73;
  border-radius: 2px;
  transform-origin: center center;
  -webkit-animation: dominos 1s ease infinite;
  animation: dominos 1s ease infinite;
  box-shadow: 0 4px 8px rgba(0, 22, 45, 0.25), 1px 1px 3px rgba(0, 22, 45, 0.3);
  box-sizing: border-box;
}

.spinner span:nth-child(even) {
  background: #0284c7;
  border: 1.5px solid #0369a1;
}

.spinner span:nth-child(odd) {
  background: #006398;
  border: 1.5px solid #004b73;
}

.spinner span:nth-child(1) {
  left: 80px;
  -webkit-animation-delay: 0.125s;
  animation-delay: 0.125s;
}

.spinner span:nth-child(2) {
  left: 70px;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

.spinner span:nth-child(3) {
  left: 60px;
  -webkit-animation-delay: 0.425s;
  animation-delay: 0.425s;
}

.spinner span:nth-child(4) {
  left: 50px;
  -webkit-animation-delay: 0.54s;
  animation-delay: 0.54s;
}

.spinner span:nth-child(5) {
  left: 40px;
  -webkit-animation-delay: 0.665s;
  animation-delay: 0.665s;
}

.spinner span:nth-child(6) {
  left: 30px;
  -webkit-animation-delay: 0.79s;
  animation-delay: 0.79s;
}

.spinner span:nth-child(7) {
  left: 20px;
  -webkit-animation-delay: 0.915s;
  animation-delay: 0.915s;
}

.spinner span:nth-child(8) {
  left: 10px;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

@-webkit-keyframes dominos {
  0% {
    opacity: 1;
    -webkit-transform: rotate(0deg);
  }
  50% {
    opacity: 0.7;
  }
  75% {
    -webkit-transform: rotate(90deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    -webkit-transform: rotate(0deg);
  }
}

@keyframes dominos {
  0% {
    opacity: 1;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.7;
  }
  75% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

/* Automated No-Controls Crossfade Slideshow */
.auto-slideshow {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.auto-slideshow .slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auto-slideshow .slide-item.active-slide {
  opacity: 1;
  pointer-events: auto;
}
.auto-slideshow .slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auto-slideshow.cover-slideshow .slide-item img {
  object-fit: cover;
}

/* Navigation Dropdown Menu (Hover & Click Supported) */
.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Scroll Reveal & Dynamic Fade-in Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FLUID TYPOGRAPHY & RESPONSIVE CONTAINER SYSTEM
   ========================================================================== */
.max-w-7xl,
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 3.5vw, 32px);
  padding-right: clamp(12px, 3.5vw, 32px);
  box-sizing: border-box;
}

/* Fluid responsive headings scaling naturally across all viewports */
h1, .hero-title, [class*="text-3xl"], [class*="text-4xl"], [class*="text-5xl"] {
  font-size: clamp(1.45rem, 3.8vw + 0.6rem, 3rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em;
}

h2, .section-title, [class*="text-2xl"] {
  font-size: clamp(1.2rem, 2.4vw + 0.5rem, 2.125rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}

h3, .card-title, [class*="text-xl"] {
  font-size: clamp(1.02rem, 1.6vw + 0.4rem, 1.35rem) !important;
  line-height: 1.32 !important;
}

/* Touch Targets Standard for primary interactive buttons (prevents accidental distortion of small utility buttons) */
.hero-cta-group a,
button[type="submit"],
.filter-btn,
#mobile-menu-btn,
a.btn,
button.btn {
  min-height: 42px;
  touch-action: manipulation;
}

/* Explicit exemption for circular and utility buttons */
.terms-info-btn,
#closeTermsModalBtn,
#closeImageModalBtn {
  min-height: unset !important;
}

/* Form Controls Mobile Friendly Standard (prevents iOS auto-zoom) */
input, select, textarea {
  font-size: 16px !important;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  input, select, textarea {
    font-size: 0.875rem !important;
  }
}

/* Wide Content / Table Responsive Wrapper */
.table-wrapper,
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal Responsiveness */
.modal-overlay {
  padding: clamp(8px, 2.5vw, 20px) !important;
}
.modal-card {
  width: min(100%, 640px) !important;
  max-height: 94vh !important;
  margin: auto;
}

/* Responsive Preloader Domino Spinner Centering & Sizing */
@media (min-width: 768px) and (max-width: 1024px) {
  .preloader-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .spinner {
    transform: scale(1) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 767px) {
  .preloader-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .spinner {
    transform: scale(0.95) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .spinner {
    transform: scale(0.9) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 360px) {
  .spinner {
    transform: scale(0.85) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 260px) {
  .spinner {
    transform: scale(0.75) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 180px) {
  .spinner {
    transform: scale(0.6) !important;
    transform-origin: center center !important;
    margin: 0 auto !important;
  }
}

/* Mobile Menu Drawer Optimization */
#mobile-menu {
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#mobile-menu .nav-link,
#mobile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Slideshow Container Aspect Ratio Protection on Mobile */
@media (max-width: 480px) {
  .auto-slideshow {
    min-height: 200px;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Supports: Tablets (768px - 1024px), Mobiles (360px - 767px),
             Mini Devices (240px - 359px) & Micro Displays (120px - 239px)
   ========================================================================== */

/* 1. TABLET SCREENS (768px to 1024px: iPads, Android Tablets, Foldables) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Container & Layout Padding */
  .max-w-7xl,
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Section vertical pacing */
  section {
    padding-top: clamp(2.25rem, 4.5vw, 3rem) !important;
    padding-bottom: clamp(2.25rem, 4.5vw, 3rem) !important;
  }

  /* Headings & Typography */
  h1, .hero-title, [class*="text-4xl"], [class*="text-5xl"] {
    font-size: clamp(2rem, 3.5vw, 2.65rem) !important;
    line-height: 1.2 !important;
  }
  h2, .section-title, [class*="text-3xl"] {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
    line-height: 1.25 !important;
  }
  h3, .card-title, [class*="text-2xl"] {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem) !important;
  }
  p, .text-slate-600 {
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
  }

  /* Button sizing on tablets */
  .hero-cta-group a,
  button[type="submit"] {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.8125rem !important;
  }

  /* Image & Slideshow proportions on tablets */
  .auto-slideshow {
    min-height: 260px !important;
  }
  .h-72, .h-80 {
    height: 280px !important;
  }

  /* Tablet grid optimizations */
  .grid-cols-1.lg\:grid-cols-12 {
    gap: 1.75rem !important;
  }
  .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
  .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
}

/* 2. STANDARD MOBILE SCREENS (< 768px: iPhones, Android phones) */
@media (max-width: 767px) {
  /* Section vertical spacing */
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Typography on mobile */
  h1, .hero-title, [class*="text-4xl"], [class*="text-5xl"] {
    font-size: clamp(1.5rem, 5.5vw, 2.1rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em !important;
  }
  h2, .section-title, [class*="text-3xl"] {
    font-size: clamp(1.25rem, 4.2vw, 1.65rem) !important;
    line-height: 1.26 !important;
  }
  h3, .card-title, [class*="text-2xl"], [class*="text-xl"] {
    font-size: clamp(1.05rem, 3.2vw, 1.25rem) !important;
    line-height: 1.3 !important;
  }
  p, .text-slate-600 {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  /* Button sizing & full-width stacked touch targets */
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.625rem !important;
  }
  .hero-cta-group a {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.8125rem !important;
    text-align: center !important;
  }

  /* Card and box padding */
  .p-6 {
    padding: 1.15rem !important;
  }
  .p-5 {
    padding: 1rem !important;
  }

  /* Image & Slideshow heights */
  .h-72, .h-80 {
    height: 240px !important;
  }
  .h-64 {
    height: 220px !important;
  }
  .h-56 {
    height: 200px !important;
  }
  .h-40 {
    height: 160px !important;
  }

  /* Process Flow Steps Stacking */
  .process-timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Flex callout banners stack cleanly on mobile */
  .flex.items-center.justify-between.p-4,
  .mt-6.flex.items-center.justify-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .mt-6.flex.items-center.justify-between a {
    align-self: flex-start !important;
  }
}

/* 3. SMALL MOBILE SCREENS (< 480px) */
@media (max-width: 480px) {
  .max-w-7xl,
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  section {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  /* Header Branding Scale */
  header {
    height: 60px !important;
  }
  main {
    padding-top: 60px !important;
  }
  header img {
    height: 32px !important;
  }
  header .font-display {
    font-size: 0.95rem !important;
  }

  /* Form & input padding */
  input, select, textarea {
    padding: 0.6rem 0.75rem !important;
  }

  /* Client logo cards auto-height */
  .grid.grid-cols-2 .h-28,
  .grid.grid-cols-2 .h-10 {
    height: auto !important;
    min-height: 90px !important;
    padding: 0.625rem 0.5rem !important;
  }

  /* WhatsApp button on mobile */
  .whatsapp-float-btn {
    bottom: 18px !important;
    right: 18px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
  }
  .whatsapp-float-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }
}

/* 4. EXTRA SMALL MOBILE (< 360px: compact smartphones) */
@media (max-width: 360px) {
  .max-w-7xl,
  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Force 1 column on sub-grids */
  .grid-cols-2,
  .sm\:grid-cols-2,
  .sm\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Compact card padding */
  .p-6, .p-5, .p-4 {
    padding: 10px !important;
  }

  /* Compact headings */
  h1, .hero-title {
    font-size: 1.35rem !important;
  }
  h2, .section-title {
    font-size: 1.15rem !important;
  }
  h3, .card-title {
    font-size: 0.95rem !important;
  }
  p, span, li {
    font-size: 0.8125rem !important;
    line-height: 1.48 !important;
  }

  /* Header compacting */
  header {
    height: 56px !important;
  }
  main {
    padding-top: 56px !important;
  }
  header img {
    height: 28px !important;
  }
  header .font-display {
    font-size: 0.85rem !important;
  }
}

/* 5. SMARTWATCH & MINI DEVICES (120px - 280px) */
@media (max-width: 280px) {
  .max-w-7xl,
  .container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  header {
    height: 48px !important;
  }
  main {
    padding-top: 48px !important;
  }

  header img {
    height: 22px !important;
  }
  header .font-display {
    font-size: 0.72rem !important;
    letter-spacing: -0.02em !important;
  }
  header span.text-\[10px\],
  header span.text-\[9px\] {
    display: none !important;
  }

  /* Single column force for all multi-column elements */
  .grid-cols-1,
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .sm\:grid-cols-2,
  .sm\:grid-cols-3,
  .md\:grid-cols-2,
  .md\:grid-cols-3,
  .md\:grid-cols-4,
  .lg\:grid-cols-3,
  .lg\:grid-cols-4,
  .lg\:grid-cols-12 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .lg\:col-span-5,
  .lg\:col-span-7,
  .md\:col-span-2 {
    grid-column: span 1 !important;
  }

  /* Compact padding inside cards & sections */
  .p-6, .p-5, .p-4, .p-3 {
    padding: 6px !important;
  }
  section {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  /* Buttons & text wrap safety */
  a, button {
    white-space: normal !important;
    word-break: break-word !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
  }

  h1, .hero-title {
    font-size: 1.05rem !important;
  }
  h2, .section-title {
    font-size: 0.95rem !important;
  }
  h3, .card-title {
    font-size: 0.85rem !important;
  }
  p, span, li {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  /* WhatsApp button on smartwatch */
  .whatsapp-float-btn {
    bottom: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }
  .whatsapp-float-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }
}

/* 6. MICRO VIEWPORTS (120px - 200px) */
@media (max-width: 200px) {
  .max-w-7xl,
  .container {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  header {
    height: 44px !important;
  }
  main {
    padding-top: 44px !important;
  }
  header img {
    height: 18px !important;
  }
  header .font-display {
    font-size: 0.65rem !important;
  }
  h1, .hero-title {
    font-size: 0.95rem !important;
  }
  h2, .section-title {
    font-size: 0.85rem !important;
  }
}

/* Pinned Floating Small WhatsApp Redirection Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float-btn:hover {
  background-color: #20ba5a;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-float-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  flex-shrink: 0;
}


/* Footer Terms & Conditions Info Circle Button */
.terms-info-btn {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  border-radius: 50% !important;
  border: 1px solid #64748b !important;
  color: #94a3b8 !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease;
  cursor: pointer !important;
}

.terms-info-btn:hover {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.1) !important;
}

/* ==========================================================================
   Button & Loading Spinners (Guaranteed pure CSS execution)
   ========================================================================== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  display: inline-block;
  animation: spin 0.8s linear infinite !important;
}

