/* Joule Machine Hub - Custom Industrial Blue, Yellow & White Styles - Sharp Logo v2.1 */

:root {
  --primary-blue: #0f2b48;
  --secondary-blue: #1d4ed8;
  --light-blue: #eff6ff;
  --brand-yellow: #facc15;
  --dark-yellow: #ca8a04;
  --pure-white: #ffffff;
}

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Call Pulsing Animation */
@keyframes ringPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    transform: scale(0.98);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(0.98);
  }
}

.call-pulse-btn {
  animation: ringPulse 2.2s infinite;
}

/* Yellow Badge Glow */
.badge-yellow-glow {
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.35);
}

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

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(7, 22, 38, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Touch-optimized horizontal swipe chips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Smooth sticky sidebar helper - Fits screen & stays fixed while right side machines scroll */
.sidebar-sticky-scroll,
#filterSidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 5rem !important;
  z-index: 20;
}

@media (min-width: 1024px) {
  .sidebar-sticky-scroll,
  #filterSidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 5rem !important;
    max-height: calc(100vh - 5.5rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}

.sidebar-sticky-scroll::-webkit-scrollbar {
  width: 5px;
}
.sidebar-sticky-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Machine Card Clean Precision Corner & Industrial Hover Elevation */
.machine-card-interactive {
  border-radius: 1rem; /* 16px clean crisp industrial corner */
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease;
  will-change: transform;
}
.machine-card-interactive:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px -6px rgba(13, 40, 71, 0.12), 0 8px 12px -4px rgba(13, 40, 71, 0.06);
  border-color: #1d4ed8;
}

/* Corner Smoothing Utility */
.clean-corner-card {
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Currency price update flash */
@keyframes priceFlash {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); color: #1d4ed8; }
  100% { transform: scale(1); opacity: 1; }
}
.price-update-flash {
  animation: priceFlash 0.35s ease-out;
}

/* Floating Action Bar with iPhone safe-area padding */
.floating-mobile-bar {
  box-shadow: 0 -4px 20px rgba(7, 22, 38, 0.12);
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

/* Toast popup styling */
#jmhToast {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fix mobile drawer and dialogs on tablet and mobile */
@media (min-width: 640px) {
  .tablet-modal-center {
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
    border-radius: 1.25rem !important;
  }
}

/* Responsive touch target min size */
@media (max-width: 768px) {
  .touch-target {
    min-height: 44px;
  }
}

/* Mobile Touch Optimization & iOS Safari Input Auto-Zoom Prevention */
@media (max-width: 640px) {
  input[type="text"],
  input[type="number"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }

  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* Fast tap response (eliminates 300ms tap delay on mobile) */
a, button, input, select, textarea, label {
  touch-action: manipulation;
}

/* Smooth modal and drawer touch containment */
.modal-backdrop {
  overscroll-behavior: contain;
}

/* Mobile Polish & Responsive Typography */
@media (max-width: 640px) {
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .no-scrollbar {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  /* Active card feedback on touch tap */
  .machine-card-interactive:active,
  a:active {
    opacity: 0.95;
    transform: scale(0.99);
  }
}

/* ==========================================================================
   BLOG READER & EDITORIAL MOBILE-FIRST RESPONSIVE TYPOGRAPHY
   ========================================================================== */

.blog-reader-body {
  font-size: 1.0625rem; /* 17px base reading font */
  line-height: 1.85;    /* Relaxed leading for technical eye comfort */
  color: #1e293b;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .blog-reader-body {
    font-size: 0.96875rem; /* 15.5px on phones */
    line-height: 1.75;
  }
}

.blog-reader-body p {
  margin-bottom: 1.25rem;
  color: #334155;
}

.blog-reader-body p.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1e293b;
  font-weight: 500;
}

@media (max-width: 640px) {
  .blog-reader-body p.lead {
    font-size: 1rem;
    line-height: 1.65;
  }
}

.blog-reader-body h2 {
  font-size: 1.35rem; /* 21.6px mobile */
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #f1f5f9;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .blog-reader-body h2 {
    font-size: 1.625rem; /* 26px desktop */
    margin-top: 2.75rem;
  }
}

.blog-reader-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

/* Equipment Spotlight Card inside Article Content - Preserve White & Gold Typography */
.blog-reader-body .jmh-spotlight-card {
  color: #ffffff !important;
}
.blog-reader-body .jmh-spotlight-card h3,
.blog-reader-body .jmh-spotlight-card .spotlight-title {
  color: #ffffff !important;
  font-size: 1.35rem !important;
  line-height: 1.35 !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.blog-reader-body .jmh-spotlight-card p,
.blog-reader-body .jmh-spotlight-card .spotlight-desc {
  color: #e2e8f0 !important;
  margin-bottom: 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
}
.blog-reader-body .jmh-spotlight-card .spotlight-spec-title {
  color: #fde047 !important;
}
.blog-reader-body .jmh-spotlight-card .spotlight-spec-val {
  color: #ffffff !important;
}
.blog-reader-body .jmh-spotlight-card a {
  text-decoration: none !important;
}

.blog-reader-body ul, 
.blog-reader-body ol {
  margin-top: 0.5rem;
  margin-bottom: 1.35rem;
  padding-left: 1.25rem;
}

.blog-reader-body ul {
  list-style-type: disc;
}

.blog-reader-body ol {
  list-style-type: decimal;
}

.blog-reader-body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  color: #334155;
  padding-left: 0.25rem;
}

.blog-reader-body strong {
  color: #0f172a;
  font-weight: 700;
}

.blog-reader-body blockquote {
  border-left: 4px solid #facc15;
  background: #f8fafc;
  padding: 0.85rem 1.15rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin: 1.35rem 0;
  font-style: italic;
  color: #1e293b;
}

/* Responsive Table Container with Horizontal Swipe Safety */
.blog-reader-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.blog-reader-table-wrap table {
  width: 100%;
  min-width: 500px; /* guarantees columns never get crushed */
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.blog-reader-table-wrap th {
  background-color: #0f2b48;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.blog-reader-table-wrap td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
}

.blog-reader-table-wrap tr:nth-child(even) td {
  background-color: #f8fafc;
}

.blog-reader-table-wrap tr:hover td {
  background-color: #eff6ff;
}

.table-swipe-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* Horizontal scroll styling for category & keyword chips */
.swipe-ribbon {
  display: flex !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding-bottom: 4px;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.swipe-ribbon::-webkit-scrollbar {
  display: none !important;
}

/* Bulletproof Responsive Blog Card Image Containers */
.blog-card-img-container {
  height: 190px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #020617;
  display: block;
}
@media (min-width: 640px) {
  .blog-card-img-container {
    height: 200px;
  }
}
@media (min-width: 1024px) {
  .blog-card-img-container {
    height: 210px;
  }
}
.blog-card-img-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.blog-featured-img-container {
  height: 210px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #020617;
  display: block;
}
@media (min-width: 640px) {
  .blog-featured-img-container {
    height: 260px;
  }
}
@media (min-width: 1024px) {
  .blog-featured-img-container {
    height: 100%;
    min-height: 320px;
  }
}
.blog-featured-img-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.blog-post-hero-img-container {
  height: 210px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #020617;
  display: block;
}
@media (min-width: 640px) {
  .blog-post-hero-img-container {
    height: 290px;
  }
}
@media (min-width: 1024px) {
  .blog-post-hero-img-container {
    height: 380px;
  }
}
.blog-post-hero-img-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ========================================================
   ABOUT US - INTERACTIVE ANIMATED CIRCULAR BUSINESS MODEL
   Exact recreation of the reference design (Image 3)
   with Warehouse Background (Image 1) & Machinery (Image 2)
   ======================================================== */
.warehouse-section-bg {
  background-image: 
    linear-gradient(to bottom, rgba(3, 16, 36, 0.45) 0%, rgba(3, 16, 36, 0.25) 50%, rgba(3, 16, 36, 0.6) 100%),
    url('/assets/images/about-warehouse-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@keyframes sunburstPulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.85;
    filter: drop-shadow(0 0 25px rgba(250, 204, 21, 0.6));
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
    filter: drop-shadow(0 0 45px rgba(250, 204, 21, 0.95));
  }
}

.sunburst-pulse {
  animation: sunburstPulse 3.5s ease-in-out infinite;
}

@keyframes orbitSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-spin-slow {
  animation: orbitSpinSlow 40s linear infinite;
  transform-origin: center center;
}

@keyframes flowDash {
  from { stroke-dashoffset: 64; }
  to { stroke-dashoffset: 0; }
}

.flow-arrow-animated {
  stroke-dasharray: 8 6;
  animation: flowDash 1.2s linear infinite;
}

.node-float-1,
.node-float-2,
.node-float-3,
.node-float-4,
.node-float-5 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.node-float-1:hover,
.node-float-2:hover,
.node-float-3:hover,
.node-float-4:hover,
.node-float-5:hover {
  transform: translateY(-4px);
}

.industrial-grid-bg {
  background-color: #051427;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(29, 78, 216, 0.22) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}


/* 2 Buttons in a Row for Mobile CTA Alignment */
.jmh-mobile-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.625rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.jmh-mobile-grid-2 > .span-full,
.jmh-mobile-grid-2 > .col-span-2 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.jmh-mobile-grid-2 > .col-1,
.jmh-mobile-grid-2 > .col-span-1 {
  grid-column: span 1 !important;
  width: 100% !important;
}

.jmh-mobile-grid-2 > * {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

@media (min-width: 640px) {
  .jmh-mobile-grid-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: auto !important;
  }
  .jmh-mobile-grid-2 > .span-full,
  .jmh-mobile-grid-2 > .col-1,
  .jmh-mobile-grid-2 > .col-span-2,
  .jmh-mobile-grid-2 > .col-span-1 {
    grid-column: auto !important;
    width: auto !important;
  }
}

@media (min-width: 1024px) {
  #pagesDropdownWrap:hover #pagesDropdownMenu {
    display: block !important;
  }
}




