/* ==========================================================================
   Message From My Pet — stylesheet
   Palette: Ink #293b47 · Jade #34c67d · Leaf #a6d75a · Sun #dcf156
   Type: Fraunces (display) + Inter Tight (body)
   ========================================================================== */

:root {
  /* ---- brand colour ---- */
  --ink: #293b47;
  --ink-70: rgba(41, 59, 71, 0.72);
  --ink-50: rgba(41, 59, 71, 0.5);
  --ink-15: rgba(41, 59, 71, 0.15);
  --ink-08: rgba(41, 59, 71, 0.08);

  --jade: #34c67d;
  --jade-dark: #279160;
  --leaf: #a6d75a;
  --sun: #dcf156;

  /* ---- neutrals (warm, not clinical white) ---- */
  --paper: #faf7ee;
  --paper-2: #f2eddb;
  --paper-3: #ece5cc;
  --leaf-tint: #eaf1d9;
  --white: #fffdf6;

  /* ---- type ---- */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter Tight", "Inter", -apple-system, sans-serif;

  /* ---- scale ---- */
  --h1: clamp(2.5rem, 1.8rem + 3.2vw, 4.6rem);
  --h2: clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --body-lg: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);

  /* ---- rhythm ---- */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 6vw + 1rem, 8rem);
  --radius: 6px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }

.wrap {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* focus visibility (accessibility floor) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade-dark);
}
.eyebrow--on-dark { color: var(--leaf); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: var(--h1); line-height: 1.04; }
h2 { font-size: var(--h2); line-height: 1.1; }
h3 { font-size: var(--h3); line-height: 1.25; }

.lede {
  font-size: var(--body-lg);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 46ch;
}

/* ---------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--jade);
  color: var(--ink);
}
.btn-primary:hover { background: var(--sun); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink-15);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost--on-dark {
  border-color: rgba(250, 247, 238, 0.35);
  color: var(--white);
}
.btn-ghost--on-dark:hover { border-color: var(--white); }
.btn-primary--on-dark { background: var(--sun); color: var(--ink); }

/* ---------------------------------- header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark em { font-style: normal; color: var(--jade-dark); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-70);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--ink-15);
  border-radius: 100px;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 68px;
  background: var(--paper);
  padding: 2rem var(--gutter);
  display: none;
  flex-direction: column;
  gap: 1.6rem;
  z-index: 40;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.mobile-menu .btn { align-self: flex-start; margin-top: 0.5rem; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------------------------------- hero ----------------------------------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-copy .eyebrow { margin-bottom: 0.7rem; display: block; }
.hero-summer-note {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: var(--white);
  max-width: 15ch;
}
.hero h1 .accent { color: var(--leaf); }
.hero .lede {
  color: rgba(250, 247, 238, 0.78);
  margin-top: 1.4rem;
  max-width: 42ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.1rem;
}
.hero-art { position: relative; }
.hero-arch {
  position: relative;
  margin-inline: auto;
  width: min(420px, 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem) 0;
}
.hero-rspca-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  text-align: center;
}
.hero-rspca-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 7px;
  background: var(--white);
}
.hero-rspca-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.hero-rspca-heading {
  font-family: var(--font-display);
  font-size: calc(var(--h2) * 0.8);
  line-height: 1.1;
  color: var(--white);
  max-width: 26ch;
}
.hero-rspca-invite {
  font-size: var(--body-lg);
  line-height: 1.6;
  color: var(--leaf);
  max-width: 32ch;
}
.hero-rspca-invite a {
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-rspca-invite a:hover { color: var(--white); }

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.85fr;
    align-items: center;
    padding-bottom: clamp(3rem, 8vw, 6rem);
  }
}

/* ---------------------------------- bond panel ------------------------------ */
.bond-panel {
  background: var(--leaf-tint);
}
.bond-grid {
  display: grid;
  gap: 1.6rem;
}
.bond-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.bond-head h2 { margin-top: 0.4rem; }
.bond-copy {
  display: grid;
  gap: 1.1rem;
}
.bond-copy p {
  font-size: var(--body-lg);
  line-height: 1.65;
  color: var(--ink-70);
}

@media (min-width: 860px) {
  .bond-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
  .bond-copy { padding-top: 0.6rem; }
}

/* ---------------------------------- section shell --------------------------- */
section { padding-block: var(--section-pad); }
.section-head {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.section-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.section-head h2 { margin-top: 0.4rem; }
.section-head .lede { margin-top: 1rem; max-width: none; }

/* ---------------------------------- scope: help / not-help ------------------ */
.scope-grid {
  display: grid;
  gap: 1.5rem;
}
.scope-card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: var(--radius-lg);
}
.scope-card--yes {
  background: var(--ink);
  color: var(--white);
}
.scope-card h3 {
  color: inherit;
  margin-bottom: 1.4rem;
}
.scope-list li {
  display: flex;
  gap: 0.9rem;
  padding-block: 0.75rem;
  border-top: 1px solid rgba(250, 247, 238, 0.14);
  font-size: 0.98rem;
  line-height: 1.5;
}
.scope-list li:first-child { border-top: none; padding-top: 0; }
.scope-list svg { flex-shrink: 0; margin-top: 0.2rem; width: 20px; height: 20px; }
.scope-card--yes .scope-list svg { color: var(--leaf); }

.scope-note {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--leaf-tint);
  border-left: 3px solid var(--jade);
  border-radius: var(--radius);
}
.scope-note svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  color: var(--jade-dark);
}
.scope-note h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.scope-note p {
  color: var(--ink-70);
  max-width: 74ch;
}

.scope-accordion {
  width: 100%;
  max-width: none;
  margin-top: clamp(2rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--ink-15);
}
.scope-accordion .faq-item p { max-width: 74ch; }

/* ---------------------------------- method section --------------------------- */
.method-section { background: var(--paper-2); }
.method-grid {
  display: grid;
  gap: 1.8rem;
}
.method-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.method-head h2 { margin-top: 0.4rem; max-width: 20ch; }
.method-copy {
  display: grid;
  gap: 1.4rem;
}
.method-copy p {
  font-size: var(--body-lg);
  line-height: 1.65;
  color: var(--ink-70);
}

@media (min-width: 860px) {
  .method-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------------------------------- steps ----------------------------------- */
.steps {
  display: grid;
  gap: 2.6rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--jade-dark);
  border: 1.5px solid var(--jade-dark);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-70); max-width: 52ch; }
.step:not(:last-child) {
  position: relative;
  padding-bottom: 2.6rem;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 52px;
  bottom: 0;
  width: 1px;
  background: var(--ink-15);
}

@media (min-width: 760px) {
  .steps { gap: 3.2rem; }
}

.steps-body {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3rem);
}
.steps-art {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.steps-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 860px) {
  .steps-body {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

/* ---------------------------------- about ------------------------------------ */
.about-section .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.about-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, var(--leaf) 0%, var(--jade) 100%);
  aspect-ratio: 4/3;
}
.about-art svg { width: 100%; height: 100%; }
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}
.about-art-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: var(--paper-2);
  border: 2px dashed var(--ink-15);
  color: var(--ink-50);
  text-align: center;
  padding: 1.5rem;
}
.about-art-placeholder svg { width: 40px; height: 40px; }
.about-art-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 20ch;
}
.about-copy .eyebrow { display: block; margin-bottom: 0.9rem; }
.about-copy h2 { margin-bottom: 1.3rem; }
.about-copy p { color: var(--ink-70); margin-bottom: 1.1rem; max-width: 58ch; }
.about-copy p:last-of-type { margin-bottom: 0; }
.about-copy strong { color: var(--ink); }

main p a {
  color: var(--jade-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
main p a:hover { color: var(--ink); }

@media (min-width: 900px) {
  .about-section .wrap {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }
}

/* ---------------------------------- faq --------------------------------------- */
.faq-section { background: var(--paper-2); }
.faq-grid {
  display: grid;
  gap: 2rem;
}
.faq-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.faq-list { max-width: 74ch; }

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}
.faq-item {
  border-bottom: 1px solid var(--ink-15);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.faq-item .plus::before, .faq-item .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.faq-item .plus::before { width: 11px; height: 1.5px; }
.faq-item .plus::after { width: 1.5px; height: 11px; }
.faq-item[open] .plus::after { transform: rotate(90deg) scaleY(0); }
.faq-item p {
  margin-bottom: 0.9rem;
  color: var(--ink-70);
  max-width: 62ch;
}
.faq-item p:last-of-type {
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

/* ---------------------------------- final cta ----------------------------------- */
.final-cta {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.final-cta .wrap { position: relative; z-index: 2; }
.final-cta h2 { color: var(--white); max-width: 18ch; margin-inline: auto; }
.final-cta .lede { color: rgba(250,247,238,0.75); margin-inline: auto; margin-top: 1.2rem; text-align: center; }
.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.final-cta-deco {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.final-cta-deco svg { width: 100%; height: 100%; display: block; }

/* ---------------------------------- footer ----------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 238, 0.7);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(250,247,238,0.08);
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .wordmark { color: var(--white); }
.footer-brand .wordmark em { color: var(--leaf); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.footer-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(250,247,238,0.1);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.2fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------- scroll reveal ----------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
