/* Shelter Friend Ukraine — shared stylesheet */

:root {
  --blue: #2873b9;
  --blue-dark: #1c4f85;
  --yellow: #f5cd0a;
  --yellow-dark: #d6b100;
  --red: #d6323f;
  --black: #16171a;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-300: #cfd6df;
  --gray-600: #5b6470;
  --gray-800: #2b303a;

  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(22, 23, 26, 0.08);
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--black); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--blue-dark);
  background: var(--gray-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dark); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-secondary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-dark); box-shadow: var(--shadow); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--black); white-space: nowrap; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.nav-links a { white-space: nowrap; }
.nav-links a { color: var(--gray-800); font-weight: 600; }
.nav-links a.active { color: var(--blue-dark); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-right .btn { padding: 10px 20px; font-size: 0.9rem; white-space: nowrap; }

.lang-switch { position: relative; }
.lang-switch select {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle { display: none; }

@media (max-width: 480px) {
  .nav-wrap { flex-wrap: wrap; }
  .brand { font-size: 0.95rem; max-width: 150px; }
  .brand img { width: 34px; height: 34px; }
  .nav-right { margin-left: auto; }
}

@media (max-width: 1300px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
  }
  .site-header { position: relative; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 14px;
  background: var(--yellow);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .eyebrow { background: rgba(255,255,255,0.15); color: var(--white); }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.92); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge { justify-self: center; }
.hero-badge img { width: min(320px, 80%); margin: 0 auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25)); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* Stat band */
.stats { padding: 48px 0; }
.stats-panel {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--yellow); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }

/* Donate cards */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.donate-card {
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}
.donate-card.featured { border-color: var(--yellow); background: #fffdf2; }
.donate-card h3 { display: flex; align-items: center; gap: 10px; }
.donate-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  word-break: break-all;
}
.copy-btn {
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--gray-100); }
.tbd-badge {
  display: inline-block;
  background: #fdecec;
  color: #b8283a;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

.notice {
  background: #fff8e1;
  border: 1px solid var(--yellow-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}
.notice.info { background: #eaf3fb; border-color: var(--blue); }

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.75); }
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.1rem;
}
.social-row a:hover { background: var(--blue); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

.footer-credit {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-credit a { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-credit a:hover { color: var(--white); }

/* Urgent appeal */
.urgent-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.urgent-eyebrow {
  background: #fdecec;
  color: #b8283a;
}
.urgent-card blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gray-300);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gray-800);
}
.urgent-card blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--gray-600);
}
.urgent-card .urgent-punchline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin: 20px 0;
}

/* Two-column photo + text block */
.split-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.split-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
@media (max-width: 860px) {
  .split-block { grid-template-columns: 1fr; }
}

/* Need stat strip (concrete daily/monthly needs) */
.need-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.need-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.need-card .need-num { font-size: 1.6rem; font-weight: 800; color: var(--blue-dark); }
.need-card .need-label { font-size: 0.88rem; color: var(--gray-600); margin-top: 4px; }

/* Story figure / photo callouts */
.story-figure {
  margin: 32px 0;
  text-align: center;
}
.story-figure img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-figure figcaption {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 10px;
}
.story-figure.float-right { float: right; margin-left: 32px; max-width: 320px; }
.story-figure.float-right img { max-width: 100%; }
@media (max-width: 700px) {
  .story-figure.float-right { float: none; margin-left: 0; max-width: 100%; }
}

/* Rescue story cards (front-line rescue mini-gallery) */
.rescue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.rescue-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}
.rescue-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
[data-i18n], [data-i18n-html] { }
.lang-hidden { display: none !important; }
