:root {
  --bg: #0b0b0b;
  --surface: #121212;
  --surface-strong: #171717;
  --surface-soft: #1f1f1f;
  --text: #ffffff;
  --muted: #cfcfcf;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --cta: #ffa500;
  --cta-deep: #ff8c00;
  --cta-soft: rgba(255, 165, 0, 0.18);
  --glow: 0 0 20px rgba(255, 165, 0, 0.6);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

body[data-cta-variant="amber"] {
  --cta: #ffb000;
  --cta-deep: #ff9100;
}

body[data-cta-variant="gold"] {
  --cta: #ffbf3c;
  --cta-deep: #ff9f1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 165, 0, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #0b0b0b 0%, #111111 55%, #0b0b0b 100%);
  color: var(--text);
}

html[dir="rtl"] body {
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11, 11, 11, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner,
.footer-grid,
.hero,
.section-head,
.impact-grid,
.detail-grid,
.contact-grid,
.about-grid,
.donation-layout,
.trust-strip,
.stats-grid,
.card-grid,
.updates-grid,
.transparency-grid {
  display: grid;
  gap: 1.5rem;
}

.topbar-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cta), #ffd27a);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.94rem;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .language-switcher,
html[dir="rtl"] .cta-row,
html[dir="rtl"] .meta-row,
html[dir="rtl"] .progress-meta,
html[dir="rtl"] .detail-meta {
  direction: rtl;
}

.nav-links a,
.language-switcher a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.language-switcher a:hover,
.nav-links a.is-active,
.language-switcher a.is-active {
  color: var(--text);
  border-color: rgba(255, 165, 0, 0.28);
  background: rgba(255, 165, 0, 0.08);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: #0b0b0b;
  box-shadow: var(--glow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.nav-links .nav-cta.is-active,
.nav-links .nav-cta:hover {
  color: #0b0b0b;
  border-color: transparent;
  background: linear-gradient(135deg, #ffb733, var(--cta));
}

.language-switcher {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.83rem;
}

.page-shell {
  padding-bottom: 4rem;
}

.hero {
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  padding: 3rem 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.22);
  color: #ffd08a;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.hero h1,
.page-title,
.section-head h2,
.cta-panel h2 {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 11ch;
}

.hero p,
.lead,
.section-head p,
.dog-card p,
.panel p,
.detail-card p,
.contact-card p,
.transparency-card p,
.update-card p,
.stat-card p,
.trust-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-copy .cta-row,
.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button,
button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 58px;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.button,
button {
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: #0b0b0b;
  box-shadow: var(--glow);
  animation: pulseCta 2.8s ease-in-out infinite;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.button:hover,
button:hover,
.button-secondary:hover,
.nav-links .nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(255, 165, 0, 0.72);
}

.button-secondary:hover {
  border-color: rgba(255, 165, 0, 0.28);
  background: rgba(255, 165, 0, 0.08);
}

.hero-art,
.image-panel,
.cta-panel,
.panel,
.dog-card,
.detail-card,
.contact-card,
.stat-card,
.trust-card,
.transparency-card,
.update-card,
.donation-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-art {
  overflow: hidden;
  position: relative;
  min-height: 540px;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.05), rgba(11, 11, 11, 0.42)),
    url("/static/img/backgrounds/hero-rescue.svg") center/cover no-repeat;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.28) 100%);
  animation: heroZoom 12s ease-in-out infinite alternate;
}

.hero-badge {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  padding: 1rem 1.1rem;
  max-width: 270px;
  border-radius: 24px;
  background: rgba(15, 15, 15, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.section {
  padding: 2rem 0;
}

.section-head {
  grid-template-columns: 1fr;
  margin-bottom: 1.35rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}

.hero-copy--story {
  max-width: 720px;
}

.story-stack {
  display: grid;
  gap: 1rem;
}

.section-head--story {
  max-width: 760px;
}

.dog-story-grid {
  align-items: stretch;
}

.dog-story-card h3 {
  margin-bottom: 0.4rem;
}

.story-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.story-panels--single {
  grid-template-columns: 1fr;
}

.story-panel h2,
.story-cta-panel h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
}

.story-panel--compact {
  display: flex;
  align-items: center;
}

.story-highlight {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--text);
}

.story-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}

html[dir="rtl"] .story-list {
  padding-left: 0;
  padding-right: 1.2rem;
}

.story-cta-panel {
  text-align: left;
}

.story-cta-panel .button {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.story-stack--closing {
  margin-top: 1.25rem;
}

.impact-grid,
.card-grid,
.updates-grid,
.transparency-grid,
.stats-grid,
.about-grid,
.contact-grid,
.donation-layout,
.trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-card,
.dog-card,
.trust-card,
.stat-card,
.transparency-card,
.update-card {
  padding: 1.45rem;
}

.impact-card h3,
.dog-card h3,
.detail-card h3,
.trust-card h3,
.contact-card h3,
.transparency-card h3,
.update-card h3,
.stat-card h3,
.panel h3,
.donation-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 1.45rem;
  color: var(--text);
}

.dog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dog-card img,
.gallery-main img,
.gallery-strip img {
  width: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.dog-card:hover img,
.gallery-main:hover img,
.gallery-strip img:hover {
  transform: scale(1.05);
}

.dog-card img {
  aspect-ratio: 4 / 3;
}

.dog-card-body {
  padding: 1.45rem;
  display: grid;
  gap: 0.95rem;
}

.meta-row,
.progress-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.2);
  color: #ffd08a;
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cta), #ffd27a);
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(255, 165, 0, 0.42);
}

.page-hero {
  padding: 2.8rem 0 1.2rem;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.detail-grid,
.donation-layout {
  align-items: start;
}

.detail-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.gallery-main {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.gallery-main img {
  aspect-ratio: 5 / 4;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-strip img {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}

.detail-card,
.donation-card,
.contact-card,
.panel,
.cta-panel {
  padding: 1.6rem;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.amount-chip {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.amount-chip.is-selected {
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  border-color: transparent;
  color: #0b0b0b;
  box-shadow: var(--glow);
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  font: inherit;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 165, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.12);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.small-note,
.fine-print {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.error-list {
  margin: 0 0 1rem;
  padding: 1rem 1rem 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 73, 73, 0.12);
  border: 1px solid rgba(255, 73, 73, 0.16);
  color: #ffd3d3;
}

.cta-panel {
  margin-top: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 165, 0, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(14, 14, 14, 0.96), rgba(18, 18, 18, 0.98));
  border-color: rgba(255, 165, 0, 0.2);
}

.cta-panel p,
.cta-panel .fine-print {
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.4rem 0 3rem;
  color: var(--muted);
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}

.footer h4 {
  margin: 0 0 0.8rem;
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.sr-only,
.honeypot {
  position: absolute;
  left: -9999px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseCta {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(255, 165, 0, 0.42);
  }

  50% {
    box-shadow: 0 0 28px rgba(255, 165, 0, 0.75);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.04);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .detail-grid,
  .donation-layout,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .story-panels {
    grid-template-columns: 1fr;
  }

  .impact-grid,
  .card-grid,
  .updates-grid,
  .transparency-grid,
  .stats-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav-links,
  .language-switcher {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .impact-grid,
  .card-grid,
  .updates-grid,
  .transparency-grid,
  .stats-grid,
  .trust-strip,
  .donation-options,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(calc(100% - 1.1rem), var(--max));
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-art {
    min-height: 380px;
  }

  .button,
  button,
  .button-secondary {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }
}
