/* ---------- Tokens ---------- */
:root {
  --color-primary: #0f172a;      /* navy */
  --color-secondary: #334155;    /* slate */
  --color-accent: #075985;       /* single accent blue, WCAG AA on white text */
  --color-accent-hover: #0c4a6e;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-fg: #0f172a;
  --color-muted: #eef2f6;
  --color-muted-fg: #475569;
  --color-border: #e2e8f0;
  --color-on-accent: #ffffff;

  --font-display: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1200px;
  --radius: 10px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-secondary); max-width: 65ch; }
a { color: var(--color-accent); }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
img, svg { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  min-height: 44px;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { transform: translateY(1px) scale(0.98); }
.btn-large { padding: 1em 2em; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-primary);
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.primary-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.98rem;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--color-accent); }
.nav-cta { flex: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  margin: 0 8px;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.mobile-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.05rem;
}
.mobile-nav a.btn-primary { color: var(--color-on-accent); }
.mobile-nav .btn { width: 100%; margin-top: 0.5rem; }

@media (max-width: 940px) {
  .primary-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .mobile-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 2rem;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 1.5rem clamp(3rem, 6vw, 5rem);
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 3rem;
}
.hero-copy h1 { color: var(--color-primary); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 420px; height: auto; }
.orbit { stroke: var(--color-border); stroke-width: 1; fill: none; }
.orbit-2 { stroke-dasharray: 2 6; }
.routes path { stroke: var(--color-accent); stroke-width: 1.5; fill: none; opacity: 0.55; }
.nodes circle { fill: var(--color-primary); }
.node-center { fill: var(--color-accent); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto; }
}

/* ---------- Pillars strip ---------- */
.pillars { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar { padding: 0 2rem; border-left: 1px solid var(--color-border); }
.pillar:first-child { border-left: none; padding-left: 0; }
.pillar h2 { font-size: 1.15rem; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.pillar p { font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) {
  .pillars-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pillar { border-left: none; border-top: 1px solid var(--color-border); padding: 1.5rem 0 0; }
  .pillar:first-child { border-top: none; padding-top: 0; }
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.about .lede { font-size: 1.2rem; color: var(--color-primary); font-family: var(--font-display); font-style: italic; line-height: 1.4; }
.about p:not(.lede) { font-size: 1.05rem; }
.about-figure { margin: 0; }
.about-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
}

/* ---------- Services ---------- */
.services { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.services .lede { font-size: 1.1rem; max-width: 60ch; }
.service-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}
.service-featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.25rem 1.5rem; border-top: 2px solid var(--color-primary); padding-top: 1.75rem; }
.service-featured h3 { grid-column: 2; }
.service-featured p { grid-column: 2; max-width: 70ch; }
.service-featured .service-icon { grid-row: 1 / span 2; }
.service { border-top: 1px solid var(--color-border); padding-top: 1.75rem; }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-muted);
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service h3 { color: var(--color-primary); }
.service p { font-size: 0.98rem; }
@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-featured { grid-template-columns: 1fr; }
  .service-featured h3, .service-featured p { grid-column: 1; }
}

/* ---------- Mission band ---------- */
.mission-band {
  background:
    linear-gradient(100deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 55%, rgba(15, 23, 42, 0.82) 100%),
    url("../images/vials.jpg") center 65% / cover no-repeat;
  color: #fff;
}
.mission-band blockquote { margin: 0; }
.mission-band p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw + 0.5rem, 2.1rem);
  color: #fff;
  max-width: 22ch;
  line-height: 1.35;
  margin: 0;
}

/* ---------- Why Us ---------- */
.why-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
.why-intro p { font-size: 1.05rem; }
.why-list { display: flex; flex-direction: column; }
.why-item { padding: 1.75rem 0; border-top: 1px solid var(--color-border); }
.why-item:last-child { border-bottom: 1px solid var(--color-border); }
.why-item h3 { color: var(--color-primary); margin-bottom: 0.35em; }
.why-item p { margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) {
  .why-inner { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.cta-band { background: var(--color-muted); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.cta-inner h2 { color: var(--color-primary); max-width: 18ch; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.contact-details { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-details div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.6rem; }
.contact-details dt { color: var(--color-primary); font-weight: 700; }
.contact-details dd { margin: 0; color: var(--color-secondary); text-align: right; }
.contact-details dd.tbd { color: var(--color-muted-fg); font-style: italic; }

.contact-form { display: grid; gap: 1.1rem; align-content: start; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 700; font-size: 0.92rem; color: var(--color-primary); }
.form-row input, .form-row textarea {
  font: inherit;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-fg);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--color-muted-fg); }
.form-row input:focus, .form-row textarea:focus { border-color: var(--color-accent); }
.contact-form .btn { justify-self: start; }
.form-note { min-height: 1.2em; font-size: 0.92rem; color: var(--color-accent); margin: 0; }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: #cbd5e1; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand .brand-mark { border-color: #cbd5e1; color: #fff; }
.footer-name { color: #fff; font-family: var(--font-display); font-weight: 600; margin: 0; }
.footer-tag { margin: 0; font-size: 0.9rem; color: #94a3b8; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: #cbd5e1; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}
