/* =====================================================
   EUROMED S.R.L. — Design System (Remodern 2026)
   "Proteggiamo il futuro, fin dal primo respiro"
   Premium medical-tech redesign.
   Class names are preserved for JS / i18n / gallery compatibility.
   ===================================================== */

/* =====================================================
   Design Tokens
   ===================================================== */
:root {
  /* Brand navy (logo-derived) */
  --primary-950: #0A0F2C;
  --primary-900: #111A45;
  --primary-800: #1B2660;
  --primary-700: #2D3F8E;
  --primary-600: #3A4FA8;
  --primary-500: #4A5FAE;
  --primary-400: #6B7EC4;
  --primary-300: #8C9DD6;
  --primary-200: #B8C3E8;
  --primary-100: #E4E8F5;
  --primary-50: #F4F6FB;

  /* Fresh medical accent — cyan / teal */
  --accent-700: #0369A1;
  --accent-600: #0284C7;
  --accent-500: #0EA5E9;
  --accent-400: #38BDF8;
  --accent-300: #7DD3FC;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-300: #5EEAD4;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --dark: #0B1020;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-muted: #F6F8FC;
  --border: #E7EBF3;
  --border-strong: #D6DCEA;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', var(--font-primary);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;
  --fs-7xl: 4.5rem;

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows — soft, layered, lightly tinted navy */
  --shadow-xs: 0 1px 2px rgba(17, 26, 69, 0.06);
  --shadow-sm: 0 1px 3px rgba(17, 26, 69, 0.08), 0 1px 2px rgba(17, 26, 69, 0.04);
  --shadow-md: 0 6px 16px -6px rgba(17, 26, 69, 0.12), 0 2px 6px -2px rgba(17, 26, 69, 0.08);
  --shadow-lg: 0 18px 40px -12px rgba(17, 26, 69, 0.18), 0 6px 14px -6px rgba(17, 26, 69, 0.10);
  --shadow-xl: 0 30px 60px -18px rgba(17, 26, 69, 0.28), 0 10px 24px -10px rgba(17, 26, 69, 0.14);
  --shadow-2xl: 0 40px 90px -24px rgba(11, 16, 32, 0.42);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 18px 50px -16px rgba(14, 165, 233, 0.45);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 55%, var(--accent-600) 130%);
  --grad-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--teal-400) 100%);
  --grad-text: linear-gradient(100deg, var(--accent-300) 0%, var(--teal-300) 55%, #BAE6FD 100%);
  --grad-hero: radial-gradient(1200px 700px at 78% -10%, rgba(56, 189, 248, 0.28), transparent 60%),
    radial-gradient(900px 600px at 5% 110%, rgba(45, 212, 191, 0.20), transparent 55%),
    linear-gradient(150deg, var(--primary-950) 0%, var(--primary-800) 45%, var(--primary-700) 100%);

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 480ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 540ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1240px;
  --container-padding: var(--space-6);

  /* Z-index */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

::selection {
  background: var(--accent-200, #BAE6FD);
  color: var(--primary-900);
}

:focus-visible {
  outline: 3px solid var(--accent-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =====================================================
   Typography utilities
   ===================================================== */
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.text-3xl { font-size: var(--fs-3xl); }
.text-4xl { font-size: var(--fs-4xl); }
.text-5xl { font-size: var(--fs-5xl); }
.text-6xl { font-size: var(--fs-6xl); }

.font-regular { font-weight: var(--fw-regular); }
.font-medium { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold { font-weight: var(--fw-bold); }

.text-primary { color: var(--primary-700); }
.text-secondary { color: var(--gray-600); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }
.text-accent { color: var(--accent-500); }

/* =====================================================
   Layout & Container
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-20);
}

.section--lg {
  padding-block: var(--space-24);
}

/* Flex utils */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
  isolation: isolate;
}

/* Sheen sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform var(--transition-slow);
  z-index: -1;
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 50%, var(--accent-600) 130%);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(45, 63, 142, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(14, 165, 233, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary-700);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  border-color: var(--accent-400);
  color: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--success {
  background: linear-gradient(135deg, var(--success) 0%, var(--teal-500) 100%) !important;
  color: var(--white) !important;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-base);
}

.btn--icon {
  padding: var(--space-3);
  border-radius: var(--radius-full);
}

/* =====================================================
   Cards
   ===================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card__content {
  padding: var(--space-6);
}

.card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.card__description {
  color: var(--gray-600);
  font-size: var(--fs-sm);
}

.card--glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.header {
  /* Single source of truth for the bar height, shared with the mobile drawer
     so the drawer always starts exactly below the header — even after it
     shrinks on scroll — instead of leaving a sliver of page peeking through. */
  --header-h: 84px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(231, 235, 243, 0.9);
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.header--scrolled {
  --header-h: 70px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height var(--transition-base);
}

.header--scrolled .header__container {
  height: 70px;
}

.header__logo {
  height: 42px;
  width: auto;
  transition: height var(--transition-base);
}

.header--scrolled .header__logo {
  height: 36px;
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
}

/* Animated underline */
.nav__link::after {
  content: '';
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary-800);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-content {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.nav__dropdown-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  padding-left: var(--space-5);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

.lang-switcher__btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--gray-500);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.lang-switcher__btn--active {
  background: var(--white);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn__line {
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-btn.is-active .mobile-menu-btn__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-active .mobile-menu-btn__line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.is-active .mobile-menu-btn__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-h, 84px);
  left: 0;
  right: 0;
  /* Size the drawer to the *dynamic* viewport so the mobile address bar /
     bottom toolbar can't crop the last links + language switcher. The vh
     line is the fallback for browsers without dvh; dvh wins where supported. */
  height: calc(100vh - var(--header-h, 84px));
  height: calc(100dvh - var(--header-h, 84px));
  /* Opaque white is the base so the page can never read through the drawer;
     the translucent + blur layers on top of it only where they're supported. */
  background: #fff;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* Extra bottom padding keeps the final item clear of the browser chrome
     even while the toolbar is animating in/out. */
  padding: var(--space-6) var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu--open {
  transform: translateX(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--gray-800);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-menu__link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

/* Keep the IT/EN pill sized to its buttons — like the desktop header — instead
   of stretching the grey background across the full drawer width. */
.mobile-menu .lang-switcher {
  width: fit-content;
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  background: var(--grad-hero);
  overflow: hidden;
}

/* Subtle dotted grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(1000px 600px at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(1000px 600px at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}

/* Aurora glow blob */
.hero::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  right: -12%;
  top: -22%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42) 0%, rgba(45, 212, 191, 0.18) 40%, transparent 70%);
  filter: blur(20px);
  border-radius: 50%;
  pointer-events: none;
  animation: aurora-float 14s ease-in-out infinite alternate;
}

@keyframes aurora-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 6%) scale(1.12); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-bottom: var(--space-2);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--white);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero__badge svg {
  color: var(--accent-300);
}

.hero__title {
  font-size: clamp(var(--fs-4xl), 6vw, var(--fs-7xl));
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
  /* gradient-clipped text only paints inside its own box; tight line-height
     leaves descenders (g, p) outside it and clipped. Extra bottom padding
     extends the paint area; the negative margin keeps the two lines tight. */
  line-height: 1.1;
  padding-bottom: 0.24em;
  margin-bottom: -0.1em;
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: text-shimmer 6s linear infinite;
}

@keyframes text-shimmer {
  to { background-position: 200% center; }
}

.hero__description {
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
  max-width: 620px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 700px;
  opacity: 0.9;
}

@media (max-width: 1023px) {
  .hero__image { display: none; }
}

/* Heartbeat line */
.hero__heartbeat {
  position: absolute;
  bottom: 9%;
  left: 0;
  right: 0;
  height: 64px;
  opacity: 0.16;
}

.hero__heartbeat svg {
  width: 100%;
  height: 100%;
}

.hero__heartbeat path {
  stroke: var(--accent-300);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: heartbeat-draw 3.4s ease-in-out infinite;
}

@keyframes heartbeat-draw {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

/* =====================================================
   Stats
   ===================================================== */
.stats {
  position: relative;
  margin-top: -72px;
  z-index: 10;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(14, 165, 233, 0.6);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-800), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-700);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.stat-card__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-600);
}

/* =====================================================
   Section Headers
   ===================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent-700);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, var(--primary-50), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.section-header__label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.section-header__title {
  font-size: clamp(var(--fs-3xl), 4.4vw, var(--fs-5xl));
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.section-header__description {
  font-size: var(--fs-lg);
  color: var(--gray-600);
  line-height: var(--lh-relaxed);
}

/* keep left-aligned variant tidy */
.section-header__label.text-left { margin-left: 0; }

/* =====================================================
   Product Category Cards
   ===================================================== */
.category-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.category-card__image-wrapper {
  position: relative;
  flex: 1;
  aspect-ratio: 4/3;
  min-height: 200px;
}

.category-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity 0.5s ease, transform var(--transition-slow);
  flex: 1;
  min-height: 200px;
}

.category-card__image:first-of-type { opacity: 1; z-index: 2; }
.category-card__image.active { opacity: 1; z-index: 2; }

.category-card:hover .category-card__image {
  transform: scale(1.06);
}

.category-card__header {
  position: relative;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
  color: var(--white);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  z-index: 5;
  text-align: center;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 16, 32, 0.92) 0%, rgba(17, 26, 69, 0.35) 48%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  z-index: 3;
}

.category-card__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.category-card__count {
  /* Hidden: categories don't display how many subcategories/products
     they contain. */
  display: none;
}

.category-card__arrow {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-accent);
  border-radius: var(--radius-full);
  color: var(--white);
  opacity: 0;
  transform: translate(8px, -8px) scale(0.85);
  transition: all var(--transition-base);
  z-index: 6;
  box-shadow: var(--shadow-md);
}

.category-card:hover .category-card__arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* =====================================================
   Feature Cards
   ===================================================== */
.feature-card {
  position: relative;
  padding: var(--space-8);
  background: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-600) 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  margin-bottom: var(--space-5);
  box-shadow: 0 12px 24px -12px rgba(14, 165, 233, 0.6);
}

.feature-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}

.feature-card__description {
  color: var(--gray-600);
  line-height: var(--lh-relaxed);
}

/* Full-width feature card. `1 / -1` spans every column that exists — two on
   tablet/desktop, the single column on phones — without conjuring a phantom
   implicit column the way `span 2` does, which used to squash the two cards
   beside it into a narrow strip on mobile. */
.feature-card--wide { grid-column: 1 / -1; }

/* =====================================================
   Footer
   ===================================================== */
.footer {
  position: relative;
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(180deg, var(--primary-900) 0%, var(--primary-950) 100%);
  color: var(--gray-300);
  padding-top: var(--space-20);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

.footer__brand { max-width: 320px; }

.footer__logo {
  height: 100px;
  margin-bottom: var(--space-5);
  filter: brightness(0) invert(1);
}

.footer__description {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
  color: var(--gray-400);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--white);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
}

.footer__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--gray-400);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

a.footer__link:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--gray-400);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__legal-link {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--white);
}

/* Hide socials (kept from original behavior) */
.footer__social {
  display: none !important;
}

/* =====================================================
   Scroll Animations
   ===================================================== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll { opacity: 0; }

.animate-on-scroll.is-visible {
  animation: slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-on-scroll:nth-child(1) { animation-delay: 0.05s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.13s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.21s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.29s; }

/* =====================================================
   Utilities
   ===================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--surface-muted); }
.bg-primary { background-color: var(--primary-700); }
.bg-dark { background-color: var(--dark); }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* =====================================================
   Healthcare Professional Disclaimer Modal
   ===================================================== */
.healthcare-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fade-in 0.3s ease forwards;
}

.healthcare-modal {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 100%;
  padding: var(--space-8);
  text-align: left;
  border: 1px solid var(--border);
  animation: slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.healthcare-modal__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.healthcare-modal__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-50), rgba(56, 189, 248, 0.16));
  color: var(--accent-600);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.healthcare-modal__title {
  font-size: var(--fs-2xl);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--gray-900);
  margin-bottom: 0;
}

.healthcare-modal__text {
  font-size: var(--fs-base);
  color: var(--gray-600);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}

.healthcare-modal__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-end;
}

.healthcare-modal__actions .btn {
  flex: 1;
}

@media (min-width: 640px) {
  .healthcare-modal__actions .btn {
    flex: none;
    min-width: 140px;
  }
}

/* =====================================================
   Product Page (catalog)
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-8);
}

.breadcrumb__link {
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover { color: var(--primary-700); }
.breadcrumb__separator { color: var(--gray-300); }
.breadcrumb__current { color: var(--gray-700); font-weight: var(--fw-medium); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.product-card__image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card__content {
  padding: var(--space-5);
  border-top: 1px solid var(--border);
}

.product-card__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.product-card__category {
  font-size: var(--fs-sm);
  color: var(--accent-600);
}

/* =====================================================
   Contact form
   ===================================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-base);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* =====================================================
   Page Header (inner pages)
   ===================================================== */
.page-header {
  position: relative;
  padding: calc(84px + var(--space-20)) 0 var(--space-16);
  background: var(--grad-hero);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(800px 400px at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 400px at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header__title {
  font-size: clamp(var(--fs-4xl), 5vw, var(--fs-6xl));
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.page-header__description {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.84);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* =====================================================
   Lightbox Gallery
   ===================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 16, 32, 0.96);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--gray-900) !important;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.lightbox__close:hover {
  transform: scale(1.1) rotate(90deg);
}

.lightbox__header {
  width: 100%;
  max-width: 95vw;
  text-align: center;
  padding: 0 2rem;
  flex-shrink: 0;
}

.lightbox__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: var(--space-2);
}

.lightbox__desc {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  max-width: 700px;
  margin: 0 auto;
}

.lightbox__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.lightbox__figure:hover { transform: scale(1.02); }

.lightbox__item {
  max-height: 70vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.lightbox__caption {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: #fff;
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

/* Lightbox back button */
.lightbox__back {
  position: fixed;
  top: 20px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  color: var(--gray-900) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.lightbox__back:hover {
  transform: scale(1.1);
}

.lightbox__back svg { width: 24px; height: 24px; }
.lightbox__close svg { width: 18px; height: 18px; display: block; }
.lightbox__close svg path { stroke: currentColor; }

/* =====================================================
   Subcategory Modal
   ===================================================== */
.subcategory-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: var(--space-8);
}

.subcategory-modal.active { display: block; }

.subcategory-modal__content {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-2xl);
  animation: slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.subcategory-modal__topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.subcategory-modal__topbar .subcategory-modal__title {
  flex: 1;
  margin-bottom: 0;
}

.subcategory-modal__back,
.subcategory-modal__close {
  width: 42px;
  height: 42px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  color: var(--gray-900) !important;
  -webkit-text-fill-color: currentColor;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.subcategory-modal__back:hover { background: var(--gray-200); transform: scale(1.05); }
.subcategory-modal__close:hover { background: var(--gray-200); transform: scale(1.05) rotate(90deg); }

.subcategory-modal__close svg,
.subcategory-modal__back svg { width: 16px; height: 16px; display: block; }
.subcategory-modal__back svg { width: 22px; height: 22px; }
.subcategory-modal__close svg path { stroke: currentColor; }

.subcategory-modal__title {
  font-size: var(--fs-2xl);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.subcategory-modal__desc {
  font-size: var(--fs-lg);
  color: var(--gray-500);
  margin-bottom: var(--space-6);
}

.subcategory-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.subcategory-modal__card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.subcategory-modal__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.subcategory-modal__card-img {
  aspect-ratio: 4/3;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.subcategory-modal__card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.subcategory-modal__card-content {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}

.subcategory-modal__card-content h3 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.subcategory-modal__card-content p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
}

/* =====================================================
   Reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll { opacity: 1; }
}

/* =====================================================
   Mobile / smartphone UX optimizations
   Scoped to small screens only — desktop layout unchanged.
   ===================================================== */

/* Tablets & large phones: trim the generous desktop vertical rhythm */
@media (max-width: 768px) {
  .section { padding-block: var(--space-12); }
  .section--lg { padding-block: var(--space-16); }
  .section-header { margin-bottom: var(--space-10); }
}

/* Phones */
@media (max-width: 640px) {
  /* A little more usable width on narrow screens */
  :root { --container-padding: var(--space-4); }

  /* Hero: use the *small* viewport height so the mobile address bar can't crop
     it (browsers without svh keep the 100vh fallback). */
  .hero { min-height: 100svh; }
  .hero__description { font-size: var(--fs-lg); }
  .hero__actions { gap: var(--space-3); }
  .hero__actions .btn { width: 100%; }        /* full-width, thumb-friendly CTAs */

  /* Stats: less overlap with the hero, comfortable padding */
  .stats { margin-top: calc(-1 * var(--space-8)); }
  .stat-card { padding: var(--space-6) var(--space-5); }
  .stat-card__value { font-size: var(--fs-4xl); }

  /* Section headers */
  .section-header { margin-bottom: var(--space-8); }
  .section-header__description { font-size: var(--fs-base); }

  /* Guarantee comfortable tap targets (>=44px) */
  .btn { min-height: 48px; }
  .nav__link,
  .mobile-menu__link { min-height: 48px; }
  .lang-switcher__btn { min-height: 38px; }

  /* Footer breathes a touch tighter */
  .footer__grid { gap: var(--space-8); }

  /* Lightbox: edge-to-edge friendly on small screens */
  .lightbox { padding: 1rem; }
  .lightbox__grid { padding: 1rem; gap: 0.6rem; }
  .lightbox__header { padding: 0 1rem; }
  .lightbox__close { top: 12px; right: 12px; width: 44px; height: 44px; }
}
