/* ============================================================
   Amit Om, MD — redesign concept
   Palette: ivory paper, deep teal, ink, gentian-violet marker
   Type: Newsreader (display) · Public Sans (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --paper: #FAF7F1;
  --paper-2: #F2ECE1;
  --ink: #22302D;
  --ink-2: #5C6B67;
  --teal: #175A52;
  --teal-deep: #0E3B35;
  --teal-tint: #E2ECE8;
  --violet: #5B3E8F;
  --line: #E2D9C9;
  --white: #FFFFFF;
  --display: "Newsreader", Georgia, serif;
  --body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 14px;
}

.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 58ch; }

/* ---------- announcement ---------- */
.announce {
  background: var(--teal-deep);
  color: #EAF2EE;
  text-align: center;
  font-size: 0.875rem;
  padding: 9px 20px;
}
.announce strong { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.wordmark { text-decoration: none; color: var(--ink); line-height: 1.15; }
.wordmark .name { font-family: var(--display); font-size: 1.35rem; font-weight: 500; display: block; }
.wordmark .spec {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--violet); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--mono); font-size: 0.85rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1.5px solid var(--teal);
  transition: background-color 160ms ease, color 160ms ease;
}
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-ghost { color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal-tint); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}
.hero-copy { padding-bottom: 72px; }
.hero-copy .lede { margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.marker { position: relative; white-space: nowrap; }
.marker svg {
  position: absolute;
  inset: -12% -5%;
  width: 110%;
  height: 124%;
  overflow: visible;
  pointer-events: none;
}
.marker path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0.85;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.1s ease-out 0.5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .marker path { stroke-dashoffset: 0; } }

.hero-figure {
  position: relative;
  align-self: end;
  background: var(--teal-tint);
  border-radius: 999px 999px 0 0;
  padding: 48px 36px 0;
}
.hero-figure img { margin: 0 auto; max-height: 520px; width: auto; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-2);
}
.trust-row span::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .lede { margin-top: 14px; }

/* ---------- service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  position: relative;
}
.svc::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 44px;
  height: 3px;
  background: var(--teal);
  transition: width 200ms ease, background-color 200ms ease;
}
.svc:hover::before { width: 76px; background: var(--violet); }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: 0.94rem; color: var(--ink-2); }

/* ---------- steps (Mohs process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { counter-increment: step; border-top: 1px solid var(--line); padding-top: 18px; }
.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--violet);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.15rem; margin: 8px 0 8px; }
.step p { font-size: 0.92rem; color: var(--ink-2); }

/* ---------- case strip ---------- */
.case-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-strip figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.case-strip figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 10px;
}
.case-strip figcaption b { color: var(--violet); font-weight: 500; }

/* graphic-content veil */
.veil { position: relative; }
.veil .case-strip { filter: blur(18px); transition: filter 300ms ease; }
.veil.revealed .case-strip { filter: none; }
.veil-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  z-index: 2;
  padding: 20px;
}
.veil.revealed .veil-cover { display: none; }
.veil-cover p { font-size: 0.92rem; color: var(--ink-2); max-width: 44ch; }
.veil-cover button {
  font: 600 0.9rem var(--body);
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
}
.veil-cover button:hover { background: var(--teal-deep); }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat .num { font-family: var(--display); font-size: 2.9rem; color: var(--teal); line-height: 1; }
.stat .lbl { font-size: 0.88rem; color: var(--ink-2); margin-top: 6px; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote blockquote {
  font-family: var(--display);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.5;
}
.quote blockquote::before { content: "“"; color: var(--violet); font-size: 1.6em; line-height: 0; vertical-align: -0.28em; margin-right: 2px; }
.quote cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: auto;
}

/* ---------- timeline (education) ---------- */
.timeline { list-style: none; border-left: 2px solid var(--teal-tint); padding-left: 32px; display: grid; gap: 30px; }
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2.5px solid var(--paper);
}
.timeline .when {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.timeline h3 { margin: 4px 0 4px; }
.timeline p { font-size: 0.94rem; color: var(--ink-2); }

/* ---------- logo / badge rows ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.badge-row img { height: 130px; width: auto; }
.logo-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.logo-row img { height: 64px; width: auto; filter: grayscale(35%); opacity: 0.85; }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); }
.split .lede { margin: 14px 0 18px; }

/* ---------- product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.prod {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 160ms ease;
}
.prod:hover { border-color: var(--teal); }
.prod img { height: 150px; width: auto; margin: 0 auto 16px; object-fit: contain; }
.prod h3 { font-size: 1.05rem; }
.prod span { font-size: 0.82rem; color: var(--teal); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--violet); font-size: 1.3rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 22px; color: var(--ink-2); max-width: 66ch; }

/* ---------- contact ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.loc-grid-single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.loc-grid-single .loc iframe { height: 320px; }
.loc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.loc iframe { width: 100%; height: 260px; border: 0; display: block; }
.loc-body { padding: 24px 26px 28px; }
.loc-body h3 { margin-bottom: 8px; }
.loc-body p { font-size: 0.95rem; color: var(--ink-2); }
.loc-body .btn { margin-top: 16px; }

.contact-lines { display: grid; gap: 8px; margin: 22px 0 26px; }
.contact-lines a {
  font-family: var(--mono);
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
}
.contact-lines a:hover { color: var(--teal); }
.contact-lines .tag { font-family: var(--body); font-size: 0.8rem; color: var(--ink-2); display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal-deep); color: #EAF2EE; text-align: center; padding: 84px 24px; }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto 14px; }
.cta-band p { color: #BCD3CB; max-width: 52ch; margin: 0 auto 30px; }
.cta-band .btn { border-color: #fff; color: var(--teal-deep); background: #fff; }
.cta-band .btn:hover { background: var(--paper); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C8CFCC; font-size: 0.9rem; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8FA09B;
  margin-bottom: 14px;
}
.site-footer a { color: #E4E9E7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-word { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.footer-note { border-top: 1px solid #3A4744; padding-top: 22px; font-size: 0.8rem; color: #8FA09B; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 550ms ease, transform 550ms ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .svc-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .loc-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone {
    display: none;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-open .nav-links {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px;
    gap: 4px;
    margin: 0;
  }
  .svc-grid, .quote-grid, .case-strip { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
