/* ==========================================================================
   Richmond Hill Vein Clinic — design tokens
   Display: self-hosted Source Serif 4 (600, latin subset, ~21KB)
   Body/UI: system sans stack (zero network cost)
   Utility: system mono stack (zero network cost)
   ========================================================================== */

@font-face {
  font-family: "Source Serif Display";
  src: url("../assets/fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --ink: #0e2733;
  --vessel: #2c6b85;
  --vessel-deep: #1b4b5f;
  --vessel-tint: #e4eef1;
  --pulse: #96001a;
  --pulse-deep: #6e0813;
  --mist: #f3f7f6;
  --paper: #ffffff;
  --line: #dce7e4;
  --slate: #3f5257;
  --slate-soft: #75898c;

  /* type */
  --font-display: "Source Serif Display", Georgia, "Iowan Old Style", ui-serif, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* scale */
  --content-w: 1120px;
  --radius: 6px;
  --radius-sm: 3px;

  --shadow-card: 0 1px 2px rgba(14, 39, 51, 0.04), 0 8px 24px -12px rgba(14, 39, 51, 0.14);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--mist);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
}

.skip-link:focus {
  left: 16px !important;
  top: 12px !important;
}

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

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vessel);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--pulse);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.3; }

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--slate-soft);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- flow-line signature ---------- */
.flow-divider {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--line);
}
.flow-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero-frame {
  aspect-ratio: 900 / 676;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(14,39,51,0.04);
  pointer-events: none;
}
.hero-frame picture,
.hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--pulse);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(150, 0, 26, 0.5);
}
.btn-primary:hover { background: var(--pulse-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--vessel-deep);
  border: 1.5px solid var(--vessel);
}
.btn-outline:hover { background: var(--vessel-tint); }
.btn-ghost { color: var(--vessel-deep); font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-mono { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.02em; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 247, 246, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(14,39,51,0.02); }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}
.brand-text strong { display: block; font-size: 15px; letter-spacing: 0.05em; font-weight: 700; }
.brand-text span { color: var(--pulse); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--slate);
  position: relative;
}
.nav-links a:hover { color: var(--vessel-deep); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.nav-phone svg { width: 15px; height: 15px; color: var(--pulse); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-1.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}
.hero h1 em {
  font-style: normal;
  color: var(--vessel-deep);
}
.hero-lead { font-size: 18px; color: var(--slate); max-width: 52ch; }
.hero-sub { margin-top: 14px; font-size: 15.5px; color: var(--slate-soft); max-width: 54ch; }

.check-grid {
  margin: 30px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.check-grid li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.check-grid svg { width: 16px; height: 16px; margin-top: 2px; color: var(--vessel); flex: none; }

.hero-art { position: relative; }

/* ---------- trust ticker ---------- */
.ticker {
  background: var(--ink);
  color: #dfeaec;
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll-left 34s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.ticker-track span::after { content: "•"; color: var(--pulse); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col p + p { margin-top: 14px; }
.two-col .lede { font-size: 17.5px; color: var(--slate); }

.diff-list { margin-top: 26px; display: grid; gap: 12px; }
.diff-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.diff-list li:last-child { border: 0; padding-bottom: 0; }
.diff-list svg { width: 17px; height: 17px; color: var(--pulse); margin-top: 2px; flex: none; }

/* symptom grid */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.symptom-grid li {
  background: var(--paper);
  padding: 20px 22px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.symptom-grid li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--vessel);
  flex: none;
}
.symptom-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--slate-soft);
  border-left: 2px solid var(--pulse);
  padding-left: 16px;
}

/* services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
.service-card h3 { font-size: 20px; }
.service-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pulse);
}
.service-card .desc { font-size: 14.5px; color: var(--slate); }
.service-benefits { display: grid; gap: 8px; margin-top: 4px; }
.service-benefits li {
  font-size: 13.8px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.service-benefits svg { width: 14px; height: 14px; color: var(--vessel); margin-top: 3px; flex: none; }
.service-recovery {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--slate-soft);
}
.service-recovery strong { color: var(--ink); font-weight: 600; }
.service-card .btn { margin-top: 6px; align-self: flex-start; }

/* specialist */
.doctor-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.doctor-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}
.doctor-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(14,39,51,0.04);
  pointer-events: none;
}
.doctor-frame picture,
.doctor-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-name { font-size: 26px; }
.doctor-title { margin-top: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--vessel); letter-spacing: 0.02em; }
.doctor-bio p + p { margin-top: 14px; font-size: 15px; }
.expertise-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.expertise-grid li {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.expertise-grid svg { width: 15px; height: 15px; color: var(--pulse); margin-top: 2px; flex: none; }
.appointments { margin-top: 26px; display: grid; gap: 10px; }
.appointments li {
  font-size: 14px;
  color: var(--slate);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
.languages { margin-top: 22px; font-size: 14px; color: var(--slate-soft); }
.languages strong { color: var(--ink); }

/* process */
.process-list { display: grid; gap: 0; }
.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.process-item:last-child { border: 0; }
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--vessel);
  padding-top: 4px;
}
.process-item h3 { font-size: 18px; }
.process-item p { margin-top: 6px; font-size: 14.5px; color: var(--slate); }

/* stats / results */
.stat-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  background: var(--ink);
  color: #eef4f4;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
}
.stat-cell .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  white-space: nowrap;
}
.stat-cell .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #a9c1c6;
  text-transform: uppercase;
  text-align: right;
}

.outcome-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.outcome-grid li {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.outcome-grid svg { width: 16px; height: 16px; color: var(--vessel); margin-top: 3px; flex: none; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trust-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  gap: 12px;
}
.trust-card svg { width: 20px; height: 20px; color: var(--pulse); flex: none; }

/* testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.testi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.testi-stars { color: var(--pulse); font-size: 13px; letter-spacing: 2px; }
.testi-card h3 { margin-top: 12px; font-size: 18px; }
.testi-card p { margin-top: 12px; font-size: 14.5px; color: var(--slate); }
.testi-card footer { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--slate-soft); letter-spacing: 0.02em; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
}
.faq-q .icon {
  flex: none;
  width: 22px; height: 22px;
  border: 1.5px solid var(--vessel);
  border-radius: 50%;
  position: relative;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--vessel);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 9px; height: 1.5px; }
.faq-q .icon::after { width: 1.5px; height: 9px; transition: transform 0.2s ease, opacity 0.2s ease; }
.faq-item[data-open="true"] .icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { padding: 0 4px 22px; font-size: 15px; color: var(--slate); max-width: 62ch; }

/* contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { margin-top: 28px; display: grid; gap: 18px; }
.contact-list a, .contact-list div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink);
}
.contact-list svg { width: 18px; height: 18px; color: var(--pulse); margin-top: 2px; flex: none; }
.contact-list .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-soft); display: block; margin-bottom: 2px; }
.contact-card {
  background: var(--ink);
  color: #eef4f4;
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3 { color: #fff; font-size: 22px; }
.contact-card p { margin-top: 12px; font-size: 14.5px; color: #b7cbce; }
.contact-card .btn-row { margin-top: 24px; }
.contact-card .btn-outline { color: #fff; border-color: #4d7c8f; }
.contact-card .btn-outline:hover { background: rgba(255,255,255,0.06); }
.map-embed {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

/* footer */
.site-footer { background: var(--ink); color: #9db3b7; padding: 48px 0 32px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid #1f4351;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-text { color: #dfeaec; }
.footer-brand .brand-text span { color: #7d9ba1; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.footer-bottom .disclaimer { max-width: 640px; color: #6f8b90; }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .two-col, .doctor-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-phone-wrap { display: none; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
  }
  .nav.is-open .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .check-grid { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: 1fr; }
  .stat-cell { padding: 18px 20px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
}
