/* חיים של אחרים — Lives of Others */
:root {
  /* ===== Blue & turquoise palette (option 3 — see /palette-options.html) ===== */
  --bg: #F4F9FB;           /* cool near-white page bg */
  --ink: #14293A;          /* deep blue-ink text */
  --muted: #42586A;        /* secondary text */
  --soft: #6E8A9C;         /* tertiary / captions */
  --line: #D6E6EC;         /* hairlines */
  --cream: #E6F2F5;        /* soft turquoise-tint band bg */
  --chip: #DCEEF2;         /* light chips/pills */
  --chip-ink: #1E6E9C;     /* text on chips */
  /* --orange* kept as var names for compatibility; now the PRIMARY blue */
  --orange: #1E6E9C;       /* primary blue (main CTA / brand accent) */
  --orange-d: #17587D;     /* primary blue, darker (hover) */
  --green: #2C7A8C;        /* teal (sponsor / volunteer) */
  --green-d: #22626F;
  --blue: #3E9BC7;         /* secondary sky blue */
  --blue-d: #2E7BA0;
  --navy: #123A5A;         /* deep navy (memorial / dark bands) */
  --navy-2: #1E4E6E;
  --navy-text: #B9D3E2;
  --gold: #22A0AD;         /* TURQUOISE accent — reserved for DONATE emphasis */
  --gold-2: #45BEC9;
  --dark: #123A5A;         /* impact / contact bands → navy-blue */
  --darker: #0D2B44;
  --wa: #25D366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Assistant', sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .brand-name, .stat-num { font-family: 'Rubik', sans-serif; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-name { font-size: 19px; line-height: 1.15; font-weight: 700; }
.brand-sub { font-size: 12.5px; color: var(--soft); }
.brand-text { display: flex; flex-direction: column; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15.5px; font-weight: 600; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  font-size: 14px; font-weight: 700; color: var(--soft);
  text-decoration: none; border: 1.5px solid var(--line);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.lang-switch:hover { color: var(--ink); border-color: var(--soft); }
.btn-donate-top {
  background: var(--orange); color: #fff; padding: 10px 22px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  font-size: 15px; white-space: nowrap;
}
.btn-donate-top:hover { background: var(--orange-d); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; padding: 4px 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; text-align: center; transition: transform .12s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #fff; } .btn-orange:hover { background: var(--orange-d); }
.btn-green  { background: var(--green);  color: #fff; } .btn-green:hover  { background: var(--green-d); }
.btn-blue   { background: var(--blue);   color: #fff; } .btn-blue:hover   { background: var(--blue-d); }
.btn-outline-green  { background: #fff; color: var(--green); border: 2px solid var(--green); padding: 12px 26px; }
.btn-outline-orange { background: #fff; color: var(--orange); border: 2px solid var(--orange); padding: 12px 26px; }
/* Donate emphasis — turquoise pop so "לתרום" stands out among the three CTAs */
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(34,160,173,.4); }
.btn-gold:hover { background: var(--gold-2); }
.btn-sm { padding: 11px 22px; border-radius: 999px; font-size: 15.5px; }
.btn-hero-main { font-size: 19px; padding: 16px 34px; box-shadow: 0 8px 22px rgba(29,111,184,.32); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-chip {
  align-self: flex-start; background: var(--chip); color: var(--chip-ink);
  font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 999px;
}
.hero h1 { font-size: 50px; line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -0.5px; color: var(--navy); }
.hero-title-sub { display: block; font-family: 'Assistant', sans-serif; font-size: 21px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 10px; }
video.hero-photo { display: block; background: #0d1c2c; }
.hero-sub { font-size: 19px; color: var(--muted); margin: 0; max-width: 480px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; align-items: center; }
.hero-photo, .story-photo { width: 100%; border-radius: 24px; object-fit: cover; }
.hero-photo { height: 440px; }
.social-row { display: flex; gap: 14px; margin-top: 8px; }
.social-row a {
  width: 54px; height: 54px; border-radius: 50%; background: var(--chip);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; text-decoration: none; color: var(--chip-ink);
  box-shadow: 0 2px 8px rgba(22,49,80,.1); transition: transform .12s ease, background .15s ease;
}
.social-row a:hover { background: var(--orange); transform: translateY(-2px); }
.social-row a:hover svg { fill: #fff; }
.social-row svg { width: 28px; height: 28px; fill: var(--chip-ink); }

/* ---------- Impact ---------- */
.impact { background: var(--dark); color: var(--bg); }
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; padding-block: 36px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 15px; color: #CBBBA6; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 72px; }
.story-photo { height: 380px; }
.story-copy { display: flex; flex-direction: column; gap: 16px; }
.story-copy h2, .section-head h2 { font-size: 34px; margin: 0; font-weight: 800; }
.story-copy p { font-size: 18px; color: var(--muted); margin: 0; }
.story-copy strong { color: var(--ink); }

/* ---------- About ---------- */
.about-band { background: var(--cream); }
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px; }
.about-copy { display: flex; flex-direction: column; gap: 16px; }
.about-copy h2 { font-size: 34px; margin: 0; font-weight: 800; }
.about-copy p { font-size: 17px; color: var(--muted); margin: 0; }
.about-quote { background: #fff; border-radius: 16px; padding: 20px 24px; border-inline-start: 4px solid var(--orange); }
.about-quote p { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 18px; }
.about-grid img:nth-child(even) { margin-top: 24px; }

/* ---------- Unique + Video ---------- */
.unique { max-width: 1000px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.unique h2 { font-size: 34px; margin: 0; font-weight: 800; }
.unique p { font-size: 19px; color: var(--muted); margin: 0; max-width: 640px; }
.unique p strong { color: var(--orange); }
.video-frame { width: 100%; max-width: 860px; border-radius: 24px; overflow: hidden; background: #000; line-height: 0; }
.video-frame video { width: 100%; aspect-ratio: 16/9; }
.video-caption { font-size: 14.5px; color: var(--soft); margin: 0; }

/* ---------- Memorial ---------- */
.homes { background: var(--navy); color: #F4F1EA; }
.homes-inner { padding-block: 72px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.homes-eyebrow { font-size: 14px; letter-spacing: 2px; color: #A8B6CC; font-weight: 600; }
.homes h2 { font-size: 36px; margin: 0; font-weight: 800; }
.homes-sub { font-size: 18px; color: var(--navy-text); max-width: 680px; margin: 0; }
.homes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; width: 100%; text-align: start; }
.home-card { background: var(--navy-2); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.home-card img { width: 100%; height: 300px; object-fit: cover; object-position: center 22%; }
.home-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.home-card h3 { font-size: 20px; margin: 0; font-weight: 700; color: #fff; }
.home-card p { font-size: 15px; color: var(--navy-text); margin: 0; flex: 1; }
.home-card button {
  align-self: flex-start; background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold); padding: 9px 20px; border-radius: 999px;
  font-family: 'Assistant', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer;
}
.home-card button:hover { background: var(--gold); color: var(--navy); }
.home-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.home-donate {
  background: var(--gold); color: #fff; border: 1.5px solid var(--gold);
  padding: 9px 20px; border-radius: 999px; text-decoration: none;
  font-family: 'Assistant', sans-serif; font-size: 15px; font-weight: 700;
}
.home-donate:hover { background: var(--gold-2); border-color: var(--gold-2); }
.update-cta { display: inline-block; margin-top: 10px; align-self: flex-start; background: var(--gold); color: #fff; padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.update-cta:hover { background: var(--gold-2); }

/* ---------- Memorial modal ---------- */
.memorial-modal { border: none; border-radius: 24px; max-width: 720px; width: calc(100% - 48px); max-height: 84vh; padding: 0; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.memorial-modal::backdrop { background: rgba(30,26,20,0.6); backdrop-filter: blur(4px); }
.memorial-modal-inner { padding: 40px 44px; position: relative; font-family: 'Assistant', sans-serif; }
.memorial-close {
  position: absolute; top: 16px; inset-inline-start: auto; inset-inline-end: 16px; z-index: 5;
  background: var(--chip); border: none; width: 38px; height: 38px; border-radius: 50%;
  font-size: 17px; cursor: pointer; color: var(--ink);
}
.memorial-eyebrow { font-size: 13px; letter-spacing: 2px; color: var(--soft); font-weight: 600; }
.memorial-modal h3 { font-size: 27px; margin: 8px 0 18px; font-weight: 800; }
.memorial-modal img.memorial-portrait { width: 132px; height: 132px; object-fit: cover; object-position: top center; border-radius: 50%; float: inline-start; margin-inline-end: 18px; margin-bottom: 8px; border: 3px solid var(--chip); }
.memorial-modal img.memorial-hero-img { width: 100%; max-height: 380px; object-fit: cover; object-position: center 25%; border-radius: 16px; margin: 4px 0 18px; display: block; }
.memorial-modal p { font-size: 16.5px; color: #4A3F32; margin: 0 0 14px; }
.memorial-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; clear: both; }

/* ---------- Dogs ---------- */
.dogs { padding-block: 72px; }
.section-head { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; margin-bottom: 36px; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; max-width: 620px; }
.dogs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dog-card { background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(58,47,40,0.07); min-width: 0; }
.dog-card img { width: 100%; height: 220px; object-fit: cover; }
.dog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dog-name-row { display: flex; align-items: baseline; gap: 8px; }
.dog-name { font-family: 'Rubik', sans-serif; font-size: 19px; font-weight: 700; }
.dog-meta { font-size: 13px; color: var(--soft); }
.dog-bio { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.dog-actions { display: flex; gap: 8px; margin-top: 4px; }
.dog-actions a { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; }
.dog-adopt { background: var(--orange); color: #fff; } .dog-adopt:hover { background: var(--orange-d); }
.dog-sponsor { background: var(--chip); color: var(--chip-ink); }
.dogs-note { text-align: center; margin: 28px 0 0; font-size: 15px; color: var(--soft); }
.dogs-note a { color: var(--orange); font-weight: 700; }

/* ---------- Sponsor ---------- */
.sponsor { background: var(--green); color: #F4F6F0; }
.sponsor-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px; }
.sponsor-copy { display: flex; flex-direction: column; gap: 14px; }
.sponsor-copy h2 { font-size: 34px; margin: 0; font-weight: 800; color: #fff; }
.sponsor-copy > p { font-size: 18px; color: #E1E8DD; margin: 0; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.tier { border-radius: 16px; padding: 18px 12px; text-align: center; text-decoration: none; color: #fff; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.4); position: relative; }
.tier:hover { background: rgba(255,255,255,0.22); }
.tier-amount { font-family: 'Rubik', sans-serif; font-size: 28px; font-weight: 800; }
.tier-desc { font-size: 13.5px; color: #DDE6D8; }
.tier-featured { background: #fff; border-color: #fff; color: #3E5941; }
.tier-featured:hover { background: #fff; }
.tier-featured .tier-desc { color: var(--green); }
.tier-badge {
  position: absolute; top: -12px; inset-inline-end: 50%; transform: translateX(50%);
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 2px 12px; border-radius: 999px; white-space: nowrap;
}
[dir="rtl"] .tier-badge { transform: translateX(-50%); inset-inline-end: auto; inset-inline-start: 50%; }
.impact-box { background: rgba(0,0,0,0.14); border-radius: 24px; padding: 32px 34px; display: flex; flex-direction: column; gap: 16px; }
.impact-box h3 { font-size: 22px; margin: 0; color: #fff; }
.impact-line { display: flex; align-items: center; gap: 14px; }
.impact-amount { min-width: 84px; font-family: 'Rubik', sans-serif; font-size: 21px; font-weight: 800; color: var(--gold-2); }
.impact-line span:last-child { font-size: 16px; color: #E1E8DD; }
.impact-box .btn { align-self: flex-start; background: var(--gold); color: var(--ink); font-weight: 800; margin-top: 6px; }

/* ---------- Rescues ---------- */
.rescues { padding-block: 72px; }
.rescue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rescue-card { background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 2px 10px rgba(58,47,40,0.07); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rescue-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.rescue-card strong { font-family: 'Rubik', sans-serif; font-size: 18px; }
.rescue-card p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.rescue-card .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Volunteer ---------- */
.volunteer-band { background: var(--cream); }
.volunteer { padding-block: 72px; }
.vol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.vol-card { background: #fff; border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.vol-icon { font-size: 30px; }
.vol-card strong { font-size: 18px; }
.vol-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.vol-cta { text-align: center; margin-top: 32px; }
.vol-banner { width: min(440px, 100%); aspect-ratio: 4/5; height: auto; object-fit: cover; object-position: center 12%; border-radius: 22px; margin: 0 auto 28px; display: block; }
.vol-info { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.vol-info-card { background: #fff; border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 10px rgba(22,49,80,.06); }
.vol-info-card strong { font-size: 18px; }
.vol-info-card p { font-size: 15px; color: var(--muted); margin: 0; }
.vol-map-note { color: var(--chip-ink); font-weight: 600; font-size: 13.5px; }
.vol-notes { background: #fff; border-radius: 18px; padding: 24px 28px; margin-top: 20px; border-inline-start: 4px solid var(--green); }
.vol-notes strong { font-size: 17px; display: block; margin-bottom: 8px; }
.vol-notes ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.vol-notes li { font-size: 15px; color: var(--muted); }
.vol-more { text-align: center; margin: 20px 0 0; font-size: 16px; color: var(--muted); }
.vol-more a { color: var(--green); font-weight: 700; text-decoration: none; }
.story-lead { font-size: 21px !important; font-weight: 600; color: var(--ink) !important; }

/* ---------- Donate ---------- */
.donate { padding-block: 72px; }
.donate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.donate-card { background: #fff; border-radius: 18px; padding: 24px 22px; box-shadow: 0 2px 10px rgba(58,47,40,0.07); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.donate-card .d-icon { font-size: 28px; }
.donate-card strong { font-size: 17px; }
.donate-card p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.donate-card a.d-link { color: var(--orange); font-weight: 700; text-decoration: none; font-size: 15px; }
.donate-card a.d-link:hover { text-decoration: underline; }
.bank-details { font-size: 14.5px; color: var(--muted); margin: 0; }
.bank-details b { color: var(--ink); }

/* ---------- Updates + Social ---------- */
.updates { padding-block: 72px; }
.updates-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.updates-list { display: flex; flex-direction: column; gap: 20px; }
.updates-list h2 { font-size: 30px; margin: 0 0 4px; font-weight: 800; }
.update-card { background: #fff; border-radius: 16px; padding: 20px 24px; display: flex; gap: 18px; align-items: center; box-shadow: 0 2px 10px rgba(58,47,40,0.06); min-width: 0; }
.update-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.update-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.update-date { font-size: 12.5px; color: var(--soft); font-weight: 600; }
.update-body strong { font-size: 17px; }
.update-body p { font-size: 14.5px; color: var(--muted); margin: 0; }
.social-box { background: linear-gradient(135deg, #FDF3EA, #F5E3D2); border-radius: 24px; padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; }
.social-box h3 { font-size: 22px; margin: 0; font-weight: 800; }
.social-box > p { font-size: 15.5px; color: var(--muted); margin: 0; }
.social-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.social-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.social-box .fb-link { align-self: flex-start; color: var(--orange); font-weight: 700; text-decoration: none; font-size: 15px; }

/* ---------- Contact ---------- */
.contact { background: var(--dark); color: var(--bg); }
.contact-inner { max-width: 1000px; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.contact-copy { display: flex; flex-direction: column; gap: 14px; }
.contact-copy h2 { font-size: 32px; margin: 0; font-weight: 800; color: #fff; }
.contact-copy p { font-size: 17px; color: #CBBBA6; margin: 0; }
.btn-wa { align-self: flex-start; background: var(--wa); color: #fff; padding: 12px 24px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 16px; }
.contact-form { background: #473A30; border-radius: 20px; padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: none; border-radius: 10px; padding: 13px 16px;
  font-family: 'Assistant', sans-serif; font-size: 15px; color: var(--ink); width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  background: var(--orange); color: #fff; border: none; border-radius: 12px; padding: 14px;
  font-family: 'Assistant', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer;
}
.contact-form button:hover { background: var(--orange-d); }
.form-hint { font-size: 13px; color: #CBBBA6; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: #A89880; }
.footer-inner { padding-block: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: #E5D9C7; }
.footer-brand span { font-size: 13.5px; }
.footer-links { margin-inline-start: auto; display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.footer-links a { color: #A89880; text-decoration: none; }
.footer-links a:hover { color: #E5D9C7; }
.footer-links a.donate { color: var(--gold); font-weight: 600; }

/* ---------- Floating WhatsApp ---------- */
@keyframes float-paw { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.wa-float {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  animation: float-paw 3s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* ---------- Top donation bar ---------- */
.top-bar { background: var(--navy); color: #EAF2FA; font-size: 14px; }
.top-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 8px; flex-wrap: wrap; text-align: center; }
.top-bar a { color: var(--gold-2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-bar a:hover { text-decoration: underline; }

/* ---------- Wave dividers ---------- */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: 46px; }

/* ---------- Rescue numbers: before/after + counters ---------- */
.rescue-numbers { background: var(--navy); color: #EAF2FA; }
.rescue-numbers .wrap { padding-block: 60px; display: flex; flex-direction: column; gap: 36px; align-items: center; }
.rn-head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.rn-head h2 { font-size: 32px; margin: 0; font-weight: 800; }
.rn-head p { margin: 0; font-size: 16px; color: var(--navy-text); }
.ba-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; }
.ba-item { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.ba-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease; }
.ba-item { cursor: pointer; }
.ba-item .ba-after { opacity: 0; }
.ba-item.flip .ba-after { opacity: 1; }
.ba-item.flip .ba-before { opacity: 0; }
/* Tap cue + current-state label. On touch: tap toggles. On desktop: hover reveals. */
.ba-item::after { content: "👆 לפני"; position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; pointer-events: none; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; transition: opacity .3s; }
.ba-item.flip::after { content: "👆 אחרי"; background: var(--gold); }
@media (hover: hover) {
  .ba-item:hover .ba-after { opacity: 1; }
  .ba-item:hover .ba-before { opacity: 0; }
  .ba-item:hover::after { opacity: 0; }
}
.ba-name { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 18px; }
.ba-tag { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.counters { display: flex; gap: 56px; flex-wrap: wrap; justify-content: center; }
.counter { text-align: center; }
.counter-num { font-family: 'Rubik', sans-serif; font-size: 54px; font-weight: 900; color: var(--gold); line-height: 1; }
.counter-label { font-size: 16px; color: var(--navy-text); margin-top: 6px; }

/* ---------- Team ---------- */
.team-band { background: var(--cream); }
.team { padding-block: 66px; }
.team-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.team-member { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.team-member img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(22,49,80,.14); }
.team-name { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }

/* ---------- Dog modal + carousel ---------- */
.dog-card { cursor: pointer; }
.dog-card .dog-open-hint { font-size: 12.5px; color: var(--chip-ink); font-weight: 700; }
.dog-modal { border: none; border-radius: 24px; max-width: 760px; width: calc(100% - 40px); max-height: 88vh; padding: 0; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.dog-modal::backdrop { background: rgba(15,26,40,0.62); backdrop-filter: blur(4px); }
.dog-modal-inner { padding: 0 0 30px; position: relative; }
.dog-close { position: absolute; top: 14px; inset-inline-start: auto; inset-inline-end: 14px; z-index: 6; background: rgba(255,255,255,.92); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.carousel { position: relative; background: #0d1c2c; border-radius: 24px 24px 0 0; overflow: hidden; direction: ltr; }
.carousel-track { display: flex; transition: transform .4s ease; }
.carousel-track img { width: 100%; flex: 0 0 100%; height: 460px; object-fit: contain; background: #0d1c2c; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.85); color: var(--ink); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-btn[hidden] { display: none; }
.carousel-dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; gap: 7px; justify-content: center; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.carousel-dots span.on { background: #fff; }
.dog-modal-body { padding: 24px 40px 0; }
.dog-modal-body h3 { font-family: 'Rubik', sans-serif; font-size: 27px; margin: 0 0 4px; font-weight: 800; }
.dog-modal-body .dog-modal-meta { color: var(--soft); font-weight: 600; font-size: 15px; margin: 0 0 16px; }
.dog-modal-body p { font-size: 16px; color: var(--muted); margin: 0 0 12px; }
.dog-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.dog-modal-actions .btn { flex: 1; min-width: 180px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 18px 24px; gap: 16px; font-size: 17px;
  }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .header-actions { margin-inline-start: 0; }
  .hero, .story, .about, .sponsor-inner, .updates-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero { padding-block: 40px 28px; gap: 28px; }
  .hero h1 { font-size: 36px; }
  .hero-photo { height: 320px; }
  .story-photo { height: 300px; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homes-grid, .rescue-grid { grid-template-columns: 1fr; }
  .dogs-grid, .vol-grid, .donate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story { padding-block: 48px; }
  .memorial-modal-inner { padding: 30px 24px; }
  .carousel-track img { height: 320px; }
  .dog-modal-body { padding-inline: 26px; }
  .counters { gap: 36px; }
  .counter-num { font-size: 44px; }
  .vol-info { grid-template-columns: 1fr; }
  .vol-banner { height: 220px; }
}
@media (max-width: 560px) {
  .dogs-grid, .vol-grid, .donate-grid, .tier-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ba-name { font-size: 15px; }
  .hero h1 { font-size: 31px; }
  .section-head h2, .homes h2 { font-size: 29px; }
  .story-copy h2, .about-copy h2, .unique h2, .sponsor-copy h2 { font-size: 28px; }
  .cta-row .btn { width: 100%; }
  .about-grid img:nth-child(even) { margin-top: 0; }
  .brand-sub { display: none; }
  .btn-donate-top { padding: 9px 16px; font-size: 14px; }
  .update-card { flex-direction: column; align-items: flex-start; }
  .update-card img { width: 100%; height: 160px; }
}

/* ===== Virtual-adoption upgrades ===== */
.tier-toggle { display: flex; justify-content: center; gap: 8px; }
.tier-toggle .tt-btn { font-family: 'Assistant', sans-serif; font-weight: 700; font-size: 14.5px; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .15s; }
.tier-toggle .tt-btn.on { background: var(--chip); border-color: var(--chip); color: var(--chip-ink); }
.va-note { max-width: 820px; margin: 26px auto 0; background: var(--chip); border-radius: 16px; padding: 18px 22px; display: flex; gap: 12px; align-items: flex-start; }
.va-note .va-note-ic { font-size: 22px; line-height: 1.2; }
.va-note p { margin: 0; font-size: 15.5px; color: var(--chip-ink); }
.va-note strong { color: var(--navy); }

.va-gift { background: var(--cream); }
.va-gift-inner { max-width: 1000px; margin: 0 auto; padding: 56px 24px; }
.gift-occasions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 20px; }
.gift-occ { background: #fff; border-radius: 16px; padding: 22px 18px; text-align: center; box-shadow: 0 2px 10px rgba(18,58,90,.06); }
.gift-occ .go-ic { font-size: 30px; }
.gift-occ strong { display: block; margin-top: 8px; font-size: 17px; }
.gift-occ p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.va-visit { background: var(--navy); color: #EAF4F7; text-align: center; }
.va-visit-inner { max-width: 760px; margin: 0 auto; padding: 52px 24px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.va-visit h2 { color: #fff; margin: 0; font-size: 28px; }
.va-visit p { color: var(--navy-text); margin: 0; font-size: 16.5px; }
.va-visit-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.va-newsletter { text-align: center; }
.va-newsletter-inner { max-width: 640px; margin: 0 auto; padding: 52px 24px; }
.va-newsletter h2 { margin: 0 0 8px; }
.va-newsletter p { color: var(--muted); margin: 0 0 16px; }

.dog-of-month { background: var(--chip); }
.dom-inner { max-width: 1000px; margin: 0 auto; padding: 52px 24px; display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 26px; align-items: center; }
.dom-inner img { width: 100%; height: 300px; object-fit: cover; border-radius: 18px; }
.dom-body { display: flex; flex-direction: column; gap: 12px; }
.dom-tag { align-self: flex-start; background: var(--gold); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.dom-body h2 { margin: 0; color: var(--navy); }
.dom-body p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 720px) {
  .gift-occasions { grid-template-columns: 1fr; }
  .dom-inner { grid-template-columns: 1fr; }
  .dom-inner img { height: 220px; }
}

/* ===== Mobile proportions polish ===== */
@media (max-width: 560px) {
  .story, .about, .unique, .homes-inner, .dogs, .sponsor-inner, .rescues, .volunteer, .donate, .updates, .contact-inner { padding-block: 46px; }
  .va-gift-inner, .va-visit-inner, .va-newsletter-inner, .dom-inner { padding-block: 40px; }
  .dog-modal-actions .btn { flex: 1 1 100%; min-width: 0; }
  .home-card-actions .home-donate, .home-card-actions > button { flex: 1 1 auto; text-align: center; }
  .memorial-modal-inner { padding: 26px 20px; }
}
