/* build-ref: AMAAN-YASIR-2026-05-11 — Amaan copy given to Yasir */
/* ==========================================================================
   MEDITIME PVT LTD — GLOBAL STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-gray-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS (CSS VARIABLES)
   -------------------------------------------------------------------------- */
:root {
  /* Refined premium healthcare palette — navy authority, sage green warmth, red sparingly.
     Cooler ivory backgrounds, softer shadows, generous radii for luxury feel. */
  --color-primary: #0E1F36;        /* Deep navy — structural authority, slightly deeper */
  --color-primary-soft: #1F3A5F;   /* Mid navy for layering */
  --color-primary-tint: #E8EEF5;   /* Pale navy tint for soft fills */

  --color-green: #2F7A4A;          /* Refined sage-leaning green — premium feel */
  --color-green-light: #3D9259;    /* Lighter green for hovers */
  --color-green-deep: #1F5A33;     /* Deeper green for restrained moments */
  --color-green-soft: rgba(47, 122, 74, 0.08);
  --color-green-tint: #EDF4EF;     /* Pale green wash */

  --color-teal: #2FB7A8;           /* Supporting teal (legacy — directory tab indicator only) */
  --color-red: #A0252B;            /* Brand red — deeper, more premium */
  --color-red-light: #B73A40;      /* Lighter red for hovers/secondary */
  --color-red-soft: rgba(160, 37, 43, 0.08);

  --color-white: #FFFFFF;
  --color-bg: #FAFAF7;             /* Warm ivory — section backgrounds, calming */
  --color-bg-cool: #F4F6F8;        /* Cooler alternate */
  --color-surface: #FFFFFF;        /* Cards always pure white */

  --color-dark-text: #0E1F36;      /* Dark navy near-black for headings */
  --color-text: #0E1F36;
  --color-gray-text: #4F5B6B;      /* Refined cool gray body text */
  --color-gray-soft: #8896A6;      /* Lighter gray for captions */
  --color-border: #E6E9EE;         /* Cool light borders */
  --color-border-soft: #EFF1F4;
  --color-card-shadow: rgba(14, 31, 54, 0.06);
  --color-ocean: #EEF2F6;          /* Map background — neutral light */

  /* Border radius — slightly more generous */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-pill: 100px;

  /* Shadows — softer, longer, more premium */
  --shadow-xs: 0 1px 2px rgba(14, 31, 54, 0.04);
  --shadow-card: 0 2px 8px rgba(14, 31, 54, 0.04), 0 12px 32px rgba(14, 31, 54, 0.06);
  --shadow-hover: 0 4px 14px rgba(14, 31, 54, 0.06), 0 24px 56px rgba(14, 31, 54, 0.10);
  --shadow-nav: 0 1px 0 rgba(14, 31, 54, 0.04), 0 8px 30px rgba(14, 31, 54, 0.06);
  --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 32px rgba(14, 31, 54, 0.08);

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Layout */
  --container-max: 1240px;
  --nav-height: 76px;
  --nav-height-tall: 96px;   /* Expanded state at top of page */

  /* Easing */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-dark-text);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-text);
  text-wrap: pretty;
}

.text-lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--color-gray-text);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Body emphasis picks up brand navy — subtle ambient brand presence in copy */
p strong, li strong, td strong {
  color: var(--color-primary);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 18px 9px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green-light);
  box-shadow: 0 0 0 4px rgba(61, 146, 89, 0.18);
}
.eyebrow .emoji { display: none; }

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section {
  padding: var(--space-7) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

.section-header h2 {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.section-header .eyebrow-text {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 14px;
}

.section-header h2::after {
  content: none;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-gray-text);
  max-width: 620px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--color-bg);
}

.bg-white {
  background-color: var(--color-white);
}

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary p {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out-soft), background-color 0.3s var(--ease-out-soft), color 0.3s var(--ease-out-soft), box-shadow 0.4s var(--ease-out-soft), border-color 0.3s var(--ease-out-soft);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(14, 31, 54, 0.18), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  background: #1a3050;
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(14, 31, 54, 0.22), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(14, 31, 54, 0.22);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-block {
  width: 100%;
  padding: 16px 30px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   6. NAVIGATION — scroll-reactive header (large translucent → glass sticky)
   Driven by CSS custom property --scroll-progress (0 → 1), set from JS.
   -------------------------------------------------------------------------- */
nav {
  --scroll-progress: 0;
  --nav-bg-alpha: calc(var(--scroll-progress) * 0.88);
  --nav-shadow-alpha: calc(var(--scroll-progress) * 0.08);
  --nav-blur: calc(var(--scroll-progress) * 18px);
  --logo-height: calc(64px - 24px * var(--scroll-progress));
  --nav-h: calc(var(--nav-height-tall) - (var(--nav-height-tall) - var(--nav-height)) * var(--scroll-progress));
  --link-color: rgb(
    calc(255 - 241 * var(--scroll-progress)),
    calc(255 - 224 * var(--scroll-progress)),
    calc(255 - 201 * var(--scroll-progress))
  );

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, var(--nav-bg-alpha));
  backdrop-filter: blur(var(--nav-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(140%);
  box-shadow:
    0 1px 0 rgba(14, 31, 54, calc(var(--scroll-progress) * 0.06)),
    0 12px 36px rgba(14, 31, 54, var(--nav-shadow-alpha));
  transition: height 0.5s var(--ease-out-soft);
}

/* Hairline highlight on glass bar */
nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(14, 31, 54, calc(var(--scroll-progress) * 0.06)) 20%,
    rgba(14, 31, 54, calc(var(--scroll-progress) * 0.06)) 80%,
    transparent);
  pointer-events: none;
}

/* Inner-page hero-compact: nav should appear glass earlier since hero is short */
body.inner-page nav {
  --scroll-progress: max(var(--scroll-progress, 0), 0.15);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-soft);
}

.nav-logo:hover { transform: scale(1.02); }

.nav-logo-img {
  height: var(--logo-height);
  width: auto;
  display: block;
  transition: height 0.5s var(--ease-out-soft), filter 0.4s var(--ease-out-soft);
  filter: drop-shadow(0 2px 8px rgba(14, 31, 54, calc(0.18 - var(--scroll-progress) * 0.14)));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  color: var(--link-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.25s var(--ease-out-soft), opacity 0.25s var(--ease-out-soft);
  opacity: 0.92;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out-soft);
  opacity: 0.6;
}

.nav-links a:hover { opacity: 1; color: var(--link-color); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active {
  color: var(--link-color);
  opacity: 1;
  font-weight: 600;
}

.nav-links a.active::after {
  transform: scaleX(1);
  background: var(--color-green);
  height: 2px;
  opacity: 1;
  width: 18px;
  left: 50%;
  right: auto;
  margin-left: -9px;
  bottom: -2px;
}

.nav-cta {
  /* Default: white text always — readable over both hero (transparent bg) and scrolled state (navy bg). */
  background: rgba(14, 31, 54, calc(var(--scroll-progress) * 1));
  color: var(--color-white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.003em;
  border: 1px solid rgba(255, 255, 255, calc(0.7 - var(--scroll-progress) * 0.7));
  transition: transform 0.4s var(--ease-out-soft), background-color 0.3s var(--ease-out-soft), box-shadow 0.3s var(--ease-out-soft), color 0.3s var(--ease-out-soft), border-color 0.3s var(--ease-out-soft);
  box-shadow: 0 4px 14px rgba(14, 31, 54, calc(var(--scroll-progress) * 0.18));
}

.nav-cta:hover {
  transform: translateY(-1px);
  color: var(--color-white);
  background: var(--color-green-deep);
  border-color: var(--color-green-deep);
  box-shadow: 0 8px 22px rgba(31, 90, 51, 0.32);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, calc(var(--scroll-progress) * 0.6));
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-out-soft);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--link-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 38, 63, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  visibility: hidden;
}

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

.mobile-menu a {
  color: var(--color-white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a.active {
  color: var(--color-teal);
}

.close-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease;
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   7. HERO SECTIONS
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height-tall) + var(--space-5)) var(--space-3) var(--space-7);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(20, 38, 63, 0.85) 0%, rgba(20, 38, 63, 0.32) 100%),
    linear-gradient(135deg, #14263F 0%, #284E7A 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(20, 38, 63, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(20, 38, 63, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.20);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-content h1 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.hero-content h1::after { content: none; }

.hero-content .text-lead {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  font-size: 1.1875rem;
  max-width: 620px;
  margin: 0 auto var(--space-5);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-white);
  opacity: 0.7;
}

.scroll-indicator-chevron {
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: bounce-chevron 2s infinite;
}

@keyframes bounce-chevron {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* Compact heroes for sub-pages */
.hero-compact {
  min-height: 360px;
  height: 360px;
  background: var(--color-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height-tall);
  overflow: hidden;
}

.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(20, 38, 63, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(20, 38, 63, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.hero-compact-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 var(--space-3);
}

.hero-compact h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: var(--space-2);
}

.hero-compact p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out-soft), box-shadow 0.5s var(--ease-out-soft), border-color 0.5s var(--ease-out-soft);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border);
}

.card-icon {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-green-tint);
  color: var(--color-green-deep);
  border-radius: 14px;
  border: 1px solid rgba(47, 122, 74, 0.12);
}

.card h3 {
  color: var(--color-dark-text);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.card p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--color-gray-text);
}

.card-accent-left {
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   9. STATS BAR (HOMEPAGE)
   -------------------------------------------------------------------------- */
.stats-section {
  background: var(--color-primary);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(20, 38, 63, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(20, 38, 63, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.stat-item {
  padding: var(--space-3) var(--space-2);
}

.stat-number {
  font-family: 'Instrument Serif', 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

/* Headline emphasis stat — picks up brand green for accent */
.stat-number-emphasis {
  color: #7BD49A;
  position: relative;
  display: inline-block;
  font-style: italic;
}

.stat-number-emphasis::after { content: none; }

.stat-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* --------------------------------------------------------------------------
   10. SERVICE / FEATURE GRIDS
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

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

.network-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out-soft), box-shadow 0.5s var(--ease-out-soft);
  position: relative;
  overflow: hidden;
}

.network-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 36px;
  height: 3px;
  background: var(--color-green);
  border-radius: 0 0 4px 0;
}

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

.network-card-count {
  font-family: 'Instrument Serif', 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.network-card h4 {
  color: var(--color-dark-text);
  margin-bottom: var(--space-1);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.network-card p {
  font-size: 0.9375rem;
  margin: 0;
}

.network-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  color: var(--color-teal);
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.25s ease;
}

.network-link:hover {
  gap: 12px;
}

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

.feature-tile {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out-soft), box-shadow 0.5s var(--ease-out-soft);
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-green-tint);
  color: var(--color-green-deep);
  border: 1px solid rgba(47, 122, 74, 0.12);
  border-radius: 12px;
  margin-bottom: var(--space-3);
}

.feature-tile h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark-text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-tile p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   11. BRAND MARQUEE
   -------------------------------------------------------------------------- */
.brand-marquee {
  position: relative;
  overflow: hidden;
  padding: var(--space-3) 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-3);
  animation: marquee-scroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.brand-card {
  flex-shrink: 0;
  width: 180px;
  height: 90px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(20, 38, 63, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--space-2))); }
}

/* --------------------------------------------------------------------------
   12. CTA BANNER
   -------------------------------------------------------------------------- */
/* Outer section is a full-bleed ivory band so no white shows around the rounded pill.
   The navy gradient pill itself sits on .cta-banner-content. */
.cta-banner {
  background: var(--color-bg);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-6) var(--space-3);
  position: relative;
  overflow: visible;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(135deg, var(--color-primary) 0%, #16294a 50%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-4);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(14, 31, 54, 0.18);
  overflow: hidden;
}

.cta-banner-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(47, 122, 74, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(160, 37, 43, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.cta-banner-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
  margin-bottom: var(--space-4);
}

.cta-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cta-banner .btn-primary:hover {
  background: #f4f6f8;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-7) 0 var(--space-3);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(47, 122, 74, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-col h4 {
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: var(--space-1);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--color-teal);
}

.footer-logo .footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-3);
  font-family: 'Instrument Serif', 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.footer-meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-3);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   14. PAGE: LOCATIONS
   -------------------------------------------------------------------------- */
.locations-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.locations-text h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.locations-text p {
  margin-bottom: var(--space-3);
  font-size: 1.0313rem;
  line-height: 1.75;
}

.location-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.location-stat-box {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.location-stat-box .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 64px;
}

.location-stat-box .label {
  font-size: 0.9375rem;
  color: var(--color-gray-text);
  font-weight: 500;
}

.expansion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: var(--space-3);
}

/* SVG Map */
.map-container {
  background: var(--color-ocean);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.map-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(20, 38, 63, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(20, 38, 63, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.maldives-map {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(20, 38, 63, 0.08);
  position: relative;
  z-index: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-gray-text);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.owned { background: var(--color-green); }
.legend-dot.affiliated { background: var(--color-teal); }
.legend-dot.hub { background: var(--color-red); }
.legend-dot.retail {
  background: transparent;
  border: 2px solid var(--color-gray-text);
  border-radius: 3px;
}

/* Map pins — color-coded by ownership status */
.map-pin-group {
  cursor: pointer;
}

.map-pin {
  fill: var(--color-green);
  stroke: var(--color-white);
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse-pin 2.5s ease-in-out infinite;
}

/* Affiliated outlet pins — supporting teal */
.map-pin-group.affiliated .map-pin {
  fill: var(--color-teal);
}

/* Male' region hub — red emphasis (most important pin) */
.map-pin-group.hub .map-pin {
  fill: var(--color-red);
}

.map-pin-pulse {
  fill: var(--color-green);
  opacity: 0.4;
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse-pin-ring 2.5s ease-out infinite;
}

.map-pin-group.affiliated .map-pin-pulse {
  fill: var(--color-teal);
}

.map-pin-group.hub .map-pin-pulse {
  fill: var(--color-red);
}

/* Non-pharmacy retail marker — outlined square, no pulse, neutral color */
.map-pin-retail {
  fill: var(--color-white);
  stroke: var(--color-gray-text);
  stroke-width: 2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.map-pin-group.retail {
  cursor: pointer;
}

.map-pin-group.retail:hover .map-pin-retail {
  stroke: var(--color-primary);
  transform: translateY(-1px);
  transform-origin: center;
  transform-box: fill-box;
}

.map-pin-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: var(--color-primary);
  pointer-events: none;
}

.map-pin-count-bg {
  fill: var(--color-primary);
}

.map-pin-count-text {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  fill: var(--color-white);
  text-anchor: middle;
  dominant-baseline: central;
}

@keyframes pulse-pin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pulse-pin-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Map tooltip */
.map-tooltip {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(20, 38, 63, 0.18);
  min-width: 220px;
  max-width: 280px;
  z-index: 10;
  opacity: 0;
  transform: scale(0.95) translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

.map-tooltip.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.tooltip-header {
  background: var(--color-green);
  color: var(--color-white);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.tooltip-header.affiliated {
  background: var(--color-teal);
}

.tooltip-header.hub {
  background: var(--color-red);
}

.tooltip-header.retail {
  background: var(--color-primary-soft);
}

.tooltip-header .atoll {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

.tooltip-body {
  padding: 12px 14px;
}

.tooltip-count {
  font-size: 0.75rem;
  color: var(--color-gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 6px;
}

.tooltip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tooltip-list li {
  font-size: 0.8125rem;
  color: var(--color-dark-text);
  padding: 3px 0;
  line-height: 1.4;
}

.tooltip-list li::before {
  content: '•';
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 6px;
}

/* Outlet directory tabs */
.directory-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.directory-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gray-text);
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-teal);
}

.tab-content {
  display: none;
  animation: tab-fade 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-content.active {
  display: block;
}

@keyframes tab-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.outlet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.outlet-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.outlet-table th {
  padding: 14px 18px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outlet-table td {
  padding: 14px 18px;
  font-size: 0.9375rem;
  color: var(--color-dark-text);
  border-bottom: 1px solid var(--color-border);
}

.outlet-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}

.outlet-table tbody tr:last-child td {
  border-bottom: none;
}

.outlet-table tbody tr {
  transition: background-color 0.2s ease;
}

.outlet-table tbody tr:hover {
  background: rgba(20, 38, 63, 0.06);
}

.outlet-table .num-cell {
  width: 60px;
  font-weight: 600;
  color: var(--color-teal);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

/* Expansion banner */
.expansion-banner {
  background: var(--color-bg);
  text-align: center;
  padding: var(--space-7) var(--space-3);
  position: relative;
  overflow: hidden;
}

.expansion-banner-card {
  background: var(--color-white);
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-green);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

.expansion-banner-card h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.expansion-banner-card p {
  color: var(--color-gray-text);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.expansion-banner-card strong {
  color: var(--color-red);
}

.expansion-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(20, 38, 63, 0.025) 60px,
      rgba(20, 38, 63, 0.025) 61px
    );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   15. PAGE: ABOUT
   -------------------------------------------------------------------------- */
.story-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
}

.story-image .img-placeholder {
  height: 460px;
  border-radius: var(--radius-lg);
}

.story-text h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.story-text p {
  margin-bottom: var(--space-3);
  font-size: 1.0313rem;
  line-height: 1.75;
}

.objective-section {
  position: relative;
  text-align: center;
}

.objective-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 var(--space-3);
}

.objective-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 12rem;
  font-weight: 900;
  color: var(--color-teal);
  opacity: 0.15;
  line-height: 0.8;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.objective-content > * {
  position: relative;
  z-index: 1;
}

.objective-content h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.objective-content blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--color-dark-text);
  line-height: 1.5;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto var(--space-5);
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.pillar {
  background: var(--color-white);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.pillar h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--color-dark-text);
  margin-bottom: 4px;
}

.pillar p {
  font-size: 0.875rem;
  margin: 0;
}

/* Leadership team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  text-align: center;
  border-top: 3px solid var(--color-teal);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-2);
  background: linear-gradient(135deg, #14263F 0%, #43A047 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.75rem;
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 16px rgba(20, 38, 63, 0.05);
}

.team-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.0313rem;
  font-weight: 600;
  color: var(--color-dark-text);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.8125rem;
  color: var(--color-gray-text);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Capabilities grid (about page — Built to Deliver section) */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.capability-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.capability-icon {
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(20, 38, 63, 0.05) 0%, rgba(20, 38, 63, 0.06) 100%);
  color: var(--color-green);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.capability-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1875rem;
  color: var(--color-dark-text);
  margin-bottom: var(--space-1);
  line-height: 1.25;
}

.capability-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Brand cards (about page) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.brand-grid-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.brand-logo-placeholder {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #e7f5f4 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  text-align: center;
  padding: 8px;
  line-height: 1.2;
}

.brand-grid-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark-text);
  margin-bottom: 2px;
}

.brand-grid-card .country {
  font-size: 0.75rem;
  color: var(--color-gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Vendor list */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1) var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.vendor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-dark-text);
}

.vendor-item .flag {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Reg details bar */
.reg-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) 0;
  text-align: center;
}

.reg-bar .container {
  text-align: center;
}

.reg-bar p,
.reg-bar p strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
  margin: 0;
  text-align: center;
}

.reg-bar p + p {
  margin-top: 4px;
  font-size: 0.8125rem;
  opacity: 0.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   16. PAGE: CONTACT
   -------------------------------------------------------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-info h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.contact-info > p {
  margin-bottom: var(--space-4);
  font-size: 1.0313rem;
  line-height: 1.75;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.contact-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(20, 38, 63, 0.04);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.contact-card-content .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-text);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card-content .detail {
  font-size: 0.9375rem;
  color: var(--color-dark-text);
  font-weight: 500;
}

.business-hours {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.business-hours h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.business-hours p {
  font-size: 0.875rem;
  margin: 0;
}

/* Contact form */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

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

.form-group label,
.form-row .form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--color-dark-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 38, 63, 0.2);
}

.form-group textarea {
  resize: vertical;
  font-family: 'Inter', sans-serif;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%231F3A5F' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Partnership invite */
.partnership-invite {
  text-align: center;
}

.partnership-invite h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.partnership-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 900px;
  margin: 0 auto;
}

.partnership-bullets li {
  background: var(--color-white);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-size: 0.9375rem;
  color: var(--color-dark-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.partnership-bullets .check {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   17. IMAGE PLACEHOLDERS
   -------------------------------------------------------------------------- */
.img-placeholder {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }
  .team-grid,
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-6) 0;
  }

  /* Hide desktop nav, show hamburger */
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero shorter */
  .hero {
    min-height: 88vh;
  }

  /* Stack layouts */
  .services-grid,
  .network-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: left;
  }

  .locations-split,
  .story-split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .pillars-row,
  .partnership-bullets {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .vendor-grid {
    grid-template-columns: 1fr;
  }

  .story-image .img-placeholder {
    height: 320px;
  }

  .objective-quote-mark {
    font-size: 8rem;
  }

  .contact-form-wrap {
    padding: var(--space-3);
  }

  .map-container {
    padding: var(--space-2);
  }

  .map-tooltip {
    min-width: 180px;
    max-width: 240px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  section {
    padding: var(--space-5) 0;
  }

  .container {
    padding: 0 var(--space-2);
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .stat-number {
    font-size: 2.25rem;
  }

  .nav-container {
    padding: 0 var(--space-2);
  }

  .nav-logo-img {
    height: 38px;
  }

  .team-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BRAND RIBBON — full-color floating logo strip (homepage + brands page)
   ========================================================================== */
.brand-ribbon-section {
  background: var(--color-white);
  overflow: hidden;
  padding: var(--space-7) 0;
}

.brand-ribbon-section .section-header {
  margin-bottom: var(--space-5);
}

.brand-ribbon {
  width: 100%;
  overflow: hidden;
  padding: 24px 0 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.brand-ribbon-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: meditime-logo-ribbon 42s linear infinite;
}

.brand-ribbon:hover .brand-ribbon-track {
  animation-play-state: paused;
}

.brand-logo-pill {
  width: 176px;
  height: 88px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out-soft), box-shadow 0.5s var(--ease-out-soft), border-color 0.5s var(--ease-out-soft);
}

.brand-logo-pill:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border);
}

.brand-logo-pill img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

@keyframes meditime-logo-ribbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .brand-logo-pill {
    width: 148px;
    height: 76px;
    padding: 10px 14px;
  }

  .brand-ribbon-track {
    gap: 16px;
    animation-duration: 36s;
  }
}

/* ==========================================================================
   BRANDS PAGE — premium logo grid + vendor list
   ========================================================================== */
.brand-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.brand-logo-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 38, 63, 0.3);
}

.brand-logo-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

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

@media (max-width: 768px) {
  .brand-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-logo-card {
    height: 110px;
    padding: 14px;
  }
  .brand-logo-card img {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .brand-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
}

/* ==========================================================================
   CONTACT FORM — WhatsApp helper text
   ========================================================================== */
.form-helper {
  font-size: 0.8125rem;
  color: var(--color-gray-text);
  text-align: center;
  margin-top: var(--space-2);
  line-height: 1.5;
}

.form-helper a {
  color: var(--color-green);
  font-weight: 500;
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  font-size: 1.1em;
  vertical-align: -0.1em;
}

/* Non-pharmacy retail tag — small distinguishing pill in the directory table */
.retail-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: rgba(20, 38, 63, 0.06);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   KEN BURNS — Cinematic photo animation system
   Pure CSS, GPU-accelerated (transform + opacity only).
   Two variants: hero (wide, landscape crop) and story (portrait, tighter crop).
   Each pair of images fades in/out in a 16s cycle, offset by 8s.
   ========================================================================== */

/* ── Shared container ───────────────────────────────────────────────────── */
.kb-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  border-radius: inherit;
}

.kb-layer {
  position: absolute;
  inset: -8%;          /* overshoot so the pan/zoom never reveals the edge */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  transform-origin: center center;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

/* ── Homepage hero — EXTERIOR photos (3-image cycle, 24s total) ─────────── */
/* Each image: visible ~12s, transitioning ~2s, hidden ~10s                  */
.kb-hero-1 {
  background-image: url('../images/photos/exterior-1.jpg');
  background-position: center 40%;
  animation:
    kb-pan-right   24s ease-in-out infinite,
    kb-fade-3-a    24s linear infinite;
  animation-delay: 0s, 0s;
}

.kb-hero-2 {
  background-image: url('../images/photos/exterior-2.jpg');
  background-position: center 35%;
  animation:
    kb-pan-left    24s ease-in-out infinite,
    kb-fade-3-b    24s linear infinite;
  animation-delay: 0s, 0s;
}

.kb-hero-3 {
  background-image: url('../images/photos/exterior-3.jpg');
  background-position: center 45%;
  animation:
    kb-zoom-in     24s ease-in-out infinite,
    kb-fade-3-c    24s linear infinite;
  animation-delay: 0s, 0s;
}

/* ── About story section — INTERIOR photos ──────────────────────────────── */
.kb-story-1 {
  background-image: url('../images/photos/interior-1.jpg');
  background-position: center 35%;  /* favour the counter + shelves area */
  animation:
    kb-pan-right 18s ease-in-out infinite,
    kb-fade-ab   18s linear infinite;
  animation-delay: 0s, 0s;
}

.kb-story-2 {
  background-image: url('../images/photos/interior-2.jpg');
  background-position: center 30%;
  animation:
    kb-zoom-in   18s ease-in-out infinite,
    kb-fade-ba   18s linear infinite;
  animation-delay: 0s, 0s;
}

/* ── Pan keyframes ───────────────────────────────────────────────────────── */
/* Gentle horizontal pan left-to-right with subtle zoom */
@keyframes kb-pan-right {
  0%   { transform: scale(1.0) translateX(-2%); }
  50%  { transform: scale(1.06) translateX(2%); }
  100% { transform: scale(1.0) translateX(-2%); }
}

/* Gentle horizontal pan right-to-left with subtle zoom */
@keyframes kb-pan-left {
  0%   { transform: scale(1.06) translateX(2%); }
  50%  { transform: scale(1.0) translateX(-2%); }
  100% { transform: scale(1.06) translateX(2%); }
}

/* Gentle zoom in only — variety for the second story image */
@keyframes kb-zoom-in {
  0%   { transform: scale(1.0) translateX(0%); }
  50%  { transform: scale(1.08) translateX(-1%); }
  100% { transform: scale(1.0) translateX(0%); }
}

/* ── Crossfade keyframes — 2-image cycle ────────────────────────────────── */
/* Image A: visible first half, hidden second half */
@keyframes kb-fade-ab {
  0%   { opacity: 1; }
  40%  { opacity: 1; }
  50%  { opacity: 0; }
  90%  { opacity: 0; }
  100% { opacity: 1; }
}

/* Image B: hidden first half, visible second half */
@keyframes kb-fade-ba {
  0%   { opacity: 0; }
  40%  { opacity: 0; }
  50%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Crossfade keyframes — 3-image cycle (each visible ~1/3 of 24s) ──────── */
@keyframes kb-fade-3-a {
  0%    { opacity: 1; }
  29%   { opacity: 1; }
  37%   { opacity: 0; }
  88%   { opacity: 0; }
  96%   { opacity: 1; }
  100%  { opacity: 1; }
}

@keyframes kb-fade-3-b {
  0%    { opacity: 0; }
  29%   { opacity: 0; }
  37%   { opacity: 1; }
  62%   { opacity: 1; }
  70%   { opacity: 0; }
  100%  { opacity: 0; }
}

@keyframes kb-fade-3-c {
  0%    { opacity: 0; }
  62%   { opacity: 0; }
  70%   { opacity: 1; }
  92%   { opacity: 1; }
  100%  { opacity: 0; }
}

/* ── Homepage hero container ─────────────────────────────────────────────── */
.hero-kb {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-kb-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(14, 31, 54, 0.55) 0%, rgba(14, 31, 54, 0.40) 50%, rgba(14, 31, 54, 0.72) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(14, 31, 54, 0.35) 100%);
}

/* ── About story cinematic container ─────────────────────────────────────── */
.cinematic-hero {
  position: relative;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  will-change: transform;
}

/* Dark overlay for the story section — subtler than hero */
.cinematic-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(20, 38, 63, 0.08) 0%,
    rgba(20, 38, 63, 0.28) 100%
  );
  border-radius: inherit;
}

/* ── Reduced motion — respect user preference ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .kb-layer {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) translate(0, 0) !important;
  }
  /* Show only the first image when motion is disabled */
  .kb-hero-2,
  .kb-hero-3,
  .kb-story-2 {
    opacity: 0 !important;
  }
}

/* ── Mobile: keep animation but reduce overshoot for smaller screens ──────── */
@media (max-width: 768px) {
  .kb-layer {
    inset: -4%;
  }
  .cinematic-hero {
    height: 320px;
  }
}
