/* Kateri Clinic – preview site
   Palette taken from the practice's own logo: a single deep blue, warmed with a paper tone
   and one muted green used only where the copy talks about materials and prevention. */

:root {
  --brand: #00489d;
  --brand-deep: #033268;
  --brand-tint: #e9f0fa;
  --brand-tint-2: #f4f8fd;
  --ink: #10233f;
  --body: #3c4a60;
  --muted: #6a7789;
  --line: #dfe6f1;
  --paper: #ffffff;
  --sand: #f7f5f0;
  --green: #2c6558;
  --green-tint: #eef3f0;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.16rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

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

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 126px; height: auto; display: block; }
.brand span { display: none; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--brand); text-decoration: underline; }

.header-cta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-tel { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-tel:hover { color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-tint); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--brand-tint-2) 62%, #fff 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 74px 0 68px;
}
.eyebrow {
  font-size: 0.79rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 0.35em; }
.hero-lead { font-size: 1.12rem; max-width: 33em; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-art { color: var(--brand); opacity: 0.5; justify-self: center; width: min(100%, 360px); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 0 0 42px;
  font-size: 0.93rem;
  color: var(--body);
}
.facts li { list-style: none; display: flex; align-items: baseline; gap: 9px; }
.facts li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}
.facts ul { display: contents; }
.facts strong { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */

section { padding: 76px 0; }
/* the header is sticky, so an anchor jump has to stop short of it */
section[id] { scroll-margin-top: 88px; }
section.tinted { background: var(--brand-tint-2); }
section.sand { background: var(--sand); }
section.greenish { background: var(--green-tint); }

.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head p { font-size: 1.05rem; }
.label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 14px;
}
.greenish .label { color: var(--green); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; color: var(--body); }

.numbered { counter-reset: step; }
.numbered .card { position: relative; padding-top: 30px; }
.numbered .card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

/* ---------- metal-free block ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}
.split .note {
  background: var(--paper);
  border: 1px solid #dbe6e1;
  border-radius: var(--radius);
  padding: 26px 24px;
}
.split .note h3 { color: var(--green); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--green);
}

/* ---------- fees ---------- */

/* columns rather than a grid: the groups are different lengths, and a grid leaves ragged
   holes where a short group sits beside a long one */
.fees-grid { columns: 2; column-gap: 52px; }
.fee-group { break-inside: avoid; margin-bottom: 26px; }
.fee-group h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.28rem;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.fee {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dotted #d7dfec;
  font-size: 0.97rem;
}
.fee:last-child { border-bottom: 0; }
.fee dt { flex: 1 1 auto; margin: 0; color: var(--body); }
.fee dd { margin: 0; flex: 0 0 auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fee small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.fees-note { margin-top: 30px; font-size: 0.9rem; color: var(--muted); max-width: 52em; }

/* ---------- visiting ---------- */

.hours { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.hours th { font-weight: 500; color: var(--body); }
.hours td { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr.closed td { font-weight: 400; color: var(--muted); }
.hours caption { text-align: left; font-size: 0.85rem; color: var(--muted); padding-bottom: 12px; }

.address { font-style: normal; font-size: 1.02rem; line-height: 1.75; }
.address strong { color: var(--ink); }

/* ---------- contact ---------- */

.contact-panel {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.contact-panel h2 { color: #fff; }
.contact-panel p { color: rgba(255, 255, 255, 0.88); }
.contact-panel a:not(.btn) { color: #fff; }
.contact-lines { list-style: none; margin: 18px 0 0; padding: 0; }
.contact-lines li { margin-bottom: 10px; font-size: 1.02rem; }
.contact-lines .k {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9c4d6;
  padding: 54px 0 34px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.site-footer h3 { color: #fff; font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #dbe4f1; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.83rem;
  color: #8f9cb2;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 46px; }
  .hero-art { display: none; }
  .grid-3, .grid-2, .split, .contact-panel, .footer-grid { grid-template-columns: 1fr; }
  .fees-grid { columns: 1; }
  .split { gap: 30px; }
  .contact-panel { padding: 34px 26px; }
  .site-nav { display: none; }
  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .header-tel { display: none; }
  .brand img { width: 92px; }
  .btn { padding: 11px 18px; font-size: 0.9rem; }
  .facts { gap: 8px 20px; font-size: 0.88rem; }
}

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

@media print {
  .site-header, .hero-art, .contact-panel .btn { display: none; }
  body { font-size: 12pt; }
}
