/* ===========================
   ROOT VARIABLES
   =========================== */
:root {
  --cream: #f7efe3;
  --cream2: #fffaf3;
  --paper: #fffdf9;
  --terracotta: #d96d4b;
  --terracotta-dark: #bd5437;
  --sage: #a9b99a;
  --sage-dark: #5d7453;
  --yellow: #e8c66b;
  --ink: #28251f;
  --muted: #716b62;
  --line: #e9ded0;
  --white: #fff;
  --shadow: 0 22px 55px rgba(56,42,28,.10);
  --radius: 28px;
  --display: "DM Serif Display", serif;
  --body: "Plus Jakarta Sans", sans-serif;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream2);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, select { font: inherit; }

.container {
  width: min(1320px, calc(100% - 48px));
  margin: auto;
}
.section {
  padding: 110px 0;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--terracotta);
  margin-bottom: 15px;
}
.section-heading h2,
.intro-copy h2,
.care-copy h2,
.match-copy h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -.025em;
}
.section-heading > p:last-child {
  color: var(--muted);
  max-width: 610px;
}
.centered { text-align: center; }
.centered > p:last-child { margin: 15px auto 0; }
.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 48px;
}
.split > p { max-width: 430px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 18px;
  left: 0;
  width: 100%;
  transition: .3s;
}
.nav-wrap {
  background: rgba(255,253,249,.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(40,37,31,.07);
  border-radius: 999px;
  min-height: 74px;
  padding: 8px 10px 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 35px rgba(50,38,25,.08);
}
.site-header.scrolled { top: 8px; }
.brand {
  font-family: var(--display);
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand > span:last-child > span { color: var(--terracotta); }
.brand-mark { font-family: var(--body); font-size: 20px; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-link, .dropdown-toggle {
  border: 0;
  background: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav-link:hover, .dropdown-toggle:hover { color: var(--terracotta); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown-menu a, .dropdown-menu strong {
  display: block;
  padding: 8px 11px;
  font-size: 12px;
}
.dropdown-menu strong {
  font-size: 11px;
  color: var(--terracotta);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 12px;
}
.dropdown-menu a:hover {
  background: var(--cream);
  border-radius: 10px;
}
.mega-menu {
  left: 50%;
  transform: translate(-35%, 8px);
  width: min(780px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.nav-dropdown.open .mega-menu {
  transform: translate(-35%, 0);
}
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: .25s;
  cursor: pointer;
}
.nav-cta {
  background: var(--terracotta);
  color: #fff;
  padding: 14px 20px;
  margin-left: 8px;
}
.nav-cta:hover, .btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 45px;
  height: 45px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  padding: 16px 23px;
  border: 0;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-ghost {
  border: 1px solid #cfc2b2;
  background: transparent;
}
.btn-ghost:hover { background: #fff; }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--terracotta);
  white-space: nowrap;
}

/* ===========================
   HERO SECTION (Homepage)
   =========================== */
.hero {
  position: relative;
  min-height: 850px;
  padding-top: 170px;
  background: var(--cream);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  right: 8%;
  top: 145px;
  color: rgba(217,109,75,.18);
  font-size: 22px;
  letter-spacing: 15px;
  transform: rotate(8deg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 35px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 94px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
  max-width: 700px;
}
.hero h1 em {
  color: var(--terracotta);
  font-style: normal;
}
.hero-text {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 27px 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 28px;
}
.mini-paw {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  margin-right: 7px;
  color: var(--terracotta);
}
.hero-visual {
  height: 590px;
  position: relative;
}
.hero-blob {
  position: absolute;
  width: 530px;
  height: 530px;
  background: var(--sage);
  border-radius: 54% 46% 50% 50%/45% 50% 50% 55%;
  right: 10px;
  top: 20px;
  transform: rotate(-7deg);
}
.hero-ring {
  position: absolute;
  width: 570px;
  height: 570px;
  border: 1px dashed rgba(93,116,83,.45);
  border-radius: 50%;
  right: -10px;
  top: -2px;
}
.hero-image-frame {
  position: absolute;
  right: 35px;
  top: 55px;
  width: 430px;
  height: 505px;
  border: 12px solid #fff;
  border-radius: 46% 46% 40% 40%;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.hero-image-frame img { height: 100%; object-fit: cover; }
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
}
.floating-card span { font-size: 24px; }
.floating-card small { display: block; color: var(--muted); font-size: 9px; }
.floating-card-one { left: 10px; bottom: 80px; }
.floating-card-two { right: 5px; top: 95px; }

/* ===========================
   INTRO SECTION (Homepage)
   =========================== */
.intro { background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.intro-media {
  position: relative;
  height: 570px;
}
.image-card {
  position: absolute;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: var(--shadow);
  border: 10px solid #fff;
}
.image-card.large {
  width: 70%;
  height: 450px;
  left: 0;
  top: 35px;
  transform: rotate(-4deg);
}
.image-card.small {
  width: 48%;
  height: 280px;
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
}
.image-card img { height: 100%; object-fit: cover; }
.stamp {
  position: absolute;
  right: 27%;
  top: 0;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  transform: rotate(12deg);
}
.intro-copy > p:not(.eyebrow) {
  color: var(--muted);
  margin: 20px 0;
}
.feature-list {
  display: grid;
  gap: 13px;
  margin: 28px 0;
}
.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.feature-list span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: #fff;
}
.text-link {
  font-weight: 800;
  color: var(--terracotta);
  font-size: 13px;
}

/* ===========================
   TOOL SECTION (Homepage)
   =========================== */
.tool-section {
  position: relative;
  background: #f0e5d6;
}
.tool-deco {
  position: absolute;
  left: 2%;
  top: 14%;
  font-size: 80px;
  opacity: .08;
}
.search-panel {
  background: #fff;
  border-radius: 30px;
  padding: 28px;
  margin-top: 42px;
  box-shadow: var(--shadow);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.filter-grid label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.filter-grid input, .filter-grid select {
  display: block;
  width: 100%;
  margin-top: 7px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.filter-grid input:focus, .filter-grid select:focus {
  border-color: var(--terracotta);
}
.filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.filter-actions .btn { height: 48px; flex: 1; }
.reset-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.optional-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.optional-filters input { accent-color: var(--terracotta); }
.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 45px 0 18px;
}
.results-top h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
}
.results-top span { font-size: 11px; color: var(--muted); }
.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pet-card {
  background: #fff;
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(56,42,28,.06);
  transition: .3s;
}
.pet-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}
.pet-photo {
  height: 235px;
  position: relative;
  overflow: hidden;
}
.pet-photo img {
  height: 100%;
  object-fit: cover;
  transition: .5s;
}
.pet-card:hover .pet-photo img { transform: scale(1.05); }
.pet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  color: var(--sage-dark);
}
.pet-body { padding: 17px; }
.pet-body h4 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
}
.pet-meta, .pet-location {
  font-size: 10px;
  color: var(--muted);
}
.pet-location { margin: 5px 0 14px; }
.pet-view {
  font-size: 11px;
  font-weight: 800;
  color: var(--terracotta);
}
.list-pet-banner {
  margin-top: 45px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 28px;
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.list-pet-banner .eyebrow { color: #ffe4d8; }
.list-pet-banner h3 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
}
.list-pet-banner p:last-child { font-size: 12px; opacity: .85; }

/* ===========================
   ADOPT SECTION (Homepage)
   =========================== */
.adopt { background: var(--cream2); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 28px;
  min-height: 310px;
  position: relative;
  transition: .3s;
}
.info-card:hover { transform: translateY(-6px); }
.info-card.featured {
  background: var(--sage);
  color: #fff;
  border-color: transparent;
}
.info-card .number { font-size: 10px; font-weight: 800; opacity: .55; }
.info-icon { font-size: 30px; margin: 35px 0 15px; }
.info-card h3 {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 400;
}
.info-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 22px;
}
.info-card.featured p { color: rgba(255,255,255,.82); }
.info-card a {
  font-size: 11px;
  font-weight: 800;
  color: var(--terracotta);
}
.info-card.featured a { color: #fff; }

/* ===========================
   CARE SECTION (Homepage)
   =========================== */
.care {
  background: var(--sage-dark);
  color: #fff;
}
.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.care .eyebrow { color: #dfead8; }
.care-copy > p:not(.eyebrow) {
  color: rgba(255,255,255,.75);
  max-width: 570px;
  margin: 20px 0 30px;
}
.care-items { display: grid; gap: 18px; }
.care-items > div {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.care-items span { font-size: 10px; opacity: .6; }
.care-items h3 { font-size: 14px; }
.care-items p { font-size: 11px; color: rgba(255,255,255,.65); }
.care-visual { position: relative; }
.care-main {
  height: 620px;
  border: 10px solid rgba(255,255,255,.15);
  border-radius: 45% 45% 25% 25%;
  overflow: hidden;
  transform: rotate(3deg);
}
.care-main img { height: 100%; object-fit: cover; }
.care-note {
  position: absolute;
  bottom: 25px;
  left: -35px;
  background: #fff;
  color: var(--ink);
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 240px;
}
.care-note b { font-size: 12px; display: block; }
.care-note span { font-size: 9px; color: var(--muted); }

/* ===========================
   MATCH SECTION (Homepage)
   =========================== */
.match { background: var(--cream); }
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.match-visual {
  position: relative;
  height: 570px;
}
.match-circle {
  position: absolute;
  width: 470px;
  height: 470px;
  background: var(--yellow);
  border-radius: 50%;
  left: 50px;
  top: 45px;
}
.match-visual img {
  position: absolute;
  width: 390px;
  height: 480px;
  object-fit: cover;
  left: 90px;
  top: 15px;
  border: 10px solid #fff;
  border-radius: 48% 48% 40% 40%;
  transform: rotate(-4deg);
  box-shadow: var(--shadow);
}
.match-copy > p:not(.eyebrow) {
  color: var(--muted);
  margin: 22px 0;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 30px 0;
}
.check-grid span { font-size: 11px; font-weight: 700; }
.check-grid span::first-letter { color: var(--terracotta); }

/* ===========================
   BLOG SECTION (Homepage)
   =========================== */
.blog { background: var(--paper); }
.blog.section .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: .3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.blog-image {
  height: 235px;
  position: relative;
  overflow: hidden;
}
.blog-image img {
  height: 100%;
  object-fit: cover;
  transition: .5s;
}
.blog-card:hover img { transform: scale(1.05); }
.blog-image span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}
.blog-body { padding: 19px; }
.blog-body small {
  font-size: 9px;
  color: var(--terracotta);
  font-weight: 800;
}
.blog-body h3 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
  margin: 8px 0;
}
.blog-body p { font-size: 10px; color: var(--muted); margin-bottom: 14px; }
.blog-body a { font-size: 10px; font-weight: 800; color: var(--terracotta); }

/* ===========================
   WHY SECTION (Homepage)
   =========================== */
.why { background: #f0e5d6; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 45px;
}
.why-card {
  background: #fff;
  border-radius: 25px;
  padding: 28px;
  min-height: 190px;
}
.why-card span {
  font-size: 10px;
  color: var(--terracotta);
  font-weight: 800;
}
.why-card h3 {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
  margin: 20px 0 6px;
}
.why-card p { font-size: 11px; color: var(--muted); }

/* ===========================
   NEWSLETTER SECTION (Homepage)
   =========================== */
.newsletter {
  padding-top: 80px;
  background: var(--paper);
}
.newsletter-box {
  background: var(--yellow);
  border-radius: 32px;
  padding: 55px 65px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.newsletter-box h2 {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.02;
}
.newsletter-box p:not(.eyebrow) { font-size: 13px; margin-top: 12px; }
.email-row {
  display: flex;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
}
.email-row input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 15px;
  min-width: 0;
  flex: 1;
  font-size: 12px;
}
.newsletter form > small {
  display: block;
  font-size: 9px;
  margin: 12px 10px;
  color: rgba(40,37,31,.65);
}
.form-message {
  font-size: 10px !important;
  color: var(--sage-dark);
  font-weight: 700;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #28251f;
  color: #fff;
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr 1.2fr;
  gap: 60px;
}
.footer-brand { margin-bottom: 18px; }
.footer-grid > div:first-child p,
.footer-note {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.footer-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #e8c66b;
  margin-bottom: 16px;
}
.footer-grid a:not(.brand) {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.72);
  margin: 9px 0;
}
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255,255,255,.45);
}
.footer-bottom div { display: flex; gap: 18px; }

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px;
  background: #fff;
  border-radius: 24px;
  color: var(--muted);
}

/* ===========================
   BREADCRUMBS
   =========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-top: 140px;
}
.breadcrumb a {
  color: var(--muted);
  transition: .2s;
}
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .separator {
  font-size: 10px;
  opacity: .5;
}
.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

/* ===========================
   ARTICLE PAGE
   =========================== */
.article-hero {
  padding-bottom: 50px;
}
.article-hero .category-tag {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 800px;
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.article-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 50px;
  max-height: 480px;
}
.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Layout: TOC + Body */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

/* TOC Sidebar */
.toc-sidebar {
  position: sticky;
  top: 110px;
}
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.toc h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}
.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 6px;
}
.toc ol li a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: .2s;
  line-height: 1.4;
}
.toc ol li a::before {
  content: counter(toc-counter) ". ";
  font-weight: 700;
  color: var(--terracotta);
}
.toc ol li a:hover,
.toc ol li a.active {
  background: var(--cream);
  color: var(--ink);
}

/* Article Body Typography */
.article-body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin: 50px 0 18px;
  letter-spacing: -.01em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin: 35px 0 12px;
  line-height: 1.2;
}
.article-body p {
  font-size: 15px;
  color: #3d3830;
  margin-bottom: 18px;
  line-height: 1.8;
}
.article-body ul, .article-body ol {
  margin: 16px 0 22px 22px;
  font-size: 15px;
  color: #3d3830;
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-body strong { color: var(--ink); }
.article-body blockquote {
  border-left: 4px solid var(--terracotta);
  padding: 18px 24px;
  margin: 30px 0;
  background: var(--cream);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--muted);
}
.article-body .callout {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  margin: 30px 0;
}
.article-body .callout h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--terracotta);
}
.article-body .callout p {
  font-size: 13px;
  margin-bottom: 0;
}
.article-body img {
  border-radius: 18px;
  margin: 30px 0;
}
.article-body a {
  color: var(--terracotta);
  font-weight: 700;
}
.article-body a:hover { text-decoration: underline; }

/* ===========================
   FAQ SECTION
   =========================== */
.faq-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}
.faq-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 30px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--paper);
}
.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--terracotta);
  transition: .3s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ===========================
   RELATED ARTICLES
   =========================== */
.related-articles {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}
.related-articles h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 30px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===========================
   CATEGORY PAGE
   =========================== */
.category-hero {
  padding-top: 150px;
  padding-bottom: 70px;
  background: var(--cream);
}
.category-hero .eyebrow { margin-bottom: 12px; }
.category-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.category-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.75;
}
.category-articles {
  padding: 70px 0 100px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===========================
   BLOG LISTING PAGE
   =========================== */
.blog-listing-hero {
  padding-top: 140px;
  padding-bottom: 50px;
  background: var(--cream);
  text-align: center;
}
.blog-listing-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 62px);
  margin-bottom: 12px;
}
.blog-listing-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto;
}
.blog-listing {
  padding: 50px 0 110px;
}
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===========================
   STATIC PAGES (About, Contact, Privacy, Disclaimer)
   =========================== */
.static-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--cream);
}
.static-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.static-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.7;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.7;
  margin-top: 14px;
}
.static-content {
  padding: 60px 0 110px;
}
.static-content .container {
  max-width: 800px;
}
.static-content h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  margin: 45px 0 16px;
}
.static-content h2:first-child { margin-top: 0; }
.static-content h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin: 30px 0 10px;
}
.static-content p {
  font-size: 15px;
  color: #3d3830;
  margin-bottom: 16px;
  line-height: 1.8;
}
.static-content ul, .static-content ol {
  margin: 14px 0 20px 22px;
  font-size: 15px;
  color: #3d3830;
}
.static-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.static-content a { color: var(--terracotta); font-weight: 700; }
.static-content a:hover { text-decoration: underline; }
.static-content strong { color: var(--ink); }

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}
.contact-form-group { margin-bottom: 20px; }
.contact-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: .2s;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
  border-color: var(--terracotta);
}
.contact-form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  margin-bottom: 20px;
}
.contact-info-card h3 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 10px;
}
.contact-info-card p {
  font-size: 13px;
  color: var(--muted);
}

/* ===========================
   INNER PAGE HEADING (used in category, article, static pages)
   =========================== */
.inner-page-heading {
  padding-top: 140px;
  padding-bottom: 50px;
  background: var(--cream);
}
.inner-page-heading h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}
.inner-page-heading p {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin-top: 14px;
}

/* ===========================
   ARTICLE CARD (reusable for category + blog pages)
   =========================== */
.article-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.article-card .card-image {
  aspect-ratio: 16/10;
  height: auto;
  min-height: 220px;
  max-height: 280px;
  overflow: hidden;
  position: relative;
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .card-image img { transform: scale(1.04); }
.article-card .card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .card-body .card-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--terracotta);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
  align-self: flex-start;
}
.article-card .card-body small {
  font-size: 10px;
  color: var(--terracotta);
  font-weight: 800;
}
.article-card .card-body h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin: 10px 0 14px;
}
.article-card .card-body h3 a {
  color: var(--ink);
  transition: color 0.2s ease;
}
.article-card .card-body h3 a:hover {
  color: var(--terracotta);
}

.article-card .card-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.article-card .card-body .read-more {
  font-size: 13px;
  font-weight: 800;
  color: var(--terracotta);
}

/* ===========================
   CATEGORY PAGE CARDS
   =========================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.card-img {
  aspect-ratio: 16/10;
  height: auto;
  min-height: 200px;
  max-height: 260px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-img:hover img { transform: scale(1.04); }
.card-body {
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 24px 28px 28px;
  margin-top: -1px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.card-body:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card-cat {
  display: inline-block;
  background: var(--cream);
  color: var(--terracotta);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.card-body h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
}
.card-body h3 a {
  color: var(--ink);
  transition: color 0.2s ease;
}
.card-body h3 a:hover {
  color: var(--terracotta);
}
.card-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.card-meta {
  font-size: 10px;
  color: var(--terracotta);
  font-weight: 800;
}

/* ===========================
   CATEGORY PAGE SECTIONS
   =========================== */
.blog-grid {
  display: block;
  padding: 70px 0;
}

/* ===========================
   RESPONSIVE: TABLET (1050px)
   =========================== */
@media (max-width: 1050px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-nav { gap: 0; }
  .nav-link { padding: 10px 8px; }
  .nav-cta { padding: 12px 15px; }
  .hero-grid, .intro-grid, .care-grid, .match-grid { gap: 55px; }
  .pet-grid, .blog.section .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 520px; }
  .hero-image-frame { width: 380px; height: 450px; }
  .hero-blob, .hero-ring { width: 480px; height: 480px; }
  .newsletter-box { padding: 45px; }
  .blog-listing-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { padding: 50px 0; }
  .category-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc-sidebar { position: static; display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   RESPONSIVE: DESKTOP LAPTOP (1400px)
   =========================== */
@media (max-width: 1400px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card .card-image { min-height: 200px; max-height: 260px; }
}


/* ===========================
   RESPONSIVE: MOBILE (780px)
   =========================== */
@media (max-width: 780px) {
  .container { width: min(100% - 30px, 620px); }
  .site-header { top: 8px; }
  .nav-wrap {
    border-radius: 22px;
    padding: 8px 12px 8px 17px;
  }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 22px;
    padding: 10px;
    display: none;
    box-shadow: var(--shadow);
    align-items: stretch;
    flex-direction: column;
  }
  .primary-nav.open { display: flex; }
  .nav-link, .dropdown-toggle {
    text-align: left;
    width: 100%;
    padding: 13px;
  }
  .nav-cta { margin: 5px 0 0; text-align: center; }
  .dropdown-menu, .mega-menu {
    position: static;
    width: 100%;
    transform: none !important;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    background: var(--cream2);
    border-radius: 15px;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .mega-menu { grid-template-columns: 1fr 1fr; padding: 8px; }
  .hero { padding-top: 135px; min-height: auto; padding-bottom: 80px; }
  .hero-grid, .intro-grid, .care-grid, .match-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 58px; }
  .hero-visual { height: 500px; }
  .hero-image-frame { right: 8%; width: 340px; height: 420px; }
  .hero-blob, .hero-ring { right: 0; width: 420px; height: 420px; }
  .floating-card-one { left: 0; }
  .floating-card-two { right: 0; }
  .intro-media { height: 520px; }
  .section { padding: 80px 0; }
  .split { display: block; }
  .split > p { margin-top: 20px; }
  .care-visual { margin-top: 25px; }
  .care-main { height: 500px; }
  .match-visual { height: 500px; }
  .match-circle { width: 390px; height: 390px; left: 5%; top: 50px; }
  .match-visual img { width: 330px; height: 410px; left: 15%; }
  .newsletter-box { grid-template-columns: 1fr; padding: 38px 25px; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-bottom { display: block; }
  .footer-bottom div { margin-top: 12px; }
  .pet-grid, .blog.section .blog-grid { grid-template-columns: 1fr; }
  .info-grid, .why-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-actions { align-items: stretch; }
  .list-pet-banner { display: block; }
  .list-pet-banner .btn { margin-top: 20px; }
  .breadcrumb { padding-top: 120px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc-sidebar { position: static; display: none; }
  .blog-listing-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .blog-grid { padding: 40px 0; }
  .category-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .static-content .container { max-width: 100%; }
}

/* ===========================
   RESPONSIVE: SMALL MOBILE (450px)
   =========================== */
@media (max-width: 450px) {
  .hero h1 { font-size: 48px; }
  .hero-visual { height: 430px; }
  .hero-image-frame { width: 275px; height: 350px; right: 5%; top: 35px; }
  .hero-blob, .hero-ring { width: 340px; height: 340px; right: 2%; }
  .floating-card { transform: scale(.85); }
  .floating-card-one { left: -10px; bottom: 45px; }
  .floating-card-two { right: -15px; top: 50px; }
  .intro-media { height: 420px; }
  .image-card.large { height: 340px; }
  .image-card.small { height: 210px; }
  .stamp { width: 78px; height: 78px; font-size: 8px; right: 24%; }
  .section-heading h2, .intro-copy h2, .care-copy h2, .match-copy h2 { font-size: 43px; }
  .check-grid { grid-template-columns: 1fr; }
  .care-main { height: 400px; }
  .footer-grid { grid-template-columns: 1fr; }
  .email-row { display: block; background: transparent; }
  .email-row input {
    height: 50px;
    background: #fff;
    border-radius: 999px;
    width: 100%;
    margin-bottom: 8px;
  }
  .email-row .btn { width: 100%; }
  .breadcrumb { padding-top: 110px; font-size: 11px; }
}

/* ===========================
   FIX: OLD-TEMPLATE BLOG PAGES
   (article-toc, articles-grid related)
   =========================== */
.article-toc {
  position: sticky;
  top: 110px;
}
.article-toc > nav {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.article-toc > h2 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.article-toc > nav > a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: .2s;
  line-height: 1.4;
}
.article-toc > nav > a:hover {
  background: var(--cream);
  color: var(--ink);
}
.related-articles h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 30px;
}
.related-articles .articles-grid {
  margin-top: 0;
  gap: 18px;
}
.related-articles .articles-grid .article-card .card-img {
  border-radius: 20px 20px 0 0;
}
.related-articles .articles-grid .article-card .card-body {
  padding: 19px;
  margin-top: -1px;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 20px 20px;
}
.related-articles .articles-grid .article-card .card-cat {
  display: inline-block;
  background: var(--cream);
  color: var(--terracotta);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.related-articles .articles-grid .article-card .card-body h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
}
.related-articles .articles-grid .article-card .card-body h3 a {
  color: var(--ink);
  transition: color 0.2s ease;
}
.related-articles .articles-grid .article-card .card-body h3 a:hover {
  color: var(--terracotta);
}
.related-articles .articles-grid .article-card .card-meta {
  font-size: 10px;
  color: var(--terracotta);
  font-weight: 800;
}
@media (max-width: 1050px) {
  .article-toc { position: static; display: none; }
}

/* ===========================
   JOURNEY SECTION (Homepage)
   =========================== */
.journey-section {
  margin-top: 50px;
  padding-top: 40px;
}
.journey-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  text-align: center;
  margin-bottom: 36px;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.journey-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.journey-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.journey-card-img {
  height: 200px;
  overflow: hidden;
}
.journey-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.journey-card:hover .journey-card-img img {
  transform: scale(1.05);
}
.journey-card-body {
  padding: 24px 28px 28px;
}
.journey-card-body h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}
.journey-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.journey-card-body .text-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--terracotta);
}

/* ===========================
   PETFINDER WIDGET SECTION
   =========================== */
.petfinder-section {
  background: var(--cream);
}
.petfinder-widget-wrapper {
  margin-top: 40px;
}
.petfinder-placeholder {
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: 24px;
  padding: 60px 30px;
  text-align: center;
}
.petfinder-placeholder-inner {
  max-width: 400px;
  margin: 0 auto;
}
.petfinder-placeholder-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}
.petfinder-placeholder h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}
.petfinder-placeholder p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

@media (max-width: 780px) {
  .journey-grid { grid-template-columns: 1fr; }
}

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pet-card, .blog-card, .btn, .article-card { transition: none; }
}

