/* ============================================
   WAYWARD RABBITS : Design tokens
   Palette: mossy green field, hay-gold, warm
   paper cream, bunny-nose blush, charcoal ink.
   ============================================ */
:root {
  --ink: #2b2a26;
  --paper: #fbf3e4;
  --paper-deep: #f3e7d1;
  --moss: #3f5b44;
  --moss-deep: #2c4130;
  --moss-light: #7d9a78;
  --gold: #e7a33e;
  --gold-deep: #c9822a;
  --blush: #e8a7a0;
  --grey: #a6a59c;
  --white: #fffdf8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(43, 42, 38, 0.12);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9em;
}

.lede {
  font-size: 1.15rem;
  color: #4a4842;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(231, 163, 62, 0.35);
}
.btn-gold:hover { background: var(--gold-deep); }

.btn-paper {
  background: var(--paper);
  color: var(--moss-deep);
}
.btn-paper:hover { background: var(--white); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--moss);
  color: var(--moss-deep);
}
.btn-outline-dark:hover { background: var(--moss); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-small { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43,42,38,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 46px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand-word span { color: var(--moss); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { text-decoration: none; position: relative; padding: 4px 0; }
.nav-links a.active,
.nav-links a:hover { color: var(--moss-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 16px;
    border-bottom: 1px solid rgba(43,42,38,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--moss);
  color: var(--white);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 120px;
  max-width: 760px;
}
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,253,248,0.86); font-size: 1.2rem; }
.hero .eyebrow { color: var(--gold); }

.ear-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.ear-shape {
  position: absolute;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
}
.ear-1 {
  width: 190px; height: 420px;
  right: 60px; top: -120px;
  background: var(--moss-light);
  opacity: 0.35;
  transform: rotate(14deg);
}
.ear-2 {
  width: 150px; height: 340px;
  right: -30px; top: -40px;
  background: var(--paper);
  opacity: 0.14;
  transform: rotate(-6deg);
}
.ear-3 {
  width: 130px; height: 300px;
  right: 220px; top: 40px;
  background: var(--blush);
  opacity: 0.18;
  transform: rotate(24deg);
}

/* ---------- Gradient fade (section transition) ---------- */
.gradient-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(63,91,68,0) 0%, var(--paper) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-moss { background: var(--moss); color: var(--white); }
.section-moss h2 { color: var(--white); }
.section-moss .lede { color: rgba(255,253,248,0.85); }
.section-paper-deep { background: var(--paper-deep); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(43,42,38,0.06);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: #55534c; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: rgba(63,91,68,0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Adopt-platform cards on home/adopt page */
.platform-card {
  background: var(--paper);
  border: 2px solid rgba(43,42,38,0.1);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.platform-card:hover { border-color: var(--gold); transform: translateY(-3px); }

/* ---------- Education page layout ---------- */
.edu-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .edu-layout { grid-template-columns: 1fr; }
}

.edu-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid rgba(43,42,38,0.1);
  padding-left: 18px;
}
@media (max-width: 860px) {
  .edu-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    padding-left: 0;
    gap: 8px;
    margin-bottom: 20px;
  }
  .edu-nav a {
    border: 1px solid rgba(43,42,38,0.15) !important;
    border-radius: 999px;
    padding: 8px 14px !important;
    font-size: 0.85rem;
  }
}
.edu-nav a {
  text-decoration: none;
  color: #55534c;
  font-weight: 600;
  padding: 8px 0;
  font-size: 0.94rem;
}
.edu-nav a:hover, .edu-nav a.active { color: var(--moss-deep); }

.edu-topic {
  scroll-margin-top: 100px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(43,42,38,0.1);
}
.edu-topic:last-child { border-bottom: none; margin-bottom: 0; }
.edu-topic .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 6px;
}
.edu-topic .callout {
  background: var(--paper-deep);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.96rem;
}
.edu-topic .callout strong { color: var(--moss-deep); }
.edu-topic ul { padding-left: 22px; margin: 0 0 1em; }
.edu-topic li { margin-bottom: 6px; }

/* ---------- Steps (adoption process) ---------- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--moss);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,253,248,0.82);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { text-decoration: none; color: rgba(255,253,248,0.82); }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand-word { color: var(--white); }
.site-footer .brand-word span { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,253,248,0.14);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,253,248,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Page hero (non-home pages) ---------- */
.page-hero {
  background: var(--moss);
  color: var(--white);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero .lede { color: rgba(255,253,248,0.85); }

/* ---------- Misc ---------- */
.divider-space { height: 0; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.pill-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}
.pill-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 9px;
}

.btn-class {
  background: var(--moss-deep);
  color: var(--gold);
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  white-space: normal;
  text-align: center;
}
.btn-class:hover { background: var(--moss); }
.btn-class small { font-size: 0.75rem; font-weight: 500; }
.class-note { font-size: 0.9rem; margin-top: 16px; }
.application-note { max-width: 70ch; margin-bottom: 28px; }
.application-note a { font-weight: 700; color: var(--moss-deep); }
.listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edu-topic h3 { margin-top: 1.4em; }
.edu-topic h4 { margin-top: 1.2em; }
.edu-topic ol { padding-left: 24px; }
.edu-topic .btn-row { margin: 20px 0; }
.edu-topic a:not(.btn) { text-underline-offset: 3px; }
.edu-topic { overflow-wrap: anywhere; }
.edu-layout > div { min-width: 0; }
.edu-nav { max-height: calc(100dvh - 120px); overflow-y: auto; }
.vet-list { display: grid; gap: 20px; }
.vet-card { padding: 26px; background: var(--white); border-radius: var(--radius); }
.vet-card h3 { margin-bottom: 12px; }
.vet-card p { margin-bottom: 12px; }
.vet-card .btn { white-space: normal; }
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 560px) {
  .listing-grid { grid-template-columns: 1fr; }
  .btn-row .btn { white-space: normal; text-align: center; }
}
@media (max-width: 860px) {
  .edu-nav { max-height: none; overflow-y: visible; }
}

/* ---------- Class blocks and bonding guide ---------- */
.class-block { margin-top: 40px; }
.class-block .class-intro { max-width: 62ch; margin-bottom: 16px; font-size: 1rem; }
.hero .class-block .class-intro { color: rgba(255,253,248,0.9); }
.guide-box {
  margin-top: 24px;
  padding: 22px 24px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,253,248,0.1);
  max-width: 62ch;
}
.guide-box h3 { font-size: 1.15rem; margin: 0 0 0.5em; }
.guide-box p { margin-bottom: 14px; font-size: 0.95rem; }
.guide-box .guide-credit { font-size: 0.82rem; opacity: 0.85; margin: 14px 0 0; }
.edu-topic .guide-box { background: var(--paper-deep); }
.edu-topic .guide-box h3 { margin-top: 0; }
.edu-topic .class-block { margin-top: 28px; }

/* ---------- Round 2 ---------- */
.eyebrow-xl { font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: 0.1em; margin-bottom: 0.5em; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--gold); }
.card-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.card-link p { flex: 1; margin-bottom: 14px; }
.card-link .more { font-size: 0.88rem; font-weight: 700; color: var(--moss-deep); }
.guide-credit em { font-style: italic; }

.page-hero { padding-bottom: 110px; }
.page-hero .container { position: relative; z-index: 2; }

.edu-nav .nav-num { display: inline-block; min-width: 1.8em; font-family: var(--font-display); font-size: 0.85rem; color: var(--gold-deep); }
.edu-nav a { display: flex; gap: 6px; align-items: baseline; }
.edu-nav .nav-num { flex: none; }
