/* Paws Fur Thought: site styles */
:root {
	--red: #C50000; --red-dark: #8B0000; --taupe: #ADA49B; --cream: #F6F3EE;
	--ink: #1E1E1E; --text: #2B2B2B; --muted: #5C5C5C; --line: #E4DED6; --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 "Open Sans", system-ui, sans-serif; color: var(--text); background: var(--white); }
h1, h2, h3 { font-family: Poppins, system-ui, sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #FFC845; outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; }
.band-cream { background: var(--cream); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* header + menu */
header { position: sticky; top: 0; z-index: 10; background: var(--white); box-shadow: 0 1px 0 #0001; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.bar .logo img { height: 52px; width: auto; }
nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
nav .donate a { background: var(--red); color: var(--white); padding: 8px 20px; border-radius: 100px; border: 0; }
nav .donate a:hover, nav .donate a[aria-current="page"] { background: var(--red-dark); color: var(--white); }
.menu-btn { display: none; font: 600 15px Poppins, sans-serif; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: 6px 12px; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
	.menu-btn { display: block; }
	.bar { flex-wrap: wrap; }
	.bar .logo img { height: 42px; }
	nav { flex-basis: 100%; display: none; }
	header.open nav { display: block; }
	nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
	nav li { border-top: 1px solid var(--line); }
	nav a { display: block; padding: 12px 4px; border-bottom: 0; }
	nav .donate { border-top: 0; padding-top: 12px; }
	nav .donate a { text-align: center; }
}

/* buttons */
.btn { display: inline-block; font: 600 16px/1 Poppins, sans-serif; letter-spacing: .3px; padding: 18px 32px; border-radius: 100px; text-decoration: none; background: var(--red); color: var(--white); border: 2px solid var(--red); cursor: pointer; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { color: var(--white); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: var(--red); border-color: var(--red); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* home hero */
.hero { position: relative; min-height: min(78vh, 680px); display: grid; align-items: end; color: var(--white);
	background: linear-gradient(180deg, #0000 20%, #000c 100%), url("/img/hero-service-dog-ceremony.jpg") center / cover; }
.hero .wrap { padding: 120px 0 90px; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 14ch; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; margin: 0 0 28px; }
.kicker { display: inline-block; font: 700 15px/1 Poppins, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--white); background: var(--red); padding: 9px 16px 8px; border-radius: 4px; margin-bottom: 18px; box-shadow: 0 2px 10px #0006; }

/* inner page title band */
.page-hero { color: var(--white); padding: 72px 0 56px;
	background: linear-gradient(90deg, #1E1E1Ef2 35%, #1E1E1Eb0 100%), url("/img/hero-alt-dogs-illustrated.jpg") center 40% / cover; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { margin: 0; max-width: 60ch; font-size: 1.1rem; color: #EEE; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; padding: 48px 0; }
.stat b { display: block; font: 700 clamp(2.2rem, 5vw, 3.2rem)/1 Poppins, sans-serif; color: var(--red); margin-bottom: 8px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* two-column rows */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split .patch { aspect-ratio: auto; width: 100%; max-width: 320px; height: auto; object-fit: contain; margin-inline: auto; border-radius: 0; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; counter-reset: s; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps.two { grid-template-columns: repeat(2, 1fr); }
.step { background: var(--white); border: 1px solid #0001; border-top: 5px solid var(--red); border-radius: 12px; padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--white); font: 700 18px Poppins, sans-serif; margin-bottom: 14px; }
.step p { margin: 0; font-size: 15.5px; }
.covered { background: var(--white); border-radius: 12px; padding: 24px 28px; border-left: 5px solid var(--taupe); margin-bottom: 28px; }
.covered > :last-child { margin-bottom: 0; }
@media (max-width: 960px) { .steps, .steps.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .steps.three, .steps.two { grid-template-columns: 1fr; } }

/* teams */
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.teams img { aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; width: 100%; }
@media (max-width: 640px) { .teams { grid-template-columns: 1fr 1fr; } .teams img:last-child { display: none; } }

/* partners */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
.partner { display: flex; gap: 20px; align-items: flex-start; }
.partner img { width: 110px; height: auto; flex: none; }
@media (max-width: 480px) { .partner { flex-direction: column; } }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }

/* donate photo band */
.donate-band { color: var(--white); background: linear-gradient(90deg, #16181Acc 10%, #16181A55 100%), url("/img/donate-band.jpg") left center / cover; }
.donate-band h2 { color: var(--white); max-width: 18ch; }
.donate-band p { max-width: 52ch; margin: 0 0 24px; }

/* text pages */
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.callout { border-left: 5px solid var(--red); background: var(--cream); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 0 0 32px; }
.callout > :last-child { margin-bottom: 0; }
.callout.info { border-left-color: var(--taupe); }
.crisis { border-left-color: var(--red); background: #FFF1F1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0; }
.small { font-size: 14px; color: var(--muted); }
.todo { background: #FFF6D6; color: #5A4A00; border-radius: 4px; padding: 0 6px; font-size: .9em; }

/* side-by-side layout for intake/contact */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.aside { background: var(--cream); border-radius: 14px; padding: 28px; position: sticky; top: 100px; }
.aside h2 { font-size: 1.3rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .aside { position: static; } }

/* FAQ */
.faq h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 40px 0 12px; }
details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--white); }
details[open] { border-color: var(--taupe); box-shadow: 0 2px 10px #0000000d; }
summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font: 600 1.05rem/1.4 Poppins, sans-serif; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font: 700 18px/1 Poppins, sans-serif; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 22px 18px; }
details > div > :last-child { margin-bottom: 0; }

/* contact form */
form.mock { display: grid; gap: 18px; }
label { font-weight: 600; display: block; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--red); }
input, textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #B9B2A9; border-radius: 8px; background: var(--white); color: var(--text); }
textarea { min-height: 160px; resize: vertical; }
.form-msg { display: none; background: #EAF6EC; border-left: 5px solid #2E7D32; padding: 14px 18px; border-radius: 0 8px 8px 0; }
.form-msg.show { display: block; }
.form-msg.error { background: #FFF1F1; border-left-color: var(--red); }

/* gallery */
.gallery-empty { grid-column: 1 / -1; text-align: center; font-size: 1.15rem; color: var(--muted); padding: 40px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: #000d; }
dialog.lightbox img { max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: 8px; }
dialog.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
dialog.lightbox .close { position: fixed; top: 16px; right: 20px; background: var(--white); color: var(--ink); border: 0; border-radius: 50%; width: 44px; height: 44px; font: 700 22px/1 Poppins, sans-serif; cursor: pointer; }

/* footer */
footer { background: var(--ink); color: #ddd; padding: 56px 0 24px; font-size: 15px; }
footer h3 { color: var(--white); font-size: 1rem; }
footer a { color: #fff; }
footer a:hover { color: #FFD0D0; }
.fcols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.copy { border-top: 1px solid #fff2; margin-top: 36px; padding-top: 18px; font-size: 13px; color: #aaa; }
@media (max-width: 640px) { .fcols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
