/* NatVital Hub — institutional company site */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f7f3;
  --bg-alt: #eef0ea;
  --bg-card: #ffffff;
  --ink: #1d211b;
  --ink-soft: #2a2e28;
  --muted: #5d645a;
  --muted-2: #7a8276;
  --sage: #4f6146;
  --sage-dark: #3e4d37;
  --sage-subtle: rgba(79, 97, 70, 0.1);
  --line: #dde3d6;
  --line-light: #e8ece3;
  --white: #ffffff;
  --on-dark: #eef1ea;
  --font-heading: "Sora", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --max: 1200px;
  --nav-h: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(29, 33, 27, 0.04), 0 1px 2px rgba(29, 33, 27, 0.02);
  --shadow-md: 0 4px 16px rgba(29, 33, 27, 0.06), 0 2px 4px rgba(29, 33, 27, 0.03);
  --shadow-lg: 0 12px 40px rgba(29, 33, 27, 0.08), 0 4px 12px rgba(29, 33, 27, 0.04);
  --t: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
figure { margin: 0; }
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-dark); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 1100;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header — frosted, fixed, 72px, like the institutional reference */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(248, 247, 243, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
}
.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
}
.logo img { width: min(13.75rem, 58vw); height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.15rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--sage);
  transition: width var(--t);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--bg-alt); color: var(--ink); border-color: #c5cdc0; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + var(--space-4xl)) 0 var(--space-4xl);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--sage);
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.01em;
}
.hero h1 { margin-bottom: var(--space-lg); }
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 var(--space-2xl);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero-visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section { padding: var(--space-5xl) 0; }
.section-alt { background: var(--bg-alt); }
.section-header { margin-bottom: var(--space-3xl); max-width: 36rem; }
.section-header.center {
  text-align: center;
  margin-inline: auto;
  max-width: 36rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-md);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  margin: 0 0 var(--space-lg);
}
.center .section-divider { margin-inline: auto; }
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* About split */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.about-copy p { margin-bottom: var(--space-lg); }
.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.8;
}
.about-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-more { font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.18em; }

/* Cards / work */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--space-sm); }
.card p { margin: 0; font-size: 0.98rem; color: var(--muted); }

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.steps { display: flex; flex-direction: column; gap: var(--space-xl); }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-md); }
.step-num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -0.02em;
  padding-top: 0.1rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.98rem; }
.approach-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  aspect-ratio: 3 / 2;
}
.approach-figure img,
.band-photo img,
.page-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl) var(--space-3xl); }
.value h3 { margin-bottom: 0.4rem; }
.value p { margin: 0; }

/* Full-bleed photo */
.band-photo {
  margin: 0;
  height: min(62vh, 32rem);
  overflow: hidden;
  background: var(--bg-alt);
}
.band-photo img { width: 100%; height: 100%; object-fit: cover; }

/* CTA */
.cta { text-align: center; }
.cta h2 { margin-bottom: var(--space-md); }
.cta p { margin: 0 auto var(--space-xl); max-width: 32rem; }

/* Inner pages */
main { padding-top: var(--nav-h); }
.home-main { padding-top: 0; }

.page-hero {
  position: relative;
  margin: 0;
  margin-top: var(--nav-h);
  height: min(54vh, 28rem);
  overflow: hidden;
  background: var(--bg-alt);
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.page-head { padding: var(--space-4xl) 0 var(--space-2xl); }

.page-head.is-narrow .wrap {
  width: min(42rem, calc(100% - 2.5rem));
}

.page-head .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: var(--space-lg) 0 0;
}

.legal-wrap { width: min(42rem, calc(100% - 2.5rem)); margin-inline: auto; padding: 0 0 var(--space-5xl); }
.legal-wrap .updated { color: var(--muted-2); font-size: 0.95rem; margin: 0 0 var(--space-xl); }
.legal-wrap h2 { margin: 2.25rem 0 0.7rem; font-size: 1.45rem; }
.legal-wrap h3 { margin: 1.4rem 0 0.4rem; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.legal-wrap p, .legal-wrap li { color: var(--muted); }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc; }
.legal-wrap li { margin: 0 0 0.4rem; }
.legal-wrap a { font-weight: 600; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-4xl);
  align-items: start;
  padding-bottom: var(--space-5xl);
}
.contact-direct h2 { margin-bottom: var(--space-md); }
.contact-email {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-email:hover { color: var(--sage); }
.note { font-size: 0.95rem; color: var(--muted-2); }
.form {
  display: grid;
  gap: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form button { appearance: none; justify-self: start; }

/* Footer — dark institutional bar */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3xl);
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .logo img { width: min(12.5rem, 70vw); margin-bottom: var(--space-lg); }
.footer-desc {
  font-size: 0.9rem;
  color: rgba(238, 241, 234, 0.6);
  max-width: 20rem;
  line-height: 1.7;
  margin: 0;
}
.footer-cols { display: flex; gap: var(--space-3xl); }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 241, 234, 0.5);
  margin-bottom: var(--space-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(238, 241, 234, 0.75);
}
.footer-col a:hover,
.footer-col a[aria-current="page"] { color: #c5d4b8; }
.footer-bottom {
  padding: var(--space-xl) 0;
}
.footer-legal {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(238, 241, 234, 0.55);
  max-width: 52rem;
}
.footer-legal a { color: rgba(238, 241, 234, 0.75); }
.footer-legal a:hover { color: #c5d4b8; }

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .approach-grid,
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero { min-height: 0; padding: calc(var(--nav-h) + var(--space-3xl)) 0 var(--space-3xl); }
  .hero-visual { aspect-ratio: 16 / 10; order: -1; }
  .about-figure { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-main { flex-direction: column; gap: var(--space-2xl); }
  .section { padding: var(--space-3xl) 0; }
  .band-photo { height: 18rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.7rem 0; font-size: 1rem; width: 100%; }
  .footer-cols { flex-wrap: wrap; gap: var(--space-xl) var(--space-2xl); }
  .wrap,
  .legal-wrap { width: min(var(--max), calc(100% - 2rem)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.section-tight-top { padding-top: 0; }


#approach, #about, #values, #programs, #hero { scroll-margin-top: calc(var(--nav-h) + 1rem); }
