/* ========================================================
   CleanEx Pest Co., Ltd. - Custom Styles & Micro-Animations
   Theme Colors:
     Midnight Navy: #102A43
     Jade Teal:     #00A88F
     Pearl White:   #F7FAFC
     Pure White:    #FFFFFF
     Dark Text:     #1F2937
     Light Gray:    #E5E7EB
   ======================================================== */

@import url("https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap");

:root {
  --midnight-navy: #102a43;
  --midnight-navy-dark: #0b1c2d;
  --jade-teal: #00a88f;
  --jade-teal-hover: #008f7a;
  --jade-teal-light: #e6f7f4;
  --pearl-white: #f7fafc;
  --pure-white: #ffffff;
  --dark-text: #1f2937;
  --gray-border: #e5e7eb;
  --gray-subtle: #9ca3af;
}

html {
  /* Base 16px; all rem-based text scales from here */
  font-size: 100%;
  scroll-behavior: smooth;
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--dark-text);
  background-color: var(--pure-white);
}

/* Language font overrides */
html[lang="km"] body,
.lang-km {
  font-family: "Kantumruy Pro", "Plus Jakarta Sans", sans-serif !important;
}

html[lang="zh"] body,
.lang-zh {
  font-family: "Noto Sans SC", "Plus Jakarta Sans", sans-serif !important;
}

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

/* Smooth glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(16, 42, 67, 0.08);
}

.glass-badge {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card-navy {
  background: rgba(16, 42, 67, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Gradient accents */
.text-gradient-navy-teal {
  background: linear-gradient(135deg, #102a43 0%, #00a88f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-radial-glow {
  background: radial-gradient(
    circle at 50% 20%,
    rgba(0, 168, 143, 0.15) 0%,
    rgba(247, 250, 252, 0) 70%
  );
}

.bg-navy-pattern {
  background-color: #102a43;
  background-image:
    radial-gradient(#1e3a5f 0.75px, transparent 0.75px),
    radial-gradient(#1e3a5f 0.75px, #102a43 0.75px);
  background-size: 30px 30px;
  background-position:
    0 0,
    15px 15px;
}

/* Pulse animation for persistent widgets & status badges */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 143, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(0, 168, 143, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 143, 0);
  }
}

.pulse-ring-btn {
  animation: pulse-ring 2.5s infinite;
}

/* Floating animation */
@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: soft-float 5s ease-in-out infinite;
}

/* Card hover transitions */
.hover-lift {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 14px -6px rgba(16, 42, 67, 0.12);
}

/* Active tab state */
.filter-tab.active {
  background-color: #00a88f;
  color: #ffffff;
  border-color: #00a88f;
}

/* Keep project filters usable without wrapping into an oversized mobile block. */
.project-filters .project-filter-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Modals */
.modal-backdrop {
  background-color: rgba(16, 42, 67, 0.6);
  backdrop-filter: blur(6px);
}

/* Infinite Marquee for Client Logos */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: 200%;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Subtle image overlay shading */
.card-overlay-gradient {
  background: linear-gradient(
    180deg,
    rgba(16, 42, 67, 0.05) 0%,
    rgba(16, 42, 67, 0.85) 100%
  );
}

/* Shimmer shine effect for primary buttons */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}
.shimmer-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: shimmer-effect 4.5s infinite;
}

@keyframes shimmer-effect {
  0% {
    left: -70%;
  }
  30%,
  100% {
    left: 140%;
  }
}

/* Hide scrollbar while keeping horizontal scroll (arrow-controlled strips) */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Type scale (desktop / mobile)
   H1 56-64 / 36-40 · H2 36-40 / 28-32 · H3 24 / 20-22 · H4 20 / 18
   Body 16 · Small 12-14 · Buttons & nav 15-16 */
.text-\[8px\],
.text-\[9px\],
.text-\[10px\],
.text-\[11px\] {
  font-size: 0.75rem !important;
  line-height: 1.1rem !important;
}
.text-\[0\.78rem\] {
  font-size: 0.8125rem !important;
}
.text-\[0\.9rem\] {
  font-size: 0.9375rem !important;
}
.text-xs {
  font-size: 0.875rem !important;
  line-height: 1.35rem !important;
}
.text-sm,
.text-base {
  font-size: 1rem !important;
  line-height: 1.6rem !important;
}
.text-lg {
  font-size: 1.125rem !important;
  line-height: 1.75rem !important;
}
.text-xl {
  font-size: 1.125rem !important;
  line-height: 1.6rem !important;
}
.text-2xl {
  font-size: 1.25rem !important;
  line-height: 1.7rem !important;
}
h1 {
  font-size: 2.25rem !important;
  line-height: 1.15 !important;
}
h2 {
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
}
@media (min-width: 640px) {
  .text-lg {
    font-size: 1.25rem !important;
  }
  .text-xl {
    font-size: 1.25rem !important;
    line-height: 1.7rem !important;
  }
  .text-2xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
  }
  h1 {
    font-size: 2.5rem !important;
  }
  h2 {
    font-size: 2rem !important;
  }
}
@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem !important;
  }
  h2 {
    font-size: 2.5rem !important;
  }
}
@media (min-width: 1280px) {
  h1 {
    font-size: 4rem !important;
  }
}
p {
  line-height: 1.7;
}

/* Navbar glass effect on scroll */
#main-nav {
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}
#main-nav.nav-glass {
  background-color: rgba(255, 255, 255, 0.55) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Responsive layout safeguards shared by every page */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
}

/* `clip` (not `hidden`) so body does not become a scroll container, which would break the sticky navbar. */
body {
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

/* Keep the mobile drawer usable on narrow phones. */
#mobile-drawer {
  width: min(20rem, calc(100vw - 1rem));
}

/* Prevent grid children and long translated strings from forcing overflow. */
footer .grid > div,
section .grid > div {
  min-width: 0;
}

@media (max-width: 1023px) {
  .max-w-8xl,
  .max-w-7xl {
    width: 100%;
  }

  footer .grid {
    row-gap: 2.5rem;
  }
}

@media (max-width: 639px) {
  html {
    font-size: 100%;
  }

  section {
    scroll-margin-top: 5rem;
  }

  /* Extra bottom room so the floating contact control never covers the legal links. */
  footer {
    padding-top: 3rem !important;
    padding-bottom: 5.5rem !important;
  }

  footer .grid {
    gap: 2rem;
    padding-bottom: 2rem;
  }

  footer .grid > div.lg\:col-span-2 {
    grid-column: span 1 / span 1;
  }

  footer .flex.items-center.justify-between {
    align-items: flex-start;
  }

  footer .flex.items-center.justify-between > div:last-child {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  /* Keep the floating contact controls clear of the viewport edges. */
  .fixed.bottom-6.right-6 {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 380px) {
  #mobile-drawer {
    width: calc(100vw - 0.5rem);
  }

  footer .whitespace-nowrap {
    font-size: 0.875rem !important;
    letter-spacing: 0.04em;
  }
}

/* Top utility bar: wrap instead of overflowing on tablets / small laptops. */
@media (max-width: 1279px) {
  .topbar > div {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    column-gap: 1rem;
    justify-content: center;
  }

  .topbar > div > div {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    column-gap: 1rem;
    justify-content: center;
  }

  .topbar .space-x-6 > :not([hidden]) ~ :not([hidden]),
  .topbar .space-x-5 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0;
  }
}

/* Footer text wraps at word boundaries; a word only breaks if it cannot fit its column at all. */
footer a,
footer p {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Desktop footer: weight the columns by content so contact details and the partner heading are not squeezed. */
@media (min-width: 1024px) {
  footer .grid.lg\:grid-cols-6 {
    grid-template-columns: 1.5fr 1fr 1.1fr 1.8fr 1.4fr;
  }

  footer .grid.lg\:grid-cols-6 > div.lg\:col-span-2 {
    grid-column: span 1 / span 1;
  }
}

footer a.inline-flex {
  max-width: 100%;
}

/* Quote card: on tablets the card is full-width, so pin the photo to the right and keep copy clear of it. */
@media (min-width: 640px) and (max-width: 1279px) {
  .quote-hero {
    background-position: right 2rem bottom !important;
    min-height: 300px !important;
  }

  .quote-hero .quote-hero-text {
    width: 55%;
  }
}

@media (max-width: 639px) {
  .quote-hero {
    background-position: right -0.5rem bottom !important;
    background-size: auto 48% !important;
    min-height: 400px !important;
  }

  .quote-hero .quote-hero-text {
    width: 100%;
  }
}

/* Footer legal links stay on one line. */
footer .space-x-6 a {
  white-space: nowrap;
}

/* Home client logos: same visual box for every logo, never cropped. */
.client-logos > div {
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logos img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
@media (min-width: 640px) {
  .client-logos > div {
    height: 3.5rem;
  }
}

/* Compact top bar: main.js gives inactive language buttons a dark grey meant for white backgrounds. */
.topbar-compact .lang-btn:not(.bg-teal-50) {
  color: #d1d5db;
}
.topbar-compact .lang-btn:not(.bg-teal-50):hover {
  color: #ffffff;
}

/* Footer accordions (home): mobile only; md+ shows plain columns. */
.footer-acc summary::marker {
  content: "";
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-btn::after,
  .pulse-ring-btn {
    animation: none;
  }
  .hover-lift,
  .hover-lift:hover {
    transition: none;
    transform: none;
  }
}

/* Home section headings on phones: eyebrow + View More share one row, the title gets its own single, smaller line. */
@media (max-width: 639px) {
  .sec-head {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.35rem;
  }
  .sec-head > div:first-child {
    display: contents;
  }
  .sec-head > div:first-child > span {
    order: 1;
  }
  .sec-head > a {
    order: 2;
    margin-left: auto;
  }
  .sec-head > div:first-child > h2 {
    order: 3;
    flex: 0 0 100%;
  }
  .sec-head h2,
  .sec-head-solo h2 {
    font-size: clamp(0.8rem, 4.4vw, 1.5rem) !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    margin-top: 0 !important;
  }
}

/* Current page in the navbar and mobile menu. */
nav[aria-label="Main"] a.nav-active {
  color: var(--jade-teal);
  box-shadow: inset 0 -2px 0 var(--jade-teal);
}
nav[aria-label="Mobile"] a.nav-active {
  color: var(--jade-teal);
  font-weight: 800;
}

/* Section titles stay on one line on desktop; the size scales down on narrower laptops. */
@media (min-width: 1024px) {
  .sec-head-solo h2 {
    white-space: nowrap;
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  }
}

/* Inner pages on phones: compact cards, gaps and text so each page scrolls like the home page. */
@media (max-width: 639px) {
  .page-inner section .p-5,
  .page-inner section .p-6 {
    padding: 1rem !important;
  }
  .page-inner section .p-8,
  .page-inner section .p-10 {
    padding: 1.25rem !important;
  }
  .page-inner section .space-y-10 > :not([hidden]) ~ :not([hidden]),
  .page-inner section .space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem !important;
  }
  .page-inner section .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.875rem !important;
  }
  .page-inner section .gap-8,
  .page-inner section .gap-10,
  .page-inner section .gap-12,
  .page-inner section .gap-14 {
    gap: 1rem !important;
  }
  .page-inner section .gap-5,
  .page-inner section .gap-6 {
    gap: 0.875rem !important;
  }
  .page-inner section .mb-8,
  .page-inner section .mb-10 {
    margin-bottom: 1.25rem !important;
  }
  .page-inner section .mb-5,
  .page-inner section .mb-6 {
    margin-bottom: 0.875rem !important;
  }
  .page-inner section .mt-8,
  .page-inner section .mt-10 {
    margin-top: 1.25rem !important;
  }
  .page-inner section .mt-6 {
    margin-top: 1rem !important;
  }
  .page-inner section .h-96 {
    height: 14rem !important;
  }
  .page-inner section .h-80,
  .page-inner section .h-72 {
    height: 11rem !important;
  }
  .page-inner section .h-64,
  .page-inner section .h-56 {
    height: 10rem !important;
  }
  .page-inner section .w-14 {
    width: 2.75rem !important;
  }
  .page-inner section .h-14 {
    height: 2.75rem !important;
  }
  .page-inner section .text-sm {
    font-size: 0.9375rem !important;
    line-height: 1.5rem !important;
  }
  .page-inner section .text-xs {
    font-size: 0.8125rem !important;
    line-height: 1.25rem !important;
  }
  .page-inner section p {
    line-height: 1.55;
  }
}

/* Home hero: below lg the text sits on white, so the light-teal accent needs the darker brand teal for contrast. */
@media (max-width: 1023px) {
  #hero h1 .text-\[\#2dd4bf\] {
    color: var(--jade-teal) !important;
  }
}

/* Home hero on phones: headline back at the full 36px size. */
@media (max-width: 639px) {
  #hero h1 {
    font-size: min(2.35rem, 9.4vw) !important;
    line-height: 1.15 !important;
  }
}

/* Home counters on phones: every label stays on one line. */
@media (max-width: 639px) {
  #company-stats .grid > div {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  #company-stats p {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }
}

/* Home on phones: the photo takes whatever height is left so hero + counters exactly fill the first screen
   (top bar 36 + navbar 64 + text block and counters about 360). */
@media (max-width: 639px) {
  #hero picture img {
    height: clamp(9rem, calc(100vh - 462px), 360px) !important;
    height: clamp(9rem, calc(100svh - 462px), 360px) !important;
  }
}

/* Desktop hero: the photo fades into the navy and a soft blur strip hides the seam where it starts. */
@media (min-width: 1024px) {
  #hero picture img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 42%);
    mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 42%);
  }
  .hero-blur {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to right, #000 0, transparent 100%);
    mask-image: linear-gradient(to right, #000 0, transparent 100%);
  }
}

/* Desktop: hero + counters fill exactly one screen below the top bar (53) and navbar (101);
   the hero takes whatever height the counters leave over. */
@media (min-width: 1024px) {
  .hero-fold {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 154px);
    min-height: calc(100svh - 154px);
  }
  #hero {
    display: flex;
    flex: 1 1 auto;
    min-height: 380px;
    max-height: 820px;
  }
}

/* Home hero on phones: short banner, headline + keyword row only (buttons live in the sticky bar). */
@media (max-width: 639px) {
  #home-hero h1 {
    font-size: min(1.6rem, 6.8vw) !important;
    line-height: 1.12 !important;
    margin-bottom: 0.5rem;
  }
  #home-hero .hero-copy {
    max-width: 66%;
  }
  #home-hero .hero-list {
    font-size: 0.52rem !important;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: -3rem;
  }
  #home-hero h1,
  #home-hero .hero-list {
    text-shadow: 0 0 6px #fff, 0 0 12px rgba(255, 255, 255, 0.9);
  }
}

/* About band: heading on top, photo + intro side by side on phones; photo | text | points on desktop. */
.about-grid {
  display: grid;
  gap: 0.75rem 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  grid-template-columns: 42% minmax(0, 1fr);
  grid-template-areas: "head head" "img body" "feats feats";
}
.about-head { grid-area: head; }
.about-img { grid-area: img; min-height: 8.5rem; }
.about-body { grid-area: body; align-self: center; }
.about-feats { grid-area: feats; margin-top: 0.5rem; }
@media (max-width: 639px) {
  .about-head h2 {
    font-size: clamp(0.8rem, 4.8vw, 1.5rem) !important;
    line-height: 1.3 !important;
    white-space: nowrap;
  }
}
@media (min-width: 1024px) {
  .about-grid {
    column-gap: 2rem;
    row-gap: 0;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "img head feats" "img body feats";
  }
  .about-head { align-self: end; padding-bottom: 0.5rem; }
  .about-head h2 {
    font-size: clamp(1.1rem, 1.9vw, 1.75rem) !important;
    white-space: nowrap;
  }
  .about-body { align-self: start; }
  .about-body p { margin-bottom: 0.75rem; }
  .about-img { position: relative; min-height: 12rem; }
  .about-img img { position: absolute; inset: 0; }
  .about-feats { align-self: center; margin-top: 0; column-gap: 1rem; }
}
}

/* Closed mobile drawer must not bleed its shadow onto the page edge. */
#mobile-drawer.translate-x-full {
  box-shadow: none;
}

/* Top bar on phones: phone, social icons and language switch share one line. */
.topbar-compact .lang-btn {
  white-space: nowrap;
}
@media (max-width: 479px) {
  .topbar-compact > div {
    gap: 0.5rem;
  }
  .topbar-compact .lang-btn {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
  .topbar-compact > div > a {
    font-size: 0.75rem;
  }
  .topbar-compact > div > div {
    gap: 0.5rem;
  }
}

/* Phones: hero text, counters and all six services fit one screen with no scrolling.
   Hero height = screen height minus the fixed parts (top bar, header, counters, services block, sticky bar). */
@media (max-width: 639px) {
  #home-hero .hero-box {
    height: clamp(11.5rem, calc(100vh - 645px), 24rem) !important;
    height: clamp(11.5rem, calc(100svh - 645px), 24rem) !important;
  }
  #home-hero #company-stats {
    margin-top: -1.5rem;
  }
  #solutions {
    padding-top: 0.6rem;
    padding-bottom: 0.5rem;
  }
  #solutions .sec-head {
    margin-bottom: 0.3rem;
    row-gap: 0 !important;
  }
  #solutions .grid > a h3 {
    line-height: 1.15;
  }
  #solutions .grid {
    gap: 0.5rem;
  }
  #solutions .grid > a > div:first-child > div {
    aspect-ratio: auto;
    height: 3rem;
  }
  #solutions .grid > a > div:first-child > span {
    width: 2rem;
    height: 2rem;
    bottom: -0.9rem;
    left: 0.6rem;
    font-size: 0.95rem;
  }
  #solutions .grid > a > div:last-child {
    padding: 1.1rem 0.6rem 0.4rem;
  }
  #solutions .grid > a > div:last-child > div > p {
    font-size: 0.62rem !important;
    line-height: 1.25;
    margin-top: 0.1rem;
    padding-right: 0;
  }
  #solutions .grid > a > div:last-child > span {
    width: 1.4rem;
    height: 1.4rem;
    top: 0.8rem;
    bottom: auto;
    right: 0.5rem;
  }
}

/* Service cards: description never runs past two lines. */
#solutions .grid > a > div:last-child > div > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Short phones (and phones with browser bars showing): compact header, hero and service cards
   so the hero text and all six services still fit the first screen above the sticky button. */
@media (max-width: 639px) and (max-height: 760px) {
  #main-nav .h-16 {
    height: 3.25rem;
  }
  #home-hero .hero-box {
    height: clamp(8.5rem, calc(100vh - 582px), 24rem) !important;
    height: clamp(8.5rem, calc(100svh - 582px), 24rem) !important;
  }
  #solutions .grid > a > div:first-child > div {
    height: 2.4rem;
  }
  #home-hero h1 {
    font-size: min(1.45rem, 6.2vw) !important;
  }
  #home-hero .hero-box > .relative {
    padding-bottom: 1.6rem !important;
  }
  #solutions .grid > a > div:last-child {
    padding-top: 1.05rem;
  }
}
@media (max-width: 639px) and (max-height: 700px) {
  #home-hero .hero-box {
    height: clamp(7.5rem, calc(100vh - 545px), 24rem) !important;
    height: clamp(7.5rem, calc(100svh - 545px), 24rem) !important;
  }
  #solutions .sec-head > div:first-child > span {
    display: none;
  }
  #home-hero .hero-copy > span {
    display: none;
  }
  #home-hero h1 {
    margin-bottom: 0.25rem;
  }
  #solutions .grid > a > div:first-child > div {
    height: 1.9rem;
  }
  #solutions .grid > a > div:first-child > span {
    width: 1.75rem;
    height: 1.75rem;
    bottom: -0.8rem;
    font-size: 0.85rem;
  }
  #solutions .grid > a > div:last-child {
    padding-top: 0.95rem;
    padding-bottom: 0.35rem;
  }
  #home-hero #company-stats > div {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
@media (max-width: 639px) and (max-height: 600px) {
  #solutions .grid > a > div:last-child > div > p {
    display: none;
  }
  #home-hero .hero-box {
    height: clamp(7rem, calc(100svh - 470px), 24rem) !important;
  }
}

/* Short phones: the slider dots would sit on the keyword row, so hide them there. */
@media (max-width: 639px) and (max-height: 760px) {
  #home-hero [role="tablist"] {
    display: none;
  }
}

/* Service cards (desktop/tablet): larger icon circle with a bigger icon. */

