/* ==========================================================================
   Ricker Pharmacy — Design System
   Palette drawn from logo: deep green, sky blue, red accent
   ========================================================================== */

:root {
  --green-900: #1f4a3a;
  --green-800: #256b4c;
  --green-700: #2d7a56;
  --green-600: #3a9367;
  --green-100: #e7f4ec;
  --blue-600: #1c8fc9;
  --blue-500: #29a9e0;
  --blue-100: #e6f6fd;
  --red-600: #d32f3f;
  --red-500: #e6485a;
  --ink-900: #1a2420;
  --ink-700: #3c4a44;
  --ink-500: #6b7873;
  --paper: #ffffff;
  --paper-soft: #f6faf8;
  --border: #e1ebe5;

  --shadow-sm: 0 2px 8px rgba(20, 40, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 40, 30, 0.12);
  --shadow-lg: 0 20px 48px rgba(20, 40, 30, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-700); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--red-500);
  display: inline-block;
}

.section { padding: 88px 0; }
.section--soft { background: var(--paper-soft); }
.section--tight { padding: 56px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head p { color: var(--ink-500); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-800); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn--accent {
  background: var(--red-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background: #b8283a; transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-700);
}
.btn--outline:hover { background: var(--green-700); color: #fff; transform: translateY(-3px); }

.btn--ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost-light:hover { background: #fff; color: var(--green-800); transform: translateY(-3px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 58px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links > li { position: relative; }
.nav__links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-900);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__links > li > a:hover,
.nav__links > li.is-open > a { background: var(--green-100); color: var(--green-800); }
.nav__links > li > a.active { color: var(--green-800); background: var(--green-100); }
.nav__links > li > a svg { width: 10px; height: 10px; transition: transform 0.2s var(--ease); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s var(--ease);
}
.nav__links > li:hover .nav__dropdown,
.nav__links > li.is-open .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
}
.nav__dropdown a:hover { background: var(--green-100); color: var(--green-800); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__mobile-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-800);
  white-space: nowrap;
  background: var(--blue-100);
  padding: 9px 14px;
  border-radius: 999px;
  flex-shrink: 0;
}
.nav__mobile-phone svg { width: 16px; height: 16px; color: var(--blue-600); flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.nav__toggle::before { transform: translateY(-6px); }
.nav__toggle::after { transform: translateY(6px); }
.nav__toggle.is-active span { background: transparent; }
.nav__toggle.is-active::before { transform: rotate(45deg); }
.nav__toggle.is-active::after { transform: rotate(-45deg); }

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 960px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile-phone { display: flex; margin-left: auto; }
  .nav {
    padding-left: 4px;
    padding-right: 4px;
    gap: 14px;
  }
  .nav__brand { flex-shrink: 0; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: #fff;
    padding: 100px 20px 40px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
    overflow-y: auto;
    animation: slideIn 0.32s var(--ease);
    z-index: 400;
  }
  .nav__links.is-open > li > a { padding: 14px 16px; }
  .nav__dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    display: none;
    padding-left: 12px;
  }
  .nav__links.is-open > li.is-open .nav__dropdown { display: block; }
  .nav__brand img { height: 46px; }
}

@media (max-width: 400px) {
  .nav__mobile-phone span { display: none; }
  .nav__mobile-phone { padding: 9px 12px; }
}

@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 30, 22, 0.45);
  z-index: 350;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(41,169,224,0.30), transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(230,72,90,0.18), transparent 40%),
    linear-gradient(120deg, var(--green-900), var(--green-800) 55%, var(--green-700));
  background-size: 100% 100%, 100% 100%, 200% 200%;
  animation: hero-mesh 16s ease-in-out infinite;
}
@keyframes hero-mesh {
  0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 0% 0%, 0% 0%, 100% 100%; }
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 48px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero__content { max-width: 620px; color: #fff; }
.hero__content .eyebrow { color: #a7e6ff; }
.hero__content .eyebrow::before { background: var(--red-500); }
.hero h1 { color: #fff; }
.hero h1 .text-shine {
  background: linear-gradient(100deg, #7fe0b0 20%, #d6fbe6 40%, #7fe0b0 60%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine {
  to { background-position: -220% center; }
}
.hero__sub { color: rgba(255,255,255,0.86); font-size: 1.12rem; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--lg svg { width: 18px; height: 18px; }
.btn--accent.btn--lg {
  box-shadow: 0 10px 30px rgba(211,47,63,0.4);
  animation: pulse-glow 2.6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(211,47,63,0.4); }
  50% { box-shadow: 0 10px 38px rgba(211,47,63,0.6); }
}

/* ---- Trust strip ---- */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.hero__trust-avatars { display: flex; }
.hero__trust-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--green-900);
  background: linear-gradient(135deg, #bdf3d4, #d7f0ff);
  border: 3px solid var(--green-900);
  margin-left: -14px;
}
.hero__trust-avatar:first-child { margin-left: 0; }
.hero__trust-text { display: flex; flex-direction: column; }
.hero__trust-text strong { color: #fff; font-size: 0.95rem; }
.hero__trust-text span { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* ---- Hero visual: photo card + floating info cards ---- */
.hero__visual { position: relative; }
.hero__photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(10,30,20,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  aspect-ratio: 4/4.6;
  max-width: 460px;
  margin: 0 auto;
}
.hero__photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  animation: photo-zoom 12s ease-in-out infinite alternate;
}
@keyframes photo-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero__photo-glow {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(10,40,28,0.55));
  pointer-events: none;
}

.hero__float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 16px 34px rgba(10,30,20,0.28);
  animation: card-float 5s ease-in-out infinite;
  max-width: 240px;
}
.hero__float-card strong { display: block; color: var(--green-900); font-size: 0.92rem; font-family: var(--font-head); }
.hero__float-card span { display: block; color: var(--ink-500); font-size: 0.76rem; }
.hero__float-card-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero__float-card-icon svg { width: 19px; height: 19px; }
.hero__float-card-icon--blue { background: var(--blue-100); color: var(--blue-600); }

.hero__float-card--top { top: -6%; left: -8%; animation-delay: 0.4s; }
.hero__float-card--bottom { bottom: 6%; right: -10%; animation-delay: 1.6s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---- Staggered hero entrance ---- */
.hero-in {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.9s var(--ease) forwards;
}
.hero-in--1 { animation-delay: 0.1s; }
.hero-in--2 { animation-delay: 0.35s; }
.hero-in--3 { animation-delay: 0.7s; }
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero .container { padding-top: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 24px; order: -1; max-width: 420px; margin-left: auto; margin-right: auto; }
  .hero__float-card { display: none; }
}
@media (max-width: 480px) {
  .hero__photo-card { aspect-ratio: 4/3.4; }
}

.hero__float {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
  animation: floaty 9s ease-in-out infinite;
}
.hero__float--1 { width: 140px; height: 140px; background: var(--blue-500); top: 12%; right: 12%; opacity: 0.28; animation-duration: 11s; }
.hero__float--2 { width: 90px; height: 90px; background: var(--red-500); bottom: 18%; right: 26%; opacity: 0.22; animation-duration: 8s; animation-delay: 1.2s; }
.hero__float--3 { width: 60px; height: 60px; background: #fff; top: 40%; right: 6%; opacity: 0.14; animation-duration: 7s; animation-delay: 0.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(10px); }
}

/* ---- Floating medicine icons ---- */
.med-float {
  position: absolute;
  z-index: 1;
  opacity: 0.6;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
  animation: med-drift 7s ease-in-out infinite;
  pointer-events: none;
}
.med-float__spin {
  width: 100%; height: 100%;
  animation: med-spin 14s linear infinite;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}
/* source <img> only supplies alt text for accessibility; the mask renders the shape */
.med-float__spin img { opacity: 0; width: 100%; height: 100%; display: block; }

.med-float--1 { width: 48px; height: 48px; top: 16%; left: 62%; color: #ffd9dd; animation-duration: 8s; }
.med-float--1 .med-float__spin { animation-duration: 16s; -webkit-mask-image: url('../images/icons/pharmacy-pills-icon.svg'); mask-image: url('../images/icons/pharmacy-pills-icon.svg'); }
.med-float--2 { width: 36px; height: 36px; top: 68%; left: 58%; color: #bdf3d4; animation-duration: 6.5s; animation-delay: 0.6s; }
.med-float--2 .med-float__spin { animation-duration: 12s; -webkit-mask-image: url('../images/icons/vaccine-icon.svg'); mask-image: url('../images/icons/vaccine-icon.svg'); }
.med-float--3 { width: 34px; height: 42px; top: 10%; left: 82%; color: #d7f0ff; animation-duration: 9s; animation-delay: 1.4s; }
.med-float--3 .med-float__spin { animation-duration: 18s; -webkit-mask-image: url('../images/icons/homeopathic-medicine-icon.svg'); mask-image: url('../images/icons/homeopathic-medicine-icon.svg'); }
.med-float--4 { width: 40px; height: 40px; top: 78%; left: 78%; color: #ffe6b3; animation-duration: 7.5s; animation-delay: 0.9s; }
.med-float--4 .med-float__spin { animation-duration: 15s; -webkit-mask-image: url('../images/icons/stethoscope-icon.svg'); mask-image: url('../images/icons/stethoscope-icon.svg'); }
.med-float--5 { width: 32px; height: 32px; top: 42%; left: 90%; color: #ffffff; animation-duration: 5.5s; animation-delay: 0.3s; }
.med-float--5 .med-float__spin { animation-duration: 10s; -webkit-mask-image: url('../images/icons/healthcare-icon.svg'); mask-image: url('../images/icons/healthcare-icon.svg'); }
.med-float--6 { width: 42px; height: 42px; top: 34%; left: 70%; color: #ffd9dd; animation-duration: 8.5s; animation-delay: 1.8s; }
.med-float--6 .med-float__spin { animation-duration: 17s; -webkit-mask-image: url('../images/icons/vaccination-icon.svg'); mask-image: url('../images/icons/vaccination-icon.svg'); }

@keyframes med-drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-22px) translateX(12px); }
}
@keyframes med-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
  .med-float--3, .med-float--4, .med-float--5 { display: none; }
}
@media (max-width: 760px) {
  .med-float { opacity: 0.35; }
  .med-float--1 { left: 72%; top: 8%; }
  .med-float--2 { left: 78%; top: 70%; }
  .med-float--6 { display: none; }
}

.hero__badge {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hero__badge-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  backdrop-filter: blur(6px);
  color: #fff;
}
.hero__badge-item strong { display: block; font-size: 1.5rem; font-family: var(--font-head); color: #7fe0b0; }
.hero__badge-item span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

@media (max-width: 760px) {
  .hero { min-height: auto; padding: 40px 0; }
  .hero__badge { grid-template-columns: 1fr; margin-top: 36px; }
}

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--fade { transform: none; }
.reveal--left { transform: translateX(-36px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--right { transform: translateX(36px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--scale { transform: scale(0.92); }
.reveal--scale.is-visible { transform: scale(1); }

.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   Action Cards (Refill / Transfer / Talk to pharmacist)
   ========================================================================== */
.action-cards {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}
.action-cards .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.action-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-top: 4px solid var(--green-700);
}
.action-card:nth-child(2) { border-top-color: var(--blue-600); }
.action-card:nth-child(3) { border-top-color: var(--red-600); }
.action-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(20,40,30,0.2); }
.action-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
  color: var(--green-700);
}
.action-card:nth-child(2) .action-card__icon { background: var(--blue-100); color: var(--blue-600); }
.action-card:nth-child(3) .action-card__icon { background: #fdeaec; color: var(--red-600); }
.action-card__icon svg { width: 28px; height: 28px; }
.action-card h3 { margin-bottom: 4px; }
.action-card p { font-size: 0.92rem; margin-bottom: 6px; }
.action-card__link { font-weight: 700; font-size: 0.88rem; color: var(--green-800); display: inline-flex; align-items: center; gap: 6px; }
.action-card__link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.action-card:hover .action-card__link svg { transform: translateX(4px); }

@media (max-width: 860px) {
  .action-cards { margin-top: 32px; }
  .action-cards .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Split section (about / image + text)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.split__media-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--green-800);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.split__media-badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.split__media-badge span { font-size: 0.8rem; color: rgba(255,255,255,0.8); }

.checklist { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-900); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green-700); margin-top: 2px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .split__media img { height: 300px; }
  .split__media-badge { left: 12px; bottom: -18px; padding: 14px 18px; }
}

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 30px; height: 30px; }

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

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  background: var(--green-900);
  color: #fff;
  padding: 56px 0;
}
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats__item strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: #7fe0b0; }
.stats__item span { font-size: 0.88rem; color: rgba(255,255,255,0.78); }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Testimonial / quote
   ========================================================================== */
.quote-block {
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  text-align: center;
}
.quote-block svg { width: 42px; height: 42px; color: var(--blue-600); margin-bottom: 16px; }
.quote-block p { font-size: 1.25rem; font-family: var(--font-head); color: var(--ink-900); font-weight: 500; max-width: 780px; margin: 0 auto 16px; }
.quote-block span { color: var(--ink-500); font-weight: 600; font-size: 0.9rem; }

/* ==========================================================================
   Team cards
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid var(--border);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card__photo {
  height: 220px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
  position: relative;
  overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__photo svg { width: 64px; height: 64px; }
.team-card__body { padding: 22px 20px; }
.team-card__body h3 { margin-bottom: 2px; }
.team-card__role { color: var(--blue-600); font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.team-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.team-card__tags span {
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(115deg, var(--green-800), var(--blue-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute; width: 260px; height: 260px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  right: -80px; top: -100px;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-banner__actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

@media (max-width: 760px) {
  .cta-banner { padding: 36px 28px; text-align: center; justify-content: center; }
  .cta-banner__actions { justify-content: center; }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(41,169,224,0.28), transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   Accordion (FAQ / HIPAA / MTM)
   ========================================================================== */
.accordion { display: grid; gap: 14px; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.accordion-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--green-900);
  text-align: left;
}
.accordion-item__head svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--blue-600); }
.accordion-item.is-open .accordion-item__head svg { transform: rotate(180deg); }
.accordion-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  padding: 0 22px;
}
.accordion-item.is-open .accordion-item__body { padding-bottom: 20px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.gallery-filter button {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  color: var(--ink-700);
}
.gallery-filter button.is-active,
.gallery-filter button:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,50,38,0.75), transparent 60%);
  display: flex; align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span { color: #fff; font-weight: 600; font-size: 0.9rem; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,20,15,0.92);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(900px, 92vw); max-height: 82vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.88rem; color: var(--ink-900); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  background: var(--paper-soft);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(41,169,224,0.15);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
}

.form-note {
  display: flex; gap: 10px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--ink-700);
  margin-bottom: 20px;
}
.form-note svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; }

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--green-900);
  color: #fff;
  padding: 16px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.4s var(--ease);
  display: flex; align-items: center; gap: 10px;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; color: #7fe0b0; }

/* ==========================================================================
   Info tiles (contact page / hours / location)
   ========================================================================== */
.info-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.info-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.info-tile__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.info-tile__icon svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .info-tiles { grid-template-columns: 1fr; } }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ==========================================================================
   Language pills / list icons
   ========================================================================== */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.78);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 52px; margin-bottom: 16px; filter: brightness(1.1); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { background: var(--blue-500); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col .contact-line { display: flex; gap: 10px; font-size: 0.9rem; align-items: flex-start; }
.footer-col .contact-line svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--blue-500); }

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  z-index: 400;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-600); }
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .back-to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; opacity: 0.9; }
  .back-to-top.is-visible { opacity: 0.9; }
  .back-to-top svg { width: 17px; height: 17px; }
}

.page-loader {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.page-loader img { width: 72px; animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.7; }
}
