/* ==========================================================================
   VITA — design tokens
   Source of truth: VITA_landing_page_brief.md, section 3.
   Approved pairings only: Vital Blue on Clinical White · Chart Ink on
   Pure White · Clinical White on Chart Ink.
   ========================================================================== */

:root {
  --vital-blue:     #2563EB; /* primary / hero / CTAs / links */
  --stable-green:   #10B981; /* status only — never decorative */
  --alert-amber:    #F59E0B; /* status only — never decorative */
  --critical-red:   #EF4444; /* status only — never decorative */
  --clinical-white: #F8FAFC; /* primary background */
  --pure-white:     #FFFFFF; /* card / surface */
  --chart-ink:      #0F172A; /* text / dark sections / reversed lockups */

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --hairline: rgba(15, 23, 42, 0.12);
  --hairline-dark: rgba(248, 250, 252, 0.16);

  --radius-card: 12px;
  --max-width: 1120px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--clinical-white);
  color: var(--chart-ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, blockquote { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--chart-ink);
  color: var(--clinical-white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Numerals, IDs, monospace meta */
.mono { font-family: var(--font-mono); }

/* ==========================================================================
   Shared
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vital-blue);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--clinical-white); opacity: 0.72; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.375rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn--primary {
  background: var(--vital-blue);
  color: var(--pure-white);
}
.btn--primary:hover { opacity: 0.88; }
.btn--ghost {
  background: transparent;
  color: var(--chart-ink);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--chart-ink); }
.btn--small { padding: 0.55rem 1.125rem; font-size: 0.875rem; }

/* Status dots — semantic motif, used only where meaningful */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--green { background: var(--stable-green); }
.status-dot--amber { background: var(--alert-amber); }
.status-dot--red { background: var(--critical-red); }
.status-dot--blue { background: var(--vital-blue); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.65);
}

/* ==========================================================================
   Nav — floating pill capsule (brief section 4): inset margin on all sides,
   Pure White surface, soft shadow, sits above the hero photo. Not a
   full-width bar stuck to the top edge.
   ========================================================================== */

.nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 2.5rem);
  border-radius: 999px;
  background: var(--pure-white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
}
.nav__inner {
  padding: 0.625rem 0.75rem 0.625rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.nav__mark { width: 26px; height: 26px; object-fit: contain; }
.nav__word {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--chart-ink);
}
.nav__links {
  display: flex;
  gap: 1.75rem;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--chart-ink);
  opacity: 0.75;
  white-space: nowrap;
}
.nav__links a:hover { opacity: 1; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav__whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--chart-ink);
  opacity: 0.75;
  white-space: nowrap;
}
.nav__whatsapp:hover { opacity: 1; color: var(--vital-blue); }

/* Nav CTA only: fully rounded to match the pill container it sits inside.
   Every other button on the page keeps the base .btn border-radius. */
.nav__actions .btn--primary { border-radius: 999px; }

/* Hamburger toggle — hidden by default, shown below tablet width where
   the pill can no longer fit links + WhatsApp + CTA (brief section 13). */
.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--chart-ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Dropdown panel opened by the hamburger. Same pill-family surface as
   .nav (Pure White, soft shadow, rounded), stacked links + repeated CTA. */
.mobile-menu {
  display: none;
  position: fixed;
  top: 4.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 29;
  flex-direction: column;
  background: var(--pure-white);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
  padding: 0.25rem 1.25rem 1.25rem;
  max-width: calc(100vw - 1.5rem);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__links {
  display: flex;
  flex-direction: column;
}
.mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--chart-ink);
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu__links a:last-child { border-bottom: none; }
.mobile-menu__cta {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 1rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .nav { top: 0.75rem; max-width: calc(100vw - 1.5rem); }
  .nav__inner { padding: 0.5rem 0.5rem 0.5rem 1.25rem; gap: 0.75rem; }
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* Anchor targets clear the floating nav on jump-scroll */
#who-we-are, #how-we-work, #solutions {
  scroll-margin-top: 6rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Full-bleed photo (assets/hero.png, the 21:9 desktop crop) with a
   Chart Ink gradient overlay carrying the text. Swapped for a dedicated
   4:5 portrait crop (assets/hero-mobile.jpg) at tablet width and below
   — see the max-width: 768px block. --chart-ink background-color is a
   fallback in case a file is ever removed: same tone as the gradients,
   so the section still reads correctly (dark, white text) without a
   photo loaded. */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
  background-color: var(--chart-ink);
  background-image: url('../assets/hero.png');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.75), transparent 60%);
  pointer-events: none;
}
/* Below tablet width, swap in the dedicated 4:5 portrait crop
   (assets/hero-mobile.jpg) instead of stretching the 21:9 desktop
   photo — same subject, framed for a tall viewport. The text column
   also runs near full-bleed here (no room reserved at the right for
   the subject the way desktop has), so the left-to-right gradient
   alone won't guarantee contrast under text that wraps toward the
   right edge. Switch to a top-to-bottom wash instead — the mobile
   layout stacks text below/above the image rather than beside it. */
@media (max-width: 768px) {
  .hero {
    background-image: url('../assets/hero-mobile.jpg');
    background-size: cover;
    background-position: center;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.88) 100%);
  }
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__inner .eyebrow {
  color: var(--clinical-white);
  opacity: 0.8;
}
.hero__headline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--clinical-white);
  margin-bottom: 1.25rem;
}
.hero__subhead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.82);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}
.hero__ctas .btn--ghost {
  color: var(--clinical-white);
  border-color: rgba(248, 250, 252, 0.35);
}
.hero__ctas .btn--ghost:hover { border-color: var(--clinical-white); }

/* ==========================================================================
   Who We Are — the one contrast break, mid-page
   ========================================================================== */

.who {
  background: var(--chart-ink);
  color: var(--clinical-white);
  padding: 6rem 1.5rem;
}
.who__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.who__quote {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.who__quote .accent { color: var(--vital-blue); }
.who__body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.78);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}
.who__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
}
.who__labels li:not(:last-child)::after {
  content: '·';
  margin-left: 1.25rem;
  color: rgba(248, 250, 252, 0.35);
}
.who__labels li { display: inline-flex; }

/* ==========================================================================
   How We Work — Heva's numbered-card device, rebuilt in VITA tokens:
   Clinical White section, Pure White cards, hairline borders (not a solid
   fill), low-opacity mono numeral, Vital Blue status dot on the tag line.
   ========================================================================== */

.how {
  padding: 6.5rem 1.5rem;
  background: var(--clinical-white);
}
.how__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.how__headline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 3.5rem;
}
.how__headline .accent { color: var(--vital-blue); }

.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
/* Row straight to a single stacked column below tablet width — no 2x2
   intermediate stop (brief section 13: "not squeezed into 2x2"). */
@media (max-width: 900px) {
  .how__grid { grid-template-columns: 1fr; }
}

.how-card {
  background: var(--pure-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.how-card__num {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--chart-ink);
  opacity: 0.14;
  line-height: 1;
}
.how-card__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--chart-ink);
}
.how-card__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.7);
}
.how-card__tag {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.62);
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--hairline);
}

/* ==========================================================================
   Our Solutions
   ========================================================================== */

.solutions {
  padding: 6.5rem 1.5rem 7rem;
  background: var(--clinical-white);
}
.solutions__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.solutions__headline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-bottom: 1rem;
}
.solutions__subhead {
  font-size: 1.0625rem;
  color: rgba(15, 23, 42, 0.68);
  max-width: 60ch;
  margin-bottom: 3.5rem;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 900px) {
  .solutions__grid { grid-template-columns: 1fr; }
}

.solution-card {
  background: var(--pure-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.solution-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--hairline);
}
.solution-card__head h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.1875rem;
}
.solution-card__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.solution-card__list li {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.78);
}
.solution-card__list strong {
  display: block;
  color: var(--chart-ink);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.solutions__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline);
}
.solutions__close-line {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 1.5rem;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(15, 23, 42, 0.6);
}
.footer__mark { width: 20px; height: 20px; object-fit: contain; opacity: 0.8; }
.footer__word { font-family: var(--font-sans); font-weight: 800; color: var(--chart-ink); font-size: 0.9375rem; }
.footer__sep { opacity: 0.4; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(15, 23, 42, 0.6);
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer__links a:hover { color: var(--vital-blue); }
.footer__meta {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.45);
  order: 3;
}

@media (max-width: 640px) {
  .hero { min-height: 82vh; padding: 7rem 1.25rem 3.5rem; }
  .who { padding: 4.5rem 1.25rem; }
  .how { padding: 4.5rem 1.25rem; }
  .solutions { padding: 4.5rem 1.25rem 5rem; }
  .solutions__close { flex-direction: column; align-items: flex-start; }
}
