/* =============================================================
   Whisker & Woof — Zero Pain Philosophy accreditation page
   Bespoke SEO landing layout. Imported from the "Zero Pain
   Philosophy v2 (SEO)" Claude Design and re-aligned to the
   live brand: proxima-nova (Typekit) + brand navy/gold palette.
   All rules are scoped under .zp-page so nothing leaks site-wide.
   ============================================================= */

/* The theme header (.header) is an absolute, transparent overlay built to float
   over a full-bleed hero image — on this dark content page it overlapped the
   hero copy. This stylesheet only loads on this template, so pin the header in
   normal flow as a solid navy bar; it sits flush above the navy hero. */
.header { position: static; background: #242933; }

.zp-page {
  /* Brand palette (see assets/scss/_vars.scss) */
  --navy: #242933;        /* blue-1   */
  --navy-deep: #1b1f28;
  --gold: #d9b451;        /* gold-3   */
  --gold-dark: #b07b1f;   /* accessible gold for light backgrounds */
  --bone: #ece7e0;
  --paper: #f2f0ea;       /* gray-1   */
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-mute: rgba(255, 255, 255, 0.85);
  --text-faint: rgba(255, 255, 255, 0.45);
  --text-dark: #242933;
  --text-dark-mute: rgba(36, 41, 51, 0.7);

  --font-display: "proxima-nova", "Montserrat", system-ui, sans-serif;
  --font-body: "proxima-nova", system-ui, sans-serif;

  --pad-x: 9.6rem;
  --max-w: 132rem;

  font-family: var(--font-body);
  font-size: 1.6rem;        /* base for em-driven measures (html is 62.5%) */
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.zp-page h1,
.zp-page h2,
.zp-page h3,
.zp-page h4,
.zp-page h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

.zp-page p { margin: 0 0 1em; color: var(--text-mute); }
.zp-page a { color: var(--gold); text-decoration: none; }
.zp-page b,
.zp-page strong { color: #fff; font-weight: 700; }

/* ---- Section scaffolding ---- */
.zp-sec { position: relative; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.zp-inner { max-width: var(--max-w); margin: 0 auto; }

/* Light section on warm paper */
.zp-light { background: var(--paper); color: var(--text-dark); }
.zp-light h1, .zp-light h2, .zp-light h3, .zp-light h4 { color: var(--text-dark); }
.zp-light p, .zp-light li { color: var(--text-dark-mute); }
.zp-light b, .zp-light strong { color: var(--text-dark); }
.zp-light a { color: var(--gold-dark); }

/* Bone / mid-tone light variant for rhythm */
.zp-bone { background: var(--bone); color: var(--text-dark); }
.zp-bone h1, .zp-bone h2, .zp-bone h3, .zp-bone h4 { color: var(--text-dark); }
.zp-bone p, .zp-bone li { color: var(--text-dark-mute); }
.zp-bone b, .zp-bone strong { color: var(--text-dark); }

/* ---- Soft wave dividers between sections ---- */
.zp-wave { display: block; width: 100%; height: 6.4rem; position: relative; z-index: 1; }
.zp-wave svg { display: block; width: 100%; height: 100%; }

/* ---- Eyebrow ---- */
.zp-eyebrow {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
.zp-eyebrow::before {
  content: "";
  width: 2.8rem; height: 0.2rem;
  background: currentColor;
  opacity: 0.6;
}
.zp-eyebrow.is-center { justify-content: center; }
.zp-light .zp-eyebrow,
.zp-bone .zp-eyebrow { color: var(--gold-dark); }

/* ---- Headings ---- */
.zp-h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 5vw, 6.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}
.zp-h1 .accent { font-style: italic; font-weight: 500; color: var(--gold); }
.zp-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
}
.zp-h2.is-small { font-size: clamp(2.4rem, 2.4vw, 3rem); }
.zp-h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

/* ---- Generic two-column grid ---- */
.zp-grid { display: grid; gap: 6.4rem; align-items: center; }
.zp-grid.cols-even { grid-template-columns: 1fr 1fr; }
.zp-grid.cols-hero { grid-template-columns: 1.15fr 0.85fr; }
.zp-grid.cols-3070 { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.zp-grid.cols-7030 { grid-template-columns: 0.7fr 1.3fr; align-items: start; }
.zp-grid.gap-wide { gap: 7.2rem; }
.zp-grid.align-start { align-items: start; }

/* ---- Image ---- */
.zp-img {
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 1.8rem;
}
/* Empty image slot (no image set yet) — neutral panel rather than a broken box. */
.zp-img.is-placeholder {
  min-height: 24rem;
  background-color: rgba(36, 41, 51, 0.06);
  background-image:
    repeating-linear-gradient(135deg, rgba(217, 180, 81, 0.10) 0 12px, rgba(217, 180, 81, 0.03) 12px 24px);
  border: 1px dashed rgba(36, 41, 51, 0.18);
}

/* ---- Hero ---- */
.zp-hero { padding-top: 4rem; padding-bottom: 7.2rem; overflow: hidden; }
.zp-hero .zp-lede { margin-top: 2.6rem; max-width: 34em; }
.zp-hero__actions { display: flex; gap: 1.4rem; margin-top: 3.4rem; flex-wrap: wrap; }
.zp-hero__media { position: relative; }
.zp-hero__media .zp-img { height: 44rem; }
.zp-hero__seal { position: absolute; left: -2.8rem; bottom: -2.8rem; }

/* ---- Lede ---- */
.zp-lede { font-size: 2.1rem; line-height: 1.55; font-weight: 400; color: var(--text-mute); }
.zp-light .zp-lede, .zp-bone .zp-lede { color: var(--text-dark-mute); }

/* ---- Body copy sizing helpers ---- */
.zp-page .lead { font-size: 1.8rem; line-height: 1.6; }
.zp-page .body { font-size: 1.6rem; }
.zp-page .body-sm { font-size: 1.5rem; }

/* ---- Key facts ---- */
.zp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 3.6rem; padding-top: 0.8rem; }
.zp-fact-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.zp-light .zp-fact-num, .zp-bone .zp-fact-num { color: var(--gold-dark); }
.zp-fact-label { font-size: 1.4rem; line-height: 1.5; margin-top: 1rem; max-width: 16em; color: var(--text-dark-mute); }

/* ---- Checklist ---- */
.zp-checklist { list-style: none; padding: 0; margin: 0; }
.zp-checklist li {
  position: relative;
  padding: 0 0 1.8rem 3.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(36, 41, 51, 0.1);
  font-size: 1.6rem;
  line-height: 1.55;
}
.zp-checklist li:last-child { border-bottom: 0; }
.zp-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background-color: rgba(217, 180, 81, 0.28);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b07b1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.2rem;
}

/* ---- Pull quote ---- */
.zp-pull-rule { width: 6rem; height: 0.3rem; border-radius: 0.2rem; margin-bottom: 2.8rem; background: var(--gold); }
.zp-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 3vw, 4rem);
  line-height: 1.25;
  max-width: 16em;
  color: #fff;
  border: 0; padding: 0; margin: 0;
}
.zp-page .accent-em { color: var(--gold); font-style: italic; }
.zp-list-mute { padding-left: 2rem; color: var(--text-mute); }
.zp-light .zp-list-mute, .zp-bone .zp-list-mute { color: var(--text-dark-mute); }

/* ---- Protocols grid ---- */
.zp-protocols { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 6.4rem; row-gap: 3rem; margin-top: 4rem; }
.zp-protocol { display: flex; gap: 1.8rem; padding-bottom: 2.4rem; }
.zp-protocol.has-rule { border-bottom: 1px solid rgba(36, 41, 51, 0.1); }
.zp-protocol__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--gold-dark);
  line-height: 1;
  width: 3.6rem;
  flex-shrink: 0;
}
.zp-protocol h3 { margin: 0 0 0.6rem; }
.zp-protocol p { margin: 0; font-size: 1.5rem; }

/* ---- Process steps ---- */
.zp-steps { counter-reset: step; }
.zp-step { display: flex; gap: 2.4rem; padding-bottom: 3.2rem; position: relative; }
.zp-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2.1rem; top: 4.4rem; bottom: -0.4rem;
  width: 0.2rem;
  background: rgba(217, 180, 81, 0.35);
}
.zp-step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 4.4rem; height: 4.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  position: relative; z-index: 1;
  background: rgba(217, 180, 81, 0.15);
  color: var(--gold);
}
.zp-step-num::before { content: counter(step, decimal-leading-zero); }
.zp-step h3 {
  font-size: 1.9rem; font-weight: 600; margin: 0;
  min-height: 4.4rem; display: flex; align-items: center;
  line-height: 1.2; color: #fff;
}
.zp-step p { margin: 0.2rem 0 0; color: var(--text-mute); font-size: 1.5rem; }

/* ---- Standards / accreditation badges ---- */
.zp-badges { display: flex; justify-content: center; gap: 5.6rem; margin-top: 4.4rem; flex-wrap: wrap; align-items: flex-start; }
.zp-badge { text-align: center; width: 16rem; }
.zp-badge__title { font-family: var(--font-display); font-weight: 600; margin-top: 1.4rem; color: var(--text-dark); }
.zp-badge__desc { font-size: 1.3rem; color: var(--text-dark-mute); }

/* Zero Pain seal */
.zp-seal {
  width: 13.2rem; height: 13.2rem;
  border-radius: 0.6rem;
  background: #034175;
  overflow: hidden;
  box-shadow: 0 1.2rem 3rem rgba(3, 65, 117, 0.35);
  flex-shrink: 0;
  display: block;
}
.zp-seal svg { display: block; width: 100%; height: 100%; }
.zp-badge .zp-seal { margin: 0 auto; }

/* ISFM Cat Friendly badge */
.cf-badge {
  background: linear-gradient(180deg, #c03b6f, #8e2350);
  color: #fff;
  width: 9.6rem;
  border-radius: 0.6rem;
  padding: 1.2rem 0.8rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  box-shadow: 0 1rem 2.5rem rgba(192, 59, 111, 0.35);
  letter-spacing: 0.02em;
  margin: 0 auto;
}
.cf-badge .cf-cat {
  width: 3.6rem; height: 3.6rem; margin: 0 auto 0.6rem;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #c03b6f;
}
.cf-badge .cf-cat svg { width: 2.2rem; height: 2.2rem; }
.cf-badge .cf-tier { font-size: 1rem; letter-spacing: 0.12em; opacity: 0.9; margin-top: 0.4rem; }

/* RCVS badge */
.zp-rcvs {
  width: 13.2rem; height: 13.2rem; border-radius: 50%;
  background: #1f4a8b;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 1.2rem 3rem rgba(31, 74, 139, 0.3);
}
.zp-rcvs span {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff; text-align: center;
  font-size: 1.3rem; line-height: 1.2;
}
.zp-rcvs span small { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; }

/* ---- FAQ accordion ---- */
.zp-acc-item { border-bottom: 1px solid rgba(36, 41, 51, 0.12); }
.zp-acc-item:first-child { border-top: 1px solid rgba(36, 41, 51, 0.12); }
.zp-acc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1.6rem;
  width: 100%;
  padding: 1.8rem 0;
  cursor: pointer;
  background: none; border: 0; text-align: left;
  font: inherit; color: inherit;
}
.zp-acc-head h3 {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 600; color: var(--text-dark);
  flex: 1; margin: 0;
}
.zp-acc-icon { color: var(--gold-dark); font-size: 2.4rem; font-family: var(--font-display); font-weight: 400; line-height: 1; }
.zp-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.zp-acc-item.is-open .zp-acc-body { max-height: 60rem; }
.zp-acc-body p { margin: 0 4.8rem 2rem 0; color: var(--text-dark-mute); font-size: 1.6rem; }

/* ---- Related / internal-link cards ---- */
.zp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.zp-related-card {
  display: block;
  padding: 2.6rem 2.6rem 2.4rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  transition: transform 0.2s, border-color 0.2s;
}
.zp-related-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.zp-related-card .tag {
  font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.zp-related-card h4 { font-size: 2rem; margin: 1.2rem 0 0.8rem; color: #fff; }
.zp-related-card p { font-size: 1.4rem; margin: 0; color: var(--text-mute); }
.zp-related-card .arrow { margin-top: 1.6rem; color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }

/* ---- Pill buttons (brand gold + proxima italic) ---- */
.ww-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.4rem 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ww-pill .arr { font-style: normal; }
.ww-pill.solid { background: var(--gold); color: var(--navy); }
.ww-pill.solid:hover { background: var(--gold-soft, #e6c781); }
.ww-pill.ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ww-pill.ghost:hover { border-color: #fff; }
.ww-pill.on-light { border-color: var(--gold); color: var(--gold-dark); }
.ww-pill.on-light:hover { background: var(--gold); color: var(--navy); }

/* ---- CTA section ---- */
.zp-cta { text-align: center; padding-top: 6.4rem; padding-bottom: 7.2rem; }
.zp-cta h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 3.4vw, 4.6rem);
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1.1;
  max-width: 15em;
  margin: 0 auto;
}
.zp-cta p { max-width: 34em; margin: 2rem auto 3.2rem; font-size: 1.7rem; }
.zp-cta__actions { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }

/* ---- Sticky CTA pill ---- */
/* Qualified selector: ".zp-page a" outranks a lone class and was turning the
   pill's text gold-on-gold. */
.zp-page a.zp-sticky-cta,
.zp-sticky-cta {
  position: fixed;
  right: 2.8rem; bottom: 2.8rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 999px;
  padding: 1.4rem 1.8rem 1.4rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35), 0 0 0 0.6rem rgba(217, 180, 81, 0.12);
  z-index: 50;
  text-decoration: none;
}
.zp-sticky-cta .dot {
  width: 2.8rem; height: 2.8rem;
  background: var(--navy); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.zp-sticky-cta small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(36, 41, 51, 0.7);
  margin-bottom: 0.1rem;
}

/* ---- Section spacing utilities ---- */
.pt-sm { padding-top: 1.6rem; }
.pt-md { padding-top: 2.4rem; }
.pt-lg { padding-top: 6.4rem; }
.pb-sm { padding-bottom: 6.4rem; }
.pb-md { padding-bottom: 7.2rem; }
.pb-lg { padding-bottom: 8rem; }
.mt-block { margin-top: 7.2rem; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1100px) {
  .zp-page { --pad-x: 5.6rem; }
  .zp-grid { gap: 4.8rem; }
}

@media (max-width: 860px) {
  .zp-page { --pad-x: 3.2rem; }
  .zp-grid.cols-even,
  .zp-grid.cols-hero,
  .zp-grid.cols-3070,
  .zp-grid.cols-7030 { grid-template-columns: 1fr; gap: 4rem; }
  /* Always show image above copy when stacked */
  .zp-grid .order-img { order: -1; }
  .zp-hero__media .zp-img { height: 34rem; }
  .zp-hero__seal { left: auto; right: 1.6rem; bottom: -2rem; }
  .zp-protocols { grid-template-columns: 1fr; column-gap: 0; }
  .zp-protocol.has-rule { border-bottom: 1px solid rgba(36, 41, 51, 0.1); }
  .zp-related { grid-template-columns: 1fr; }
  .zp-facts { gap: 2.8rem 3.6rem; }
  .zp-acc-body p { margin-right: 0; }
}

@media (max-width: 560px) {
  .zp-page { --pad-x: 2rem; font-size: 1.5rem; }
  .zp-facts { grid-template-columns: 1fr; }
  .zp-fact-num { font-size: 4rem; }
  .zp-badges { gap: 4rem; }
  .ww-pill { width: 100%; justify-content: center; }
  .zp-hero__actions, .zp-cta__actions { width: 100%; }
  .zp-sticky-cta { display: none; }     /* avoid covering full-width buttons on small screens */
}
