/* Pet Rescue by Judy Blog — rescue_hearth (warm sage + coral; original CSS) */
:root {
  --ink: #1e2a24;
  --sage: #5a7a66;
  --sage-deep: #3d5a4a;
  --sage-soft: #e8f0eb;
  --coral: #e07a5f;
  --coral-deep: #c45d44;
  --coral-soft: #fce8e2;
  --leaf: #7a9e88;
  --mist: #f4f7f5;
  --line: #d0ddd6;
  --muted: #5c6f66;
  --cream-paper: #fafcfb;
  --display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --sans: "Nunito", "Segoe UI", sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(90, 122, 102, 0.12) 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 5%, rgba(224, 122, 95, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, var(--mist) 40%, #eef4f0 100%);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--coral-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sage-deep); color: #fff; padding: 0.5rem 1rem; z-index: 9999; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* —— soft adoption CTA strip (not espresso dark) —— */
.adopt-strip {
  background: linear-gradient(90deg, var(--sage-soft) 0%, #f0f6f2 45%, var(--coral-soft) 100%);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.adopt-strip-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.55rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--sage-deep);
}
.adopt-strip-msg {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.adopt-strip-msg strong { color: var(--coral-deep); font-weight: 700; }
.adopt-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--coral);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.adopt-strip-cta:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
  color: #fff !important;
}

/* —— brand header (no search form) —— */
.site-header {
  background: rgba(250, 252, 251, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.95rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  color: var(--sage-deep);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.wordmark em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-top: 0.3rem;
  font-weight: 700;
}
.header-adopt-pill {
  display: inline-block;
  background: var(--sage);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 0 rgba(61, 90, 74, 0.25);
}
.header-adopt-pill:hover {
  background: var(--sage-deep);
  color: #fff !important;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  padding-top: 0.15rem;
  border-top: 1px dashed var(--line);
}
.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--sage-deep);
  background: var(--sage-soft);
}

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* —— full-bleed rescue hero —— */
.rescue-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--sage-deep) center/cover no-repeat;
}
.rescue-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(30, 42, 36, 0.82) 0%, rgba(30, 42, 36, 0.45) 48%, rgba(30, 42, 36, 0.2) 100%),
    linear-gradient(180deg, rgba(30, 42, 36, 0.15) 0%, rgba(30, 42, 36, 0.7) 72%, rgba(30, 42, 36, 0.92) 100%);
}
.rescue-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.75rem 0 3rem;
  max-width: 36rem;
  animation: hearth-rise 0.85s ease-out both;
}
@keyframes hearth-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.rescue-hero .brand-signal {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: #fff;
  font-weight: 600;
}
.rescue-hero .brand-signal span { color: #f5b5a4; }
.rescue-hero h1 {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.7rem;
  color: #eef4f0;
  max-width: 28rem;
}
.rescue-hero .lede {
  margin: 0 0 1.3rem;
  color: rgba(238, 244, 240, 0.88);
  font-size: 1.02rem;
  max-width: 26rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 800;
  margin: 0 0 0.35rem;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}
.prose h2, .prose h3, .article-body h2, .article-body h3 {
  font-family: var(--display);
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.75rem 1.3rem;
  font-weight: 700;
  font-size: 0.88rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.25rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
}
.section-head a {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--coral-deep);
}

.channel-grid,
.event-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
  padding: 0 0 2rem;
}
.channel-tile,
.event-tile,
.story-card,
.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--cream-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.channel-tile:hover,
.event-tile:hover,
.story-card:hover,
.feature-card:hover {
  border-color: var(--leaf);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(61, 90, 74, 0.1);
}
.channel-tile img,
.event-tile img,
.story-card img,
.feature-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.channel-tile .pad,
.event-tile .pad,
.story-card .pad,
.feature-card .pad {
  padding: 0.95rem 1rem 1.15rem;
}
.channel-tile h3,
.event-tile h3,
.story-card h3,
.feature-card h3 {
  font-size: 1.08rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--ink);
}
.channel-tile p,
.event-tile p,
.story-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hearth-callout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
  margin: 0.5rem 0 2.5rem;
  padding: 1.5rem 0;
}
.hearth-callout img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.hearth-callout h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 0.65rem;
}
.hearth-callout p { color: var(--muted); margin: 0 0 1rem; max-width: 34rem; }

.recent-strip {
  background: var(--sage-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
}
.recent-strip h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: var(--sage-deep);
  font-weight: 800;
}
.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: next;
}
.trending-list li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(90, 122, 102, 0.2);
}
.trending-list li:last-child { border-bottom: 0; }
.trending-list li::before {
  content: counter(next, decimal-leading-zero);
  color: var(--coral);
  font-weight: 800;
  font-size: 0.85rem;
}
.trending-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.trending-list a:hover { color: var(--coral-deep); }

/* —— article / page chrome —— */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-top: 1.35rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--coral-deep); }

.page-hero {
  background: var(--cream-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-top: 4px solid var(--sage);
  padding: 1.35rem 1.45rem 1.45rem;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  margin: 0 0 0.45rem;
  max-width: 42rem;
}
.page-hero .subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}
.page-hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-lead-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin: 0 0 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem 2rem;
  align-items: start;
  padding-bottom: 2.75rem;
}
.layout-grid > .breadcrumbs,
.layout-grid > .page-hero { grid-column: 1 / -1; }
.layout-grid > .article-body,
.layout-grid > article.prose { grid-column: 1; min-width: 0; }
.layout-grid > .sidebar { grid-column: 2; }

.prose { max-width: 44rem; }
.article-body {
  background: var(--cream-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.45rem;
}
.article-body p { margin: 0 0 1rem; color: var(--ink); }
.article-body a { color: var(--coral-deep); }
.article-body img,
figure img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--sage);
  background: var(--sage-soft);
  color: var(--ink);
  border-radius: 0 10px 10px 0;
}

.sidebar .widget {
  background: var(--cream-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.sidebar h2 {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--sage-deep);
  font-weight: 800;
}
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}
.post-list a:hover { color: var(--coral-deep); }
.load-more-posts {
  margin-top: 0.75rem;
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage-deep);
  padding: 0.6rem 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
}
.load-more-posts:hover { background: var(--sage-soft); }
.load-more-posts:disabled { opacity: 0.5; cursor: wait; }

.contact-form label { display: block; margin: 0.75rem 0; font-weight: 700; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  border-radius: 10px;
}
.toast { padding: 0.75rem; background: var(--sage-soft); border: 1px solid var(--leaf); border-radius: 10px; }

/* —— warm rescue footer band (unique) —— */
.site-foot {
  margin-top: 2.75rem;
  color: #e8f0eb;
  background:
    linear-gradient(165deg, #3d5a4a 0%, #2f4a3c 45%, #264036 100%);
  position: relative;
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(224, 122, 95, 0.22) 0%, transparent 55%),
    radial-gradient(500px 240px at 90% 100%, rgba(122, 158, 136, 0.25) 0%, transparent 50%);
  pointer-events: none;
}
.site-foot-hearth {
  height: 6px;
  background: linear-gradient(90deg, var(--coral) 0%, #f0a090 35%, var(--leaf) 70%, var(--sage) 100%);
  position: relative;
  z-index: 1;
}
.site-foot-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 1.85rem;
  position: relative;
  z-index: 1;
}
.foot-brand {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(232, 240, 235, 0.2);
}
.foot-wordmark {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.15;
  font-weight: 600;
}
.foot-wordmark span { color: #f5b5a4; }
.foot-brand p {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  color: rgba(232, 240, 235, 0.82);
  font-size: 0.98rem;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.foot-col h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5b5a4;
  margin: 0 0 0.75rem;
  font-weight: 800;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0.35rem 0; }
.site-foot a {
  color: #d5e6dc;
  text-decoration: none;
}
.site-foot a:hover { color: #fff; }
.foot-studio {
  margin: 0.35rem 0;
  color: rgba(232, 240, 235, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}
.foot-legal {
  background: rgba(20, 32, 28, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(232, 240, 235, 0.65);
  position: relative;
  z-index: 1;
}
.foot-legal .site-foot-inner { padding: 0.85rem 0; }
.foot-legal p { margin: 0; }

.search-results { list-style: none; margin: 0; padding: 0; }
.search-result {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.search-result a {
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--sage-deep);
}
.search-result a:hover { color: var(--coral-deep); }
.search-result p { margin: 0.35rem 0 0; color: var(--muted); }
.search-empty {
  padding: 1.35rem;
  background: var(--cream-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.search-page-form {
  display: flex;
  max-width: 420px;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search-page-form input {
  flex: 1;
  border: 0;
  padding: 0.7rem 1rem;
  font: inherit;
  min-width: 0;
  background: transparent;
}
.search-page-form button {
  border: 0;
  background: var(--sage);
  color: #fff;
  padding: 0.7rem 1.15rem;
  font-weight: 800;
  cursor: pointer;
}

.service-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.service-detail img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.service-detail h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.sitemap-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-list li {
  break-inside: avoid;
  padding: 0.35rem 0;
}
.sitemap-list a {
  font-weight: 700;
  text-decoration: none;
  color: var(--sage-deep);
}
.sitemap-list a:hover { color: var(--coral-deep); }

@media (max-width: 900px) {
  .layout-grid { grid-template-columns: 1fr; }
  .layout-grid > .sidebar,
  .layout-grid > .article-body,
  .layout-grid > article.prose { grid-column: 1; }
  .hearth-callout { grid-template-columns: 1fr; }
  .hearth-callout img { height: 220px; }
  .foot-cols { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .rescue-hero { min-height: min(68vh, 580px); }
  .sitemap-list { columns: 1; }
}
