/* =====================================================
   CALYRA LIFE SCIENCES - MAIN STYLESHEET
   Mobile-first | Lightweight | No framework dependency
   ===================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand colors — from your logo (red) + pharma trust (blue) */
  --c-primary: #0a4d8c;          /* Deep medical blue */
  --c-primary-dark: #073864;
  --c-primary-light: #1568b8;
  --c-accent: #d32027;           /* Brand red from logo */
  --c-accent-dark: #a8161c;
  --c-accent-light: #e84048;

  --c-bg: #ffffff;
  --c-bg-alt: #f5f8fc;
  --c-bg-dark: #0a1929;

  --c-text: #1a2332;
  --c-text-soft: #4a5568;
  --c-text-muted: #718096;
  --c-border: #e2e8f0;
  --c-border-soft: #edf2f7;

  --c-success: #16a34a;
  --c-warning: #ea8a0c;
  --c-danger: #dc2626;

  /* Typography */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --f-display: 'Plus Jakarta Sans', var(--f-sans);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Borders & shadows */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(10, 25, 41, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 25, 41, 0.08);
  --shadow-lg: 0 10px 30px rgba(10, 25, 41, 0.12);
  --shadow-xl: 0 20px 50px rgba(10, 25, 41, 0.15);

  /* Layout */
  --container: 1200px;
  --header-h: 70px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-normal: 250ms;
  --t-slow: 400ms;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; max-width: 100%; max-height: 100%; }
svg:not([width]):not([class*="logo"]):not([class*="brand"]) { width: 1em; height: 1em; }
/* Any icon inside a text link/button context — keep it text-sized */
a svg, button svg, p svg, span svg, li svg, h1 svg, h2 svg, h3 svg, h4 svg, label svg {
  width: 1em; height: 1em;
}
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-accent); }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.85rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { color: var(--c-text-soft); }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-5); } }

.section { padding: var(--sp-7) 0; }
@media (min-width: 768px) { .section { padding: var(--sp-8) 0; } }
@media (min-width: 1024px) { .section { padding: var(--sp-9) 0; } }
.section-alt { background: var(--c-bg-alt); }

.section-head { text-align: center; margin-bottom: var(--sp-7); }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
  position: relative;
  padding: 0 var(--sp-6);
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--c-accent);
}
.section-head .eyebrow::before { left: -10px; }
.section-head .eyebrow::after { right: -10px; }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { max-width: 700px; margin: 0 auto; }

.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-7); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--f-display);
  border-radius: var(--r-md);
  transition: all var(--t-normal) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  min-height: 48px;  /* mobile tap target */
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 77, 140, 0.3);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 77, 140, 0.4);
}
.btn-accent {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(211, 32, 39, 0.3);
}
.btn-accent:hover {
  background: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; min-height: 38px; }
.btn-lg { padding: 1.05rem 2.25rem; font-size: 1.05rem; }

/* ===== TOP STRIP ===== */
.topbar {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.55rem 0;
  display: none;
}
@media (min-width: 992px) { .topbar { display: block; } }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-info { display: flex; gap: 1.5rem; }
.topbar-info a, .topbar-info span { color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar-info a:hover { color: #fff; }
.topbar-info svg { width: 14px; height: 14px; }
.topbar-social { display: flex; gap: 0.6rem; }
.topbar-social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.topbar-social a:hover { background: var(--c-accent); }
.topbar-social svg { width: 13px; height: 13px; color: #fff; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
  transition: box-shadow var(--t-normal) var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-mark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo-primary { color: var(--c-accent); font-size: 1.45rem; }
.logo-secondary { color: var(--c-text); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; margin-top: 2px; }
@media (min-width: 768px) {
  .logo-primary { font-size: 1.7rem; }
  .logo-secondary { font-size: 0.78rem; }
}

/* Desktop nav */
.nav-desktop { display: none; }
@media (min-width: 992px) {
  .nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
}
.nav-desktop a {
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-sm);
  position: relative;
}
.nav-desktop a:hover { color: var(--c-primary); background: var(--c-bg-alt); }
.nav-desktop a.active { color: var(--c-primary); }
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--c-accent);
  border-radius: 3px;
}

.nav-cta { display: none; }
@media (min-width: 992px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--c-text);
}
@media (min-width: 992px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform var(--t-normal) var(--ease);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--c-border-soft);
}
.nav-mobile-list { padding: var(--sp-4); flex: 1; }
.nav-mobile-list li { border-bottom: 1px solid var(--c-border-soft); }
.nav-mobile-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
}
.nav-mobile-list a.active { color: var(--c-primary); }
.nav-mobile-list svg { width: 18px; height: 18px; color: var(--c-text-muted); }
.nav-mobile-foot { padding: var(--sp-4); background: var(--c-bg-alt); }
.nav-mobile-foot .btn { width: 100%; }
.nav-mobile-foot .contact-row { margin-bottom: var(--sp-3); font-size: 0.9rem; color: var(--c-text-soft); }
.nav-mobile-foot .contact-row a { color: var(--c-primary); font-weight: 600; }

body.nav-open { overflow: hidden; }

/* ===== HERO / SLIDER ===== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10, 77, 140, 0.92) 0%, rgba(7, 56, 100, 0.94) 100%),
    url('https://images.unsplash.com/photo-1631549916768-4119b2e5f926?auto=format&fit=crop&w=1920&q=70') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  min-height: 480px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(211, 32, 39, 0.18), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: heroGridShift 30s linear infinite;
}
@keyframes heroGridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}
.hero > .container, .hero-controls { position: relative; z-index: 2; }
.hero-pattern { display: none; }
.hero-slides {
  position: relative;
  display: flex;
  overflow: hidden;
}
.hero-slide {
  flex: 0 0 100%;
  padding: var(--sp-8) 0 var(--sp-9);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  position: relative;
  min-width: 100%;
  margin-right: -100%;
}
.hero-slide.active { opacity: 1; position: relative; z-index: 2; }
.hero-slide.active .hero-eyebrow { animation: heroFadeUp 0.7s 0.1s var(--ease) backwards; }
.hero-slide.active h1 { animation: heroFadeUp 0.8s 0.25s var(--ease) backwards; }
.hero-slide.active > .hero-content > p { animation: heroFadeUp 0.8s 0.4s var(--ease) backwards; }
.hero-slide.active .hero-actions { animation: heroFadeUp 0.8s 0.55s var(--ease) backwards; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  backdrop-filter: blur(10px);
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--sp-4);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.1;
}
.hero h1 .accent { color: #ffd166; }
.hero-content > p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--sp-6);
  max-width: 600px;
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero-controls {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.hero-dot {
  width: 28px; height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: background var(--t-fast) var(--ease);
  cursor: pointer;
}
.hero-dot.active { background: #fff; }

/* USP/Trust bar below hero */
.trust-bar {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border-soft);
  padding: var(--sp-5) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trust-icon {
  width: 44px; height: 44px;
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-text strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-text);
  font-size: 0.95rem;
}
.trust-text span {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

/* ===== CARDS GENERIC ===== */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .grid { gap: var(--sp-5); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: all var(--t-normal) var(--ease);
}
.card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Therapeutic segment card */
.segment-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
  transition: all var(--t-normal) var(--ease);
  position: relative;
  overflow: hidden;
  display: block;
  color: var(--c-text);
}
.segment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal) var(--ease);
}
.segment-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--c-text);
}
.segment-card:hover::before { transform: scaleX(1); }
.segment-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-4);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-normal) var(--ease);
}
.segment-card:hover .segment-icon {
  transform: rotate(-6deg) scale(1.08);
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
}
.segment-icon svg { width: 32px; height: 32px; }
.segment-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}
.segment-card p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal) var(--ease);
  display: block;
  color: var(--c-text);
}
.product-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--c-text);
}
.product-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--c-bg-alt), #fff);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-image img {
  max-height: 80%; max-width: 80%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-image .placeholder {
  width: 80px; height: 80px;
  color: var(--c-primary);
  opacity: 0.4;
}
.product-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.product-card-body { padding: var(--sp-4); }
.product-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.4rem;
}
.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--c-text);
}
.product-card-comp {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-foot {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.product-card-foot .pack { color: var(--c-text-muted); }
.product-card-foot .arrow {
  color: var(--c-primary);
  font-weight: 600;
  transition: transform var(--t-fast) var(--ease);
}
.product-card:hover .arrow { transform: translateX(3px); }

/* ===== ABOUT / CONTENT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 992px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
.about-visual { position: relative; }
.about-image-stack {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  box-shadow: var(--shadow-xl);
}
.about-image-stack::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 60%; height: 60%;
  background: var(--c-accent);
  border-radius: var(--r-lg);
  z-index: -1;
  opacity: 0.15;
}
.about-image-stack img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.about-image-stack:hover img { transform: scale(1.06); }
.about-image-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.97);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  display: flex; gap: 0.75rem; align-items: center;
}
.about-image-badge .badge-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--c-accent);
  line-height: 1;
}
.about-image-badge .badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}
.about-content .eyebrow {
  display: inline-block;
  color: var(--c-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.about-content h2 { margin-bottom: var(--sp-4); }
.about-content > p { margin-bottom: var(--sp-4); font-size: 1.02rem; }
.about-features { list-style: none; padding: 0; margin: var(--sp-5) 0; }
.about-features li {
  display: flex; gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}
.about-features li svg {
  width: 22px; height: 22px;
  color: var(--c-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Stats counters */
.stats {
  background:
    linear-gradient(135deg, rgba(10, 77, 140, 0.93) 0%, rgba(7, 56, 100, 0.96) 100%),
    url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=70') center/cover no-repeat fixed;
  color: #fff;
  padding: var(--sp-7) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(211, 32, 39, 0.2), transparent 50%);
}
/* Disable background-attachment: fixed on mobile (causes jank on iOS) */
@media (max-width: 768px) {
  .stats { background-attachment: scroll; }
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  position: relative;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center;
  padding: 0 var(--sp-3);
}
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-num .plus { color: #ffd166; }
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}

/* Why-choose-us cards */
.why-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  position: relative;
  transition: all var(--t-normal) var(--ease);
  height: 100%;
}
.why-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.why-card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(10, 77, 140, 0.1), rgba(10, 77, 140, 0.05));
  color: var(--c-primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
}
.why-card-icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.why-card p { font-size: 0.9rem; color: var(--c-text-muted); }

/* ===== CTA BAND ===== */
.cta-band {
  background:
    linear-gradient(135deg, rgba(211, 32, 39, 0.94) 0%, rgba(168, 22, 28, 0.97) 100%),
    url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1600&q=70') center/cover no-repeat;
  color: #fff;
  padding: var(--sp-7) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 50%, rgba(255,255,255,0.1), transparent 50%);
}
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: center;
  text-align: center;
  position: relative;
}
@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.cta-band h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-band p { color: rgba(255,255,255,0.95); max-width: 600px; }
.cta-band .btn-light {
  background: #fff;
  color: var(--c-accent);
}
.cta-band .btn-light:hover {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  border: 1px solid var(--c-border-soft);
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--sp-5);
  font-size: 5rem;
  color: var(--c-accent);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.2;
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: var(--sp-3); }
.testimonial-stars svg { width: 16px; height: 16px; color: #ffb800; }
.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-4);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-soft);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--f-display);
}
.testimonial-name { font-weight: 600; color: var(--c-text); font-size: 0.95rem; }
.testimonial-meta { font-size: 0.8rem; color: var(--c-text-muted); }

/* ===== BLOG CARDS ===== */
.blog-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal) var(--ease);
  display: flex; flex-direction: column;
  height: 100%;
  color: var(--c-text);
}
.blog-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--c-text);
}
.blog-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image .placeholder {
  width: 60px; height: 60px;
  color: rgba(255,255,255,0.4);
}
.blog-card-body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex; gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
  align-items: center;
}
.blog-card-meta .dot { color: var(--c-border); }
.blog-card-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-bg-alt);
  color: var(--c-primary);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
  line-height: 1.35;
}
.blog-card p {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  flex: 1;
}
.blog-card-link {
  margin-top: var(--sp-3);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== PAGE BANNER (inner pages) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  padding: var(--sp-7) 0 var(--sp-7);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 100%, rgba(211, 32, 39, 0.25), transparent 50%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: cover, 50px 50px, 50px 50px;
}
.page-banner-inner { position: relative; }
.page-banner h1 {
  color: #fff;
  margin-bottom: var(--sp-3);
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
}
.page-banner p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 700px; }
.breadcrumb {
  margin-top: var(--sp-4);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb ol { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; color: rgba(255,255,255,0.4); }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; font-weight: 500; }

/* ===== CONTENT/PROSE (CMS pages, blog) ===== */
.prose {
  max-width: 800px;
}
.prose h2 { margin: var(--sp-6) 0 var(--sp-3); font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
.prose p { margin-bottom: var(--sp-4); font-size: 1rem; line-height: 1.75; }
.prose ul, .prose ol {
  margin: var(--sp-3) 0 var(--sp-4) var(--sp-5);
  color: var(--c-text-soft);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.6rem; line-height: 1.7; }
.prose strong { color: var(--c-text); font-weight: 600; }
.prose a { color: var(--c-primary); text-decoration: underline; }

/* ===== FORMS ===== */
.form-card {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .form-card { padding: var(--sp-6); } }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 600px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}
.form-group label .req { color: var(--c-accent); }
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-text);
  font-size: 0.95rem;
  transition: all var(--t-fast) var(--ease);
  min-height: 48px;
}
.form-control:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(10, 77, 140, 0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }

.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--c-success); }
.alert-danger { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--c-danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--c-warning); }

/* ===== FAQ ACCORDION ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
.faq-item.open { border-color: var(--c-primary-light); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  background: #fff;
  font-family: var(--f-display);
}
.faq-question:hover { background: var(--c-bg-alt); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform var(--t-normal) var(--ease);
  color: var(--c-primary);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-normal) var(--ease);
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--c-text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-8) 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-primary));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: var(--sp-4);
  position: relative;
  padding-bottom: var(--sp-2);
}
.footer h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 2px;
  background: var(--c-accent);
}
.footer a { color: rgba(255,255,255,0.7); transition: color var(--t-fast) var(--ease); }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer ul li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.footer-about p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin: var(--sp-3) 0;
  line-height: 1.7;
}
.footer-logo {
  display: flex; flex-direction: column;
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.footer-logo .lp { color: var(--c-accent); font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; }
.footer-logo .ls { color: rgba(255,255,255,0.8); font-family: var(--f-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.05em; margin-top: 4px; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-4); }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: all var(--t-fast) var(--ease);
}
.footer-social a:hover { background: var(--c-accent); padding-left: 0; transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-contact li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.footer-contact svg {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 2px;
  color: var(--c-accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-4) 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; justify-content: space-between;
  text-align: center;
  font-size: 0.82rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-bottom .legal { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 80;
  transition: transform var(--t-fast) var(--ease);
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  animation: pulse-ring 2s infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 4px; justify-content: center;
  margin-top: var(--sp-6); flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.6rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.9; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.fade-up { animation: fadeUp 0.6s var(--ease) backwards; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
.float { animation: float 4s ease-in-out infinite; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .float, .hero::before { animation: none !important; }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
