/* Os Patudos — production stylesheet
   Ported from the Claude Design prototype (project/Os Patudos.dc.html),
   converted from inline styles to real classes and made responsive. */

:root {
  --red: #D7261E;
  --red-dark: #B01D16;
  --red-soft: #FDE8E7;
  --red-border: #F5C6C2;
  --ink: #1C1917;
  --ink-2: #3A3634;
  --muted: #57534E;
  /* Darkened from #78716C: at 12-14px it measured 4.46:1 on cream, just
     under the 4.5:1 minimum. This reads 5.59:1 and keeps the same warm
     neutral. */
  --muted-2: #68625C;
  --muted-3: #44403C;
  --cream: #FAF6F0;
  --border: #EADFD3;
  --input-border: #D6CCBE;
  --green: #1B7A3D;
  --green-soft: #E8F5E9;
  --stone-300: #D6D3D1;
  --stone-400: #A8A29E;
  --accent-pink: #FF7A72;
  --max: 1180px;
  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--cream); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; margin: 0; text-wrap: pretty; }
input, select, textarea, button { font-family: var(--font-body); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 800;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Banner */
.banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
}
.banner a { color: #FFB4AF; text-decoration: underline; margin-left: 6px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.brand-tag { font-size: 12px; color: var(--muted-2); font-weight: 600; }

.main-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-weight: 700; font-size: 15px; }
.main-nav a { color: #44403C; }
.main-nav a[aria-current="page"] { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
}
.lang-switch a, .lang-switch span {
  padding: 6px 12px;
  color: var(--ink);
}
.lang-switch .active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  font-size: 17px;
  padding: 15px 30px;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 13px 28px;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { font-size: 15px; padding: 11px 24px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.kicker {
  align-self: flex-start;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero h1 { font-size: 56px; line-height: 1.05; }
.hero-sub { margin: 0; font-size: 19px; color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 36px; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 22px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--red); }
.stat-label { font-size: 14px; color: var(--muted-2); font-weight: 600; }

/* Placeholder photo block (stands in for real photography) */
.photo-slot {
  width: 100%;
  background: linear-gradient(135deg, #F1E7DA, #E7DACB);
  border: 1px solid #DCCDB8;
  color: var(--muted-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 16px;
  overflow: hidden;
}
.photo-slot svg { opacity: 0.55; }
.photo-slot.rounded { border-radius: 24px; }
.photo-slot.rounded-sm { border-radius: 14px; }
.photo-slot.rect { border-radius: 0; }
.photo-slot--hero { height: 480px; }
.photo-slot--card { height: 240px; }
.photo-slot--detail { height: 520px; }
.photo-slot--story { height: 220px; }
.photo-slot--logo { height: 90px; border-radius: 12px; }
.photo-slot--map { height: 220px; }

/* Sections */
.section { padding: 64px 24px; }
.section-tight { padding: 56px 24px 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { font-size: 36px; }
.section-link { color: var(--red); font-weight: 800; font-size: 16px; }
.section.on-white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* Cards */
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: block;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(28, 25, 23, 0.1); }
.card.on-white { background: #fff; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-name-row { display: flex; align-items: center; gap: 10px; }
.card-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.card-meta { font-size: 14px; color: var(--muted-2); font-weight: 600; }
.card-desc { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.badge-urgent {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

.help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
}
.help-card:hover { border-color: var(--red); }
.help-card-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.help-card p { margin: 0; color: var(--muted); font-size: 16px; }
.help-card .learn-more { color: var(--red); font-weight: 800; margin-top: auto; }

/* Filters (chips) */
.filters { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Page heads */
.page-head { padding-top: 8px; }
.page-title { font-size: 44px; margin: 0 0 10px; }
.page-sub { margin: 0 0 28px; color: var(--muted); font-size: 18px; max-width: 64ch; }

/* Detail page */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px; align-items: start; }
.back-link { color: var(--muted-2); font-weight: 700; font-size: 15px; }
.detail-name-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-name { font-size: 48px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.fact-label { font-size: 12px; color: var(--muted-2); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.fact-value { font-weight: 800; font-size: 17px; }
.detail-desc { margin: 0; font-size: 17px; color: var(--muted-3); }
.detail-note { background: var(--red-soft); border-radius: 14px; padding: 16px 20px; font-size: 15px; color: #7A1610; font-weight: 600; }
.detail-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Forms */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.panel-narrow { max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); font-weight: 400; cursor: pointer; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.form-error { background: var(--red-soft); color: var(--red-dark); border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 15px; }
.form-success { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Donate page */
.donate-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.donate-panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.toggle-pair { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; align-self: flex-start; font-weight: 800; font-size: 15px; }
.toggle-pair button { border: none; padding: 10px 22px; cursor: pointer; background: #fff; color: var(--ink); }
.toggle-pair button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.amount-btn {
  -webkit-appearance: none;
  appearance: none;
  -webkit-text-fill-color: currentColor;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  padding: 16px 0;
  border-radius: 14px;
  cursor: pointer;
}
.amount-btn[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.donate-impact { font-size: 15px; color: var(--muted); }
.security-row { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--border); padding-top: 18px; font-size: 13px; color: var(--muted-2); font-weight: 600; flex-wrap: wrap; }
.security-row span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.side-card { border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.side-card.dark { background: var(--ink); color: #fff; }
.side-card.light { background: #fff; border: 1px solid var(--border); }
.side-card h3 { font-size: 22px; }
.side-card p { margin: 0; color: var(--muted); font-size: 15px; }
.side-card.dark p, .side-card.dark div { color: var(--stone-300); }
.side-stack { display: flex; flex-direction: column; gap: 20px; }
.iban-line { font-size: 15px; color: var(--stone-300); }
.iban-line strong { color: #fff; font-weight: 800; letter-spacing: 0.03em; }
/* Preserve contrast when mobile browsers detect bank/phone numbers as links. */
.iban-line a,
.iban-line a:visited,
.iban-line a[x-apple-data-detectors] {
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  font: inherit;
}
.side-card.dark p a { color: #fff; text-decoration: underline; }
.example-tag { font-size: 12px; color: var(--stone-400); }

/* Volunteer */
.vol-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.vol-card h3 { font-size: 19px; margin: 0 0 8px; }
.vol-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* Stories */
.stories-list { display: flex; flex-direction: column; gap: 28px; }
.story-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 24px; align-items: center; }
.story-col { display: flex; flex-direction: column; gap: 8px; }
.story-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); }
.story-label.after { color: var(--green); }
.story-card h3 { font-size: 26px; }
.story-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Transparency */
.report-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.report-title { font-weight: 800; }
.report-note { font-size: 13px; color: var(--muted-2); }
.report-pdf { color: var(--red); font-weight: 800; font-size: 14px; white-space: nowrap; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.number-value { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--accent-pink); }
.number-label { font-size: 13px; color: var(--stone-300); }

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.abuse-card { background: var(--red-soft); border: 1px solid var(--red-border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.abuse-card h3 { color: #7A1610; font-size: 24px; }
.abuse-card > p { margin: 0; color: #7A1610; font-size: 16px; }
.abuse-list { display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--muted-3); }
.abuse-item { background: #fff; border-radius: 12px; padding: 14px 18px; }
.abuse-note { margin: 0; font-size: 13px; color: #7A1610; }

/* Footer */
.site-footer { background: var(--ink); color: var(--stone-300); margin-top: auto; }
.footer-grid { padding: 48px 24px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand-row img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.footer-brand-row span { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: #fff; }
.footer-brand p { margin: 0; font-size: 14px; max-width: 38ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col-title { font-weight: 800; color: #fff; font-size: 15px; }
.footer-col a { color: var(--stone-300); }
.footer-bottom { border-top: 1px solid var(--ink-2); text-align: center; padding: 16px 24px; font-size: 13px; color: var(--stone-400); }

/* Status badges (estado dos animais) */
.badge-process {
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-adopted {
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* "Waiting for N days" pill (filled in by main.js) */
.days-waiting {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 800;
  color: var(--red-dark);
  background: var(--red-soft);
  border-radius: 999px;
  padding: 3px 12px;
}
.days-waiting.is-long { background: var(--red); color: #fff; }
.detail-waiting { display: flex; }

/* Animal state boxes on the detail page */
.adopted-banner {
  background: var(--green-soft);
  border: 1px solid #BBDCC0;
  color: var(--green);
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adopted-banner span { font-weight: 600; font-size: 15px; color: var(--muted-3); }
.process-note {
  background: #FEF3C7;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  color: #92400E;
  font-weight: 600;
}

/* Educational info box (e.g. FIV explainer) */
.info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
}
.info-box strong { display: block; margin-bottom: 6px; font-size: 16px; }
.info-box p { margin: 0; color: var(--muted-3); }

/* Adoption list: quiz callout + happy endings strip */
.quiz-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 28px;
}
.quiz-callout strong { font-family: var(--font-head); font-size: 19px; }
.quiz-callout p { margin: 2px 0 0; color: var(--muted); font-size: 15px; max-width: 52ch; }
.happy-strip { margin-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.happy-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.happy-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  color: inherit;
  font-size: 15px;
}
.happy-card:hover { border-color: var(--green); }
.happy-check { color: var(--green); font-weight: 800; }
.happy-note { font-weight: 600; color: var(--muted-2); font-size: 13px; }

/* Compatibility quiz */
.quiz-panel { gap: 26px; }
.quiz-q { border: none; padding: 0; margin: 0; }
.quiz-q legend { font-weight: 800; font-size: 17px; margin-bottom: 12px; padding: 0; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-opt { position: relative; }
.quiz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-opt span {
  display: inline-block;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
}
.quiz-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.quiz-opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 1px; }
.quiz-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quiz-result-card { cursor: default; }
.quiz-result-card:hover { transform: none; box-shadow: none; }
.quiz-result-ctas { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.quiz-nomatch { color: var(--muted-3); font-size: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }

/* Donate extras */
.copy-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--muted);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  margin-top: 4px;
}
.copy-btn:hover { background: var(--ink-2); }
.consign-nif { font-size: 16px; }
.consign-nif strong { font-size: 18px; letter-spacing: 0.03em; }

/* Volunteer need badges */
.need-badge {
  align-self: flex-start;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.need-alta { background: var(--red-soft); color: var(--red-dark); }
.need-media { background: #FEF3C7; color: #92400E; }
.need-ok { background: var(--green-soft); color: var(--green); }
.need-note { margin-top: 10px !important; font-weight: 700; color: var(--red-dark) !important; font-size: 14px !important; }

/* Story extras (structured social proof) */
.story-extra { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.story-fact-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-top: 6px; }
.story-quote { font-style: italic; color: var(--muted-3) !important; font-size: 15px !important; }
.story-fact { font-weight: 800; font-size: 15px; }
.story-doubt {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.story-doubt strong { font-family: var(--font-head); font-size: 20px; }
.story-doubt a { color: var(--red); font-weight: 800; }

/* Transparency: finance bars + cost box */
.finance-row { display: flex; flex-direction: column; gap: 5px; }
.finance-labels { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--muted-3); }
.finance-bar { height: 10px; border-radius: 999px; background: var(--red-soft); overflow: hidden; }
.finance-bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.cost-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--muted-3);
}
.cost-box strong { font-family: var(--font-head); font-size: 16px; color: var(--ink); }

/* Real animal photos (replace the placeholder blocks) */
.animal-photo { object-fit: cover; width: 100%; }
.animal-photo.photo-slot--card { height: 240px; }
.animal-photo.photo-slot--detail { height: 520px; border-radius: 24px; }

/* Footer legal line */
.adoption-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.adoption-sidebar { padding: 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; }
.adoption-results { min-width: 0; }
.filter-title { font-size: 16px; margin: 24px 0 12px; }
.adoption-sidebar .filters { flex-direction: column; margin: 0; gap: 8px; }
.adoption-sidebar .chip { text-align: left; }
.animal-search { margin: 0; }
.animal-search label { display: block; font-weight: 800; margin-bottom: 8px; }
.animal-search-row { display: flex; gap: 2px; flex-direction: column; align-items: stretch; }
/* Reserve the clear button's space so typing never resizes the input. */
#animal-search-clear { align-self: flex-end; min-height: 36px; padding: 4px 0 4px 8px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#animal-search-clear[hidden] { display: inline-flex !important; visibility: hidden; }
.animal-search input { min-width: 0; width: 100%; padding: 12px; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; }
.animal-search p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
@media (min-width: 901px) and (max-width: 1150px) {
  .adoption-results .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .adoption-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .adoption-sidebar { padding: 16px; }
  .adoption-sidebar .filters { flex-direction: row; flex-wrap: wrap; }
  .filter-title { margin-top: 16px; }
}
.footer-legal { font-size: 13px !important; color: var(--stone-400); }
.footer-legal a,
.footer-legal a:visited,
.footer-legal a[x-apple-data-detectors] {
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  font: inherit;
}

/* Privacy page prose */
.prose { display: block; }
.prose h2 { font-size: 22px; margin: 22px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; color: var(--muted-3); }

/* Responsive */
.list-empty {
  padding: 32px 24px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  background: var(--cream, #faf7ef);
}
.list-empty[hidden] { display: none; }
.list-empty p { margin: 0 0 16px; }
.list-empty .section-link { margin-left: 16px; }
.adoption-process { margin-top: 40px; }
.adoption-process .section-title { font-size: clamp(24px, 3vw, 32px); }
.adoption-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.adoption-steps li { background: #fff; padding: 22px; border: 1px solid var(--border); border-radius: 16px; }
.step-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.adoption-steps h3 { font-size: 19px; margin: 16px 0 8px; }
.adoption-steps p, .adoption-conditions, .form-note { font-size: 15px; line-height: 1.6; color: var(--muted); }
.adoption-process-details { margin-bottom: 24px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; }
.adoption-process-details summary { cursor: pointer; font-weight: 800; }
.adoption-process-details .adoption-process { margin-top: 20px; }
.adoption-process-details .adoption-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sponsor-page { padding: 56px 24px 72px; }
.sponsor-about { margin-bottom: 24px; }
.sponsor-about h2 { font-size: 22px; margin-bottom: 8px; }
.sponsor-page .form-note { margin: 0; }
.sponsor-page [type="submit"] { align-self: flex-start; }
@media (max-width: 980px) { .adoption-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .adoption-steps, .adoption-process-details .adoption-steps { grid-template-columns: 1fr; }
  .list-empty .section-link { display: flex; justify-content: center; margin: 12px 0 0; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 40px; }
  .hero h1 { font-size: 42px; }
  .photo-slot--hero { height: 320px; order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .detail-grid, .donate-grid { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 1fr 1fr; }
  .story-card > .story-col:nth-child(3) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Collapse the navigation before its links can push the actions off screen. */
@media (max-width: 1100px) {
  .site-header .wrap { padding: 10px 16px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 16px; white-space: nowrap; }
  .brand-tag { display: none; }
  .header-actions { gap: 8px; flex-shrink: 0; }
  .lang-switch { font-size: 12px; }
  .lang-switch a, .lang-switch span { padding: 5px 9px; }
  .header-actions .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; margin-left: auto; }
  .header-actions .btn { padding: 10px 16px; font-size: 14px; }
  .main-nav a::after { display: none; }
}

@media (max-width: 400px) {
  .brand-text { display: none; }
  .site-header .wrap { gap: 8px; padding-inline: 12px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .page-title { font-size: 32px; }
  .section-title { font-size: 28px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 1fr; }
  .story-card > .story-col:nth-child(3) { grid-column: auto; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-name { font-size: 36px; }
  .stat-row { gap: 24px; }
  .quiz-result-grid { grid-template-columns: 1fr; }
  .animal-photo.photo-slot--detail { height: 340px; }
}

/* Social links (footer + contacts) */
.social-row { display: flex; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--input-border);
  color: var(--ink);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.social-link:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.site-footer .social-link { border-color: var(--ink-2); color: var(--stone-300); }
.site-footer .social-link:hover { border-color: var(--red); color: #fff; }
.contact-social { display: flex; align-items: center; gap: 12px; }

/* Homepage news cards ("Novidades") */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-date { font-size: 12px; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.news-card h3 { font-size: 20px; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.news-card a { color: var(--red); font-weight: 800; font-size: 15px; margin-top: 6px; }

/* ---------------------------------------------------------------------------
   Motion & interaction polish
   Click feedback (ripple, press, pop), scroll reveals and load intros.
   Everything collapses to near-instant under prefers-reduced-motion.
--------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
::selection { background: var(--red-border); }

.btn, .chip, .amount-btn, .toggle-pair button, .quiz-opt span, .copy-btn, .lang-switch a, .help-card, .happy-card, .report-row {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(215, 38, 30, .28); }
.btn-outline:hover { box-shadow: 0 10px 22px rgba(28, 25, 23, .16); }
.btn:active, .chip:active, .amount-btn:active, .toggle-pair button:active, .copy-btn:active { transform: scale(.96); }
.quiz-opt span:active { transform: scale(.94); }

.card { box-shadow: 0 1px 3px rgba(28, 25, 23, .05); }
.card .photo-slot, .card .animal-photo { transition: transform .35s ease; }
.card:hover .photo-slot, .card:hover .animal-photo { transform: scale(1.04); }
.help-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(28, 25, 23, .08); }
.happy-card:hover { transform: translateY(-2px); }
.report-row:hover { border-color: var(--red); }

/* Animated underline on the desktop nav */
.main-nav a { position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: right .22s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }

/* Click ripple (spans injected by main.js) */
.ripple-host { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: currentColor;
  opacity: .25;
  transform: scale(0);
  animation: ripple .5s ease-out forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* Pop feedback when picking a chip/amount/quiz option */
@keyframes chip-pop { 50% { transform: scale(1.08); } }
.just-picked { animation: chip-pop .25s ease; }
.quiz-opt input:checked + span { animation: chip-pop .25s ease; }

/* Cards entering after a filter change / quiz results */
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } }
.pop-in { animation: pop-in .3s ease backwards; }

/* Scroll reveal (classes managed by main.js) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Page-load intro on hero and page heads */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.hero-copy > * { animation: fade-up .55s ease backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .04s; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .22s; }
.hero-copy > *:nth-child(5) { animation-delay: .28s; }
.hero > .photo-slot, .hero > .animal-photo { animation: fade-up .55s ease .2s backwards; }
.page-head > * { animation: fade-up .5s ease backwards; }
.page-head > *:nth-child(2) { animation-delay: .08s; }

/* Success / attention states */
.form-success { animation: pop-in .35s ease; }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }
@keyframes soft-pulse { 50% { transform: scale(1.06); } }
.days-waiting.is-long { animation: soft-pulse 2.4s ease-in-out infinite; }

/* Mobile nav drop-down */
@keyframes nav-drop { from { opacity: 0; transform: translateY(-10px); } }
.main-nav.is-open { animation: nav-drop .22s ease; }

@media (max-width: 700px) {
  .main-nav a::after { display: none; }
}

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

/* ===========================================================================
   Design refresh — "cartaz feito à mão"
   Ink outlines, hard offset shadows, asymmetric corners and sticker badges,
   echoing the logo's bold red-heart + black-paw marks. Palette unchanged.
   =========================================================================== */
:root {
  --ink: #241E1A;
  --line: #2A241F;
  --shadow-pop: 7px 7px 0 rgba(215, 38, 30, 0.09);
  --shadow-pop-hover: 10px 10px 0 rgba(215, 38, 30, 0.14);
}

body {
  background:
    radial-gradient(900px 480px at 85% -120px, rgba(255, 173, 166, 0.14), transparent 65%),
    radial-gradient(700px 420px at -80px 45%, rgba(27, 122, 61, 0.05), transparent 60%),
    var(--cream);
}

/* Interactive cards: ink outline, offset shadow, one flattened corner —
   alternating which corner, so the grid stops looking machine-stamped. */
.card, .help-card, .news-card, .vol-card {
  border: 2px solid var(--line);
  box-shadow: var(--shadow-pop);
  border-radius: 22px 22px 22px 6px;
}
.card:nth-child(even), .news-card:nth-child(even) { border-radius: 22px 22px 6px 22px; }
.help-card:nth-child(2) { border-radius: 6px 22px 22px 22px; }
.vol-card:nth-child(odd) { border-radius: 22px 6px 22px 22px; }
.card:hover, .help-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-pop-hover);
  border-color: var(--line);
}
.news-card, .vol-card { background: #fff; }

/* Buttons: chunky, with a hard shadow that physically presses down */
.btn { border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn-sm { box-shadow: 3px 3px 0 var(--line); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--line); }
.btn-outline { padding: 13px 28px; }

/* Chips, amounts, toggles and quiz options join the same language */
.chip { border: 2px solid var(--line); box-shadow: 3px 3px 0 rgba(42, 36, 31, 0.15); }
.chip[aria-pressed="true"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(42, 36, 31, 0.3); }
.amount-btn { border: 2px solid var(--line); box-shadow: 3px 3px 0 rgba(42, 36, 31, 0.12); }
.amount-btn[aria-pressed="true"] { border-color: var(--red); box-shadow: 3px 3px 0 rgba(215, 38, 30, 0.35); }
.toggle-pair { border: 2px solid var(--line); }
.quiz-opt span { border: 2px solid var(--line); }

/* Badges as slightly tilted stickers */
.badge-urgent, .badge-process, .badge-adopted, .need-badge {
  transform: rotate(-3deg);
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 rgba(42, 36, 31, 0.18);
}

/* Hero: stamped kicker, tighter title with a highlighter swipe */
.kicker {
  background: transparent;
  border: 2px dashed var(--red);
  transform: rotate(-1.5deg);
}
.hero h1 { letter-spacing: -0.02em; }
.hero h1 em, .page-title em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--red-border) 58%);
  padding: 0 4px;
  border-radius: 4px;
}
.page-title, .section-title { letter-spacing: -0.02em; }
.hero > .photo-slot, .hero > .animal-photo {
  border: 2px solid var(--line);
  border-radius: 26px 26px 26px 8px;
  box-shadow: var(--shadow-pop);
  transform: rotate(1.2deg);
}

/* Detail page photo gets the same framed treatment */
.detail-grid > .photo-slot, .detail-grid > .animal-photo {
  border: 2px solid var(--line);
  border-radius: 26px 26px 8px 26px;
  box-shadow: var(--shadow-pop);
}

/* Facts as little tiles */
.fact { border: 2px solid var(--line); border-radius: 16px 16px 16px 4px; box-shadow: 4px 4px 0 rgba(215, 38, 30, 0.07); }

/* Softer supporting panels keep quiet so the bold pieces can speak.
   The placeholder used to be dashed, which read as "image failed to load"
   rather than "photo coming soon"; a quiet solid line looks deliberate. */
.photo-slot { border: 2px solid #E2D4C0; }
.happy-card { border: 2px solid var(--line); }
.quiz-result-card:hover { transform: none; box-shadow: var(--shadow-pop); }

@media (max-width: 700px) {
  .hero > .photo-slot, .hero > .animal-photo { transform: none; }
}

/* ===========================================================================
   Share row (animal pages), printable A4 poster and 404 — same poster voice.
   =========================================================================== */
.share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 6px;
}
.share-label { font-weight: 800; font-size: 14px; color: var(--ink); }
.share-row .btn.copied { background: var(--green, #1B7A3D); color: #fff; }

/* Poster page: screen preview centred on cream; A4-true in print */
.poster-page { background: var(--cream); padding: 24px 12px 48px; }
.poster {
  width: min(210mm, 100%); min-height: 297mm; margin: 0 auto;
  background: #fff; border: 3px solid var(--line);
  border-radius: 26px 26px 26px 8px; box-shadow: var(--shadow-pop);
  padding: 14mm 14mm 10mm;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.poster-top { display: flex; align-items: center; gap: 14px; width: 100%; }
/* The logo is now a transparent heart, so a boxed frame around it would
   just draw a square where the design deliberately has none. */
.poster-logo { width: 64px; height: 64px; object-fit: contain; }
.poster-org { text-align: left; line-height: 1.25; }
.poster-org strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; }
.poster-org span { display: block; font-size: 12px; color: #6B5E52; }
.poster-badge { margin-left: auto; font-size: 16px; padding: 8px 14px; }
.poster-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 56px; letter-spacing: -0.02em; color: var(--red); margin: 4px 0 0;
}
.poster .photo-frame.poster-photo,
.poster .photo-slot.poster-photo {
  width: 100%; height: 118mm;
  border: 2px solid var(--line); border-radius: 22px 22px 22px 6px;
  box-shadow: var(--shadow-pop);
}
.poster .photo-slot.poster-photo { display: flex; }
.poster-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 44px; }
.poster-meta { font-weight: 700; font-size: 19px; color: #6B5E52; }
.poster-desc { font-size: 19px; max-width: 150mm; margin: 0; }
.poster-foot {
  margin-top: auto; width: 100%; display: flex; align-items: center; gap: 16px;
  border-top: 2px dashed var(--line); padding-top: 10px; text-align: left;
}
.poster-qr svg { width: 42mm; height: 42mm; display: block; border: 2px solid var(--line); border-radius: 10px; }
.poster-contact { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.poster-contact strong { font-size: 18px; }
.poster-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }

@media print {
  @page { size: A4; margin: 0; }
  .poster-page { padding: 0; background: #fff; }
  .poster {
    width: 210mm; min-height: 297mm; margin: 0;
    border: none; border-radius: 0; box-shadow: none;
  }
  .poster-actions { display: none; }
}

/* 404 */
.nf-page { background: var(--cream); min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.page-404 .nf-panel {
  max-width: 560px; text-align: center; padding: 48px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border: 2px solid var(--line); border-radius: 22px 22px 6px 22px; box-shadow: var(--shadow-pop);
  background: #fff;
}
.page-404 .nf-paw { color: var(--red); transform: rotate(-8deg); }
.page-404 .nf-en { color: #6B5E52; font-size: 15px; margin-top: -6px; }
.page-404 .nf-ctas { justify-content: center; }

/* ===========================================================================
   FAQ assistant ("Dúvidas? 🐾") — floating button + chat-style panel.
   =========================================================================== */
.faq-widget { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
.faq-toggle { box-shadow: 4px 4px 0 var(--line); }
@media (max-width: 700px) {
  .faq-toggle { padding: 9px 14px; font-size: 14px; line-height: 22px; min-height: 44px; box-shadow: 2px 2px 0 var(--line); }
}
.faq-panel {
  position: fixed; right: 18px; bottom: 86px;
  width: min(370px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 2px solid var(--line);
  border-radius: 22px 22px 6px 22px; box-shadow: var(--shadow-pop-hover);
}
.faq-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--cream);
  border-bottom: 2px dashed var(--line);
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px;
}
.faq-head strong { outline: none; }
.faq-close { border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.faq-body { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-chip {
  text-align: left; font: inherit; font-weight: 700; font-size: 14px;
  background: #fff; color: var(--ink); cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 10px 12px; box-shadow: 2px 2px 0 rgba(42, 36, 31, 0.15);
}
.faq-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(42, 36, 31, 0.2); }
.faq-chip-back { background: var(--cream); }
.faq-bubble { padding: 10px 14px; font-size: 14.5px; max-width: 92%; border: 2px solid var(--line); }
.faq-bubble-bot { background: var(--cream); border-radius: 16px 16px 16px 4px; align-self: flex-start; }
.faq-bubble-user { background: var(--red-soft); color: var(--red-dark); font-weight: 700; border-radius: 16px 16px 4px 16px; align-self: flex-end; }
.faq-go { align-self: flex-start; }
.faq-foot {
  padding: 10px 14px; background: var(--cream);
  border-top: 2px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700;
}
.faq-contacts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .faq-widget { right: 12px; bottom: 12px; }
  .faq-panel { right: 12px; left: 12px; width: auto; bottom: 76px; }
}
@media print { .faq-widget { display: none; } }

/* ===========================================================================
   Form fields in the poster language: ink outline, inset-free hard shadow,
   one flattened corner, red focus. Applies to every form on the site
   (adoption, volunteering) so they stop looking like browser defaults.
   =========================================================================== */
.field { gap: 8px; }
.field input, .field select, .field textarea {
  border: 2px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 13px 15px;
  box-shadow: 3px 3px 0 rgba(42, 36, 31, 0.10);
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.field textarea { border-radius: 16px 16px 16px 4px; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: 4px 4px 0 rgba(42, 36, 31, 0.14); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 4px 4px 0 rgba(215, 38, 30, 0.22);
  transform: translate(-1px, -1px);
}
.field input::placeholder, .field textarea::placeholder { color: #A99C8C; }
/* Native select arrow, drawn to match the ink outlines */
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%232A241F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
}
/* Required-field marker: the " *" in labels reads as ink-red, not as typo */
.field { color: var(--ink); }

.form-heading {
  font-size: 24px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--line);
}
.checkbox-row input { border: 2px solid var(--line); border-radius: 5px; }
.form-error { border: 2px solid var(--red); box-shadow: 3px 3px 0 rgba(215, 38, 30, 0.18); border-radius: 14px 14px 14px 4px; }

/* On phones the floating "Dúvidas?" button sits over the end of the page —
   reserve room so the last form row (the RGPD consent) is never stuck
   underneath it. */
@media (max-width: 700px) {
  main { padding-bottom: 84px; }
}

/* ===========================================================================
   Navigation feel: cross-document View Transitions (Chrome/Edge/Safari; other
   browsers simply navigate as before) plus a content entrance that runs
   everywhere, so clicking a nav item never lands on a static, already-there
   page. All of it is opt-out under prefers-reduced-motion.
   =========================================================================== */
@view-transition { navigation: auto; }

/* The header stays put while the page body swaps; everything else in the
   root group swaps instantly so nothing double-fades. */
.site-header { view-transition-name: site-header; }
main { view-transition-name: page-main; }
/* Keep the floating help above page snapshots during navigation, too. */
.faq-widget { view-transition-name: site-help; }
::view-transition-group(site-help) { z-index: 100; }
::view-transition-old(site-help) { display: none; }
::view-transition-new(site-help) { animation: help-in .22s ease-out both; }
@keyframes help-in { from { opacity: 0; } to { opacity: 1; } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
::view-transition-old(page-main) { animation: vt-out .16s ease both; }
::view-transition-new(page-main) { animation: vt-in .3s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Animate children only: transforming the widget would move its fixed panel. */
  .faq-toggle { animation: help-in .22s ease-out; }
  .faq-panel:not([hidden]) { animation: help-panel-in .2s ease-out; }
  @keyframes help-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
  /* Content arrives in a short stagger on every page load. Blocks further
     down keep their own scroll reveals, so no delay is added past the third. */
  main > * { animation: page-in .4s cubic-bezier(.2, .7, .3, 1) both; }
  main > *:nth-child(2) { animation-delay: .05s; }
  main > *:nth-child(3) { animation-delay: .1s; }
  main > *:nth-child(n+4) { animation-delay: .14s; }
  @keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

  /* Clicking a nav title presses it in while the underline sweeps across. */
  .main-nav a { transition: transform .12s ease, color .18s ease; }
  .main-nav a:active { transform: translateY(1px) scale(.97); }
  .main-nav a::after { transition: right .28s cubic-bezier(.2, .7, .3, 1); }
  .main-nav a:active::after { right: 0; }
  .brand:active { transform: scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* PayPal card on the donate page */
.pay-line {
  background: var(--cream); border: 2px solid var(--line);
  border-radius: 12px 12px 12px 4px; padding: 10px 14px;
  font-size: 15px; word-break: break-all;
}
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pay-actions .btn.copied { background: var(--green, #1B7A3D); color: #fff; }

/* ===========================================================================
   Adoption list pager: 6 animals per page so the grid stays readable no
   matter how many animals the shelter has on the site.
   =========================================================================== */
.pager { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pager-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager-btn {
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  min-width: 44px; padding: 10px 14px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px 12px 12px 4px;
  box-shadow: 3px 3px 0 rgba(42, 36, 31, 0.14);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease;
}
.pager-btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(42, 36, 31, 0.18); }
.pager-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(42, 36, 31, 0.2); }
.pager-btn.is-current {
  background: var(--red); color: #fff; border-color: var(--line);
  box-shadow: 3px 3px 0 rgba(42, 36, 31, 0.3);
}
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-nav { border-radius: 12px; }
.pager-status { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted-2); text-align: center; }

/* Quiz results: compatibility percentage per animal */
.match-pct {
  align-self: flex-start;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  padding: 5px 12px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--cream); color: var(--ink);
  box-shadow: 2px 2px 0 rgba(42, 36, 31, .16);
}
.match-pct.is-mid { background: var(--red-soft); color: var(--red-dark); border-color: var(--red-border); }
.match-pct.is-high { background: var(--green, #1B7A3D); color: #fff; }
.quiz-match-note {
  margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 62ch;
}

/* ===========================================================================
   Photo frames: real photos arrive in any shape (phone portraits, small
   scans, huge landscapes). Photos fill the frame while preserving their
   proportions; excess edges are cropped. The blurred backdrop remains useful
   for transparent images. Printed posters show the whole photo.
   =========================================================================== */
.photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.25);
  transform: scale(1.25);
}
.photo-frame > .animal-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}
.photo-frame.rect { border-radius: 0; }
.photo-frame.rounded { border-radius: 24px; }
.photo-frame.photo-slot--card { height: 240px; }
.photo-frame.photo-slot--detail { height: 520px; border-radius: 24px; }

/* The hand-drawn framing that used to target the bare <img>. The homepage
   hero keeps the original treatment: it is a purpose-made illustration, so
   it fills its slot instead of being letterboxed. */
.detail-grid > .photo-frame {
  border: 2px solid var(--line);
  box-shadow: var(--shadow-pop);
  border-radius: 26px 26px 8px 26px;
}

@media (max-width: 900px) {
  .detail-grid { gap: 20px; }
  .detail-grid > .photo-slot--detail { height: clamp(240px, 65vw, 260px); }
}

.photo-expand { cursor: zoom-in; text-decoration: none; }
.photo-expand-hint { position: absolute; bottom: 12px; right: 12px; padding: 7px 11px; border-radius: 20px; background: #222d; color: #fff; font-size: 12px; font-weight: 700; }
.photo-viewer { position: fixed; padding: 0; border: 0; border-radius: 16px; background: #151515; color: #fff; width: min(1000px, 94vw); max-width: 94vw; max-height: 92dvh; margin: auto; overflow: hidden; }
.photo-viewer::backdrop { background: #000c; }
.photo-viewer > img { display: block; width: 100%; height: auto; max-height: 92dvh; object-fit: contain; }
.photo-viewer-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid #fff8; border-radius: 50%; background: #222e; color: #fff; font-size: 30px; cursor: pointer; }
body.photo-viewer-open { overflow: hidden; }
@media print {
  .photo-viewer, .photo-expand-hint { display: none !important; }
}

/* Print (the A4 posters): no blurred backdrop, to save ink. */
@media print {
  .photo-frame { background: #fff; }
  .photo-frame::before { display: none; }
  .photo-frame > .animal-photo { object-fit: contain; }
}

/* Rotating top banner */
.banner { position: relative; }
.banner-track { min-height: 22px; }
.banner-slide { margin: 0; }
.banner-slide.is-in { animation: banner-in .75s cubic-bezier(.2, .7, .3, 1) both; }
.banner-slide.is-out { animation: banner-out .32s ease both; }
@keyframes banner-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes banner-out { to { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 700px) {
  .banner { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-slide.is-in { animation: none; }
}

/* ===========================================================================
   Touch targets: on phones every control needs ~44px of tappable height and
   8px between neighbours. These rules add the room without changing how
   anything looks (padding and gaps only).
   =========================================================================== */
.lang-switch a, .lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}
.lang-switch { align-items: stretch; }
.nav-toggle { min-height: 44px; min-width: 44px; }
.social-link { min-height: 44px; min-width: 44px; }
.section-link { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 700px) {
  /* Footer link lists are pure text on a dark panel: space them out so
     neighbouring links cannot be hit by mistake. */
  .footer-col a, .footer-col li > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-col li + li { margin-top: 4px; }
  .news-card > a { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { min-height: 44px; }
}
