/* ═══════════════════════════════════════════
   BABYLON HEALTH LIMITED — SHARED STYLES
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --cream:        #FAF7F2;
  --warm-white:   #FFFDF9;
  --sage:         #7A9E7E;
  --sage-dark:    #5A7D5E;
  --sage-light:   #B4CEB6;
  --sage-pale:    #EAF1EA;
  --gold:         #C9A84C;
  --gold-light:   #E8D08A;
  --charcoal:     #2C2C2C;
  --mid-grey:     #6B6B6B;
  --light-grey:   #D4D0C8;
  --terracotta:   #C17E5E;
  --nav-h:        80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122,158,126,0.12);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled {
  box-shadow: 0 4px 32px rgba(44,44,44,0.09);
  background: rgba(250,247,242,0.99);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.nav-logo-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--sage);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
}
.nav-logo-mark svg { width: 20px; height: 20px; fill: none; stroke: white; stroke-width: 2; }
.nav-logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 15.5px; font-weight: 700;
  color: var(--charcoal); letter-spacing: .02em;
}
.nav-logo-text span {
  font-size: 10px; font-weight: 400;
  color: var(--sage); letter-spacing: .12em;
  text-transform: uppercase;
}

/* Links */
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 400;
  color: var(--mid-grey); letter-spacing: .04em;
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--sage); transition: width .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sage-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--sage) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 40px;
  font-weight: 500 !important;
  transition: background .2s, transform .2s !important;
  white-space: nowrap;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--sage-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: var(--warm-white); z-index: 190;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Playfair Display', serif;
  font-size: 28px; text-decoration: none;
  color: var(--charcoal); transition: color .2s;
}
.nav-mobile a:hover { color: var(--sage); }

/* ══════════════════════════════
   PAGE HERO BANNER (inner pages)
══════════════════════════════ */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--charcoal);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(122,158,126,.18) 0%, transparent 60%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  padding: 80px 60px 90px;
}
.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(122,158,126,.18);
  color: var(--sage-light);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 40px;
  margin-bottom: 24px;
}
.page-hero-label::before {
  content: ''; width: 5px; height: 5px;
  background: var(--sage-light); border-radius: 50%;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700; line-height: 1.1;
  color: white; margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--sage-light); }
.page-hero p {
  font-size: 17px; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,.6);
  max-width: 580px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
}
.breadcrumb a, .breadcrumb span {
  font-size: 13px; text-decoration: none;
  color: rgba(255,255,255,.4); transition: color .2s;
}
.breadcrumb a:hover { color: var(--sage-light); }
.breadcrumb .sep { color: rgba(255,255,255,.2); }
.breadcrumb .current { color: var(--sage-light); }

/* ══════════════════════════════
   SECTION UTILITIES
══════════════════════════════ */
.section { padding: 96px 60px; }
.section-sm { padding: 72px 60px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--sage-dark); padding: 6px 16px;
  background: var(--sage-pale); border-radius: 40px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 600; line-height: 1.15;
  color: var(--charcoal); margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--sage-dark); }
.section-title.light { color: white; }
.section-sub {
  font-size: 16px; font-weight: 300;
  line-height: 1.8; color: var(--mid-grey);
  max-width: 600px;
}
.section-sub.light { color: rgba(255,255,255,.55); }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 15px; font-weight: 500;
  letter-spacing: .03em; padding: 15px 34px; border-radius: 50px;
  transition: all .25s; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--sage); color: white;
  box-shadow: 0 8px 24px rgba(122,158,126,.35);
}
.btn-primary:hover {
  background: var(--sage-dark); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(122,158,126,.45);
}
.btn-outline {
  border: 1.5px solid var(--light-grey);
  color: var(--charcoal); background: transparent;
}
.btn-outline:hover {
  border-color: var(--sage); color: var(--sage-dark);
  background: var(--sage-pale);
}
.btn-white {
  background: white; color: var(--sage-dark);
}
.btn-white:hover {
  background: var(--sage-pale); transform: translateY(-2px);
}

/* ══════════════════════════════
   TRUST BAR
══════════════════════════════ */
.trust-bar {
  background: var(--charcoal);
  padding: 18px 60px;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,.55); font-size: 12.5px;
  letter-spacing: .05em;
}
.trust-item .ti-icon { font-size: 16px; }
.trust-divider { width: 1px; height: 20px; background: rgba(255,255,255,.12); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer { background: #1A1A1A; padding: 70px 60px 36px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 48px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.footer-brand-mark {
  width: 36px; height: 36px; background: var(--sage);
  border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.footer-brand-mark svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 2.2; }
.footer-brand-logo strong {
  font-family: 'Playfair Display', serif;
  font-size: 15px; color: white;
}
.footer-desc {
  font-size: 13.5px; line-height: 1.75;
  color: rgba(255,255,255,.38); max-width: 260px; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 9px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: 13px; transition: all .2s;
}
.footer-social:hover { background: var(--sage); color: white; }

.footer-col h5 {
  font-size: 12px; font-weight: 500; color: white;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 13.5px; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .2s;
}
.footer-col a:hover { color: var(--sage-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 26px; max-width: 1200px;
  margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.28); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a {
  font-size: 12.5px; color: rgba(255,255,255,.28);
  text-decoration: none; transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.55); }

/* ══════════════════════════════
   REVEAL ANIMATION
══════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.up { transform: translateY(30px); }
.reveal.left { transform: translateX(-30px); }
.reveal.right { transform: translateX(30px); }
.reveal.visible { opacity: 1; transform: translate(0); }

/* delay helpers */
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ══════════════════════════════
   CARD UTILITY
══════════════════════════════ */
.card {
  background: white; border-radius: 22px;
  padding: 36px; border: 1.5px solid transparent;
  transition: all .3s;
}
.card:hover {
  border-color: var(--sage-light);
  box-shadow: 0 16px 44px rgba(122,158,126,.14);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--sage-pale);
  display: grid; place-items: center;
  font-size: 26px; margin-bottom: 22px;
  transition: background .3s;
}
.card:hover .card-icon { background: var(--sage-light); }

/* ══════════════════════════════
   FORM STYLES
══════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--charcoal); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 17px;
  border: 1.5px solid var(--light-grey); border-radius: 11px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--charcoal); background: var(--cream);
  outline: none; transition: border-color .2s, background .2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage); background: white;
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .nav { padding: 0 28px; }
  .section, .section-sm { padding: 72px 28px; }
  .trust-bar { padding: 16px 28px; gap: 22px; }
  .footer { padding: 56px 28px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .trust-divider { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero-inner { padding: 60px 28px 72px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
