/*
Theme Name: SoCal White Shepherd Rescue Foundation
Theme URI: https://example.com/m6-dog-rescue
Author: SoCal White Shepherd Rescue Foundation
Description: A warm, modern rescue website theme for SoCal White Shepherd Rescue Foundation.
Version: 2.10.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: m6-dog-rescue
*/

:root {
  --ink: #14263d;
  --muted: #5f6f7f;
  --cream: #f3f8ff;
  --paper: #fffdf6;
  --rust: #1d5f9f;
  --rust-dark: #123c6b;
  --sage: #8bb9d8;
  --denim: #123c6b;
  --gold: #d9a528;
  --clay: #f3cc69;
  --shadow: 0 24px 70px rgba(18, 60, 107, 0.18);
  --radius-lg: 34px;
  --radius-md: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 14% 12%, rgba(217, 165, 40, 0.34), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(29, 95, 159, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--cream), #e5f1ff 54%, #f9e7ac);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(33, 27, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 27, 22, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

body::after {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(58vw, 680px);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  opacity: 0.055;
  background: url("assets/images/round_rescue_logo.jpg") center / contain no-repeat;
  filter: saturate(0.85);
  transform: translate(-50%, -50%);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(33, 27, 22, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 10px 28px rgba(18, 60, 107, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(18, 60, 107, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(0.9rem, 1.15vw, 1rem);
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav,
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  padding: 0.62rem 0.72rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(188, 86, 55, 0.11);
}

.site-nav .nav-cta,
.site-nav .menu-item:last-child a {
  color: var(--paper);
  background: var(--rust);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--paper);
}

.hero,
.section,
.impact,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 2rem;
  align-items: center;
  min-height: 720px;
  padding: 5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--rust-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 8.2vw, 7.2rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.7rem, 6vw, 5.7rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
}

.hero-text,
.section-copy p,
.section-heading p,
.foster-banner p,
.site-footer p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.hero-text {
  max-width: 680px;
}

.hero-actions,
.footer-links,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.inline-actions {
  margin: 1.4rem 0 0;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.25rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 10px 0 var(--ink);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  box-shadow: 0 5px 0 var(--ink);
  transform: translateY(5px);
}

.button.primary {
  color: var(--paper);
  background: var(--rust);
}

.button.secondary {
  background: var(--gold);
}

.button.light {
  background: var(--paper);
}

.hero-card {
  position: relative;
  padding: 1.3rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--gold);
  box-shadow: var(--shadow), 12px 12px 0 var(--ink);
  transform: rotate(2deg);
}

.hero-card h2 {
  margin: 1.3rem 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.hero-card p {
  color: #4d3524;
  line-height: 1.55;
}

.dog-portrait {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 250, 240, 0.75), transparent 0 4rem),
    linear-gradient(145deg, #1d5f9f, #123c6b);
}

.dog-portrait::after {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  content: "";
  border-radius: 50%;
  background: rgba(239, 186, 88, 0.28);
}

.spotlight-media {
  position: relative;
  z-index: 1;
  min-height: 292px;
}

.spotlight-media a,
.spotlight-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.spotlight-media img {
  object-fit: cover;
}

.spotlight-fallback {
  min-height: inherit;
  background:
    radial-gradient(circle at 50% 44%, var(--paper) 0 52px, transparent 54px),
    radial-gradient(circle at 38% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 62% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 56%, var(--ink) 0 18px, transparent 19px),
    linear-gradient(145deg, #f7dd91, var(--gold));
}

.spotlight-copy {
  position: relative;
  z-index: 1;
  padding: 1rem;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(20, 38, 61, 0.82), rgba(20, 38, 61, 0.96));
}

.spotlight-copy.empty {
  display: grid;
  align-content: end;
  min-height: 430px;
}

.spotlight-copy span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.4rem 0.65rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--gold);
}

.spotlight-copy h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.spotlight-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.spotlight-copy p {
  margin: 0;
  color: rgba(255, 253, 246, 0.86);
  font-size: 1rem;
  line-height: 1.45;
}

.dog-face {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 48% 52% 58% 42%;
  background: var(--paper);
  box-shadow: inset -20px -20px 0 #e8d1ba;
}

.dog-ear {
  position: absolute;
  top: 96px;
  z-index: 0;
  width: 94px;
  height: 160px;
  background: #d9a528;
}

.dog-ear.left {
  left: 95px;
  border-radius: 70% 30% 70% 30%;
  transform: rotate(22deg);
}

.dog-ear.right {
  right: 95px;
  border-radius: 30% 70% 30% 70%;
  transform: rotate(-22deg);
}

.eye,
.snout {
  position: absolute;
  display: block;
  background: var(--ink);
}

.eye {
  top: 72px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.eye.left {
  left: 55px;
}

.eye.right {
  right: 55px;
}

.snout {
  left: 50%;
  bottom: 48px;
  width: 54px;
  height: 38px;
  border-radius: 50% 50% 58% 58%;
  transform: translateX(-50%);
}

.status-chip {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  background: var(--paper);
}

.impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 6rem;
}

.homepage-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0;
}

.highlight-card {
  min-height: 250px;
  padding: 1.25rem;
  border: 1px solid rgba(33, 27, 22, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 18px 50px rgba(18, 60, 107, 0.09);
}

.highlight-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--denim);
}

.highlight-card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.highlight-card h2 a {
  color: inherit;
  text-decoration: none;
}

.highlight-card p {
  color: var(--muted);
  line-height: 1.55;
}

.highlight-card a {
  font-weight: 800;
  color: var(--rust-dark);
}

.mini-meter {
  height: 14px;
  overflow: hidden;
  margin: 1rem 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(139, 185, 216, 0.28);
}

.mini-meter span {
  display: block;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--rust));
}

.impact article {
  padding: 1.4rem;
  border: 1px solid rgba(33, 27, 22, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.58);
}

.impact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
}

.impact span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 120px;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 3rem;
  align-items: start;
}

.mission-list {
  display: grid;
  gap: 1rem;
}

.mission-list div,
.dog-card,
.story-card,
.process-track article,
.support-card,
.contact-form,
.post-card {
  border: 1px solid rgba(33, 27, 22, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 50px rgba(18, 60, 107, 0.09);
}

.mission-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.2rem;
  padding: 1.35rem;
}

.mission-list span,
.process-track span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  font-weight: 800;
  border-radius: 50%;
  background: var(--denim);
}

.mission-list p {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 2rem;
}

.section-heading.adopt-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  max-width: 1040px;
}

.adopt-badge-link {
  display: grid;
  place-items: center;
  gap: 0.55rem;
  width: 168px;
  padding: 1rem;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.adopt-badge-link img {
  width: 112px;
  height: 112px;
}

.adopt-badge-link span {
  font-size: 0.86rem;
  line-height: 1.15;
}

.dog-grid,
.story-grid,
.support-grid,
.posts-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dog-card,
.post-card {
  padding: 1rem;
}

.success-stories {
  position: relative;
}

.success-stories::before {
  position: absolute;
  top: 1.8rem;
  right: min(2vw, 1rem);
  z-index: -1;
  width: 240px;
  height: 240px;
  content: "";
  border-radius: 50%;
  background: rgba(217, 165, 40, 0.28);
  filter: blur(2px);
}

.story-card {
  padding: 1rem;
  overflow: hidden;
}

.story-photo {
  min-height: 220px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 40% 36%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 36%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 51%, var(--ink) 0 15px, transparent 16px),
    radial-gradient(circle at 50% 38%, var(--paper) 0 50px, transparent 52px),
    linear-gradient(145deg, var(--gold), #f7dd91);
}

.story-photo.blue {
  background:
    radial-gradient(circle at 40% 36%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 36%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 51%, var(--ink) 0 15px, transparent 16px),
    radial-gradient(circle at 50% 38%, var(--paper) 0 50px, transparent 52px),
    linear-gradient(145deg, #8bb9d8, var(--denim));
}

.story-photo.white {
  background:
    radial-gradient(circle at 40% 36%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 36%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 51%, var(--ink) 0 15px, transparent 16px),
    radial-gradient(circle at 50% 38%, #fefdf8 0 54px, transparent 56px),
    linear-gradient(145deg, #f8fbff, #dcecff);
}

.dog-photo.uploaded,
.story-photo.uploaded {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.dog-photo.uploaded a,
.story-photo.uploaded a {
  display: block;
  min-height: inherit;
}

.dog-photo.uploaded img,
.story-photo.uploaded img {
  display: block;
  width: 100%;
  min-height: inherit;
  height: 100%;
  object-fit: cover;
}

.story-card span {
  display: inline-flex;
  margin: 1rem 0 0.8rem;
  padding: 0.45rem 0.7rem;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--denim);
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.story-card p {
  color: var(--muted);
  line-height: 1.55;
}

.dog-photo {
  min-height: 280px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 44%, var(--paper) 0 52px, transparent 54px),
    radial-gradient(circle at 38% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 62% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 56%, var(--ink) 0 18px, transparent 19px),
    linear-gradient(145deg, #f7dd91, var(--gold));
}

.dog-photo.blue {
  background:
    radial-gradient(circle at 50% 44%, var(--paper) 0 52px, transparent 54px),
    radial-gradient(circle at 38% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 62% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 56%, var(--ink) 0 18px, transparent 19px),
    linear-gradient(145deg, #8bb9d8, var(--denim));
}

.dog-photo.green {
  background:
    radial-gradient(circle at 50% 44%, var(--paper) 0 52px, transparent 54px),
    radial-gradient(circle at 38% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 62% 41%, var(--ink) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 56%, var(--ink) 0 18px, transparent 19px),
    linear-gradient(145deg, #d9a528, #8bb9d8);
}

.dog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--rust-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.animal-id {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.4rem 0.62rem;
  color: var(--paper);
  border-radius: 999px;
  background: var(--denim);
}

.animal-id.missing {
  color: var(--ink);
  background: var(--gold);
}

.fresh-out-hero {
  padding-bottom: 2rem;
}

.fresh-card h2 {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.fresh-card h2 a {
  color: inherit;
  text-decoration: none;
}

.fresh-empty {
  grid-column: 1 / -1;
}

.press-dream-link {
  max-width: 760px;
  padding: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 16px 42px rgba(18, 60, 107, 0.1);
}

.press-dream-link summary {
  color: var(--rust-dark);
  font-weight: 900;
  cursor: pointer;
}

.press-dream-link p {
  color: var(--muted);
  line-height: 1.55;
}

.press-card span {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.45rem 0.7rem;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--denim);
}

.press-card-image {
  display: block;
  overflow: hidden;
  margin: -0.2rem -0.2rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
}

.press-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.single-press-card {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(33, 27, 22, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.84);
  box-shadow: var(--shadow);
}

.single-press-card h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.press-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-weight: 800;
}

.press-featured-image {
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
}

.press-featured-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-rescue-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid rgba(33, 27, 22, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.single-rescue-media {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.single-rescue-media img {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  min-height: 360px;
  object-fit: cover;
}

.single-rescue-media .dog-photo {
  min-height: 440px;
  border-radius: 0;
}

.single-rescue-copy {
  padding: 1rem 0.5rem;
}

.single-rescue-copy h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.single-animal-id {
  margin: 0 0 1.2rem;
}

.entry-body {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.entry-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.dog-card p,
.process-track p,
.support-card h3,
.post-card p {
  color: var(--muted);
  line-height: 1.55;
}

.dog-card a,
.support-card a,
.post-card a {
  font-weight: 800;
  color: var(--rust-dark);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process-track article {
  padding: 1.25rem;
}

.foster-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  color: var(--paper);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(33, 27, 22, 0.86), rgba(51, 93, 104, 0.92)),
    radial-gradient(circle at 90% 20%, var(--gold), transparent 18rem);
  box-shadow: var(--shadow);
}

.vehicle-banner {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  color: var(--paper);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 25%, rgba(239, 186, 88, 0.36), transparent 16rem),
    linear-gradient(135deg, #123c6b, #14263d 58%, #d9a528);
  box-shadow: var(--shadow);
}

.vehicle-banner .eyebrow,
.vehicle-banner p,
.vehicle-banner li {
  color: #f9deaa;
}

.vehicle-banner ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
}

.vehicle-card {
  padding: 1.4rem;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--gold);
  box-shadow: 10px 10px 0 var(--ink);
}

.vehicle-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.foster-banner .eyebrow,
.foster-banner p {
  color: #f9deaa;
}

.foster-banner h2 {
  max-width: 840px;
}

.support-card {
  min-height: 280px;
  padding: 1.5rem;
  background: var(--paper);
}

.support-card span,
.resource-card span {
  display: inline-block;
  margin-bottom: 3rem;
  padding: 0.5rem 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(239, 186, 88, 0.35);
}

.resources-section {
  scroll-margin-top: 120px;
}

.resource-card {
  min-height: 300px;
  padding: 1.5rem;
  border: 1px solid rgba(33, 27, 22, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 18px 50px rgba(18, 60, 107, 0.09);
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.resource-card p {
  color: var(--muted);
  line-height: 1.55;
}

.resource-card a {
  font-weight: 800;
  color: var(--rust-dark);
}

.funding-page {
  padding-bottom: 3rem;
}

.funding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 2rem;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin-inline: auto;
  padding: 5rem 0 3rem;
}

.funding-meter,
.funding-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow), 10px 10px 0 var(--ink);
}

.funding-meter {
  padding: 1.5rem;
  background:
    radial-gradient(circle at 74% 20%, rgba(217, 165, 40, 0.48), transparent 9rem),
    linear-gradient(145deg, var(--paper), #e7f2ff);
}

.funding-meter span,
.funding-card span {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.5rem 0.75rem;
  color: var(--paper);
  font-weight: 800;
  border-radius: 999px;
  background: var(--denim);
}

.funding-meter strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.funding-meter p,
.funding-card p,
.funding-band p {
  color: var(--muted);
  line-height: 1.6;
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.funding-card {
  padding: 1.4rem;
}

.funding-card h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.funding-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  color: var(--paper);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(217, 165, 40, 0.42), transparent 18rem),
    linear-gradient(135deg, #123c6b, #14263d);
  box-shadow: var(--shadow);
}

.funding-band .eyebrow,
.funding-band p {
  color: #f9deaa;
}

.ranch-page {
  --ranch-green: #244536;
  --ranch-green-dark: #183328;
  --ranch-tan: #d8bc83;
  --ranch-gold: #dcae3f;
  --ranch-cream: #fff8ea;
  color: var(--ranch-green-dark);
  padding-bottom: 3rem;
}

.ranch-page h1,
.ranch-page h2,
.ranch-page h3 {
  color: var(--ranch-green-dark);
}

.ranch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 2rem;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 690px;
  margin-inline: auto;
  padding: 5rem 0 3rem;
}

.ranch-hero-card,
.ranch-copy-card,
.ranch-concept-card,
.layout-card,
.dream-card,
.pledge-meter-card,
.pledge-form,
.pledge-list {
  border: 2px solid var(--ranch-green-dark);
  border-radius: 24px;
  background: rgba(255, 248, 234, 0.88);
  box-shadow: 0 18px 44px rgba(36, 69, 54, 0.14);
}

.ranch-hero-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(220, 174, 63, 0.46), transparent 9rem),
    linear-gradient(145deg, #fff8ea, #e7f0df);
}

.ranch-hero-card span,
.ranch-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 0.75rem;
  color: #fff8ea;
  font-weight: 800;
  border-radius: 999px;
  background: var(--ranch-green);
}

.ranch-hero-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.ranch-donate-button {
  background: var(--ranch-green) !important;
}

.ranch-split {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 2rem;
  align-items: start;
}

.ranch-copy-card {
  padding: 1.5rem;
}

.ranch-copy-card p,
.ranch-concept-card p,
.layout-card p,
.dream-card p,
.pledge-meter-card p,
.pledge-list p,
.transparency-band p,
.final-ranch-cta p {
  color: #526257;
  line-height: 1.62;
}

.ranch-card-grid,
.blueprint-grid,
.layout-grid,
.dream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ranch-concept-card,
.layout-card,
.dream-card {
  padding: 1.25rem;
}

.ranch-concept-card h3,
.layout-card h3,
.dream-card h3,
.pledge-list h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.blueprint-grid {
  align-items: stretch;
}

.blueprint-card {
  background:
    linear-gradient(rgba(24, 51, 40, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 51, 40, 0.055) 1px, transparent 1px),
    rgba(255, 248, 234, 0.94);
  background-size: 22px 22px;
}

.blueprint-card-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.ranch-chip.light-chip {
  color: var(--ranch-green-dark);
  background: #f4e6c8;
}

.blueprint-image-link {
  display: block;
  overflow: hidden;
  margin: 1rem 0;
  border: 2px solid var(--ranch-green-dark);
  border-radius: 18px;
  background: var(--ranch-cream);
  box-shadow: 0 10px 24px rgba(36, 69, 54, 0.16);
}

.blueprint-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-hint {
  display: inline-flex;
  margin: 0 0 0.7rem;
  color: #526257;
  font-size: 0.86rem;
  font-weight: 900;
}

.blueprint-label {
  display: block;
  margin-top: 1rem;
  color: var(--ranch-green-dark);
}

.blueprint-sketch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 1rem 0;
  padding: 0.7rem;
  border: 1px dashed rgba(36, 69, 54, 0.48);
  border-radius: 18px;
  background: rgba(244, 230, 200, 0.62);
}

.blueprint-sketch span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0.42rem;
  color: var(--ranch-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  border: 1px solid rgba(36, 69, 54, 0.45);
  border-radius: 10px;
  background: rgba(255, 248, 234, 0.82);
}

.blueprint-example-card {
  background:
    linear-gradient(rgba(24, 51, 40, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 51, 40, 0.055) 1px, transparent 1px),
    rgba(255, 248, 234, 0.9);
  background-size: 22px 22px;
}

.blueprint-examples .dream-grid {
  grid-template-columns: repeat(2, 1fr);
}

.dream-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  color: #fff8ea;
  font-weight: 800;
  border-radius: 999px;
  background: var(--ranch-green);
}

.ranch-concept-card ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.15rem;
}

.layout-blocks {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.layout-blocks span {
  padding: 0.65rem 0.75rem;
  color: var(--ranch-green-dark);
  font-weight: 800;
  border: 1px dashed rgba(36, 69, 54, 0.45);
  border-radius: 14px;
  background: #f4e6c8;
}

.ranch-checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.ranch-checklist li {
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 1px solid rgba(36, 69, 54, 0.2);
  border-radius: 18px;
  background: rgba(255, 248, 234, 0.86);
}

.ranch-checklist li::before {
  position: absolute;
  left: 1rem;
  color: var(--ranch-green);
  font-weight: 800;
  content: ">";
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.donation-card {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 1rem;
  color: #fff8ea;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid var(--ranch-green-dark);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ranch-green), #3f6a4d);
  box-shadow: 0 8px 0 var(--ranch-green-dark);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.donation-card:hover {
  box-shadow: 0 4px 0 var(--ranch-green-dark);
  transform: translateY(4px);
}

.transparency-band,
.final-ranch-cta {
  padding: 3rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 16%, rgba(220, 174, 63, 0.35), transparent 15rem),
    linear-gradient(135deg, rgba(255, 248, 234, 0.92), rgba(225, 238, 218, 0.92));
  box-shadow: var(--shadow);
}

.final-ranch-cta {
  border: 2px solid var(--ranch-green-dark);
}

.pledge-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pledge-meter-card,
.pledge-form,
.pledge-list {
  padding: 1.25rem;
}

.pledge-meter {
  position: relative;
  height: 34px;
  overflow: hidden;
  border: 2px solid var(--ranch-green-dark);
  border-radius: 999px;
  background: #f4e6c8;
}

.pledge-meter-fill {
  height: 100%;
  min-width: 8px;
  border-right: 2px solid var(--ranch-green-dark);
  background: linear-gradient(90deg, var(--ranch-gold), var(--ranch-green));
}

.pledge-stats {
  margin: 1.2rem 0 0.5rem;
}

.pledge-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.pledge-stats span {
  color: #526257;
  font-weight: 800;
}

.pledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.pledge-card {
  padding: 1rem;
  border: 1px solid rgba(36, 69, 54, 0.22);
  border-radius: 18px;
  background: rgba(255, 248, 234, 0.74);
}

.pledge-card strong,
.pledge-card span {
  display: block;
}

.pledge-card span {
  color: var(--ranch-green);
  font-size: 1.2rem;
  font-weight: 900;
}

.ranch-sticky-actions {
  position: sticky;
  bottom: 14px;
  z-index: 15;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  width: min(520px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0.45rem;
  border: 2px solid var(--ranch-green-dark);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.94);
  box-shadow: 0 16px 38px rgba(36, 69, 54, 0.22);
  backdrop-filter: blur(16px);
}

.ranch-sticky-actions a {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: #fff8ea;
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
  background: var(--ranch-green);
}

.ranch-project-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(36, 69, 54, 0.24);
}

.ranch-project-footer strong {
  width: 100%;
  color: var(--ranch-green-dark);
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 2rem;
  align-items: start;
}

.beta-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 2rem;
  align-items: start;
}

.beta-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.beta-steps span {
  padding: 0.55rem 0.8rem;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--denim);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.beta-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow), 10px 10px 0 var(--ink);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  color: var(--ink);
  font: inherit;
  border: 1px solid rgba(33, 27, 22, 0.2);
  border-radius: 16px;
  background: #fffdf8;
}

textarea {
  resize: vertical;
}

.checkbox-label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  color: var(--ink);
  line-height: 1.45;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  padding: 0;
  accent-color: var(--rust);
}

.form-note {
  min-height: 1.4rem;
  margin: 0;
  color: var(--rust-dark);
  font-weight: 800;
}

.download-panel {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(139, 185, 216, 0.22);
}

.download-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.disabled-button {
  color: var(--ink);
  cursor: not-allowed;
  opacity: 0.72;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(33, 27, 22, 0.14);
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.footer-links a {
  font-weight: 800;
  text-decoration: none;
}

.entry-content {
  width: min(920px, calc(100% - 32px));
  margin: 4rem auto;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.72);
}

.post-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav,
  .site-nav .menu {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 0.75rem;
    border: 1px solid rgba(33, 27, 22, 0.12);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .brand small {
    display: none;
  }

  .hero,
  .funding-hero,
  .ranch-hero,
  .ranch-split,
  .split,
  .single-rescue-card,
  .beta-section,
  .section-heading.adopt-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .impact,
  .homepage-highlights,
  .funding-grid,
  .ranch-card-grid,
  .blueprint-grid,
  .layout-grid,
  .dream-grid,
  .blueprint-examples .dream-grid,
  .pledge-layout,
  .pledge-grid,
  .ranch-checklist,
  .donation-grid,
  .dog-grid,
  .story-grid,
  .support-grid,
  .resource-grid,
  .process-track,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .foster-banner,
  .funding-band,
  .vehicle-banner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .vehicle-banner {
    grid-template-columns: 1fr;
  }

  .single-rescue-media img {
    height: auto;
    min-height: 280px;
  }

  .ranch-sticky-actions {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .impact,
  .site-footer,
  .site-header {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 3.4rem;
  }

  .dog-portrait {
    min-height: 330px;
  }

  .dog-ear.left {
    left: 44px;
  }

  .dog-ear.right {
    right: 44px;
  }

  .foster-banner,
  .vehicle-banner,
  .entry-content {
    padding: 1.4rem;
  }

  body::after {
    top: 54%;
    left: 50%;
    width: 340px;
    opacity: 0.05;
  }
}
