/* ============================================================
   AINDEMEX PHARMACY — Modern Apothecary Design System
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 2px; border-radius: 4px; }

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  /* Brand */
  --navy:        #174069;
  --navy-deep:   #0F2D4A;
  --navy-soft:   #2A5582;
  --green:       #66A251;
  --green-deep:  #4F8A3D;
  --green-soft:  #E8F1E2;

  /* Neutrals (warm, not stark) */
  --bg:          #FCFCF9;
  --bg-soft:     #F5F4EE;
  --bg-section:  #F2F4F0;
  --border:      #E2E5DD;
  --border-soft: #ECEEE7;

  /* Text */
  --ink:         #0F1B2D;
  --ink-soft:    #3A4654;
  --muted:       #6B7280;
  --muted-soft:  #9CA3AF;

  /* Accents */
  --warn:        #C53030;     /* prescription required */
  --warn-soft:   #FCEBEB;
  --gold:        #B8954A;     /* premium/featured */
  --gold-soft:   #F5EDD8;

  /* Sizing */
  --container:   1240px;
  --container-narrow: 880px;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(15, 27, 45, 0.04), 0 1px 3px rgba(15, 27, 45, 0.06);
  --shadow:      0 4px 8px rgba(15, 27, 45, 0.04), 0 8px 24px rgba(15, 27, 45, 0.06);
  --shadow-lg:   0 12px 32px rgba(15, 27, 45, 0.08), 0 24px 48px rgba(15, 27, 45, 0.10);

  /* Type scale */
  --fs-xs:       0.75rem;
  --fs-sm:       0.875rem;
  --fs-base:     1rem;
  --fs-md:       1.0625rem;
  --fs-lg:       1.25rem;
  --fs-xl:       1.5rem;
  --fs-2xl:      2rem;
  --fs-3xl:      2.75rem;
  --fs-4xl:      3.75rem;
  --fs-5xl:      4.75rem;

  /* Easing */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.55, 0, 0.45, 1);
}

/* Dark mode (toggle on <body class="dark">) */
body.dark {
  --bg:          #0E1620;
  --bg-soft:     #131D2A;
  --bg-section:  #18222E;
  --border:      #243240;
  --border-soft: #1D2733;
  --ink:         #F1F2EE;
  --ink-soft:    #C7CCD2;
  --muted:       #8B95A1;
  --muted-soft:  #5C6471;
  --navy:        #4F8FD1;
  --navy-soft:   #6BA3DD;
  --green:       #8AC56F;
  --green-deep:  #66A251;
  --green-soft:  #1E2C25;
  --warn-soft:   #2A1818;
  --gold-soft:   #2A2418;
}

/* ---------- 3. TYPOGRAPHY ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display { font-family: 'Bricolage Grotesque', serif; font-variation-settings: 'opsz' 96; }
h1, h2, h3, h4, .font-display {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 4.5vw + 1rem, var(--fs-5xl)); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 2.5vw + 1rem, var(--fs-3xl)); }
h3 { font-size: clamp(1.375rem, 1.5vw + 0.75rem, var(--fs-xl)); }
h4 { font-size: var(--fs-lg); }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}
body.dark .eyebrow { color: var(--green); }

.lead { font-size: var(--fs-md); color: var(--ink-soft); line-height: 1.65; }

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) {
  .container, .container-narrow { padding-inline: 2rem; }
}

section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  font-size: var(--fs-base);
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--navy); color: #FFF; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow); }

.btn-accent { background: var(--green); color: #FFF; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--green-deep); box-shadow: var(--shadow); }

.btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-soft); }

.btn-light { background: rgba(255,255,255,0.95); color: var(--navy); }
.btn-light:hover { background: #FFF; }

.btn-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--navy); font-weight: 500;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s, gap .2s;
}
.btn-link:hover { border-color: var(--navy); gap: 0.6rem; }
body.dark .btn-link { color: var(--navy-soft); }
body.dark .btn-link:hover { border-color: var(--navy-soft); }

.btn-sm { padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- 6. CHIPS, BADGES & TAGS ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-gold { background: var(--gold-soft); color: var(--gold); }
.chip-navy { background: rgba(23,64,105,0.08); color: var(--navy); }
body.dark .chip-navy { background: rgba(79,143,209,0.15); color: var(--navy-soft); }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--warn);
  color: #FFF;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-soon { background: var(--gold); }
.badge-new { background: var(--green); }

/* ---------- 7. UTILITY BAR (top, slim) ---------- */
.utility {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
body.dark .utility { background: #050B12; }
.utility-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 38px; gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.utility-inner::-webkit-scrollbar { display: none; }
.utility-left, .utility-right { display: flex; gap: 1.5rem; align-items: center; white-space: nowrap; }
.utility a { color: rgba(255,255,255,0.85); transition: color .2s; }
.utility a:hover { color: #FFF; }
.utility-pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 0.4rem;
  box-shadow: 0 0 0 0 rgba(102, 162, 81, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(102, 162, 81, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(102, 162, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 162, 81, 0); }
}
@media (max-width: 768px) {
  .utility-left .util-hide-mobile { display: none; }
}

/* ---------- 8. HEADER & NAV ---------- */
.header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(252, 252, 249, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
body.dark .header { background: rgba(14, 22, 32, 0.92); }
.header.scrolled { border-color: var(--border-soft); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  height: 76px;
}
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; height: 68px; gap: 0.75rem; }
}

.brand { display: flex; align-items: center; gap: 0.625rem; }
.brand img { height: 40px; width: auto; }
@media (max-width: 768px) {
  .brand img { height: 34px; }
}

/* search */
.search {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(23,64,105,0.1); }
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: var(--fs-sm);
  padding: 0.25rem 0.5rem;
  min-width: 0;
}
.search input::placeholder { color: var(--muted); }
.search button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--navy); color: #FFF;
  border-radius: 50%;
  transition: background .2s;
}
.search button:hover { background: var(--navy-deep); }
@media (max-width: 1024px) { .search-desktop { display: none; } }

/* nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.25rem; }
.nav-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-icon-btn:hover { background: var(--bg-soft); color: var(--navy); }
.nav-icon-btn .nav-cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--gold); color: #FFF;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 1px 5px; border-radius: 999px;
  text-transform: uppercase;
}

.theme-toggle { width: 44px; height: 44px; }
.theme-toggle .ico-moon { display: none; }
body.dark .theme-toggle .ico-sun { display: none; }
body.dark .theme-toggle .ico-moon { display: block; }

/* mega-nav (under header) */
.meganav {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.meganav-inner { display: flex; align-items: center; height: 52px; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.meganav-inner::-webkit-scrollbar { display: none; }
.meganav a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.meganav a:hover, .meganav a.active { background: var(--bg-soft); color: var(--navy); }
.meganav a.active { background: var(--navy); color: #FFF; }
.meganav a.active:hover { background: var(--navy-deep); }

/* mobile menu */
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
}
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 90;
  padding: 1.5rem 1.25rem 2rem;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.mobile-menu .search { margin-bottom: 1.25rem; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu nav a {
  padding: 0.875rem 1rem;
  font-size: var(--fs-md);
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--ink);
}
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: var(--bg-soft); color: var(--navy); }
.mobile-menu-cta { margin-top: 1.25rem; display: grid; gap: 0.625rem; }
.mobile-menu-foot {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  font-size: var(--fs-sm); color: var(--muted);
}

/* ---------- 9. HERO ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #F4F8F1 0%, #EAF1E5 100%);
  overflow: hidden;
}
body.dark .hero { background: linear-gradient(135deg, #131F1A 0%, #0E1620 100%); }
.hero::before {
  content: ''; position: absolute; right: -10%; top: -10%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(23,64,105,0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: -8%; bottom: -15%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(102,162,81,0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  z-index: 1;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem 0; }
}

.hero h1 {
  font-size: clamp(2.25rem, 3.2vw + 1rem, 3.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--green-deep); font-style: italic; font-weight: 500; }
body.dark .hero h1 .accent { color: var(--green); }

.hero-lead {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; align-items: center; }
.hero-trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.hero-trust-item svg { color: var(--green-deep); flex-shrink: 0; }
body.dark .hero-trust-item svg { color: var(--green); }

/* hero visual (right side) */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(102,162,81,0.4), transparent 50%);
}
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.85;
}

.hero-floater {
  position: absolute;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.75rem;
  z-index: 2;
}
body.dark .hero-floater { background: rgba(24, 34, 46, 0.96); border: 1px solid var(--border); }
.hero-floater-tl { top: 1.5rem; left: -1rem; }
.hero-floater-br { bottom: 1.5rem; right: -1rem; }
@media (max-width: 880px) {
  .hero-floater-tl, .hero-floater-br { display: none; }
}
.hero-floater-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-floater-text { font-size: var(--fs-xs); }
.hero-floater-text strong { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; }
.hero-floater-text span { color: var(--muted); }

/* ---------- 10. CATEGORY GRID ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}

.cat-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  aspect-ratio: 1;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}
.cat-tile-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  transition: transform .25s var(--ease);
}
.cat-tile:hover .cat-tile-icon { transform: scale(1.1) rotate(-4deg); }
.cat-tile-name { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.cat-tile-count { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

/* ---------- 11. SECTION HEADS ---------- */
.section-head { margin-bottom: 2.5rem; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: 0.625rem 0.875rem; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-md); }

.section-head-row {
  display: flex; align-items: end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row .btn-link { padding-bottom: 6px; }

/* ---------- 12. PRODUCT CARDS ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.prod {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.prod:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.prod-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.prod-img img { width: 75%; height: 75%; object-fit: contain; }
.prod-tags {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.prod-fav {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.prod-fav:hover { color: var(--warn); transform: scale(1.1); }
body.dark .prod-fav { background: rgba(24,34,46,0.95); }
.prod-body { padding: 1rem 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.prod-cat { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.prod-name { font-size: var(--fs-base); font-weight: 600; color: var(--ink); line-height: 1.3; }
.prod-meta { font-size: var(--fs-xs); color: var(--muted); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.75rem; }
.prod-price { font-family: 'Bricolage Grotesque', serif; font-size: var(--fs-lg); font-weight: 600; color: var(--ink); }
.prod-price span { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.prod-action {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.prod-action:hover { background: var(--navy-deep); transform: scale(1.05); }

/* ---------- 13. PROMO BANNER ---------- */
.promo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .promo-banner { grid-template-columns: 1fr; }
}

.promo-card {
  position: relative;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #FFF;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  overflow: hidden;
  transition: transform .25s var(--ease);
}
.promo-card:hover { transform: translateY(-3px); }
.promo-card::after {
  content: ''; position: absolute; right: -50px; bottom: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(102,162,81,0.4), transparent 70%);
}
.promo-card.green {
  background: linear-gradient(135deg, var(--green-deep) 0%, #3D6A2F 100%);
}
.promo-card.green::after {
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}
.promo-card .eyebrow { color: rgba(255,255,255,0.75); }
.promo-card h3 {
  color: #FFF;
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
  margin: 0.5rem 0 0.875rem;
  position: relative; z-index: 1;
  max-width: 320px;
}
.promo-card p { color: rgba(255,255,255,0.85); font-size: var(--fs-sm); position: relative; z-index: 1; max-width: 320px; }
.promo-card .btn { margin-top: 1.25rem; align-self: flex-start; position: relative; z-index: 1; }

/* ---------- 14. SERVICES SECTION ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}

.svc {
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  position: relative;
  overflow: hidden;
}
.svc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.svc::after {
  content: ''; position: absolute; right: -30px; bottom: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(102,162,81,0.08), transparent 70%);
  transition: width .3s, height .3s;
}
.svc:hover::after { width: 180px; height: 180px; }
.svc-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: transform .3s var(--ease);
}
.svc:hover .svc-icon { transform: rotate(-6deg) scale(1.05); }
.svc h4 { margin-bottom: 0.5rem; font-size: var(--fs-lg); }
.svc p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 1rem; }
.svc-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--navy);
  transition: gap .2s;
}
.svc-link:hover { gap: 0.6rem; }
body.dark .svc-link { color: var(--navy-soft); }

/* ---------- 15. PRESCRIPTION UPLOAD CTA ---------- */
.rx-cta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(23,64,105,0.96) 0%, rgba(15,45,74,0.96) 100%),
    radial-gradient(circle at 80% 20%, rgba(102,162,81,0.4), transparent 60%);
  color: #FFF;
  position: relative;
  overflow: hidden;
}
.rx-cta::before {
  content: ''; position: absolute; right: -8%; top: -25%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(102,162,81,0.35), transparent 60%);
  pointer-events: none;
}
@media (max-width: 880px) { .rx-cta { grid-template-columns: 1fr; gap: 2rem; } }

.rx-cta-text { position: relative; z-index: 1; }
.rx-cta-text h2 { color: #FFF; margin-bottom: 1rem; }
.rx-cta-text p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 460px; }
.rx-cta-text .eyebrow { color: rgba(255,255,255,0.65); }
.rx-cta-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.rx-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
body.dark .rx-card { background: rgba(24,34,46,0.97); color: var(--ink); border: 1px solid var(--border); }
.rx-card h4 { margin-bottom: 0.875rem; font-size: var(--fs-base); }
.rx-steps { display: flex; flex-direction: column; gap: 0.875rem; }
.rx-step { display: flex; gap: 0.875rem; align-items: flex-start; }
.rx-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-sm);
}
.rx-step-text strong { display: block; font-size: var(--fs-sm); color: var(--ink); margin-bottom: 0.125rem; }
.rx-step-text span { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 16. HMO PARTNERS ---------- */
.hmo-strip {
  background: var(--bg-section);
  padding-block: 3rem;
  border-block: 1px solid var(--border-soft);
}
.hmo-strip-head { text-align: center; margin-bottom: 1.5rem; }
.hmo-strip-head .eyebrow { display: block; }
.hmo-strip-head h3 { font-size: var(--fs-xl); margin-top: 0.5rem; }
.hmo-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1rem;
}
.hmo {
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  transition: transform .2s, border-color .2s, color .2s;
}
.hmo:hover { transform: translateY(-2px); border-color: var(--navy); color: var(--navy); }

/* ---------- 17. TRUST STRIP ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.trust-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.5rem;
}
.trust-item-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-item-text strong { display: block; font-size: var(--fs-base); color: var(--ink); font-weight: 600; }
.trust-item-text span { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 18. ARTICLE / BLOG CARDS ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}

.article {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-img {
  aspect-ratio: 16/10;
  background: var(--bg-soft);
  overflow: hidden;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article:hover .article-img img { transform: scale(1.05); }
.article-body { padding: 1.25rem 1.375rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.625rem; }
.article-meta { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.article h3 { font-size: var(--fs-lg); }
.article p { font-size: var(--fs-sm); color: var(--ink-soft); }
.article-foot { margin-top: auto; padding-top: 0.75rem; }

/* ---------- 19. NEWSLETTER ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--green-soft) 0%, #DDEACC 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.dark .newsletter { background: linear-gradient(135deg, #1A2B22 0%, #0F1F18 100%); }
.newsletter::before {
  content: ''; position: absolute; left: 50%; top: -150px; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(102,162,81,0.25), transparent 70%);
}
.newsletter-inner { position: relative; z-index: 1; max-width: 600px; margin-inline: auto; }
.newsletter h3 { font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem); margin-bottom: 0.625rem; }
.newsletter p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  background: var(--bg);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  border-radius: 999px;
  max-width: 480px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.newsletter-form input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: var(--fs-sm); padding: 0.5rem 0;
}
.newsletter-foot { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.875rem; }

/* ---------- 20. STORE LOCATOR ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.store {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.store:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.store-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 0.875rem; }
.store h4 { margin: 0; }
.store-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.625rem;
  background: var(--green-soft); color: var(--green-deep);
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
}
.store-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.store-status.closed { background: var(--warn-soft); color: var(--warn); }
.store-status.closed::before { background: var(--warn); }

.store-meta { display: flex; flex-direction: column; gap: 0.625rem; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 1.25rem; }
.store-meta-row { display: flex; gap: 0.625rem; align-items: start; }
.store-meta-row svg { color: var(--green-deep); flex-shrink: 0; margin-top: 2px; }
body.dark .store-meta-row svg { color: var(--green); }
.store-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- 21. FORMS ---------- */
.form-stack { display: grid; gap: 1.125rem; }
.form-row { display: grid; gap: 1.125rem; }
@media (min-width: 768px) {
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
}

.field {
  display: block;
  position: relative;
}
.field label {
  display: block;
  font-size: var(--fs-sm); font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.field label .req { color: var(--warn); margin-left: 2px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23,64,105,0.1);
  outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-help { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.4rem; }

/* file upload */
.file-drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--navy);
  background: rgba(23,64,105,0.03);
}
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.file-drop strong { display: block; font-size: var(--fs-base); color: var(--ink); margin-bottom: 0.25rem; }
.file-drop span { font-size: var(--fs-sm); color: var(--muted); }
.file-drop-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.file-drop-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}

/* form result */
.form-result { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: var(--fs-sm); margin-top: 1rem; }
.form-result.success { background: var(--green-soft); color: var(--green-deep); }
.form-result.error { background: var(--warn-soft); color: var(--warn); }
.form-result.hidden { display: none; }

/* ---------- 22. ACCORDION (FAQ) ---------- */
.acc-list { display: flex; flex-direction: column; gap: 0.5rem; }
.acc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .2s;
}
.acc[open] { border-color: var(--navy); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 1.375rem;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: transform .25s var(--ease);
}
body.dark .acc-icon { color: var(--navy-soft); }
.acc[open] .acc-icon { transform: rotate(45deg); }
.acc-body { padding: 0 1.375rem 1.25rem; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.7; }
.acc-body p + p { margin-top: 0.625rem; }
.acc-body ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.5rem; }
.acc-body li + li { margin-top: 0.25rem; }

/* ---------- 23. FOOTER ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding-block: 4rem 0;
}
body.dark .footer { background: #050B12; }
.footer a:hover { color: #FFF; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-tag { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; max-width: 360px; }
.footer-socials { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer-socials a:hover { background: rgba(255,255,255,0.15); }
.footer-cred { font-size: var(--fs-xs); color: rgba(255,255,255,0.6); line-height: 1.7; }

.footer-col h5 { font-size: var(--fs-sm); font-weight: 600; color: #FFF; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.125rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul a { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); transition: color .2s, padding .2s; display: inline-block; }
.footer-col ul a:hover { color: #FFF; padding-left: 4px; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--fs-xs); color: rgba(255,255,255,0.6);
}
.footer-bar-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- 24. PAGE HERO (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-soft) 100%);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: var(--fs-sm); color: var(--muted);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a:hover { color: var(--navy); }
.page-hero h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 0.875rem; }
.page-hero p { max-width: 680px; color: var(--ink-soft); font-size: var(--fs-md); }

/* ---------- 25. PROSE (article/legal pages) ---------- */
.prose {
  max-width: 740px;
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--ink-soft);
}
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--ink); font-size: var(--fs-2xl); }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; color: var(--ink); font-size: var(--fs-xl); }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-top: 0.875rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--navy-deep); }
body.dark .prose a { color: var(--navy-soft); }

.prose-toc {
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: var(--fs-sm);
}
.prose-toc strong { display: block; margin-bottom: 0.5rem; color: var(--ink); }
.prose-toc ol { padding-left: 1.5rem; list-style: decimal; }
.prose-toc a { color: var(--navy); }
body.dark .prose-toc a { color: var(--navy-soft); }

/* ---------- 26. STAT BLOCKS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.stat {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stat-num { font-family: 'Bricolage Grotesque', serif; font-size: clamp(2rem, 3vw + 0.75rem, 2.75rem); font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 0.5rem; }
body.dark .stat-num { color: var(--navy-soft); }
.stat-label { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- 27. TEAM CARDS ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team-img {
  aspect-ratio: 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 1.25rem 1.375rem 1.5rem; }
.team-name { font-size: var(--fs-lg); font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.team-role { font-size: var(--fs-sm); color: var(--green-deep); font-weight: 500; margin-bottom: 0.625rem; }
body.dark .team-role { color: var(--green); }
.team-bio { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- 28. WHATSAPP FAB ---------- */
.wa-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 60;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-fab:hover { transform: scale(1.08) rotate(-4deg); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55); }
.wa-fab::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  z-index: -1;
  animation: pulse-wa 2.5s infinite;
}
@keyframes pulse-wa {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wa-fab svg { width: 28px; height: 28px; }
@media (max-width: 768px) {
  .wa-fab { width: 54px; height: 54px; bottom: 1rem; right: 1rem; }
  .wa-fab svg { width: 24px; height: 24px; }
}

/* ---------- 29. ANIMATIONS ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
.reveal.d5 { animation-delay: 0.40s; }
.reveal.d6 { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 30. UTILITIES ---------- */
.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; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.divider { height: 1px; background: var(--border); margin-block: 2rem; }

/* ---------- 31. HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(520px, 75vh, 820px);
  overflow: hidden;
  background: var(--navy-deep);
}

.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }

.slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s var(--ease);
}
.slide.active .slide-img { transform: scale(1); }

/* image overlay for legibility */
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,25,45,0.82) 0%,
    rgba(10,25,45,0.55) 55%,
    rgba(10,25,45,0.15) 100%
  );
}

.slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 5rem);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  max-width: 820px;
  transform: translateY(16px);
  opacity: 0;
  transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s;
}
.slide.active .slide-content { transform: translateY(0); opacity: 1; }

.slide-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.875rem;
  display: inline-flex; align-items: center; gap: 0.625rem;
}
.slide-eyebrow::before {
  content: '';
  display: inline-block; width: 28px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.slide-content h1 {
  font-size: clamp(2rem, 3.5vw + 0.75rem, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  color: #FFF;
  margin-bottom: 1.125rem;
  max-width: 720px;
}

.slide-content p {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.1875rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 1.75rem;
}

.slide-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* slider controls */
.slider-controls {
  position: absolute; bottom: 2rem; right: clamp(1.25rem, 4vw, 5rem);
  display: flex; align-items: center; gap: 0.5rem;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background .3s, width .3s, border-radius .3s;
  cursor: pointer;
}
.slider-dot.active { width: 28px; background: #FFF; border-radius: 4px; }

/* slider progress bar */
.slider-bar {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--green);
  transition: width linear;
  z-index: 10;
}

/* slider nav arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #FFF;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.4); }
.slider-arrow.prev { left: clamp(0.75rem, 2vw, 2rem); }
.slider-arrow.next { right: clamp(0.75rem, 2vw, 2rem); }

@media (max-width: 640px) {
  .slider-arrow { display: none; }
  .slider-controls { bottom: 1.25rem; right: 1.25rem; }
}

/* ---------- 32. BRAND TEXT NEXT TO LOGO ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
body.dark .brand-name { color: var(--navy-soft); }
.brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.brand img { height: 56px; width: auto; }
@media (max-width: 768px) {
  .brand img { height: 42px; }
  .brand-name { font-size: 0.9375rem; }
  .brand-sub { font-size: 0.55rem; }
}

/* ---------- 33. B2B SERVICES BAND ---------- */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 1024px) { .b2b-grid { grid-template-columns: repeat(4, 1fr); } }

.b2b {
  position: relative;
  padding: 1.75rem 1.625rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.b2b:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.b2b-navy { background: var(--navy); color: #FFF; }
.b2b-navy-soft { background: var(--navy-soft); color: #FFF; }
.b2b-green { background: var(--green-deep); color: #FFF; }
.b2b-dark { background: var(--navy-deep); color: #FFF; }

.b2b::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}
.b2b-icon { margin-bottom: 1.125rem; }
.b2b h4 { font-size: var(--fs-lg); color: #FFF; margin-bottom: 0.625rem; }
.b2b p { font-size: var(--fs-sm); color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 1rem; }
.b2b-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-sm); font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color .2s, gap .2s;
}
.b2b-link:hover { border-color: rgba(255,255,255,0.8); gap: 0.6rem; }

/* ---------- 34. SECOND SLIDER (B2B, bottom of page) ---------- */
.hero-slider-b2b {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vh, 680px);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-slider-b2b .slide-overlay {
  background: linear-gradient(
    105deg,
    rgba(15,45,74,0.88) 0%,
    rgba(15,45,74,0.65) 55%,
    rgba(79,138,61,0.25) 100%
  );
}
.hero-slider-b2b .slide-eyebrow { color: var(--green); }
.hero-slider-b2b .slider-dot.active { background: var(--green); }
.hero-slider-b2b .slider-bar { background: var(--green); }
.hero-slider-b2b .slider-controls { bottom: 1.75rem; right: clamp(1.25rem, 4vw, 5rem); }
