/* ============================================================
   Animals Lebanon — design system
   Palette: cedar green / warm off-white / rescue amber /
   Mediterranean blue / emergency red / ink.
   Type: Fraunces (display) + IBM Plex Sans (+ Arabic).
   All layout uses logical properties so Arabic mirrors truly.
   ============================================================ */

:root {
  --cedar: #1E3A34;
  --cedar-deep: #142B26;
  --paper: #F7F4EF;
  --amber: #D96C2C;
  --amber-dark: #B85518;
  --sea: #2F6690;
  --red: #8C1D18;
  --red-bright: #A8231C;
  --ink: #3B3B3B;
  --ink-soft: #6B6660;
  --line: #E4DED4;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;

  --wrap: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(30, 58, 52, 0.08);
  --shadow-lg: 0 10px 34px rgba(30, 58, 52, 0.16);
}

[dir="rtl"] body { line-height: 1.85; }
html[lang="ar"] { --font-display: "IBM Plex Sans Arabic", "Fraunces", serif; }

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must always win, even over display rules like .btn. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:hover { color: var(--cedar); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cedar);
  line-height: 1.15;
  margin-block: 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.wrap-narrow { max-width: 760px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Focus */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; inset-inline-start: 8px; top: -48px;
  background: var(--cedar); color: var(--white); padding: 10px 18px;
  border-radius: var(--radius); z-index: 200; transition: top 0.15s;
}
.skip-link:focus { top: 8px; color: var(--white); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 24px; min-height: 44px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
/* Buttons use the darker amber: white text passes WCAG AA (4.6:1);
   the brighter --amber stays for accents on dark backgrounds. */
.btn-donate { background: var(--amber-dark); color: var(--white); }
.btn-donate:hover { background: #9C4712; color: var(--white); box-shadow: var(--shadow); }
.btn-emergency { background: var(--red-bright); color: var(--white); }
.btn-emergency:hover { background: var(--red); color: var(--white); }
.btn-outline { background: transparent; color: var(--cedar); border-color: var(--cedar); }
.btn-outline:hover { background: var(--cedar); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.14); color: var(--white); border-color: rgba(255,255,255,0.7); backdrop-filter: blur(3px); }
.btn-ghost:hover { background: var(--white); color: var(--cedar); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-lg { padding: 14px 32px; font-size: 1.06rem; }
.btn-xl { padding: 18px 36px; font-size: 1.18rem; }
.btn-block { width: 100%; }

/* ---------------- Emergency banner ---------------- */

.emergency-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: var(--white);
  padding-block: 9px; padding-inline: 48px 48px; position: relative;
  font-size: 0.95rem; text-align: center;
}
.emergency-banner a { color: var(--white); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.emergency-banner a:hover { text-decoration: underline; }
.emergency-banner-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #FFD9A0; flex: none;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,217,160,0.6);} 50% { box-shadow: 0 0 0 6px rgba(255,217,160,0);} }
.emergency-banner-close {
  position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%;
  background: none; border: 0; color: var(--white); font-size: 1.4rem;
  cursor: pointer; width: 36px; height: 36px; line-height: 1; border-radius: 50%;
}
.emergency-banner-close:hover { background: rgba(255,255,255,0.15); }

/* ---------------- Header ---------------- */

.site-header {
  background: var(--cedar); color: var(--white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.site-header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: flex; align-items: center; color: var(--white); text-decoration: none; flex: none; }

/* The Animals Lebanon lockup: heavy lowercase word + red rubber stamp,
   matching the organization's existing brand (white variant on dark). */
.logo { position: relative; display: inline-block; line-height: 1; padding-block-end: 10px; }
.logo-word {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900; font-size: 1.62rem; letter-spacing: -0.045em;
  color: var(--white); display: block;
}
.logo-stamp {
  position: absolute; inset-inline-start: 34%; bottom: -4px;
  font-family: Arial, sans-serif; font-weight: 800; font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: #FF8177; border: 2px solid #FF8177; border-radius: 3px;
  padding: 1.5px 7px; rotate: -5deg; background: rgba(20, 43, 38, 0.35);
}

.site-nav { margin-inline-start: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-parent { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center;
  color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 500;
  padding: 10px 6px 10px 13px; font-size: 0.98rem;
  font-family: var(--font-body); border-radius: 8px;
  letter-spacing: 0.01em;
}
.nav-item:not(.has-children) .nav-link { padding-inline-end: 13px; }
[dir="rtl"] .nav-link { padding: 10px 13px 10px 6px; }
[dir="rtl"] .nav-item:not(.has-children) .nav-link { padding-inline-end: 13px; }
.nav-link:hover { color: var(--white); }
.nav-toggle {
  background: none; border: 0; cursor: pointer; color: rgba(255,255,255,0.65);
  padding: 10px 10px 10px 2px; display: inline-flex; align-items: center;
}
[dir="rtl"] .nav-toggle { padding: 10px 2px 10px 10px; }
.nav-toggle:hover { color: var(--white); }
.nav-caret { width: 10px; height: 6px; transition: rotate 0.18s ease; }
.nav-item.is-open .nav-caret,
.nav-item:hover .nav-caret { rotate: 180deg; }

/* Underline indicator on hover — quieter than a background box. */
.nav-parent::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 6px; height: 2px;
  background: var(--amber); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform 0.18s ease;
}
.nav-item:hover .nav-parent::after,
.nav-item.is-open .nav-parent::after,
.nav-item:focus-within .nav-parent::after { transform: scaleX(1); }

.nav-sub {
  visibility: hidden; opacity: 0; translate: 0 6px;
  transition: opacity 0.16s ease, translate 0.16s ease, visibility 0.16s;
  position: absolute; inset-inline-start: 0; top: 100%;
  min-width: 240px; background: var(--white); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(14, 26, 23, 0.28); padding: 8px; z-index: 50;
  list-style: none; margin: 0;
}
/* Invisible hover bridge so the pointer can travel into the dropdown. */
.nav-sub::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub,
.nav-item.is-open .nav-sub { visibility: visible; opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .nav-sub { transition: none; }
}
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
  border-radius: 8px; font-size: 0.95rem; font-weight: 500;
  border-inline-start: 2px solid transparent;
}
.nav-sub a:hover { background: #FDF3EA; color: var(--amber-dark); border-inline-start-color: var(--amber); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: 8px; }
.lang-toggle {
  color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 600;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
  font-size: 0.9rem; min-height: 38px; display: inline-flex; align-items: center;
}
.lang-toggle:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; width: 44px; height: 44px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); margin-block: 5px; transition: 0.2s; }

@media (max-width: 1060px) {
  .nav-burger { display: block; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--cedar-deep); padding: 10px 20px 26px;
    max-height: calc(100vh - 68px); overflow-y: auto;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .nav-item { border-block-end: 1px solid rgba(255,255,255,0.09); }
  .nav-item:last-child { border-block-end: 0; }
  .nav-parent { justify-content: space-between; }
  .nav-parent::after { display: none; }
  .nav-link { flex: 1; padding: 15px 4px; font-size: 1.05rem; }
  .nav-toggle { padding: 15px 12px; }
  .nav-toggle .nav-caret { width: 13px; height: 8px; }
  .nav-sub {
    visibility: visible; opacity: 1; translate: none; transition: none;
    position: static; background: transparent; box-shadow: none;
    padding: 0 0 8px; padding-inline-start: 14px; display: none;
  }
  .nav-sub::before { display: none; }
  .nav-item.is-open .nav-sub { display: block; }
  /* On touch layouts hover must not open menus; only .is-open does. */
  .nav-item:hover .nav-sub:not(.x), .nav-item:focus-within .nav-sub { display: none; }
  .nav-item.is-open .nav-sub, .nav-item.is-open:focus-within .nav-sub { display: block; }
  .nav-sub a { color: rgba(255,255,255,0.85); padding: 11px 12px; }
  .nav-sub a:hover { background: rgba(255,255,255,0.07); color: var(--white); border-inline-start-color: var(--amber); }
}
@media (max-width: 560px) {
  .logo-word { font-size: 1.3rem; }
  .logo-stamp { font-size: 0.5rem; padding: 1px 5px; bottom: -3px; }
}

/* Compact header for small phones: everything must fit in 360px (down to 320px). */
@media (max-width: 480px) {
  .site-header-inner { gap: 6px; min-height: 60px; }
  .header-actions { gap: 5px; margin-inline-start: 4px; }
  .header-search { width: 36px; height: 36px; }
  .header-search svg { width: 17px; height: 17px; }
  .lang-toggle { padding: 5px 9px; font-size: 0.8rem; min-height: 32px; }
  .header-actions .btn-donate { padding: 8px 14px; font-size: 0.88rem; min-height: 38px; }
  .nav-burger { width: 40px; height: 40px; padding: 8px; }
  .logo-word { font-size: 1.16rem; }
  .logo { padding-block-end: 8px; }
}
@media (max-width: 350px) {
  .header-search { display: none; }
}

/* Safety net: no stray element may ever widen the page on small screens. */
html { overflow-x: clip; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative; min-height: min(88vh, 720px);
  display: flex; align-items: flex-end;
  background: var(--cedar) center/cover no-repeat;
  color: var(--white);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,26,23,0.88) 0%, rgba(14,26,23,0.35) 55%, rgba(14,26,23,0.15) 100%);
}
.hero-scrim-red {
  background: linear-gradient(to top, rgba(60,10,8,0.9) 0%, rgba(60,10,8,0.4) 60%, rgba(30,10,8,0.2) 100%);
}
.hero-inner { position: relative; padding-block: clamp(40px, 8vh, 88px); width: 100%; }
.hero-title {
  color: var(--white); font-size: clamp(2.1rem, 5.5vw, 4rem);
  max-width: 17ch; margin-block-end: 0.4em; font-weight: 700;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; opacity: 0.95; }
.hero-kicker {
  display: inline-block; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.85rem; margin-block-end: 14px;
}
.hero-kicker-red { background: var(--red-bright); padding: 6px 14px; border-radius: 4px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-block-start: 22px; }

/* Appeal progress */
.appeal-progress { max-width: 520px; margin-block-start: 18px; }
.appeal-progress-track {
  height: 12px; background: rgba(255,255,255,0.25); border-radius: 999px; overflow: hidden;
}
.appeal-progress-fill {
  height: 100%; width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--amber), #F0A056);
  border-radius: 999px; transition: width 1s ease;
}
[dir="rtl"] .appeal-progress-fill { background: linear-gradient(-90deg, var(--amber), #F0A056); }
.appeal-progress-red .appeal-progress-fill { background: linear-gradient(90deg, var(--red-bright), #D2453C); }
.appeal-progress-label { margin-block-start: 8px; font-size: 1rem; }
.appeal-progress-label strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* ---------------- Impact strip ---------------- */

.impact { background: var(--cedar-deep); color: var(--white); padding-block: clamp(28px, 5vw, 48px); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.impact-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem); color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.impact-label { display: block; font-size: 0.92rem; opacity: 0.85; max-width: 24ch; margin-inline: auto; }
@media (max-width: 760px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Sections ---------------- */

.home-section { padding-block: clamp(40px, 7vw, 76px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 24px; }
.section-head h2, .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-title { margin-block-end: 26px; }
.section-link { font-weight: 600; text-decoration: none; }
.kicker {
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--amber-dark); margin-block: 0 10px;
}
.kicker-light { color: #F0B183; }

/* ---------------- Cards: animals ---------------- */

.carousel { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-block-end: 12px; scrollbar-width: thin; }
.carousel-track { display: flex; gap: 18px; }
.carousel-cell { flex: 0 0 min(285px, 78vw); scroll-snap-align: start; }

.animal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px;
}

.animal-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.16s ease, box-shadow 0.16s ease;
  height: 100%;
}
.animal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.animal-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.animal-card-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--line); }
.animal-card-media img { width: 100%; height: 100%; object-fit: cover; }
.animal-card-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2A4C44, #1E3A34 60%, #57776E);
}
.animal-gallery-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-lg); }
.animal-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.animal-card-name { font-size: 1.35rem; margin: 0; }
.animal-card-meta { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.animal-card-mood { margin: 4px 0 0; font-size: 0.97rem; }
.animal-card-cta { margin-block-start: auto; padding-block-start: 10px; color: var(--amber-dark); font-weight: 600; font-size: 0.95rem; }

.badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: var(--white); color: var(--cedar); box-shadow: var(--shadow);
}
.badge-available { background: var(--amber-dark); color: var(--white); }
.badge-pending { background: #E8C558; color: #4A3A08; }
.badge-foster { background: var(--sea); color: var(--white); }
.badge-lost { background: var(--red-bright); color: var(--white); }
.badge-found { background: #3E7C5B; color: var(--white); }
.badge-adopted { background: var(--cedar); color: var(--white); }
.animal-info .badge { position: static; display: inline-block; margin-block-end: 12px; }

/* ---------------- Cards: stories ---------------- */

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.story-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.16s, box-shadow 0.16s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.story-card-media { aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--line); }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; }
.story-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.story-card-body time { font-size: 0.83rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.story-card-body h3 { font-size: 1.22rem; margin: 0; }
.story-card-body p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.story-card-cta { margin-block-start: auto; padding-block-start: 10px; color: var(--amber-dark); font-weight: 600; font-size: 0.92rem; }

/* ---------------- Featured story + rescue ribbon ---------------- */

.featured-story { background: var(--white); }
.featured-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .featured-grid { grid-template-columns: 1fr; } }
.featured-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.featured-title a { color: inherit; text-decoration: none; }
.featured-title a:hover { color: var(--amber-dark); }
.featured-extract { font-size: 1.06rem; }
.featured-pic img { border-radius: var(--radius-lg); }

.pic { margin: 0; }
.pic figcaption { font-size: 0.83rem; color: #5F5A54; margin-block-start: 8px; }
.pic-source, .pic-copy { margin-inline-start: 10px; }

/* The rescue ribbon: the one signature motif. */
.ribbon {
  list-style: none; display: flex; padding: 0; margin-block: 26px;
  position: relative; counter-reset: step;
}
.ribbon::before {
  content: ""; position: absolute; top: 7px; inset-inline: 12px;
  height: 3px; background: var(--line); border-radius: 2px;
}
.ribbon-step { flex: 1; position: relative; padding-block-start: 24px; padding-inline-end: 8px; }
.ribbon-dot {
  position: absolute; top: 0; inset-inline-start: 0;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--line);
}
.ribbon-step.is-done .ribbon-dot { background: var(--amber); border-color: var(--amber); }
.ribbon-step.is-done::after {
  content: ""; position: absolute; top: 7px; inset-inline-start: 0; inset-inline-end: 0;
  height: 3px; background: var(--amber); border-radius: 2px; z-index: 1;
}
.ribbon-step:last-child.is-done::after { inset-inline-end: auto; width: 17px; }
.ribbon-dot { z-index: 2; }
.ribbon-label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--cedar); }
.ribbon-detail { display: block; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------------- Pillars ---------------- */

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform 0.16s, box-shadow 0.16s; display: flex; flex-direction: column;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.pillar-media { aspect-ratio: 16/9; background: var(--line); }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; }
.pillar-card h3 { padding: 18px 20px 0; margin: 0; font-size: 1.3rem; }
.pillar-card p { padding: 8px 20px 22px; margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------------- Monthly block ---------------- */

.monthly-block { background: var(--cedar); color: var(--white); }
.monthly-block h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22ch; }
.monthly-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .monthly-inner { grid-template-columns: 1fr; } }
.monthly-tiers { display: grid; gap: 12px; }
.tier {
  display: flex; align-items: baseline; gap: 16px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: var(--white);
  transition: background 0.15s, border-color 0.15s;
}
.tier:hover { background: rgba(255,255,255,0.16); border-color: var(--amber); color: var(--white); }
.tier strong { font-family: var(--font-display); font-size: 1.6rem; color: #F0A056; font-variant-numeric: tabular-nums; min-width: 3ch; }

/* ---------------- Trust band ---------------- */

.trust-band { background: var(--white); border-block-start: 1px solid var(--line); padding-block: 26px; }
.trust-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.95rem; }
.trust-inner p { margin: 0; }

/* ---------------- Listing pages ---------------- */

.listing-page { padding-block: clamp(36px, 6vw, 64px); }
.listing-head { margin-block-end: 28px; max-width: 720px; }
.listing-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.listing-sub { font-size: 1.08rem; color: var(--ink-soft); }
.listing-cross { margin-block-start: 40px; text-align: center; font-size: 1.05rem; }
.listing-cross a { font-weight: 600; text-decoration: none; }

.filters {
  display: flex; gap: 14px; flex-wrap: wrap; margin-block-end: 28px;
  background: var(--white); padding: 16px 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.filter { display: flex; flex-direction: column; gap: 4px; }
.filter label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.filter select {
  font-size: 1rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); min-height: 44px; min-width: 130px; font-family: inherit;
}

.empty-state {
  text-align: center; padding: 60px 20px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-block-start: 18px; }

.chip-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-block-end: 28px; }
.chip-link {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 500;
  font-size: 0.95rem; min-height: 40px; display: inline-flex; align-items: center;
}
.chip-link:hover { border-color: var(--cedar); color: var(--cedar); }
.chip-link.is-active { background: var(--cedar); border-color: var(--cedar); color: var(--white); }
.chip-link.chip-emergency.is-active { background: var(--red); border-color: var(--red); }

/* ---------------- Animal profile ---------------- */

.animal-profile { padding-block: clamp(28px, 5vw, 56px); }
.animal-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .animal-layout { grid-template-columns: 1fr; } }

.animal-gallery { position: sticky; top: 90px; }
@media (max-width: 900px) { .animal-gallery { position: static; } }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
  border-radius: var(--radius-lg); scrollbar-width: none;
}
.gallery-cell { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.gallery-cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.gallery-cell figcaption { font-size: 0.83rem; color: var(--ink-soft); margin-block-start: 6px; }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-block-start: 12px; }
.gallery-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0;
}
.gallery-dot.is-active { background: var(--amber); }

.animal-name { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-block-end: 4px; }
.animal-mood { font-size: 1.15rem; color: var(--ink-soft); margin-block-start: 0; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-block: 22px;
}
.fact { background: var(--white); padding: 12px 14px; }
.fact dt { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.fact dd { margin: 2px 0 0; font-weight: 600; color: var(--cedar); }
@media (max-width: 480px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.trait-tags { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin-block: 0 20px; }
.trait-tags li {
  background: #EAF1EC; color: var(--cedar); border-radius: 999px;
  padding: 7px 15px; font-size: 0.9rem; font-weight: 500;
}

.animal-story h2 { font-size: 1.5rem; }
.animal-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-block-start: 26px; }

.animal-others { margin-block-start: clamp(40px, 7vw, 70px); }
.animal-others h2 { font-size: 1.6rem; margin-block-end: 20px; }

.sticky-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--cedar-deep); box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.sticky-bar .btn { flex: 1; }
@media (max-width: 720px) { .sticky-bar { display: flex; } body.page-animal { padding-bottom: 76px; } }

/* ---------------- Forms ---------------- */

.form-page { padding-block: clamp(36px, 6vw, 64px); }
.card-form {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px); margin-block-start: 24px;
}
.card-form h2 { font-size: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.field { margin-block-end: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-block-end: 6px; color: var(--cedar); }
.field input, .field textarea, .field select {
  width: 100%; font-size: 1rem; font-family: inherit;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--white); min-height: 44px; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--sea); outline: 2px solid rgba(47,102,144,0.2); }
.field-error input, .field-error textarea { border-color: var(--red-bright); }
.field-msg { color: var(--red-bright); font-size: 0.88rem; margin: 6px 0 0; }
.req { color: var(--amber-dark); }
.form-alert {
  background: #FBEBE9; border: 1px solid var(--red-bright); color: var(--red);
  border-radius: var(--radius); padding: 12px 16px; font-weight: 500;
}
.form-note { color: var(--ink-soft); font-size: 0.9rem; margin-block-start: 14px; }
.form-intro { margin-block-end: 10px; }

/* Multi-step application */
.apply-wrap { max-width: 720px; }
.apply-head { display: flex; gap: 18px; align-items: center; margin-block-end: 10px; }
.apply-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.apply-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0; }
.apply-head p { margin: 4px 0 0; color: var(--ink-soft); }
.apply-form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.steps-indicator { margin-block: 4px 0; }
.steps-count { font-size: 0.85rem; color: var(--ink-soft); margin-block: 4px 20px; }
.step { border: 0; padding: 0; margin: 0; }
.step legend { font-family: var(--font-display); font-size: 1.3rem; color: var(--cedar); font-weight: 600; margin-block-end: 14px; padding: 0; }
.steps-nav { display: flex; gap: 12px; justify-content: flex-end; margin-block-start: 10px; }

/* ---------------- Donate page ---------------- */

.donate-wrap { max-width: 680px; padding-block: clamp(28px, 5vw, 56px); }
.donate-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.donate-appeal-note {
  background: #FBEBE9; border-inline-start: 4px solid var(--red-bright);
  padding: 10px 16px; border-radius: 6px; font-size: 0.97rem;
}
.dot-red { display: inline-block; width: 9px; height: 9px; background: var(--red-bright); border-radius: 50%; margin-inline-end: 6px; animation: pulse 2s infinite; }

.donate-form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); margin-block-start: 20px; }
.donate-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }

.seg { display: flex; background: var(--paper); border-radius: 999px; padding: 4px; gap: 4px; }
.seg-item { flex: 1; position: relative; }
.seg-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-item span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 8px; border-radius: 999px; font-weight: 600; min-height: 48px;
  color: var(--ink-soft); transition: 0.15s; text-align: center; line-height: 1.2;
}
.seg-hint { font-size: 0.72rem; font-weight: 500; font-style: normal; opacity: 0.85; }
.seg-item input:checked + span { background: var(--cedar); color: var(--white); box-shadow: var(--shadow); }
.seg-item input:focus-visible + span { outline: 3px solid var(--amber); }

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.chip {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; min-height: 84px; cursor: pointer;
  background: var(--white); transition: border-color 0.12s ease, background 0.12s ease;
}
.chip:hover { border-color: var(--amber-dark); }
.chip input[type="radio"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-amount {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  line-height: 1.1; color: var(--cedar); font-variant-numeric: tabular-nums;
}
.chip-outcome { font-size: 0.83rem; line-height: 1.35; color: var(--ink-soft); }
.chip:has(input:checked) { border-color: var(--amber); background: #FDF3EA; }
.chip:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.chip-input {
  position: relative; z-index: 1; width: 100%; margin-block-start: auto;
  padding: 9px 12px; font-size: 1rem; font-family: inherit; min-height: 42px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
}
.chip-input:focus { border-color: var(--sea); outline: none; }
.chips-compact { grid-template-columns: repeat(4, 1fr); }
.chips-compact .chip { padding: 10px 6px; min-height: 0; align-items: center; }
@media (max-width: 400px) {
  .chip { padding: 12px 12px; min-height: 76px; }
  .chip-amount { font-size: 1.2rem; }
}

.donate-currency { display: flex; align-items: center; gap: 10px; margin-block-start: 14px; }
.donate-currency label { font-weight: 600; font-size: 0.92rem; }
.donate-currency select { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 1rem; min-height: 44px; }

.donate-trust { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin-block: 16px 0; }
.donate-trust .lock { width: 13px; height: 13px; vertical-align: -1px; color: #3E7C5B; }

.donate-breakdown { margin-block-start: 34px; }
.donate-breakdown h2 { font-size: 1.3rem; }
.donate-breakdown ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.donate-breakdown li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 44px; align-items: center; gap: 12px; font-size: 0.95rem; }
.bd-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; display: block; }
.bd-bar span { display: block; height: 100%; width: var(--pct); background: var(--sea); border-radius: 999px; }
.bd-pct { font-variant-numeric: tabular-nums; font-weight: 600; text-align: end; }

.donate-alt { margin-block-start: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.donate-alt summary { padding: 16px 20px; font-weight: 600; cursor: pointer; color: var(--cedar); }
.donate-alt-body { padding: 0 20px 18px; }

/* ---------------- Story page ---------------- */

.story-header { padding-block: clamp(32px, 6vw, 60px) 20px; }
.story-header h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 24ch; }
.story-header-emergency { background: var(--red); }
.story-header-emergency h1, .story-header-emergency .story-subtitle { color: var(--white); }
.story-header-emergency .story-meta { color: rgba(255,255,255,0.85); }
.story-subtitle { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.story-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); }
.flag-pill {
  background: var(--cedar); color: var(--white); padding: 4px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
}
.flag-emergency { background: var(--red-bright); }
.flag-legal-win { background: var(--sea); }
.flag-rescue { background: var(--amber-dark); }
.flag-wildlife, .flag-big-cats { background: #3E7C5B; }

.story-top-media { margin-block-end: 26px; }
.story-pic img { border-radius: var(--radius-lg); width: 100%; }

.story-body-wrap { max-width: 720px; }
.story-body { font-size: 1.08rem; }
.story-body p { max-width: 68ch; }
.rich h2 { font-size: 1.5rem; margin-block-start: 1.4em; }
.rich blockquote {
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--cedar);
  border-inline-start: 4px solid var(--amber); margin-inline: 0; padding-inline-start: 22px;
}
.rich img { border-radius: var(--radius); }

.inline-donate {
  background: #FBEBE9; border: 1px solid #E8C6C2; border-radius: var(--radius-lg);
  padding: 22px 24px; margin-block: 30px;
}
.inline-donate h2 { font-size: 1.25rem; margin-block-end: 12px; color: var(--red); }
.inline-donate-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.story-footer { margin-block-start: 36px; border-block-start: 1px solid var(--line); padding-block-start: 20px; }
.share-row { display: flex; gap: 14px; align-items: center; font-size: 0.95rem; flex-wrap: wrap; }
.share-row a { font-weight: 600; }
.story-next-action { margin-block-start: 16px; font-size: 1.02rem; }
.story-related { margin-block: clamp(36px, 6vw, 64px); }
.story-related h2 { font-size: 1.5rem; margin-block-end: 20px; }

/* ---------------- Appeal page ---------------- */

.appeal-hero { position: relative; background: var(--red) center/cover no-repeat; color: var(--white); min-height: 46vh; display: flex; align-items: flex-end; }
.appeal-hero-inner { position: relative; padding-block: clamp(32px, 6vw, 56px); }
.appeal-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.5vw, 3.2rem); max-width: 20ch; }
.appeal-summary { font-size: 1.12rem; max-width: 55ch; }

.appeal-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 880px) { .appeal-layout { grid-template-columns: 1fr; } .appeal-side { order: -1; } }
.appeal-donate-card {
  background: var(--white); border: 2px solid var(--red-bright); border-radius: var(--radius-lg);
  padding: 22px; position: sticky; top: 90px; box-shadow: var(--shadow-lg);
}
.appeal-donate-card .appeal-progress { margin-block: 0 18px; max-width: none; }
.appeal-donate-card .appeal-progress-track { background: #F0DEDC; }
.appeal-donate-card .appeal-progress-label { color: var(--ink); }
.appeal-donate-form { display: grid; gap: 10px; }
.appeal-donate-form input[type="text"], .appeal-donate-form input[type="email"], .appeal-donate-form input:not([type]) {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 1rem; min-height: 44px; width: 100%;
}
.appeal-updates { margin-block-start: 36px; }
.update-log { list-style: none; padding: 0; display: grid; gap: 0; }
.update-log li {
  display: grid; grid-template-columns: 130px 1fr; gap: 18px;
  padding-block: 18px; border-block-start: 1px solid var(--line);
}
@media (max-width: 560px) { .update-log li { grid-template-columns: 1fr; gap: 4px; } }
.update-log time { font-size: 0.88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.update-log h3 { font-size: 1.1rem; margin: 0 0 4px; }
.update-log p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------------- Static pages / law / wildlife ---------------- */

.page-header { padding-block: clamp(32px, 6vw, 60px) 24px; }
.page-header h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.page-subtitle { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.page-header-green { background: var(--cedar); padding-block-end: clamp(32px, 6vw, 60px); margin-block-end: 30px; }
.page-header-green h1 { color: var(--white); }
.page-header-green .page-subtitle { color: rgba(255,255,255,0.85); }

.timeline { list-style: none; padding: 0; position: relative; margin-block: 24px; }
.timeline::before {
  content: ""; position: absolute; inset-block: 6px; inset-inline-start: 5px;
  width: 3px; background: var(--amber); border-radius: 2px;
}
.timeline-item { position: relative; padding-inline-start: 34px; padding-block-end: 26px; }
.timeline-item::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--amber);
  border: 3px solid var(--paper);
}
.timeline-item time { font-weight: 700; color: var(--amber-dark); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.timeline-item h3 { font-size: 1.15rem; margin: 4px 0; }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.law-timeline { max-width: 720px; }

.report-panel { margin-block: clamp(30px, 5vw, 56px); }
.report-panel-inner {
  background: var(--white); border-inline-start: 5px solid var(--red-bright);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px); display: flex; gap: 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.report-panel h2 { font-size: 1.4rem; }
.report-hotline { font-size: 1.15rem; font-weight: 700; }

.hotline-card {
  background: var(--cedar); color: var(--white); border-radius: var(--radius-lg);
  padding: 20px 24px; text-align: center; margin-block-end: 22px;
}
.hotline-card p { margin: 0 0 4px; opacity: 0.85; }
.hotline-number { color: var(--amber); font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-block-end: 40px; }
.case-card {
  background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform 0.16s, box-shadow 0.16s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card a { text-decoration: none; color: inherit; display: block; }
.case-media { position: relative; aspect-ratio: 16/10; background: var(--cedar-deep); }
.case-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.case-stamp {
  position: absolute; top: 12px; inset-inline-end: 12px;
  border: 2px solid rgba(255,255,255,0.9); color: var(--white);
  font-weight: 700; letter-spacing: 0.14em; font-size: 0.75rem;
  padding: 4px 10px; rotate: 3deg; background: rgba(20,43,38,0.35); backdrop-filter: blur(2px);
}
.case-body { padding: 18px 20px 20px; }
.case-body time { font-size: 0.83rem; color: var(--ink-soft); }
.case-body h2 { font-size: 1.25rem; margin: 6px 0 8px; }
.case-body p { margin: 0 0 10px; font-size: 0.95rem; color: var(--ink-soft); }
.wildlife-intro { max-width: 720px; }

/* ---------------- QNA ---------------- */

.qna-cat { margin-block-end: 34px; }
.qna-cat h2 { font-size: 1.45rem; border-block-end: 2px solid var(--amber); display: inline-block; padding-block-end: 4px; }
.qna-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-block-end: 10px; }
.qna-item summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer; color: var(--cedar);
  list-style-position: outside;
}
.qna-item summary:hover { color: var(--amber-dark); }
.qna-answer { padding: 0 20px 18px; }

/* ---------------- Contact ---------------- */

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px; margin-block-start: 90px;
}
@media (max-width: 820px) { .contact-side { margin-block-start: 0; } }
.contact-side h2 { font-size: 1.25rem; }
.contact-side address { font-style: normal; }
.contact-note { font-size: 0.92rem; color: var(--ink-soft); border-block-start: 1px solid var(--line); padding-block-start: 14px; }

/* ---------------- Thanks / error ---------------- */

.thanks-page { padding-block: clamp(40px, 7vw, 80px); }
.thanks-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 820px) { .thanks-inner { grid-template-columns: 1fr; } }
.thanks-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.thanks-body h1 { font-size: clamp(2rem, 5vw, 3rem); }
.thanks-body p { font-size: 1.1rem; }
.thanks-animal-note { color: var(--amber-dark); font-weight: 600; }
.thanks-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 20px; }
.thanks-newsletter label { font-weight: 600; display: block; margin-block-end: 8px; }
.newsletter-row { display: flex; gap: 10px; }
.thanks-simple { text-align: center; }
.thanks-check {
  width: 74px; height: 74px; border-radius: 50%; background: #3E7C5B; color: var(--white);
  font-size: 2.2rem; display: flex; align-items: center; justify-content: center; margin-inline: auto; margin-block-end: 18px;
}
.thanks-simple .thanks-actions { justify-content: center; }
.error-code { font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: var(--line); margin: 0; line-height: 1; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--cedar-deep); color: rgba(255,255,255,0.88); margin-block-start: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 6vw, 60px) 30px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h2 { color: var(--white); font-size: 1.15rem; margin-block-end: 12px; }
.footer-col address { font-style: normal; line-height: 1.9; }
.site-footer a { color: #EDBB93; }
.site-footer a:hover { color: var(--white); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 12px; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 12px 16px; font-size: 1rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08); color: var(--white); min-height: 48px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-social { display: flex; gap: 14px; margin-block-start: 14px; }
.footer-social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.footer-social svg { width: 20px; height: 20px; }
.footer-social a:hover { border-color: var(--amber); background: rgba(217,108,44,0.15); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-block-start: 1px solid rgba(255,255,255,0.12); padding-block: 18px;
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
}
.footer-legal p { margin: 0; }

/* Count-up reveal */
@media (prefers-reduced-motion: no-preference) {
  .impact-item { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .impact-item.is-visible { opacity: 1; transform: none; }
}

/* Print: keep it usable */
@media print {
  .site-header, .site-footer, .emergency-banner, .sticky-bar { display: none; }
}

/* ---- Header search ---- */
.header-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: rgba(255,255,255,0.9);
}
.header-search:hover { background: rgba(255,255,255,0.1); color: #fff; }
.header-search svg { width: 19px; height: 19px; }

.search-form { display: flex; gap: 10px; margin-block-start: 16px; max-width: 560px; }
.search-form input[type="search"] {
  flex: 1; padding: 13px 18px; font-size: 1.05rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 999px; min-height: 48px;
}
.search-form input[type="search"]:focus { border-color: var(--sea); outline: none; }
.search-group { font-size: 1.35rem; margin-block: 34px 18px; }

/* ---- Recent supporters (appeal social proof) ---- */
.supporters { margin-block-start: 20px; border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.supporters h3 { font-size: 0.95rem; margin-block-end: 10px; }
.supporters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; max-height: 220px; overflow-y: auto; }
.supporters li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; }
.sup-heart { color: var(--red-bright); font-size: 0.8rem; }
.sup-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-amount { font-weight: 700; color: var(--cedar); font-variant-numeric: tabular-nums; }

/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28); transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float.is-tucked { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .whatsapp-float { width: 48px; height: 48px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  body.page-animal .whatsapp-float { bottom: 88px; }
}
/* The appeal sidebar is sticky on desktop; a fixed float would sit on it permanently. */
@media (min-width: 881px) {
  body.page-appeal .whatsapp-float { display: none; }
}
@media print { .whatsapp-float { display: none; } }

/* ---- Get involved action band (the classic four blocks, in brand colors) ---- */
.action-band { padding-block: clamp(40px, 7vw, 76px); }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .action-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .action-grid { grid-template-columns: 1fr; } }
.action-card {
  display: flex; flex-direction: column; gap: 20px; justify-content: space-between;
  min-height: 190px; padding: 22px 22px 20px; border-radius: var(--radius-lg);
  color: var(--white); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--white); }
.action-card p { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.action-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15;
  display: flex; align-items: baseline; gap: 10px;
}
.action-cta em { font-style: normal; transition: translate 0.15s ease; }
.action-card:hover .action-cta em { translate: 4px 0; }
[dir="rtl"] .action-card:hover .action-cta em { translate: -4px 0; }
.action-adopt { background: #3A7354; }
.action-foster { background: var(--sea); }
.action-sponsor { background: var(--cedar-deep); }
.action-donate { background: var(--red-bright); }
