@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --primary: #1A6B5A;
  --primary-dark: #0E4A3D;
  --primary-light: #2E9B82;
  --accent: #C9704F;
  --accent-dark: #A6512F;
  --accent-bg: #FBEFE8;

  --bg: #F8F6F1;
  --surface: #FFFFFF;
  --surface-alt: #F1EEE5;
  --surface-warm: #FDFBF7;
  --border: #E2DCCC;
  --border-light: #ECE7DA;

  --text: #221D16;
  --text-secondary: #57544A;
  --text-muted: #948F80;
  --text-on-primary: #FFFFFF;

  --radius: 10px;
  --radius-sm: 6px;
  --content-width: 700px;
  --wide-width: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-dark); text-decoration-color: var(--border); text-underline-offset: 3px; font-weight: 500; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Type ---------- */
h1, h2, h3, .serif {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(34px, 5.5vw, 52px); font-weight: 500; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3.5vw, 32px); font-weight: 500; }
h3 { font-size: 21px; font-weight: 600; font-family: 'DM Sans', sans-serif; }

.accent-word { color: var(--accent-dark); font-style: italic; font-family: 'Fraunces', serif; }

p { margin: 0 0 1.1em; color: var(--text); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 620px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.border-top { border-top: 1px solid var(--border-light); }

/* ---------- Header / nav ---------- */
header.site {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

header.site .wrap-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.brand img { height: 18px; width: auto; display: block; }
.brand span { color: var(--text-muted); font-size: 14px; font-family: 'DM Sans', sans-serif; margin-left: 8px; }

nav.site-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
nav.site-nav a:hover { color: var(--accent-dark); }
nav.site-nav a.current { color: var(--accent-dark); font-weight: 600; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(201, 112, 79, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 112, 79, 0.4); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}
.btn-secondary:hover { border-color: var(--primary-dark); color: var(--primary-dark); background: var(--surface-warm); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: 7px 14px 7px 10px;
  border-radius: 99px;
  margin-top: 26px;
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 72px;
  background: linear-gradient(180deg, var(--accent-bg) 0%, var(--bg) 65%);
}
.hero h1 { max-width: 780px; }
.hero .lede { margin-top: 20px; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 48px;
  align-items: center;
}
.hero-split .hero-copy h1 { max-width: 100%; }
.hero-split .hero-visual { display: flex; justify-content: center; }
.hero-split .hero-visual img,
.hero-split .hero-visual svg {
  width: 100%;
  max-width: 130px;
  filter: drop-shadow(0 8px 16px rgba(14, 74, 61, 0.12));
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-split .hero-visual img,
  .hero-split .hero-visual svg { max-width: 110px; }
}

/* ---------- Big stat / number moments ---------- */
.big-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1;
}
.big-stat .unit { font-size: 22px; font-family: 'DM Sans', sans-serif; color: var(--text-muted); font-weight: 500; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 12px; }
.stat-row .stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Section image block ---------- */
.section-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.section-visual.reverse { direction: rtl; }
.section-visual.reverse > * { direction: ltr; }
.section-visual img, .section-visual svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.section-visual .visual-frame {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: center;
}
@media (max-width: 860px) {
  .section-visual { grid-template-columns: 1fr; }
  .section-visual.reverse { direction: ltr; }
}

/* ---------- Feature blocks ---------- */
.feature-list {
  display: grid;
  gap: 40px;
  margin-top: 8px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-secondary); }

/* ---------- Fork cards ---------- */
.fork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.fork-card {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.fork-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.fork-card h3 { margin-bottom: 10px; }
.fork-card p { color: var(--text-secondary); font-size: 15px; margin-bottom: 18px; }
.fork-card a { font-weight: 600; font-size: 15px; }

/* ---------- Quote / callout block ---------- */
.callout {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 26px;
  color: var(--text);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
}

/* ---------- Panel (approach / clinical statements) ---------- */
.panel {
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--text-secondary); font-size: 15.5px; }

/* ---------- Lists ---------- */
ul.plain { padding-left: 0; list-style: none; margin: 0; }
ul.plain li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 15.5px;
}
ul.plain li:last-child { border-bottom: none; }
ul.plain li::before { content: "— "; color: var(--text-muted); }

/* ---------- Forms ---------- */
form.contact {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin-top: 24px;
}
form.contact label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
}
form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
}
form.contact textarea { resize: vertical; min-height: 100px; }
form.contact button { justify-self: start; margin-top: 4px; }

.route-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.route-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 15.5px;
}
.route-link:hover { border-color: var(--primary-dark); }
.route-link span { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  margin-top: 40px;
}
footer.site p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
footer.site .foot-links { display: flex; gap: 20px; margin-bottom: 14px; }
footer.site .foot-links a { font-size: 13.5px; color: var(--text-secondary); text-decoration: none; }
footer.site .foot-links a:hover { color: var(--primary-dark); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-light); border: none; margin: 0; }
.small-note { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

.contact-highlight {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  padding: 20px 34px;
  background: var(--primary-dark);
  border-radius: 100px;
  box-shadow: 0 10px 24px rgba(14, 74, 61, 0.28);
}
.contact-highlight .label {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-bottom: 3px;
}
.contact-highlight a {
  font-size: 26px;
  font-weight: 600;
  font-family: 'Fraunces', serif;
  color: #fff;
  letter-spacing: 0.01em;
}
.contact-highlight a:hover { color: var(--accent-bg); }

@media (max-width: 720px) {
  .fork-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }

  .nav-toggle { display: block; }

  nav.site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 8px 24px 16px;
    z-index: 50;
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
  }
  nav.site-nav a:last-child { border-bottom: none; }
}
