/* Frenchie IVDD Care Hub — standalone site */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --alabaster: #f7f3ee;
  --stone: #efe8df;
  --white: #fbf8f4;
  --ink: #2a2e32;
  --muted: #6a6b68;
  --sage: #5c6e5a;
  --terracotta: #c46a45;
  --hairline: #d4cdc3;
  --warn-bg: #f6ece6;
  --warn-ink: #6a3f2c;
  --max: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--alabaster);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--alabaster) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.15rem;
}
.brand {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.25rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav a:hover { color: var(--ink); }
.menu-toggle {
  appearance: none;
  background: none;
  border: 0.5px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  display: none;
}

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem; }
.kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5.4vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.lede {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
}

.callout {
  margin: 0 0 2.5rem;
  background: var(--warn-bg);
  border: 0.5px solid color-mix(in srgb, var(--terracotta) 28%, var(--hairline));
  border-radius: 12px;
  padding: 1.15rem 1.3rem 1.25rem;
}
.callout strong {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--warn-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.callout p { margin: 0; color: var(--warn-ink); font-size: 0.98rem; }

.toc { margin: 0 0 1rem; padding: 0 0 2.5rem; }
.toc h2 { margin-bottom: 0.85rem; }
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.toc li { margin: 0.25rem 0; }
.toc li.sub { margin-left: 1.1rem; list-style-type: circle; }

section { padding: 3.25rem 0; }
.section-rule { border: 0; border-top: 0.5px solid var(--hairline); margin: 0; }
h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h3 {
  margin: 2.25rem 0 0.7rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.caption, .section-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 42rem;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}
.tablist button {
  appearance: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0.5px solid var(--hairline);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  cursor: pointer;
}
.tablist button[aria-selected="true"],
.tablist button.is-active {
  color: var(--ink);
  background: var(--stone);
  border-color: color-mix(in srgb, var(--hairline) 50%, var(--ink) 15%);
}
.tablist button .count {
  margin-left: 0.3rem;
  color: var(--muted);
  font-weight: 400;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 0.75rem 1rem;
  margin: 0 0 1.35rem;
  align-items: end;
}
.field label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}
.field select, .field input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 0.5px solid var(--hairline);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
.btn-reset {
  appearance: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0.5px solid var(--hairline);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-reset:hover { background: var(--stone); }

.empty { color: var(--muted); margin: 0.5rem 0 1rem; }

.products { display: flex; flex-direction: column; gap: 0.75rem; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  background: var(--white);
  border: 0.5px solid var(--hairline);
  border-radius: 12px;
  padding: 1.05rem 1.15rem 1.15rem;
  align-items: start;
}
.product h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--terracotta); }
.meta {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--sage);
  letter-spacing: 0.01em;
}
.price { font-weight: 600; color: var(--ink); }
.store { color: var(--muted); }
.product p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  background: var(--terracotta);
  color: #fffaf6;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  border: 0.5px solid color-mix(in srgb, var(--terracotta) 80%, #8a3f24);
}
.buy:hover { color: #fffaf6; filter: brightness(1.05); }
.tip {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.85rem;
}
.card {
  background: var(--white);
  border: 0.5px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { border-color: color-mix(in srgb, var(--sage) 40%, var(--hairline)); }
.card h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.card h3, .card:hover h3 { color: var(--ink); }
.card .site { margin: 0; font-size: 0.82rem; color: var(--sage); }

.steps { margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.6rem;
  border-top: 0.5px solid var(--hairline);
  counter-increment: step;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 0.5px solid var(--hairline);
  background: var(--white);
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.steps span { color: var(--muted); font-size: 0.98rem; }

.flags { margin: 0 0 1rem; padding-left: 1.15rem; }
.flags li { margin: 0.4rem 0; color: var(--ink); }

.note { color: var(--muted); margin: 0.75rem 0 0; }

.site-footer {
  border-top: 0.5px solid var(--hairline);
  padding: 1.6rem 0 2rem;
}
.site-footer p { margin: 0 0 0.55rem; font-size: 0.9rem; color: var(--muted); }
.site-footer p:first-child {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--alabaster);
    border-bottom: 0.5px solid var(--hairline);
    padding: 0.75rem var(--pad) 1.1rem;
    gap: 0.7rem;
  }
  .site-header .wrap { position: relative; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; }
}
@media (min-width: 861px) {
  .menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
