/* A Tail in Need — site styles */
:root {
  --cream: #F7F8FD;         /* page background */
  --sand: #EAECFA;          /* soft blue bands */
  --line: #DCDFF3;
  --ink: #161A3A;
  --muted: #555A78;
  --accent: #F2A93B;        /* marigold — buttons */
  --accent-ink: #2A1A00;    /* text on marigold */
  --accent-dark: #0004B2;   /* links, labels */
  --teal: #0004B2;          /* logo blue — headings, brand */
  --teal-soft: #E1E3FB;
  --gold-soft: #F7C873;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 12, 80, .08);
  --wrap: 1120px;
  --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--teal); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800;
  text-decoration: none; padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--accent);
  transition: background .2s, transform .2s, border-color .2s; cursor: pointer; font: inherit; font-weight: 800;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: .5em 1.1em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.actions.center { justify-content: center; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal);
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; line-height: 1.05; }
.paw { width: 30px; height: 30px; fill: var(--accent); flex: none; }
#site-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
#site-nav a:not(.btn) { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
#site-nav a:not(.btn):hover, #site-nav a[aria-current="page"]:not(.btn) { background: var(--sand); color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 10px; width: 24px; height: 3px; background: var(--ink); border-radius: 3px; content: ""; transition: .2s; }
.bars { top: 21px; } .bars::before { top: -8px; left: 0; } .bars::after { top: 8px; left: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px; }
  #site-nav a:not(.btn) { padding: 12px; }
  #site-nav .btn { text-align: center; margin-top: 8px; }
}

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--cream), var(--sand)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal); background: linear-gradient(transparent 62%, var(--gold-soft) 62%); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--accent-dark); margin-bottom: .75em; }
.hero-media { display: flex; justify-content: center; }
.hero-media img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: min(100%, 460px); box-shadow: var(--shadow); }
.cat-art { width: min(100%, 420px); height: auto; }
.hero-media.small .cat-art { width: min(100%, 300px); }
.art-bg { fill: var(--teal-soft); }
.art-cat { fill: var(--teal); }
.art-tail { stroke: var(--teal); }
.art-eye { fill: #FCE7C8; }
.art-nose { stroke: #FCE7C8; }
.art-heart { fill: var(--accent); }
@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero .actions { justify-content: center; }
  .hero-media { order: -1; }
  .cat-art { width: min(70%, 260px); }
}

/* Sections */
.section { padding: 72px 0; }
.section.band { background: var(--sand); }
.section-title { text-align: center; margin-bottom: 1.2em; }
.page-head { padding: 56px 0 8px; text-align: center; }
.page-head .lead { margin-bottom: 0; }
@media (max-width: 860px) { .section { padding: 48px 0; } .page-head { padding: 40px 0 0; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,12,80,.12); color: var(--ink); }
.card p { color: var(--muted); }
.card-icon .paw { width: 36px; height: 36px; margin-bottom: 8px; }
.card-link { font-weight: 800; color: var(--accent-dark); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Split / two-col */
.split { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.split > div:first-child { max-width: 640px; }
.split-cta { flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two-col.align-center { align-items: center; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .split { flex-direction: column; align-items: flex-start; }
  .two-col { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230004B2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--teal); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* Pets */
.pets { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pets iframe { width: 100%; min-height: 900px; border: 0; display: block; }
.pets-fallback { text-align: center; padding: 40px 12px; }

/* Donate */
.give-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.give { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
a.give:hover { transform: translateY(-3px); color: var(--ink); }
.give strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--teal); }
.give span { color: var(--muted); word-break: break-word; }
.give .go { color: var(--accent-dark); font-weight: 800; margin-top: auto; }
.note { color: var(--muted); font-size: .95rem; margin-top: 16px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
input, textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0; background: var(--white); }
legend { font-weight: 800; padding: 0 6px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.optional { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #B42318; }
.small-print { font-size: .92rem; }
.placeholder { background: #FFF1C2; border-radius: 8px; padding: 10px 14px; }

/* Footer */
.site-footer { background: var(--teal); color: #E4E6FF; padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #C3C7F5; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer .paw { fill: #F7C873; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-h { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #F7C873; margin-bottom: 12px; }
.footer-links, .social { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.panel .social a { color: var(--teal); border-color: var(--line); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 40px; padding-top: 20px; font-size: .9rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

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

/* Logo + brand */
.logo { width: 46px; height: auto; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brand-footer { background: #fff; border-radius: 16px; padding: 10px 14px; color: var(--teal); }
.brand-footer small { color: var(--muted); }
.logo-art { width: min(100%, 320px); height: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--white); padding: 24px; }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--teal); line-height: 1.1; }
.stats span { color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* Donate cards */
.give .handle { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.give-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.give-actions .go { text-decoration: none; }
.copy { font: inherit; font-size: .9rem; font-weight: 700; background: var(--teal-soft); color: var(--teal); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.copy:hover { background: var(--teal); color: #fff; }

/* Pets */
.pets.has-list { padding: 8px; }
.pets-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

/* Volunteer form */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; }
select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
.form .agree { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.agree input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--teal); }
.info-box { background: var(--teal-soft); border-radius: var(--radius); padding: 20px 24px; }
.info-box ul { margin: 0; padding-left: 1.2em; }
.info-box li { margin-bottom: .35em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.25em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.contact-list strong { display: block; }
.site-footer .brand-footer { color: var(--teal); }

/* Logo inside a soft circle (home hero + about) */
.logo-circle { width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; background: var(--teal-soft);
  display: grid; place-items: center; }
.hero-media .logo-circle img { width: 58%; height: 78%; object-fit: contain; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.hero-media.small .logo-circle { width: min(100%, 340px); }
@media (max-width: 860px) { .logo-circle { width: min(75%, 300px); } }

/* In memory: Queen Gumbeaux */
.tribute-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.tribute-grid > * { min-width: 0; }
.tribute-main { margin: 0; }
.tribute-main img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.tribute-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.tribute-thumbs { display: grid; grid-template-columns: .6fr 1fr; gap: 12px; margin-top: 8px; }
.tribute-thumbs img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; display: block; }
@media (max-width: 860px) { .tribute-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Petfinder widget */
.pf-widget { padding: 16px; overflow: hidden; }
.pf-widget pet-scroller { display: block; max-width: 100%; }
