/* =========================================================
   Vet Referral Partners — Design System
   Palette: Calm teal + slate
   ========================================================= */

:root {
  /* Color */
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;   /* accent */
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;

  --ink-900: #0f172a;
  --ink-800: #1e293b;    /* primary text */
  --ink-700: #334155;
  --ink-600: #475569;    /* secondary text */
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  --white: #ffffff;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Spacing / layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-800); }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--maxw-narrow); }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--ink-50); }
.section--ink { background: var(--ink-900); color: #cbd5e1; }
.section--ink h2,
.section--ink h3 { color: #ffffff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--teal-100); }

.lead { font-size: 1.18rem; color: var(--ink-600); }
.section--ink .lead { color: #cbd5e1; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
    box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; }
.btn--primary:focus-visible,
.btn--ghost:focus-visible { outline-color: #fff; }
a:focus-visible,
.faq-q:focus-visible,
.nav-toggle:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 2px; border-radius: 6px; }

.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-800); color: #fff; box-shadow: var(--shadow-md); }

.btn--secondary {
  background: var(--white);
  color: var(--ink-800);
  border-color: var(--ink-200);
}
.btn--secondary:hover { border-color: var(--teal-700); color: var(--teal-800); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink-900); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .brand-name { font-size: 1.08rem; line-height: 1.05; }
.brand .brand-name span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--teal-700); letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  color: var(--ink-600);
  font-size: 0.96rem;
  font-weight: 500;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--ink-900); background: var(--ink-100); }
.nav-links a.active { color: var(--teal-800); }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, var(--teal-50) 0%, rgba(240,253,250,0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--ink-50) 100%);
  border-bottom: 1px solid var(--ink-200);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 0 96px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; max-width: 540px; }
.hero-meta { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta div { font-size: 0.92rem; color: var(--ink-600); }
.hero-meta strong { display: block; color: var(--ink-900); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

/* Network motif card */
.hero-visual {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-visual .vtitle { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-400); font-weight: 700; margin-bottom: 18px; }
.node-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--ink-50); margin-bottom: 12px; border: 1px solid var(--ink-100); }
.node-row:last-child { margin-bottom: 0; }
.node-ico { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.node-ico svg { width: 22px; height: 22px; }
.node-row .nt { font-weight: 600; color: var(--ink-900); font-size: 0.98rem; }
.node-row .ns { font-size: 0.85rem; color: var(--ink-600); }
.node-connector { display: grid; place-items: center; height: 18px; color: var(--teal-600); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-600); font-size: 0.98rem; }

.card-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-ico svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-600); margin: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin: 0; color: var(--ink-700); }
.checklist .ck {
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center; flex: none;
}
.checklist .ck svg { width: 13px; height: 13px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-band .stat strong { display: block; font-size: 2.1rem; color: var(--teal-700); letter-spacing: -0.02em; }
.stat-band .stat span { color: var(--ink-600); font-size: 0.95rem; }

/* Pull quote / trust */
.quote {
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink-900);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.quote.center { text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--ink-200); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: inherit;
}
.faq-q .chev { flex: none; transition: transform 0.2s var(--ease); color: var(--teal-700); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s var(--ease); }
.faq-a-inner { padding: 0 0 22px; color: var(--ink-600); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(13,148,136,0.45) 0%, rgba(13,148,136,0) 60%),
    var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink-800); }
.field label .req { color: var(--teal-700); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  padding: 12px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: 9px;
  background: var(--white);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid transparent; /* visible in Windows High Contrast Mode */
  outline-offset: 2px;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--ink-400); margin-top: 16px; }
.form-status { margin-top: 16px; font-weight: 600; color: var(--teal-700); display: none; }
.form-status.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #94a3b8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand .brand-name span { color: var(--teal-100); }
.footer-about { font-size: 0.92rem; color: #94a3b8; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-disclaimer { max-width: 720px; font-size: 0.8rem; color: #64748b; margin-top: 14px; line-height: 1.6; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, #ffffff 0%, var(--ink-50) 100%); border-bottom: 1px solid var(--ink-200); padding: 72px 0 64px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 620px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--teal-800); background: var(--teal-50); border: 1px solid var(--teal-100); padding: 5px 12px; border-radius: 999px; }
.muted { color: var(--ink-600); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
  .hero-visual { order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; gap: 18px; }
  .cta-band { padding: 44px 24px; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 18px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
