/* Plainwell Web - site stylesheet v2
   Photo-led premium redesign, 2026-09-29. Landing page is About-first per Luke.
   Palette: lake #2B5D8A, pine #2F4A3A, off-white #FBF8F2, ink #1E2A33
   Type: Fraunces (display, self-hosted woff2 pending) + Hanken Grotesk (body, pending) */

/* ---------- Fonts (files land in this folder; see FONTS-NEEDED.md) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --lake: #2B5D8A;
  --lake-dark: #1E4160;
  --pine: #2F4A3A;
  --pine-dark: #263C2F;
  --paper: #FBF8F2;
  --ink: #1E2A33;
  --line: #DDD5C7;
  --serif: "Fraunces", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", Verdana, sans-serif;
  --max: 1120px;
  --header-h: 84px;
  --header-h-thin: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--lake); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--lake-dark); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 300;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: var(--paper); }

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

.section { padding: 4.5rem 0; }
.section--tight { padding: 2.5rem 0; }

/* ---------- Pricing package cards ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}
.pkg {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.75rem;
}
.pkg h3 { margin-bottom: 0.15rem; }
.pkg .tag {
  display: inline-block;
  background: var(--pine);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.8rem;
  margin-bottom: 0.9rem;
}
.pkg .price {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.pkg .price small {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
}
.pkg ul { list-style: none; margin: 0; padding: 0; }
.pkg li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.pkg--recommended { border: 2px solid var(--pine); }
.pkg-cta { text-align: center; margin-top: 2.5rem; }
.pkg-grid--two { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
.pkg .price--label { font-size: 1.4rem; }
.pkg p:not(.price) { margin: 0; }

.btn.btn--ghost {
  background: transparent;
  color: var(--pine);
}
.btn.btn--ghost:hover { background: var(--pine); color: #FFFFFF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--pine);
  background: var(--pine);
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.btn:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: #FFFFFF; }

/* ---------- Header: solid by default, transparent over the hero only via JS ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  transition: height 0.2s ease;
}
.site-header.is-thin .bar { height: var(--header-h-thin); }

/* JS adds .over-hero on pages with a photo hero while the hero is on screen.
   If JS never runs, the header stays solid and legible. */
.site-header.over-hero,
body.page-inner .site-header.over-hero {
  background: transparent;
  color: #FFFFFF;
  box-shadow: none;
}
body.page-inner main { padding-top: var(--header-h); }
body.page-hero main { padding-top: 0; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 0.2s ease;
}
.site-header.is-thin .wordmark { font-size: 1.35rem; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav a:hover { opacity: 0.85; }

.site-nav .btn {
  padding: 0.55rem 1.2rem;
  color: #FFFFFF;
  border-bottom: 2px solid var(--pine);
}
.site-nav .btn:hover { color: #FFFFFF; opacity: 1; border-bottom-color: var(--pine-dark); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 1rem;
  cursor: pointer;
}

/* ---------- Hero: full-bleed photo slot ---------- */
.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  color: #FFFFFF;
  /* Photo lands here later: background-image on .hero--has-photo. The dark
     base keeps white text readable over the placeholder and any photo. */
  background:
    linear-gradient(to bottom, rgba(30, 42, 51, 0.25) 0%, rgba(30, 42, 51, 0.72) 100%),
    linear-gradient(135deg, var(--lake-dark), var(--ink));
  background-size: cover;
  background-position: center;
}
.hero .wrap {
  width: 100%;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}
.hero--has-photo {
  background:
    linear-gradient(to bottom, rgba(30, 42, 51, 0.72) 0%, rgba(30, 42, 51, 0.35) 45%, rgba(30, 42, 51, 0.8) 100%),
    url("images/local-plainwell.jpg");
  background-size: cover;
  background-position: center 40%;
}
body.page-inner .hero { min-height: 56svh; }
.hero .btn.btn--ghost { border-color: rgba(255, 255, 255, 0.85); color: #FFFFFF; }
.hero .btn.btn--ghost:hover { background: #FFFFFF; color: var(--ink); }
.hero h1 { color: #FFFFFF; max-width: 16ch; margin-bottom: 0.35em; }
.hero .lede {
  font-size: 1.3rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 1.5rem;
}
.hero-photo-label {
  position: absolute;
  top: calc(var(--header-h) + 1rem);
  right: 1.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
}

/* ---------- Placeholder panels ---------- */
.placeholder-panel {
  border: 2px dashed var(--lake);
  border-radius: 10px;
  background: rgba(43, 93, 138, 0.05);
  color: var(--lake);
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1.25rem;
}
.placeholder-panel small { color: var(--ink); font-weight: 400; }
.placeholder-panel--portrait { aspect-ratio: 4 / 5; }
.placeholder-panel--wide { aspect-ratio: 21 / 9; border-radius: 0; border-left: 0; border-right: 0; }

.photo-band {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 40%;
}

.chip-tbd {
  display: inline-block;
  border: 2px dashed var(--lake);
  border-radius: 999px;
  color: var(--lake);
  font-weight: 700;
  padding: 0.15rem 0.9rem;
  white-space: nowrap;
}

/* ---------- About section photos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}
.about-grid p { font-size: 1.2rem; max-width: 34rem; }
.about-main-photo {
  width: 100%;
  height: auto; /* shown wide, uncropped */
  border-radius: 12px;
}
.vet-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-top: 3rem;
  max-width: 52rem;
}
.vet-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.vet-row p { font-size: 1.2rem; margin-bottom: 0.75em; }
.vet-row p:last-child { margin-bottom: 0; }

/* ---------- Editorial numbered list (how it works) ---------- */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 52rem; }
.steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.steps .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--lake);
  line-height: 1.1;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; max-width: 38rem; }

/* ---------- Browser-window proof slot ---------- */
.browser-frame {
  max-width: 900px;
  margin: 2.5rem auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(30, 42, 51, 0.12);
}
.browser-frame .chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #EFEAE0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 1rem;
}
.browser-frame .dots { display: flex; gap: 6px; }
.browser-frame .dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line);
}
.browser-frame .dots span:first-child { background: var(--lake); }
.browser-frame .url {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.2rem 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame .stage {
  border: 2px dashed var(--lake);
  margin: 1.5rem;
  border-radius: 8px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  color: var(--lake);
  font-weight: 700;
}
.browser-frame .stage small { color: var(--ink); font-weight: 400; }

/* ---------- Quiet CTA ---------- */
.cta-quiet {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 5rem 0;
}
.cta-quiet p { max-width: 32rem; margin: 0 auto 1.75rem; font-size: 1.2rem; }

/* ---------- Pricing table ---------- */
.table-scroll { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid var(--line);
  min-width: 640px;
}
.compare th, .compare td {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: center;
  vertical-align: top;
}
.compare th { font-family: var(--serif); font-weight: 600; background: var(--ink); color: var(--paper); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare .yes { color: var(--pine); font-weight: 700; }
.compare .rowhead { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0.25rem;
  max-width: 52rem;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.3rem;
  cursor: pointer;
}
.faq details p { margin: 0.75rem 0 0; max-width: 44rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 1.5rem; }
.contact-list .label { font-weight: 700; display: block; }

form.contact-form {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.25rem;
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field .optional { font-weight: 400; font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: #FFFFFF; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer .wordmark { font-size: 1.45rem; }
.site-footer h3 { color: var(--paper); font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.copyright {
  border-top: 1px solid rgba(251, 248, 242, 0.25);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(251, 248, 242, 0.8);
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  background: var(--ink);
  padding: 0.5rem;
  gap: 0.5rem;
  box-shadow: 0 -2px 8px rgba(30, 42, 51, 0.3);
}
.call-bar .btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

/* ---------- Thanks / 404 ---------- */
.plain-page { padding: 4rem 0 5rem; max-width: 40rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .vet-row { grid-template-columns: 200px 1fr; gap: 1.5rem; }
  .pkg-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 720px) {
  body { padding-bottom: 64px; } /* room for the call bar */

  .nav-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 8px 16px rgba(30, 42, 51, 0.15);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 0;
  }
  .site-nav a[aria-current="page"] {
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
  }
  .site-nav .btn { margin: 0.9rem 1.5rem; text-align: center; }

  .call-bar { display: flex; }

  .hero { min-height: 88svh; }
  .section { padding: 3rem 0; }
  .steps li { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .vet-row { grid-template-columns: 1fr; }
  .vet-photo { max-width: 260px; }
}
