/* ═══════════════════════════════════════════════════════════
   CARITAHUB — SHARED STYLESHEET
   Font: Lexend | Updated by: Claude
   To change any style, describe it to Claude in plain English
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Primary palette (from CaritaHub brand) */
  --navy:    #0C1B50;
  --blue:    #3B5DD4;
  --coral:   #E04540;
  --slate:   #404565;
  --green:   #10BF7A;

  /* Secondary palette */
  --sky:       #87BCE8;
  --mint:      #3ECFAC;
  --ice:       #DCF0F8;
  --gray:      #9091A4;
  --lavender:  #C8C6EA;
  --orange:    #F4920A;
  --yellow:    #FFD84A;

  /* UI / Neutral */
  --white:      #FFFFFF;
  --bg:         #F6F8FC;
  --bg-light:   #FAFBFE;
  --text:       #151A35;
  --text-mid:   #494B6B;
  --text-light: #9091A4;
  --border:     #E2E6F0;
  --border-light: #EEF1F8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(12,27,80,.05);
  --shadow-sm: 0 2px 8px rgba(12,27,80,.07);
  --shadow-md: 0 6px 24px rgba(12,27,80,.11);
  --shadow-lg: 0 16px 48px rgba(12,27,80,.15);

  /* Layout */
  --max-w:    1200px;
  --r-sm:     8px;
  --r-md:     12px;
  --r-lg:     20px;
  --r-xl:     28px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body  { font-family: 'Lexend', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: 'Lexend', sans-serif; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1 { font-size: clamp(1.875rem, 4vw, 3.125rem); font-weight: 700; line-height: 1.13; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem,   3vw, 2.25rem);  font-weight: 600; line-height: 1.22; letter-spacing: -.02em;  }
h3 { font-size: clamp(1.05rem,  2vw, 1.25rem);  font-weight: 600; line-height: 1.3;  letter-spacing: -.01em;  }
h4 { font-size: 1rem;  font-weight: 600; line-height: 1.4; }
p  { font-size: 1rem;  font-weight: 300; line-height: 1.75; color: var(--text-mid); }
.lead { font-size: 1.0625rem; font-weight: 300; line-height: 1.8; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section    { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.text-center { text-align: center; }
.hidden      { display: none !important; }

/* ── SECTION EYEBROW LABEL ───────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow-green { color: var(--green); }
.eyebrow-coral { color: var(--coral); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-sm);
  font-family: 'Lexend', sans-serif;
  font-size: .9375rem; font-weight: 400;
  transition: all .18s ease;
  white-space: nowrap; cursor: pointer;
}
.btn-primary  { background: var(--blue);  color: #fff; }
.btn-primary:hover  { background: #2f4fbe; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-coral    { background: var(--coral); color: #fff; }
.btn-coral:hover    { background: #cc3530; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark     { background: var(--navy);  color: #fff; }
.btn-dark:hover     { background: #091442; transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover  { background: var(--blue); color: #fff; }
.btn-ghost-white { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-white:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }
.btn-lg  { padding: 13px 30px; font-size: 1rem; }
.btn-sm  { padding: 7px 16px;  font-size: .8125rem; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.nav-logo-img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 11px;
  font-size: .85rem; font-weight: 400;
  color: var(--text-mid); border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--navy); background: var(--bg); }
.nav-link.active { color: var(--navy); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none; position: fixed;
  top: 66px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 199;
  padding: 20px 28px 32px;
  flex-direction: column; gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link { font-size: 1.05rem; padding: 12px 8px; border-bottom: 1px solid var(--border-light); border-radius: 0; }
.nav-drawer .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* ── IMAGE PLACEHOLDER ───────────────────────────────────── */
.img-ph {
  position: relative; width: 100%; overflow: hidden;
  background: linear-gradient(145deg, var(--ice) 0%, #eef2ff 55%, #e8edf8 100%);
  border-radius: var(--r-md);
  border: 2px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--text-light);
}
.img-ph .ph-icon  { opacity: .35; }
.img-ph .ph-label {
  font-size: .72rem; font-weight: 400; color: var(--text-light);
  background: rgba(255,255,255,.85); padding: 4px 12px;
  border-radius: 20px; border: 1px solid var(--border);
  text-align: center; max-width: 90%;
}
.img-ph-16x9 { aspect-ratio: 16 / 9; }
.img-ph-4x3  { aspect-ratio: 4  / 3; }
.img-ph-3x2  { aspect-ratio: 3  / 2; }
.img-ph-sq   { aspect-ratio: 1  / 1; }

/* Hero image placeholder on dark background */
.img-ph-dark {
  background: linear-gradient(145deg, rgba(255,255,255,.08) 0%, rgba(59,93,212,.15) 100%);
  border-color: rgba(255,255,255,.2);
}
.img-ph-dark .ph-label {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.6);
}

/* ── TAGS / PILLS ────────────────────────────────────────── */
.tag {
  display: inline-block; font-size: .68rem; font-weight: 500;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .04em;
  flex-shrink: 0;
}
.tag-sg      { background: #DCF0FA; color: #0B4C7C; }
.tag-id      { background: #FEF0DC; color: #7A4000; }
.tag-aac     { background: #D9F5EC; color: #085C3A; }
.tag-dc      { background: #EDE8F8; color: #4A2894; }
.tag-hc      { background: #FDECEC; color: #961818; }
.tag-ccms    { background: #E2EDF9; color: #0F4C9A; }
.tag-rc      { background: #FDF3E7; color: #7A4D12; }
.tag-live    { background: rgba(16,191,122,.12); color: var(--green); }
.tag-soon    { background: var(--bg); color: var(--text-light); }

/* ── HERO — HOME ─────────────────────────────────────────── */
.hero-home {
  background: linear-gradient(135deg, var(--navy) 0%, #1a306b 55%, var(--slate) 100%);
  position: relative; overflow: hidden;
  padding: 76px 0 0;
  color: white;
}
.hero-home::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 75% 50%, rgba(59,93,212,.28) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(16,191,122,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-home .container { position: relative; }
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  padding-bottom: 64px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em;
  color: var(--mint); border: 1px solid rgba(62,207,172,.35);
  background: rgba(62,207,172,.1);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 22px;
}
.hero-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.hero-home h1 { color: white; margin-bottom: 20px; }
.hero-home .lead { color: rgba(255,255,255,.78); max-width: 460px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img-wrap { position: relative; }
.hero-img-wrap .img-ph { box-shadow: var(--shadow-lg); }

/* ── HERO — SOLUTIONS ────────────────────────────────────── */
.hero-sol {
  background: linear-gradient(160deg, var(--navy) 0%, #1a306b 100%);
  color: white; padding: 80px 0; text-align: center;
}
.hero-sol h1 { color: white; max-width: 720px; margin: 0 auto 20px; }
.hero-sol .lead { color: rgba(255,255,255,.78); max-width: 580px; margin: 0 auto 32px; }

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar { background: white; border-bottom: 1px solid var(--border); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 16px 24px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num  { font-size: 2.25rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-lbl  { font-size: .8125rem; font-weight: 300; color: var(--text-light); }

/* ── MISSION ─────────────────────────────────────────────── */
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.mission-text h2 { color: var(--navy); margin-bottom: 18px; }
.mission-text p  { margin-bottom: 18px; }
.mission-text p:last-of-type { margin-bottom: 28px; }

/* ── REGION CARDS ────────────────────────────────────────── */
.regions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.region-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.region-card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.region-card-body { padding: 24px 24px 28px; }
.region-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.region-flag { font-size: 2.2rem; margin-bottom: 14px; line-height: 1; }
.region-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.region-status.live {
  background: rgba(16,191,122,.1); color: var(--green);
}
.region-status.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.region-status.soon { background: var(--bg); color: var(--text-light); }
.region-card h3 { color: var(--navy); margin-bottom: 8px; }
.region-verts { font-size: .8125rem; font-weight: 300; color: var(--text-light); }

/* ── VERTICAL CARDS ──────────────────────────────────────── */
/* Flexbox grid: cards wrap and centre naturally for any count */
.verticals-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.vertical-card {
  /* 3 per row — gap of 20px × 2 = 40px spread across 3 cards */
  flex: 0 0 calc(33.333% - 14px);
  background: white; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.vertical-card.hidden { display: none; }
.vertical-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vc-img  { /* image placeholder container */ }
.vc-body { padding: 22px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.vc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vc-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.vc-body p  { font-size: .875rem; font-weight: 300; flex: 1; }
.vc-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 16px; font-size: .8125rem; font-weight: 500; color: var(--blue);
  transition: gap .15s;
}
.vc-link:hover { gap: 9px; }
.vc-link::after { content: '→'; }

/* Region filter pills inside Care Settings section */
.vc-region-filter {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px; flex-wrap: wrap;
}
.vc-rfbtn {
  padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: white;
  font-size: .8125rem; font-weight: 500; color: var(--text-mid);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.vc-rfbtn:hover { border-color: var(--blue); color: var(--blue); }
.vc-rfbtn.active {
  background: var(--navy); border-color: var(--navy); color: white;
}

/* Solutions hero vertical cards (larger) */
.sol-verticals { padding: 72px 0; background: white; }
.sol-verticals-inner { text-align: center; margin-bottom: 44px; }

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e388f 100%);
  padding: 88px 0; text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 34px; }

/* ── MISSION CARDS (3-column grid) ───────────────────────── */
.missions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.mission-card {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
}
.mission-card h3 { color: var(--navy); margin-bottom: 14px; font-size: 1.05rem; }
.mission-card p  { font-size: .9375rem; margin-bottom: 0; }
.mission-icon    { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 0 18px; display: block; }

/* ── REGION CARD — EXPANDED ───────────────────────────────── */
.region-tagline { font-size: .8125rem; font-weight: 500; color: var(--text-mid); font-style: italic; margin-bottom: 10px; }
.region-desc    { font-size: .8125rem; font-weight: 300; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
.region-link    { font-size: .8125rem; font-weight: 500; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; transition: gap .15s; }
.region-link:hover { gap: 8px; }

/* ── SITE IMAGES (real screenshots replacing placeholders) ── */
/* These styles apply once placeholder PNGs are replaced with real screenshots. */
.vc-screenshot {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  display: block;
  background: linear-gradient(145deg, var(--ice) 0%, #eef2ff 55%, #e8edf8 100%);
}
.hero-screenshot {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  display: block; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(59,93,212,.15);
}
.mission-screenshot {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  display: block; border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--ice) 0%, #eef2ff 55%, #e8edf8 100%);
}
.tile-screenshot {
  width: 100%; height: 120px; object-fit: cover;
  display: block; border-radius: var(--r-md) var(--r-md) 0 0;
  background: linear-gradient(160deg, var(--ice) 0%, #eef2ff 60%, #e8edf8 100%);
}

/* ── CAPABILITY SECTION ──────────────────────────────────── */
.cap-section { padding: 0; background: #F6F8FC; }
.cap-section-head { text-align: center; padding: 28px 0 16px; margin-bottom: 0; }
.cap-section-head h2 { color: var(--navy); margin-bottom: 10px; }

/* Sticky wrapper — transparent, just holds position */
.filter-sticky {
  position: sticky; top: 66px; z-index: 100;
  background: var(--bg);
  padding: 12px 0 20px;
  margin-bottom: 0;
}
/* Boxed blue card inside the sticky wrapper */
.filter-box {
  background: #E6ECFB;
  border: 1.5px solid rgba(59, 93, 212, 0.18);
  border-radius: 14px;
  padding: 18px 28px;
}
.cap-tiles-section { padding: 24px 0 80px; background: #F6F8FC; }

/* Filter bar — side-by-side on desktop */
.filter-bar { display: flex; align-items: flex-start; gap: 0; margin-bottom: 0; }
.filter-divider {
  width: 1px; flex-shrink: 0; align-self: stretch;
  background: rgba(59, 93, 212, 0.2);
  margin: 0 28px;
}
.filter-group { flex: 1; margin-bottom: 0; }
.filter-group-label {
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(59, 93, 212, 0.6); margin-bottom: 9px;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Mobile filter dropdown (hidden on desktop, shown on mobile) */
.filter-select {
  display: none;
  width: 100%;
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: .875rem; font-weight: 300;
  color: var(--text); background: white;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239091A4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color .15s;
}
.filter-select:focus { outline: none; border-color: var(--blue); }
.fbtn {
  padding: 7px 18px; border-radius: 20px;
  border: 1.5px solid var(--border);
  font-family: 'Lexend', sans-serif; font-size: .8125rem; font-weight: 300;
  color: var(--text-mid); background: white;
  cursor: pointer; transition: all .15s;
}
.fbtn:hover { border-color: var(--blue); color: var(--blue); }
.fbtn.active { background: var(--navy); border-color: var(--navy); color: white; font-weight: 400; }
.fbtn:disabled,
.fbtn.fbtn-disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* Capability groups */
.cap-groups { display: flex; flex-direction: column; gap: 52px; }
.cap-group  { /* container */ }
.cap-group-hd {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cap-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cap-dot-blue   { background: var(--blue);   }
.cap-dot-green  { background: var(--green);  }
.cap-dot-purple { background: #7C5CDB;       }
.cap-dot-orange { background: var(--orange); }
.cap-dot-coral  { background: var(--coral);  }
.cap-dot-teal   { background: var(--mint);   }
.cap-group-hd h3 { color: var(--navy); font-size: 1.1rem; }
.cap-count { display: none; }

/* Tile grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cap-tile {
  background: white; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.cap-tile:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tile-name { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.tile-desc { font-size: .8rem; font-weight: 300; color: var(--text-mid); line-height: 1.6; flex: 1; }
.tile-tags { display: none !important; }
/* Screenshot placeholder inside each capability tile */
.tile-img { margin: -20px -20px 16px; }
.tile-img .img-ph {
  border-radius: var(--r-md) var(--r-md) 0 0;
  height: 120px;
  border-bottom: none; border-left: none; border-right: none;
  border-top: none;
  background: linear-gradient(160deg, var(--ice) 0%, #eef2ff 60%, #e8edf8 100%);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: #0A1540; padding: 60px 0 28px; }
.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1.4fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { margin-bottom: 12px; }
.footer-logo-img { height: 28px; width: auto; display: block; margin-left: -8px; }
.footer-tagline { font-size: .875rem; font-weight: 300; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-by { font-size: .78rem; color: rgba(255,255,255,.3); margin-top: 14px; }
.footer-col-label {
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.3); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-lnk { font-size: .875rem; font-weight: 300; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-lnk:hover { color: white; }
.footer-contact-item { font-size: .8125rem; font-weight: 300; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 8px; }
.footer-contact-item a { color: var(--mint); }
.footer-contact-item a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: rgba(255,255,255,.3);
}

/* ── NAV DROPDOWN ────────────────────────────────────────── */
.nav-item { position: relative; }
.nav-caret {
  display: inline-block; font-size: .6rem; margin-left: 3px;
  opacity: .55; transition: transform .2s, opacity .2s;
}
.nav-item:hover .nav-caret { transform: rotate(180deg); opacity: .8; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: white; border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(12,27,80,.13);
  padding: 6px; min-width: 228px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, visibility .18s, transform .18s;
  z-index: 500;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-link {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-family: 'Lexend', sans-serif; font-size: .8375rem; font-weight: 300;
  color: var(--text); text-decoration: none;
  transition: background .1s, color .1s; white-space: nowrap;
}
.nav-dd-link:hover { background: var(--bg); color: var(--navy); }
.nav-dd-divider { height: 1px; background: var(--border); margin: 5px 6px; }
.nav-dd-all { color: var(--blue); font-weight: 500; }
.nav-dd-all:hover { background: rgba(59,93,212,.06); color: var(--blue); }

/* Mobile: sub-links in drawer */
.nav-sub-link {
  padding-left: 32px !important; font-size: .8375rem !important;
  color: var(--text-mid) !important; border-bottom: none !important;
}
.nav-sub-link:hover { color: var(--navy) !important; }

/* ── DETAIL PAGE — BREADCRUMB ────────────────────────────── */
.detail-breadcrumb { font-size: .8125rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.detail-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.detail-breadcrumb a:hover { color: rgba(255,255,255,.85); }
.detail-breadcrumb .sep { margin: 0 8px; opacity: .4; }

/* ── VERTICAL COLOUR BADGES ──────────────────────────────── */
.vert-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.vert-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.vert-aac      { color: var(--coral); border: 1px solid rgba(224,69,64,.3); background: rgba(224,69,64,.1); }
.vert-aac::before { background: var(--coral); }
.vert-day-care { color: var(--green); border: 1px solid rgba(16,191,122,.3); background: rgba(16,191,122,.1); }
.vert-day-care::before { background: var(--green); }
.vert-home-care{ color: #7A97E8; border: 1px solid rgba(59,93,212,.3); background: rgba(59,93,212,.1); }
.vert-home-care::before { background: var(--blue); }
.vert-ccms     { color: var(--sky); border: 1px solid rgba(135,188,232,.35); background: rgba(135,188,232,.12); }
.vert-ccms::before { background: var(--sky); }
.vert-rc       { color: #C98A3D; border: 1px solid rgba(201,138,61,.3); background: rgba(201,138,61,.1); }
.vert-rc::before { background: #C98A3D; }

/* ── FEATURE SECTION ─────────────────────────────────────── */
.feat-section { padding: 72px 0; background: var(--bg); }
.feat-intro { text-align: center; margin-bottom: 52px; }
.feat-intro h2 { color: var(--navy); margin-bottom: 12px; }
.feat-intro p { color: var(--text-mid); max-width: 540px; margin: 0 auto; font-weight: 300; }
.feat-group { margin-bottom: 60px; }
.feat-group:last-child { margin-bottom: 0; }
/* Section label — prominent heading with left accent bar */
.feat-group-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.125rem; font-weight: 600;
  color: var(--navy);
  text-transform: none; letter-spacing: 0;
  margin-bottom: 16px; padding-bottom: 0; border-bottom: none;
}
.feat-group-label::before {
  content: ''; flex-shrink: 0;
  width: 4px; height: 22px;
  background: var(--blue); border-radius: 2px;
}
/* Wide section banner image */
.feat-section-img {
  width: 100%; aspect-ratio: 3 / 1; object-fit: cover;
  border-radius: var(--r-lg); display: block;
  margin-bottom: 20px;
  background: var(--bg-light);
}
/* Two-column card grid, uniform equal-width white cards */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 26px;
}
.feat-card h4 { color: var(--navy); font-size: .9375rem; font-weight: 600; margin-bottom: 8px; }
.feat-card p  { color: var(--text-mid); font-size: .875rem; font-weight: 300; line-height: 1.65; margin: 0; }
.feat-card-wide { background: white; border-color: var(--border); }
.feat-card-wide h4 { font-size: .9375rem; }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.hero-about {
  background: linear-gradient(135deg, var(--bg) 0%, var(--ice) 100%);
  padding: 88px 0 72px; text-align: center;
}
.hero-about h1 { max-width: 640px; margin: 0 auto 20px; }
.hero-about .lead { max-width: 600px; margin: 0 auto 36px; font-size: 1.0625rem; }

/* Where We Work */
.about-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.about-region-panel {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 32px;
}
.about-region-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.about-region-head .region-flag { font-size: 2rem; line-height: 1.1; flex-shrink: 0; margin-top: 2px; }
.about-region-context { font-size: .9375rem; font-weight: 300; color: var(--text-mid); line-height: 1.75; margin-bottom: 20px; }
.region-creds { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.region-cred {
  font-size: .7rem; font-weight: 500; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(59,93,212,.07); color: var(--blue);
  border: 1px solid rgba(59,93,212,.18);
}
.region-cta { margin-top: 20px; }
.region-sols-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin-bottom: 10px; }
.region-sols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-sol-tile {
  display: block; padding: 9px 14px; border-radius: var(--r-md);
  background: var(--bg-light); border: 1px solid var(--border);
  font-size: .8125rem; font-weight: 500; color: var(--navy);
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.region-sol-tile:hover { background: var(--ice); border-color: rgba(59,93,212,.35); color: var(--blue); }
.region-logos-note {
  font-size: .8rem; color: var(--text-light); margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--border-light);
  font-style: italic;
}
.about-taiwan {
  text-align: center; padding: 18px 24px;
  border: 1.5px dashed var(--border); border-radius: var(--r-md);
  color: var(--text-light); font-size: .875rem; font-weight: 300;
}

/* Weeswares Section */
.weeswares-section { padding: 80px 0; background: white; }
.weeswares-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.weeswares-text h2 { color: var(--navy); margin-bottom: 20px; }
.weeswares-text p { color: var(--text-mid); font-weight: 300; line-height: 1.75; margin-bottom: 16px; }
.weeswares-text p:last-child { margin-bottom: 0; }
.tech-caps-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 14px; }
.tech-caps-list { display: flex; flex-direction: column; gap: 9px; }
.tech-cap-item {
  display: flex; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
  font-size: .8375rem; color: var(--text-mid); font-weight: 300;
}
.tech-cap-item::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; font-size: .85rem; }

/* ── CAPABILITIES REFERENCE ──────────────────────────────── */
.caps-ref-section { padding: 72px 0; background: var(--bg); }
.caps-ref-box {
  background: #D8E3F5;
  border-radius: 20px;
  padding: 52px 56px;
}
.caps-ref-intro { text-align: center; margin-bottom: 52px; }
.caps-ref-intro h2 { color: var(--navy); margin-bottom: 12px; }
.caps-ref-group { margin-bottom: 32px; }
.caps-ref-group-label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue); padding-bottom: 8px; margin-bottom: 0;
  border-bottom: 1.5px solid var(--border);
}
.caps-ref-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 12px 24px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light); align-items: baseline;
}
.caps-ref-row:last-child { border-bottom: none; }
.caps-ref-name { font-size: .875rem; font-weight: 500; color: var(--navy); }
.caps-ref-desc { font-size: .8125rem; font-weight: 300; color: var(--text-mid); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════ */
/* HOW IT WORKS PAGE                                          */
/* ══════════════════════════════════════════════════════════ */
.hero-hiw { background: var(--navy); color: white; padding: 64px 0 48px; text-align: center; }
.hero-hiw .eyebrow { color: rgba(255,255,255,.55); }
.hero-hiw h1 { color: white; max-width: 720px; margin: 14px auto 18px; }
.hero-hiw .lead { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto 32px; }

/* Ecosystem */
.eco-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px;
}
.eco-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 12px;
}
.eco-icon {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  display: block; flex-shrink: 0;
}
.eco-audience { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.eco-card p { font-size: .875rem; font-weight: 300; color: var(--text-mid); line-height: 1.65; }

/* Wellness domains */
.wellness-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px;
}
.wellness-card {
  flex: 0 0 calc(20% - 13px);
  background: white; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px 18px; text-align: center;
}
.wellness-icon {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 14px;
}
.wellness-card h4 { color: var(--navy); font-size: .9375rem; margin-bottom: 8px; }
.wellness-card p { font-size: .8125rem; font-weight: 300; color: var(--text-mid); line-height: 1.6; }

/* AI section */
.ai-section { padding: 44px 0; background: white; }
.ai-category-label {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: rgba(59,93,212,.1); color: var(--blue); margin-bottom: 18px;
}
.ai-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px;
}
.ai-grid:last-child { margin-bottom: 0; }
.ai-card {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 18px 16px;
}
.ai-card h4 { font-size: .875rem; color: var(--navy); margin-bottom: 6px; }
.ai-card p { font-size: .8rem; font-weight: 300; color: var(--text-mid); line-height: 1.6; }

/* Integrations strip */
.integrations-strip { background: #F6F8FC; padding: 36px 0; text-align: center; border-top: 1px solid var(--border); }
.integrations-strip h3 { color: var(--navy); margin-bottom: 28px; }
.integrations-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.integ-badge {
  padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: .8125rem; font-weight: 500; color: var(--text-mid); background: white;
}
/* Grouped by region — horizontal rows */
.integ-rows { display: flex; flex-direction: column; gap: 0; max-width: 860px; margin: 0 auto; text-align: left; }
.integ-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.integ-row:last-child { border-bottom: none; }
.integ-row-label {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 130px; padding-top: 6px;
  font-size: .8rem; font-weight: 600; color: var(--navy);
  text-transform: uppercase; letter-spacing: .05em;
}
.integ-flag { font-size: 1.1rem; line-height: 1; }
.integ-row-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.integ-badge-shared { border-color: var(--border); color: var(--text); background: #fff; }

/* ══════════════════════════════════════════════════════════ */
/* ARTICLES PAGE                                              */
/* ══════════════════════════════════════════════════════════ */
.hero-articles { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 64px 0 52px; text-align: center; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.article-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-thumb { width: 100%; aspect-ratio: 16/9; background: var(--bg-light); object-fit: cover; }
.article-body { padding: 22px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.article-date { font-size: .75rem; color: var(--text-light); margin-bottom: 8px; }
.article-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.article-body p { font-size: .875rem; font-weight: 300; color: var(--text-mid); flex: 1; }
.article-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; font-size: .8125rem; font-weight: 500; color: var(--blue);
  transition: gap .15s;
}
.article-read-more:hover { gap: 9px; }
.article-read-more::after { content: '→'; }
.articles-empty { text-align: center; padding: 80px 0; }
.articles-empty-icon { font-size: 3rem; margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════ */
/* CONTACT PAGE                                               */
/* ══════════════════════════════════════════════════════════ */
.hero-contact { background: var(--navy); color: white; padding: 72px 0 60px; text-align: center; }
.hero-contact .eyebrow { color: rgba(255,255,255,.55); }
.hero-contact h1 { color: white; max-width: 580px; margin: 14px auto 16px; }
.hero-contact p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto; }

/* Demo form layout */
.contact-layout { display: grid; grid-template-columns: 1fr 400px; gap: 52px; align-items: start; padding: 72px 0; }
.contact-form-wrap { background: white; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-label { font-size: .8125rem; font-weight: 500; color: var(--navy); }
.form-input, .form-select, .form-textarea {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: inherit; font-size: .9375rem; font-weight: 300; color: var(--navy);
  background: white; transition: border-color .15s;
  width: 100%; box-sizing: border-box;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,93,212,.1);
}
.form-textarea { resize: vertical; min-height: 96px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; }
.form-checkbox input { margin-top: 3px; flex-shrink: 0; }
.form-checkbox label { font-size: .8125rem; font-weight: 300; color: var(--text-mid); line-height: 1.6; }
.form-submit { margin-top: 24px; }

/* Contact sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contact-next-steps { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; }
.contact-next-steps h4 { color: var(--navy); margin-bottom: 10px; }
.contact-next-steps p { font-size: .875rem; font-weight: 300; color: var(--text-mid); line-height: 1.65; }
.office-cards { display: flex; flex-direction: column; gap: 16px; }
.office-card { background: white; border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.office-flag { font-size: 1.5rem; margin-bottom: 8px; }
.office-card h4 { font-size: .9375rem; color: var(--navy); margin-bottom: 10px; }
.office-card p { font-size: .8125rem; font-weight: 300; color: var(--text-mid); line-height: 1.7; }
.office-email { display: block; margin-top: 8px; font-size: .8125rem; font-weight: 500; color: var(--blue); }
.enquiry-card { background: var(--ice); border: 1px solid rgba(59,93,212,.2); border-radius: var(--r-md); padding: 24px; }
.enquiry-card h4 { color: var(--navy); margin-bottom: 8px; }
.enquiry-card p { font-size: .875rem; font-weight: 300; color: var(--text-mid); line-height: 1.65; margin-bottom: 12px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Switch to 2-per-row on tablets */
  .vertical-card { flex: 0 0 calc(50% - 10px); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .missions-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --max-w: 100%; }
  .container { padding: 0 20px; }
  .section    { padding: 60px 0; }
  .section-sm { padding: 36px 0; }

  /* Nav */
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-home  { padding: 56px 0 0; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
  .hero-home .lead { max-width: 100%; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  /* Mission */
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Regions */
  .regions-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Verticals */
  .verticals-grid { gap: 14px; }
  .vertical-card  { flex: 0 0 calc(50% - 7px); }

  /* Capabilities */
  .cap-grid { grid-template-columns: 1fr; }
  /* On mobile: stack filters, hide pills, show dropdowns */
  .filter-bar    { flex-direction: column; }
  .filter-divider { width: 100%; height: 1px; margin: 12px 0; align-self: auto; }
  .filter-box    { padding: 16px 18px; }
  .filter-btns   { display: none; }
  .filter-select { display: block; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Hero buttons */
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* About page */
  .about-regions { grid-template-columns: 1fr; }
  .weeswares-inner { grid-template-columns: 1fr; gap: 40px; }
  /* How It Works */
  .eco-grid { grid-template-columns: 1fr; }
  .wellness-card { flex: 0 0 calc(50% - 8px); }
  .ai-grid { grid-template-columns: 1fr; }
  /* Articles */
  .article-grid { grid-template-columns: 1fr; }
  /* Contact */
  .contact-layout { padding: 48px 0; }
  .contact-sidebar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .vertical-card { flex: 0 0 100%; }
  .missions-grid  { grid-template-columns: 1fr; }
  .feat-grid      { grid-template-columns: 1fr; }
  .feat-card-wide { grid-column: span 1; }
  .caps-ref-row   { grid-template-columns: 1fr; gap: 4px; }
  .caps-ref-box { padding: 32px 24px; border-radius: 14px; }
  .region-sols { grid-template-columns: 1fr; }
  .about-region-panel { padding: 28px 22px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .hero-sol { padding: 56px 0; }
  /* How It Works */
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .wellness-card { flex: 0 0 calc(50% - 8px); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  /* Articles */
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}
