/*
Theme Name: JDFHR Rescue
Theme URI: https://jdfhorserescue.org/
Author: JD Farming Horse Rescue
Description: A warm, modern Texas ranch theme for JD Farming Horse Rescue. Built for structured horse profiles and future ecommerce compatibility.
Version: 0.4.2
Text Domain: jdfhr-rescue
*/

:root {
	--ink: #2b211b;
	--ink-soft: #5e5148;
	--cream: #f7f1e7;
	--paper: #fffdf8;
	--sand: #e5d3b5;
	--rust: #a5492d;
	--rust-dark: #71311f;
	--sage: #697151;
	--sage-dark: #3e4732;
	--gold: #c89445;
	--line: rgba(43, 33, 27, .16);
	--shadow: 0 18px 50px rgba(43, 33, 27, .12);
	--radius: 22px;
	--max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.65;
}
a { color: var(--rust-dark); text-underline-offset: .18em; }
a:hover { color: var(--rust); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1.2rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.eyebrow { display: inline-block; margin-bottom: 1rem; color: var(--rust-dark); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 9999; padding: 12px 18px; background: var(--paper); color: var(--ink); }
.skip-link:focus { left: 12px; }

.topbar { padding: 8px 0; background: var(--sage-dark); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 800; }
.brand-tag { margin-top: 5px; color: var(--ink-soft); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); font-size: .88rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--rust); }
.header-donate { flex: 0 0 auto; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: transparent; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 800; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 999px; padding: 12px 22px; background: var(--rust); color: #fff; font-size: .86rem; font-weight: 850; letter-spacing: .025em; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--rust-dark); color: #fff; }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: var(--cream); color: var(--ink); }
.button--outline { border-color: currentColor; background: transparent; color: var(--rust-dark); }
.button--outline:hover { background: var(--rust-dark); color: #fff; }
.button--ghost { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); color: #fff; }
.button--ghost:hover { background: #fff; color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero { position: relative; min-height: min(820px, 86vh); display: grid; align-items: end; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,13,.68) 0%, rgba(20,16,13,.36) 45%, rgba(20,16,13,.04) 78%), url("assets/approved-home-hero.jpg") center 48% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, rgba(20,16,13,.45)); }
.hero-inner { position: relative; z-index: 2; max-width: 850px; padding: clamp(110px, 17vw, 190px) 0 clamp(70px, 9vw, 105px); }
.hero .eyebrow, .hero h1 { color: #fff; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--gold); }
.hero p { max-width: 710px; color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 2.2vw, 1.42rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 42px; color: rgba(255,255,255,.88); font-size: .84rem; font-weight: 750; }
.hero-proof span::before { content: "•"; margin-right: 10px; color: var(--gold); }

.mission-strip { position: relative; z-index: 3; margin-top: -34px; }
.mission-grid { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.mission-card { padding: 34px; }
.mission-card + .mission-card { border-left: 1px solid var(--line); }
.mission-number { color: var(--gold); font-family: Georgia, serif; font-size: 1.3rem; font-weight: 800; }
.mission-card h3 { margin: 10px 0 8px; }
.mission-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(44px, 8vw, 96px); }
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-caption { position: absolute; right: 16px; bottom: 16px; left: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(43,33,27,.78); color: #fff; font-size: .78rem; backdrop-filter: blur(8px); }
.fact-list { display: grid; gap: 16px; margin: 26px 0 32px; padding: 0; list-style: none; }
.fact-list li { display: flex; gap: 13px; align-items: flex-start; }
.fact-list li::before { content: "✓"; display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: var(--sage); color: #fff; font-size: .75rem; font-weight: 900; }

.adoption-fee-note { max-width: 760px; margin: 0 auto 34px; border-left: 4px solid var(--gold); padding: 12px 16px; background: var(--cream); color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.horse-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 42px; }
.horse-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 30px rgba(43,33,27,.07); }
.horse-card-media { position: relative; display: block; overflow: hidden; background: var(--sand); }
.horse-card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s ease; }
.horse-card:hover .horse-card-media img { transform: scale(1.035); }
.horse-card-placeholder { display: grid; aspect-ratio: 4/3; place-items: center; padding: 30px; background: linear-gradient(135deg, var(--sage-dark), var(--sage)); color: #fff; text-align: center; }
.horse-card-placeholder strong { font-family: Georgia, serif; font-size: 1.6rem; }
.status-chip { position: absolute; top: 16px; left: 16px; max-width: calc(100% - 32px); border-radius: 999px; padding: 8px 13px; background: var(--paper); color: var(--sage-dark); font-size: .7rem; font-weight: 900; letter-spacing: .09em; line-height: 1.25; text-transform: uppercase; }
.horse-card-body { padding: 24px; }
.horse-card-body h3 { margin-bottom: 8px; }
.horse-meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.horse-card-body p { color: var(--ink-soft); font-size: .92rem; }
.horse-card-detail { display: grid; gap: 3px; margin: 13px 0; font-size: .86rem !important; line-height: 1.45; }
.horse-card-detail strong { color: var(--ink); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.horse-card-fee { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.horse-card-fee span { color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.horse-card-fee strong { font-family: Georgia, serif; font-size: 1rem; text-align: right; }
.horse-card-button { width: 100%; margin-top: 15px; }
.section-link { margin-top: 34px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

.help-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 38px; }
.help-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.help-card .icon { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border-radius: 50%; background: var(--cream); color: var(--rust-dark); font-family: Georgia, serif; font-weight: 900; }

.local-band { background: var(--sage-dark); color: #fff; }
.local-band h2, .local-band .eyebrow { color: #fff; }
.local-band p { color: rgba(255,255,255,.82); }
.local-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.contact-panel { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.contact-panel a { color: #fff; }

.page-hero { padding: clamp(90px, 13vw, 150px) 0 70px; background: var(--cream); }
.page-hero h1 { max-width: 900px; }
.page-hero--visual { position: relative; min-height: clamp(380px, 50vw, 590px); display: grid; align-items: end; overflow: hidden; padding: 0; background: var(--ink); color: #fff; }
.page-hero__media, .page-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero__media { background: linear-gradient(90deg, rgba(20,16,13,.86) 0%, rgba(20,16,13,.56) 48%, rgba(20,16,13,.18) 100%), var(--page-hero-image, linear-gradient(135deg, var(--sage-dark), var(--ink))) center / cover no-repeat; }
.page-hero__media::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(transparent, rgba(20,16,13,.58)); }
.page-hero__video { object-fit: cover; opacity: .72; }
.page-hero__content { position: relative; z-index: 1; padding-top: clamp(110px, 17vw, 190px); padding-bottom: clamp(58px, 9vw, 110px); }
.page-hero--visual .eyebrow, .page-hero--visual h1 { color: #fff; }
.page-hero--visual .eyebrow { display: flex; align-items: center; gap: 12px; }
.page-hero--visual .eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--gold); }
.page-hero--visual .lead { max-width: 760px; color: rgba(255,255,255,.9); }
.content-shell { padding: 64px 0 110px; }
.content-shell > * { max-width: 820px; margin-right: auto; margin-left: auto; }
.content-shell h2 { margin-top: 2.2em; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.content-shell h3 { margin-top: 1.8em; }
.content-shell .button { margin-top: 6px; }
.content-shell .story-media { max-width: 1080px; }
.story-media { display: grid; grid-template-columns: 1.16fr .84fr; align-items: stretch; gap: 0; margin-top: 54px; margin-bottom: 60px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.story-media__visual { min-height: 290px; background: var(--cream); }
.story-media__asset { display: block; width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.story-media__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); background: var(--cream); }
.story-media__copy .eyebrow { color: var(--sage-dark); }
.story-media__copy h3 { margin: 12px 0 10px; font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.12; }
.story-media__copy p { margin: 0; color: var(--ink-soft); }
.story-media__placeholder { display: grid; min-height: 290px; align-content: center; justify-items: center; gap: 8px; padding: 28px; background: repeating-linear-gradient(135deg, #ece6d9, #ece6d9 12px, #e3dac8 12px, #e3dac8 24px); color: var(--ink-soft); text-align: center; }
.story-media__placeholder strong { font-family: Georgia, serif; font-size: 1.45rem; color: var(--ink); }
.story-media__placeholder span { max-width: 240px; font-size: .86rem; }
.content-shell .help-reassurance { max-width: 1000px; margin-bottom: 58px; border: 1px solid rgba(105,113,81,.32); border-radius: var(--radius); padding: clamp(28px, 5vw, 54px); background: linear-gradient(135deg, #f1f2e8, #fffaf2); box-shadow: 0 16px 42px rgba(43,33,27,.08); }
.help-reassurance h2 { max-width: 820px; margin-top: 0; }
.help-reassurance p:last-child { margin-bottom: 0; }
.help-reassurance strong { color: var(--sage-dark); }
.callout { max-width: 900px; margin-top: 32px; margin-bottom: 32px; border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; background: var(--cream); }
.callout ul { margin-bottom: 0; }
.callout-note { margin-top: 18px; margin-bottom: 0; color: var(--ink-soft); font-size: .92rem; }
.feature-grid, .contact-grid { display: grid; max-width: 1080px; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 34px; margin-bottom: 42px; }
.feature-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper); box-shadow: 0 10px 30px rgba(43,33,27,.06); }
.feature-box h3 { margin-top: 0; }
.donation-grid { display: grid; max-width: 1080px; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 28px; margin-bottom: 54px; }
.donation-card { display: flex; min-height: 150px; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 10px 30px rgba(43,33,27,.06); transition: transform .2s ease, border-color .2s ease; }
.donation-card:first-child { grid-column: 1 / -1; background: var(--sage-dark); color: #fff; }
.donation-card:hover { transform: translateY(-3px); border-color: var(--rust); color: var(--ink); }
.donation-card:first-child:hover { color: #fff; }
.donation-card strong { font-family: Georgia, serif; font-size: 1.5rem; }
.donation-card span { margin-top: 7px; color: inherit; opacity: .78; }
.future-shop-note { max-width: 900px; margin-top: 64px; border: 1px dashed var(--sage); border-radius: var(--radius); padding: 28px; background: #f3f3e9; }
.future-shop-note h3 { margin-top: 0; }
.links-page { max-width: 640px !important; margin: 0 auto; text-align: center; }
.links-intro { margin-bottom: 30px; }
.links-intro h2 { margin-top: 12px; }
.links-intro p { color: var(--ink-soft); }
.links-stack { display: grid; gap: 14px; }
.links-button { display: flex; min-height: 76px; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px rgba(43,33,27,.07); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.links-button:hover { transform: translateY(-2px); border-color: var(--rust); background: var(--cream); color: var(--ink); }
.links-button strong { font-family: Georgia, serif; font-size: 1.18rem; }
.links-button span { margin-top: 4px; color: var(--ink-soft); font-size: .86rem; }
.links-social { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.links-social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 15px; }
.links-social-row a { color: var(--sage-dark); font-size: .9rem; font-weight: 850; text-decoration: none; }
.links-social-row a:hover { color: var(--rust); text-decoration: underline; }
.poc-notice { margin-bottom: 28px; border: 1px solid #d6a347; border-radius: 14px; padding: 16px 18px; background: #fff8df; color: #5b4216; font-size: .88rem; font-weight: 750; }

.horse-profile-hero { padding: 52px 0 0; background: var(--cream); }
.horse-profile-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; gap: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.horse-profile-media { min-width: 0; align-self: start; background: var(--cream); }
.horse-profile-image img { display: block; width: 100%; height: auto; min-height: 0; max-height: 520px; object-fit: contain; }
.horse-profile-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.horse-profile-gallery a { display: grid; place-items: center; min-width: 0; border-radius: 10px; overflow: hidden; background: var(--paper); }
.horse-profile-gallery img { width: 100%; height: 180px; object-fit: contain; }
.horse-profile-gallery a:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.horse-profile-placeholder { display: grid; min-height: 520px; place-items: center; padding: 45px; background: linear-gradient(145deg, var(--sage-dark), var(--sage)); color: #fff; text-align: center; }
.horse-profile-placeholder strong { font-family: Georgia, serif; font-size: 2rem; }
.horse-profile-summary { padding: clamp(34px, 5vw, 64px); }
.horse-profile-summary h1 { font-size: clamp(2.8rem, 5vw, 4.6rem); }
.horse-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 28px 0; }
.horse-fact { border-top: 1px solid var(--line); padding-top: 12px; }
.horse-fact span { display: block; color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.horse-fact strong { display: block; margin-top: 4px; }
.adoption-fee { margin: 28px 0; border-left: 4px solid var(--gold); padding: 10px 16px; background: var(--cream); }
.adoption-fee span { display: block; color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adoption-fee strong { font-family: Georgia, serif; font-size: 1.2rem; }
.adoption-fee small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .82rem; line-height: 1.45; }
.concise-profile { max-width: 1040px; }
.profile-story { max-width: 800px; margin-bottom: 56px; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 80px); }
.detail-block { margin-bottom: 34px; }
.detail-block h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-block p { color: var(--ink-soft); }
.privacy-proof { margin-top: 44px; border-left: 4px solid var(--sage); padding: 18px 22px; background: var(--cream); color: var(--ink-soft); font-size: .86rem; }
.profile-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; margin-top: 40px; border-radius: var(--radius); padding: clamp(30px, 5vw, 54px); background: var(--sage-dark); color: #fff; }
.profile-cta h2, .profile-cta .eyebrow { color: #fff; }
.profile-cta p { max-width: 700px; margin-bottom: 0; color: rgba(255,255,255,.82); }

.site-footer { padding: 70px 0 28px; background: var(--ink); color: rgba(255,255,255,.76); }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 60px; }
.footer-logo { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.footer-logo img { width: 74px; height: 74px; object-fit: contain; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .76rem; }

@media (max-width: 980px) {
	.header-donate { display: none; }
	.menu-toggle { display: inline-flex; }
	.primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; margin: 0; border-bottom: 1px solid var(--line); padding: 20px; background: var(--paper); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { width: min(100%, var(--max)); margin: auto; align-items: stretch; flex-direction: column; gap: 4px; }
	.primary-nav a { display: block; padding: 10px; }
	.split, .local-grid, .horse-profile-grid, .profile-columns, .profile-cta { grid-template-columns: 1fr; }
	.mission-grid { grid-template-columns: 1fr; }
	.mission-card + .mission-card { border-top: 1px solid var(--line); border-left: 0; }
	.horse-grid { grid-template-columns: repeat(2,1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
	body { font-size: 17px; }
	.container, .narrow { width: min(calc(100% - 28px), var(--max)); }
	.topbar { font-size: .65rem; }
	.header-inner { min-height: 72px; }
	.brand img { width: 52px; height: 52px; }
	.brand-name { font-size: .9rem; }
	.brand-tag { display: none; }
	.hero { min-height: 760px; }
	.hero::before { background: linear-gradient(0deg, rgba(20,16,13,.70) 0%, rgba(20,16,13,.34) 68%, rgba(20,16,13,.08)), url("assets/approved-home-hero.jpg") 58% center / cover no-repeat; }
	.hero-actions .button { width: 100%; }
	.page-hero--visual { min-height: 420px; }
	.page-hero__media { background-position: 62% center; }
	.page-hero--visual .page-hero__content { padding-top: 116px; padding-bottom: 54px; }
	.mission-strip { margin-top: -18px; }
	.mission-card { padding: 26px; }
	.horse-grid, .help-grid, .footer-grid, .horse-facts { grid-template-columns: 1fr; }
	.feature-grid, .contact-grid, .donation-grid { grid-template-columns: 1fr; }
	.story-media { grid-template-columns: 1fr; margin-top: 42px; margin-bottom: 46px; }
	.story-media__visual, .story-media__asset, .story-media__placeholder { min-height: 230px; }
	.donation-card:first-child { grid-column: auto; }
	.footer-grid > :first-child { grid-column: auto; }
	.footer-bottom { flex-direction: column; }
	.horse-profile-image img { min-height: 0; max-height: 420px; }
	.horse-profile-placeholder { min-height: 360px; }
	.horse-profile-gallery img { height: 140px; }
}

/* Primary navigation: resource discovery and compact desktop spacing. */
.primary-nav a:focus-visible{outline:3px solid var(--rust-dark);outline-offset:4px;border-radius:4px}
.primary-nav .current-menu-item>a{color:var(--rust-dark);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.3em}
@media(min-width:981px) and (max-width:1199px){.header-inner{gap:16px}.primary-nav ul{gap:12px}.primary-nav a{font-size:.8rem;white-space:nowrap}.brand{gap:8px}.brand-name{font-size:.95rem}.brand img{width:56px;height:56px}.header-donate{padding:10px 14px;font-size:.78rem}}

/* Motion preferences apply consistently across the public website. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main *, main *::before, main *::after, .site-header * {
    animation: none !important;
    transition: none !important;
  }
}

/* Shop page: editable content, existing theme tokens and reveal system. */
.jdfhr-shop-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--ink);color:#fff}.jdfhr-shop-hero__image{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 48%}.jdfhr-shop-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(20,16,13,.83),rgba(20,16,13,.55) 55%,rgba(20,16,13,.25))}.jdfhr-shop-hero__copy{padding-block:64px}.jdfhr-shop-hero h1{max-width:800px;color:#fff;font-size:clamp(2.8rem,6vw,4.8rem)}.jdfhr-shop-hero .eyebrow{color:#f2d09a}.jdfhr-shop-hero .lead{max-width:680px;color:#fff}.jdfhr-shop-showcase{padding-block:64px}.jdfhr-shop-showcase>p{max-width:740px;color:var(--ink-soft)}.jdfhr-shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:32px}.jdfhr-shop-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:0 10px 30px rgba(43,33,27,.06)}.jdfhr-shop-photo{display:block;background:#fff}.jdfhr-shop-photo img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.jdfhr-shop-card__copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:18px;padding:24px}.jdfhr-shop-card h3{font-size:1.5rem;margin:0}.jdfhr-shop-card .button{margin-top:auto}.jdfhr-shop-store-link{margin-top:36px;text-align:center}.jdfhr-shop-learning{background:var(--cream);padding-block:54px}.jdfhr-shop-coming{max-width:820px;border-left:4px solid var(--gold);padding-left:28px}.jdfhr-shop-coming .eyebrow{border:1px solid var(--sage);border-radius:999px;padding:6px 12px;color:var(--sage-dark);letter-spacing:.08em}.jdfhr-shop-coming h2{font-size:clamp(1.9rem,3.8vw,3rem)}.jdfhr-shop-closing{padding-block:58px;text-align:center}.jdfhr-shop-closing h2{font-size:clamp(1.8rem,3vw,2.6rem)}.jdfhr-shop-closing p{max-width:720px;margin:0 auto;color:var(--ink-soft)}.jdfhr-shop-page a:focus-visible{outline:3px solid var(--gold);outline-offset:5px}.mobile-nav-support{display:none}
@media(min-width:1151px){.header-inner{gap:16px}.primary-nav ul{gap:14px}.primary-nav a{font-size:.8rem;white-space:nowrap}.brand{gap:8px;flex-shrink:0}.brand-name{font-size:.95rem}.brand img{width:56px;height:56px}.header-donate{padding:10px 14px;font-size:.78rem}}
@media(max-width:1150px){.header-donate{display:none}.menu-toggle{display:inline-flex}.primary-nav{position:absolute;top:100%;right:0;left:0;display:none;margin:0;border-bottom:1px solid var(--line);padding:20px;background:var(--paper)}.primary-nav.is-open{display:block}.primary-nav ul{width:min(100%,var(--max));margin:auto;align-items:stretch;flex-direction:column;gap:4px}.primary-nav a{display:block;padding:10px}.primary-nav .mobile-nav-support{display:flex;width:max-content;margin:12px auto 0;color:#fff}.jdfhr-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.jdfhr-shop-hero__copy{padding-block:42px}.jdfhr-shop-hero__image{object-position:58% center}.jdfhr-shop-hero .eyebrow{font-size:.68rem}.jdfhr-shop-grid{grid-template-columns:1fr;gap:20px}.jdfhr-shop-showcase{padding-block:42px}.jdfhr-shop-card__copy{padding:22px}.jdfhr-shop-learning{padding-block:40px}.jdfhr-shop-coming{padding-left:20px}.jdfhr-shop-hero .button{max-width:100%;text-align:center}}

/* Native WordPress submenus: independent parent links and disclosure buttons. */
.primary-nav li { position: relative; }
.primary-nav .menu-item-has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.primary-nav .submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.15rem; }
.primary-nav .submenu-toggle:hover { background: var(--cream); }
.primary-nav a:focus-visible, .primary-nav button:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.primary-nav .submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.primary-nav ul.sub-menu { display: block; grid-column: 1 / -1; list-style: none; }
.primary-nav.has-submenu-controls .sub-menu { display: none; }
.primary-nav.has-submenu-controls .is-submenu-open > .sub-menu { display: block; }
@media (min-width: 1151px) {
 .primary-nav > ul { gap: 10px; }
 .primary-nav ul.sub-menu { position: absolute; top: 100%; left: 0; z-index: 110; min-width: 235px; width: max-content; max-width: calc(100vw - 40px); margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: var(--paper); box-shadow: 0 12px 24px rgba(45,35,25,.15); }
 .primary-nav > ul > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
 .primary-nav .sub-menu a { display: block; padding: 11px 12px; white-space: normal; border-radius: 6px; }
 .primary-nav .sub-menu a:hover { background: var(--cream); }
 .primary-nav:not(.has-submenu-controls) .sub-menu { display: none; }
 .primary-nav:not(.has-submenu-controls) li:hover > .sub-menu, .primary-nav:not(.has-submenu-controls) li:focus-within > .sub-menu { display: block; }
}
@media (max-width: 1150px) {
 .primary-nav { max-height: calc(100dvh - 190px); overflow-y: auto; overscroll-behavior: contain; }
 .primary-nav .submenu-toggle { width: 48px; min-height: 44px; border: 1px solid var(--line); }
 .primary-nav ul.sub-menu { width: 100%; margin: 4px 0 8px; padding: 4px 0 4px 14px; border-left: 2px solid var(--line); }
 .primary-nav .sub-menu a { min-height: 44px; }
}

/* Compact link-in-bio hero: reuse the recognizable homepage ranch photograph. */
.page-id-57 .page-hero { min-height: 220px; padding: 30px 0; display: grid; align-items: center; background: linear-gradient(90deg,rgba(20,16,13,.8),rgba(20,16,13,.45) 62%,rgba(20,16,13,.2)),url("assets/approved-home-hero.jpg") center 48% / cover no-repeat; color: #fff; }
.page-id-57 .page-hero .eyebrow, .page-id-57 .page-hero h1 { color: #fff; }
.page-id-57 .page-hero h1 { font-size: clamp(2rem,3.5vw,3rem); margin: 8px 0 10px; }
.page-id-57 .page-hero .lead { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.95); font-size: 1rem; }
@media (max-width:600px) { .page-id-57 .page-hero { min-height: 210px; padding: 24px 0; background-position: 58% center; } }


/* Legacy donation QR landing: compact mobile introduction only. */
@media (max-width: 767px) {
  body.page-id-32 .content-shell { padding-top: 24px; }
  body.page-id-32 .content-shell .legacy-section:first-child > h2:first-child { margin-top: 0; }
}
