/* Srini Vascular Associates. Theatre green, the clinic site's palette, set calmer: it should read like letterhead. */
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --deep: 7 66 58;
  --deep-2: 13 86 76;
  --mint: 170 232 214;
  --mint-soft: 228 246 241;
  --sand: 244 249 247;
  --line: 208 228 221;
  --ochre: 201 138 43;
  --text: 12 40 36;
  --text-2: 52 82 76;
  --muted: 76 102 96;
  --surface: 255 255 255;
  --radius: 10px;
  --gutter: 20px;
  --max: 1040px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgb(var(--text));
  background: rgb(var(--surface));
}
a { color: rgb(var(--deep-2)); text-underline-offset: 3px; }
a:hover { color: rgb(var(--deep)); }
:focus-visible { outline: 3px solid rgb(var(--ochre)); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; color: rgb(var(--deep)); margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--surface)); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: rgb(var(--deep)); }
.brand img { width: 36px; height: 36px; }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: rgb(var(--text-2)); }
.top nav a:hover { color: rgb(var(--deep)); }

/* Hero */
.hero { background: rgb(var(--deep)); color: #fff; }
.hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--mint)); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); font-weight: 700; max-width: 18ch; }
.hero .lede { margin-top: 18px; font-size: 19px; max-width: 46ch; color: rgb(255 255 255 / 0.86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-light { background: #fff; color: rgb(var(--deep)); }
.btn-light:hover { background: rgb(var(--mint-soft)); color: rgb(var(--deep)); }
.btn-ghost { border: 1px solid rgb(255 255 255 / 0.5); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.18); font-size: 15px; color: rgb(255 255 255 / 0.8); }
.facts b { color: #fff; font-weight: 600; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: rgb(var(--sand)); border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--muted)); margin-bottom: 10px; }
section h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; margin-bottom: 30px; max-width: 26ch; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid rgb(var(--line)); border-radius: var(--radius); padding: 24px; }
.card svg { width: 30px; height: 30px; color: rgb(var(--deep-2)); margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: rgb(var(--text-2)); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid rgb(var(--deep)); padding-top: 16px; }
.steps li::before { content: "0" counter(s); display: block; font-size: 14px; font-weight: 700; color: rgb(var(--ochre)); margin-bottom: 6px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: rgb(var(--text-2)); font-size: 16px; }

.lead { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.lead img { width: 220px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); border: 1px solid rgb(var(--line)); background: rgb(var(--mint-soft)); }
.lead h3 { font-size: 24px; }
.lead .role { color: rgb(var(--muted)); font-weight: 500; margin-top: 4px; }
.kv { margin: 20px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 16px; }
.kv dt { color: rgb(var(--muted)); }
.kv dd { margin: 0; }
.lead .note { margin-top: 18px; font-size: 15px; color: rgb(var(--text-2)); }

.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.contact address { font-style: normal; line-height: 1.7; }
.contact .lines { margin-top: 16px; display: grid; gap: 6px; }
.contact .lines span { color: rgb(var(--muted)); display: inline-block; min-width: 64px; }
.route { border: 1px solid rgb(var(--line)); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.route + .route { margin-top: 12px; }
.route h3 { font-size: 16px; margin-bottom: 4px; }
.route p { font-size: 15px; color: rgb(var(--text-2)); }

.ph { background: rgb(253 238 200); color: rgb(110 70 0); border-radius: 4px; padding: 0 4px; }

/* Footer */
footer { background: rgb(var(--deep)); color: rgb(255 255 255 / 0.75); font-size: 14px; }
footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer a { color: #fff; }

/* Plain pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.page .sub { color: rgb(var(--muted)); margin-bottom: 30px; }
.page h2 { font-size: 20px; margin: 28px 0 6px; }
.page p { max-width: 64ch; color: rgb(var(--text-2)); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  section { padding: 52px 0; }
  .cards, .steps, .contact { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; gap: 22px; }
  .lead img { width: 160px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

@media print {
  .top nav, .actions, .skip { display: none; }
  .hero { background: none; color: rgb(var(--text)); }
  .hero h1, .facts b { color: rgb(var(--deep)); }
}

/* Motion. Calm, once only, and none at all for visitors who ask for reduced motion. */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-tree { position: absolute; right: -10px; bottom: -40px; width: 380px; height: auto; pointer-events: none; }
.hero-tree .l { stroke: rgb(97 157 144); }
.hero-tree .r { stroke: rgb(153 120 47); }
.hero-tree circle.l { fill: rgb(97 157 144); stroke: none; }
.hero-tree circle.r { fill: rgb(153 120 47); stroke: none; }
.hero .kicker, .hero h1, .hero .lede, .hero .actions, .hero .facts { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero .kicker, .hero h1, .hero .lede, .hero .actions, .hero .facts {
    animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero h1 { animation-delay: 0.08s; }
  .hero .lede { animation-delay: 0.16s; }
  .hero .actions { animation-delay: 0.24s; }
  .hero .facts { animation-delay: 0.32s; }

  .hero-tree path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 0.6s ease-out both; }
  .hero-tree .d0 { animation-delay: 0.3s; }
  .hero-tree .d1 { animation-delay: 0.75s; }
  .hero-tree .d2 { animation-delay: 1.15s; }
  .hero-tree .d3 { animation-delay: 1.5s; }
  .hero-tree circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: bud 0.5s ease-out 1.9s both; }

  .js .reveal > .wrap > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in > .wrap > * { opacity: 1; transform: none; }
  .js .reveal .cards > *, .js .reveal .steps > * { opacity: 0; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.7,.2,1); transition-delay: calc(0.15s + var(--i, 0) * 0.09s); }
  .js .reveal.in .cards > *, .js .reveal.in .steps > * { opacity: 1; transform: none; }

  .js .steps li { border-top-color: transparent; background: linear-gradient(rgb(var(--deep)), rgb(var(--deep))) top left / 0 3px no-repeat; transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.7,.2,1), background-size 0.9s cubic-bezier(.4,0,.2,1); transition-delay: calc(0.15s + var(--i, 0) * 0.12s); }
  .js .reveal.in .steps li { background-size: 100% 3px; }

  .card { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
  .card:hover { transform: translateY(-2px); border-color: rgb(var(--deep-2) / 0.45); box-shadow: 0 8px 24px rgb(var(--deep) / 0.08); }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes bud { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 760px) {
  .hero-tree { width: 220px; right: -30px; bottom: -30px; opacity: 0.6; }
}
