/* ═══════════════════════════════════════════════
   EVORA HEALTH — DESIGN SYSTEM v1.0
   www.evorahealth.co.za
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────── */
:root {
  --navy:        #141C27;
  --navy-mid:    #1A2535;
  --navy-light:  #1F2D40;
  --navy-card:   #1C2A3A;
  --mint:        #8CBFB0;
  --mint-light:  #B8D9D2;
  --mint-dark:   #6AA898;
  --gold:        #C9A96E;
  --gold-light:  #E2C898;
  --white:       #FFFFFF;
  --off-white:   #F5F0EB;
  --text:        #EEE9E2;
  --text-muted:  #8A9BAB;
  --text-faint:  #5A6A7A;
  --border:      rgba(140,191,176,0.15);
  --border-soft: rgba(255,255,255,0.08);

  --font-display: 'DM Serif Display', serif;
  --font-body:    'Montserrat', sans-serif;

  --nav-h:     72px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s var(--ease);

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --glow-mint: 0 0 40px rgba(140,191,176,0.2);
  --glow-gold: 0 0 40px rgba(201,169,110,0.2);

  /* ── ALIASES (used across page-specific styles) ── */
  --navy-deep:     #0D1520;
  --faint:         #5A6A7A;       /* alias: text-faint */
  --muted:         #8A9BAB;       /* alias: text-muted */
  --text-body:     #EEE9E2;       /* alias: text */
  --mid:           #1A2535;       /* alias: navy-mid */
  --gold-glow:     rgba(201,169,110,0.08);
  --mint-glow:     rgba(140,191,176,0.08);
  --r-md:          12px;          /* alias: radius */
  --r-lg:          20px;          /* alias: radius-lg */
  --success:       #4ade80;
  --error:         #f87171;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--font-body); }

/* ── TYPOGRAPHY ─────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  font-weight: 400;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; }
em { font-style: italic; color: var(--mint); }
.gold { color: var(--gold); }
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(20,28,39,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-soft), var(--shadow-sm);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 12px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(20,28,39,0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border-soft);
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-mobile a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--mint-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140,191,176,0.35);
}
.btn-outline {
  border: 1.5px solid var(--mint);
  color: var(--mint);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(140,191,176,0.1);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}
.btn-ghost {
  color: var(--text-muted);
  padding: 0.75rem 0;
}
.btn-ghost:hover { color: var(--white); }
.btn-nav {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.btn-nav:hover {
  border-color: var(--mint);
  color: var(--mint);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 14px; }
.btn-icon {
  width: 48px; height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.btn-icon:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── SECTIONS ────────────────────────────────────── */
.section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.center { text-align: center; }
.section-title { margin-bottom: 1rem; }
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-header.center .section-sub { margin: 0 auto; }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.35s var(--ease);
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-mint { border-top: 2px solid var(--mint); }
.card-gold { border-top: 2px solid var(--gold); }

/* ── PRODUCT CARDS ───────────────────────────────── */
.product-card {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--glow-mint);
  border-color: rgba(140,191,176,0.3);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--navy-light);
  padding: 2rem;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.product-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.5rem;
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.product-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.product-card-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 1.25rem; }
.price-current {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.price-was {
  font-size: 0.875rem;
  color: var(--text-faint);
  text-decoration: line-through;
}
.product-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}
.metric-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(140,191,176,0.1);
  color: var(--mint-light);
  border: 1px solid rgba(140,191,176,0.15);
}

/* ── GRID SYSTEMS ────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ── BADGE / TAG ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-mint {
  background: rgba(140,191,176,0.12);
  color: var(--mint);
  border: 1px solid rgba(140,191,176,0.2);
}
.badge-gold {
  background: rgba(201,169,110,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.2);
}

/* ── STATS ───────────────────────────────────────── */
.stat-block { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── FORM ELEMENTS ───────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--navy-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}
.form-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(140,191,176,0.12);
}
.form-input::placeholder { color: var(--text-faint); }
select.form-input option { background: var(--navy-mid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--mint);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-checkbox span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-checkbox a { color: var(--mint); text-decoration: underline; }

/* ── ALERT / NOTICE ──────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(140,191,176,0.1); border: 1px solid rgba(140,191,176,0.25); color: var(--mint-light); }
.alert-warning { background: rgba(201,169,110,0.1); border: 1px solid rgba(201,169,110,0.25); color: var(--gold-light); }
.alert-error   { background: rgba(200,80,80,0.1); border: 1px solid rgba(200,80,80,0.25); color: #F4A5A5; }

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: #0F1720;
  border-top: 1px solid var(--border-soft);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem) 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo { height: 28px; margin-bottom: 1rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover { border-color: var(--mint); color: var(--mint); }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.footer-col-links a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-faint);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-faint);
  transition: color 0.25s var(--ease);
}
.footer-legal a:hover { color: var(--mint); }
.powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.powered-by strong {
  color: var(--mint);
  font-weight: 600;
  font-size: 12px;
}
.avolvia-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.avolvia-badge strong {
  color: var(--mint);
  font-weight: 600;
  font-size: 12px;
  transition: color 0.25s var(--ease);
}
.avolvia-badge:hover { color: var(--text-muted); }
.avolvia-badge:hover strong { color: var(--mint-light); }

/* ── SCROLL ANIMATIONS (initial state) ──────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
}

/* ── PAGE HERO ───────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  padding-left: clamp(1.5rem, 5vw, 5rem);
  padding-right: clamp(1.5rem, 5vw, 5rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.page-hero .label { margin-bottom: 1rem; }
.page-hero .display-lg { margin-bottom: 1.25rem; }
.page-hero .section-sub { margin: 0 auto; font-size: 1.125rem; }

/* ── UTILITY ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-mint   { color: var(--mint); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn-lg { padding: 0.875rem 1.75rem; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-legal { flex-wrap: wrap; gap: 1rem; }
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint-dark); }

/* ── SELECTION ───────────────────────────────────── */
::selection { background: rgba(140,191,176,0.25); color: var(--white); }
