/* Pet Prosthetics LLC — site styles
   Palette: brick red from the logo, cool pale ground from the rehab room walls. */

:root {
  --ground: #f2f5f7;
  --surface: #ffffff;
  --surface-2: #e6ecf0;
  --ink: #1e1a1b;
  --ink-2: #5b5457;
  --ink-3: #8a8386;
  --brand: #9b3436;
  --brand-deep: #7a272a;
  --brand-soft: #f4e4e4;
  --sky: #a9c7d6;
  --sky-deep: #4a7590;
  --sky-soft: #dde9f0;
  --line: #d5dde3;
  --focus: #2b6cb0;
  --placeholder-bg: #fff7e0;
  --placeholder-line: #d9a63a;
  --placeholder-ink: #7a5a10;
  --shadow: 0 1px 2px rgba(30, 26, 27, .06), 0 8px 24px rgba(30, 26, 27, .08);
  --radius: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --measure: 62ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #171516;
    --surface: #221f20;
    --surface-2: #2c2829;
    --ink: #f1edeb;
    --ink-2: #b7afb1;
    --ink-3: #8a8386;
    --brand: #d9696b;
    --brand-deep: #e98486;
    --brand-soft: #3a2526;
    --sky: #5f8ba3;
    --sky-deep: #8fb5c9;
    --sky-soft: #24303a;
    --line: #3a3536;
    --focus: #7fb0ea;
    --placeholder-bg: #332a14;
    --placeholder-line: #c99a3a;
    --placeholder-ink: #ead9a8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #171516;
  --surface: #221f20;
  --surface-2: #2c2829;
  --ink: #f1edeb;
  --ink-2: #b7afb1;
  --ink-3: #8a8386;
  --brand: #d9696b;
  --brand-deep: #e98486;
  --brand-soft: #3a2526;
  --sky: #5f8ba3;
  --sky-deep: #8fb5c9;
  --sky-soft: #24303a;
  --line: #3a3536;
  --focus: #7fb0ea;
  --placeholder-bg: #332a14;
  --placeholder-line: #c99a3a;
  --placeholder-ink: #ead9a8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1em; }
p, li { max-width: var(--measure); }
strong { font-weight: 700; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .75rem;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  flex-wrap: wrap;
  padding-block: .6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: 56px; height: 56px; border-radius: 8px; background: #fff; }
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand .brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: .2rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .25rem; }
.site-nav a {
  display: inline-block;
  padding: .45rem .7rem;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 6px 6px 0 0; }
.site-nav a.ext::after { content: " ↗"; font-weight: 400; color: var(--ink-3); }
.site-nav a.ext:hover::after { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn .num { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .site-header .wrap { gap: .75rem; }
  .site-nav { order: 3; width: 100%; border-top: 1px solid var(--line); padding-top: .5rem; }
  .site-nav a { padding: .4rem .55rem; font-size: .9rem; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-surface { background: var(--surface); }
.section-sky { background: var(--sky-soft); }
.section-head { margin-bottom: 2rem; max-width: 60ch; }
.section-head h2 { margin-bottom: .4rem; }

.page-title { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-title h1 { margin-bottom: .6rem; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--brand); }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-words {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 1.6rem + 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
}
.hero-words > span { display: block; }
.hero-words .dot { display: inline; }
.hero-words .dot { color: var(--brand); }
.hero .lede { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-note { margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts li { background: var(--surface); padding: 1rem 1.15rem; max-width: none; }
.facts .k {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .15rem;
}
.facts .v { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }

/* ---------- Benefit list ---------- */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 2rem;
}
.benefits li {
  max-width: none;
  padding-left: 1.6rem;
  position: relative;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  max-width: none;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  padding-top: .1rem;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Service list ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.services li {
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.services h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.services p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* ---------- Price table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.prices { border-collapse: collapse; width: 100%; min-width: 620px; }
.prices th, .prices td { text-align: left; padding: .9rem 1.1rem; vertical-align: top; border-top: 1px solid var(--line); }
.prices thead th {
  border-top: 0;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
.prices td.range {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.prices td.name { font-weight: 700; }
.prices td.desc { color: var(--ink-2); }

.callout {
  border-left: 4px solid var(--brand);
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.stat { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--brand); line-height: 1; }

.factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem 2rem; }
.factors h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.factors p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.gallery figure { margin: 0; grid-column: span 3; }
.gallery figure.tall { grid-column: span 2; }
.gallery figure.wide { grid-column: span 4; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.gallery figure.tall img { aspect-ratio: 3 / 4; }
.gallery figure.wide img { aspect-ratio: 16 / 10; }
.gallery figure.full { grid-column: 1 / -1; }
.gallery figure.full img { aspect-ratio: 21 / 9; }
.gallery figcaption { font-size: .9rem; color: var(--ink-2); margin-top: .5rem; }
.gallery figcaption strong { color: var(--ink); }
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure, .gallery figure.tall, .gallery figure.wide { grid-column: span 1; }
  .gallery figure.wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: span 1; }
}

.feature-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Partner band ---------- */
.partner-band {
  background: var(--sky-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.partner-band p { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
}
:root[data-theme="dark"] .cta { background: var(--surface-2); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: var(--surface-2); color: var(--ink); } }
.cta h2 { margin-bottom: .3rem; }
.cta p { margin: 0; opacity: .85; }
.cta .btn-primary { font-size: 1.1rem; padding: .85rem 1.5rem; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Placeholder blocks (content still needed from client) ---------- */
.placeholder {
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--placeholder-ink);
  position: relative;
}
.placeholder::before {
  content: "Needs content from client";
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--placeholder-line);
  color: #1e1a1b;
  padding: .2rem .55rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.placeholder p { font-style: italic; }
.placeholder p:last-child { margin-bottom: 0; }
.placeholder-photo {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  font-style: italic;
}
.placeholder-photo::before { position: absolute; top: 1rem; left: 1.25rem; margin: 0; }

/* ---------- Team grid ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.team .placeholder-photo { aspect-ratio: 1; }
.team .portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); display: block; }
.team .portrait-blank { background: var(--surface-2); border: 1px solid var(--line); }
.team h3 a { color: inherit; text-decoration: none; }
.team h3 a:hover { color: var(--brand); text-decoration: underline; }
.team h3 { margin: .9rem 0 .2rem; }
.team .role { color: var(--brand); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list li { max-width: none; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.contact-list .k { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: .3rem; }
.contact-list .v { font-size: 1.05rem; }
.contact-list .v.big { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.contact-list .v a { text-decoration: none; }
.contact-list .v a:hover { text-decoration: underline; }

form.contact-form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .65rem .8rem;
  width: 100%;
}
.contact-form textarea { min-height: 7rem; resize: vertical; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; padding: .7rem .9rem; border-radius: 6px; font-weight: 700; font-size: .95rem; border: 1px solid var(--line); }
.form-status.ok { background: var(--sky-soft); color: var(--ink); }
.form-status.err { background: var(--brand-soft); color: var(--ink); border-color: var(--brand); }
.form-note { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 2.5rem 2rem; margin-top: 2rem; font-size: .93rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.site-footer .legal p { margin: 0; max-width: none; }
