/* =========================================================
   'בְּאָהַבה תְּחִלָּה' – beahava.org.il
   עיצוב ופיתוח: Logicode Web Systems
   ========================================================= */

:root {
  --teal: #00514B;
  --teal-dark: #003632;
  --teal-tint: #CFE6E3;
  --orange: #E25D03;
  --orange-btn: #C24E00;
  --orange-btn-hover: #A84300;
  --ink: #06162F;
  --text: #4B4F58;
  --mist: #F2F7F6;
  --line: #DCE6E4;
  --white: #fff;
  --radius: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1240px;
  --hdr-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; }
a { color: var(--teal); transition: color .2s; }
a:hover { color: var(--orange-btn); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }

.skip { position: absolute; top: -80px; right: 16px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); text-decoration: none; transition: top .25s; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: var(--radius); border: 2px solid transparent; font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: transform .3s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn .ic { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(-4px); }
.btn-sm { min-height: 48px; padding: 10px 20px; font-size: 17px; }
.btn-primary { background: var(--orange-btn); color: #fff; }
.btn-primary:hover { background: var(--orange-btn-hover); color: #fff; box-shadow: 0 14px 28px -14px rgba(194, 78, 0, .9); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 14px 28px -14px rgba(0, 81, 75, .9); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #FFE9DA; color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar ---------- */
.topbar { display: none; background: var(--teal); color: #fff; font-size: 15px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-links { display: flex; align-items: center; gap: 28px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.topbar a:hover { color: #FFD2B3; }
.topbar .ic { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hdr.is-stuck { box-shadow: 0 10px 30px -18px rgba(6, 22, 47, .45); }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 62px; width: auto; transition: transform .5s var(--ease); }
.logo:hover img { transform: scale(1.05) rotate(-2deg); }
.nav, .hdr-cta { display: none; }

.burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; padding: 0; transition: border-color .25s, background-color .25s; }
.burger:hover { border-color: var(--teal); background: var(--mist); }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 0; background: none; border-radius: var(--radius); font-family: inherit; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; cursor: pointer; transition: color .2s; }
.nav-link::after { content: ''; position: absolute; inset-inline: 16px; bottom: 6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-current { color: var(--teal); }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-link .ic { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.nav-link[aria-expanded="true"] .ic { transform: rotate(180deg); }

/* ---------- Mega menu ---------- */
.mega { position: absolute; top: 100%; inset-inline: 0; z-index: 2; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(6, 22, 47, .45); opacity: 0; visibility: hidden; transform: translateY(-14px); clip-path: inset(0 0 100% 0); transition: opacity .3s ease, transform .5s var(--ease), clip-path .5s var(--ease), visibility 0s linear .5s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 -80px 0); transition-delay: 0s; }
.mega-scrim { position: absolute; top: 100%; inset-inline: 0; z-index: 1; height: 100vh; background: rgba(6, 22, 47, .4); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility 0s linear .4s; }
.mega-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mega-in { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; padding-block: 32px; }
.mega-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 230px; padding: 28px; border-radius: var(--radius); background: var(--teal); color: #fff; text-decoration: none; opacity: 0; transform: translateX(24px); transition: opacity .45s ease, transform .6s var(--ease), background-color .25s; }
.mega-feature:hover { color: #fff; background: var(--teal-dark); }
.mega.is-open .mega-feature { opacity: 1; transform: none; }
.mega-feature small { position: relative; font-size: 16px; font-weight: 500; color: var(--teal-tint); }
.mega-feature strong { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 40px; font-weight: 800; line-height: 1.1; }
.mega-feature strong .ic { width: 28px; height: 28px; transition: transform .3s var(--ease); }
.mega-feature:hover strong .ic { transform: translateX(-6px); }
.mega-heart { position: absolute; left: -40px; bottom: -50px; width: 210px; height: 210px; color: rgba(255, 255, 255, .1); stroke-width: 1.2; }
.mega-grid { display: grid; gap: 16px; }
.mega-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-card { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 230px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; opacity: 0; transform: translateY(22px); transition: opacity .45s ease, transform .6s var(--ease), border-color .25s, background-color .25s, box-shadow .3s, color .25s; }
.mega.is-open .mega-card { opacity: 1; transform: none; }
.mega.is-open .mega-card:nth-child(1) { transition-delay: .08s, .08s, 0s, 0s, 0s, 0s; }
.mega.is-open .mega-card:nth-child(2) { transition-delay: .15s, .15s, 0s, 0s, 0s, 0s; }
.mega.is-open .mega-card:nth-child(3) { transition-delay: .22s, .22s, 0s, 0s, 0s, 0s; }
.mega.is-open .mega-card:nth-child(4) { transition-delay: .29s, .29s, 0s, 0s, 0s, 0s; }
.mega-card:hover { border-color: var(--teal); background: var(--mist); color: var(--teal); box-shadow: 0 18px 34px -22px rgba(0, 81, 75, .7); }
.mega-ico, .ico-tile { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--mist); color: var(--teal); transition: background-color .25s, color .25s, transform .4s var(--ease); }
.mega-card:hover .mega-ico { background: var(--teal); color: #fff; transform: translateY(-4px); }
.mega-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.mega-label .ic { width: 20px; height: 20px; opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .4s var(--ease); }
.mega-card:hover .mega-label .ic { opacity: 1; transform: none; }

/* ---------- Off-canvas drawer ---------- */
.dr-scrim { position: fixed; inset: 0; z-index: 100; border: 0; padding: 0; background: rgba(6, 22, 47, .55); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.dr-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.dr { position: fixed; top: 0; right: 0; z-index: 101; width: min(88%, 400px); height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #fff; box-shadow: -30px 0 60px -20px rgba(6, 22, 47, .45); transform: translateX(100%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; }
.dr.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.dr-head .logo img { height: 56px; }
.dr-close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; transition: transform .4s var(--ease), border-color .25s, color .25s; }
.dr-close:hover { transform: rotate(90deg); border-color: var(--orange-btn); color: var(--orange-btn); }
.dr-stage { position: relative; flex: 1; overflow: hidden; }
.dr-panel { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 12px 20px 24px; transition: transform .5s var(--ease), opacity .35s ease, visibility 0s linear .5s; }
.dr-root { transition-delay: 0s; }
.dr-root.is-away { transform: translateX(35%); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .5s; }
.dr-sub { transform: translateX(-100%); visibility: hidden; }
.dr-sub.is-active { transform: none; visibility: visible; transition-delay: 0s; }
.dr-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 62px; padding: 0 4px; border: 0; border-bottom: 1px solid #E8EEED; background: none; font-family: inherit; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; text-align: start; cursor: pointer; opacity: 0; transform: translateX(28px); transition: opacity .45s ease, transform .55s var(--ease), color .2s, padding .3s; }
.dr-item:hover, .dr-item.is-current { color: var(--teal); padding-inline-start: 10px; }
.dr-item .ic { width: 20px; height: 20px; color: var(--orange-btn); }
.dr.is-open .dr-item { opacity: 1; transform: none; }
.dr.is-open .dr-root .dr-item:nth-child(1) { transition-delay: .12s, .12s, 0s, 0s; }
.dr.is-open .dr-root .dr-item:nth-child(2) { transition-delay: .18s, .18s, 0s, 0s; }
.dr.is-open .dr-root .dr-item:nth-child(3) { transition-delay: .24s, .24s, 0s, 0s; }
.dr.is-open .dr-root .dr-item:nth-child(4) { transition-delay: .3s, .3s, 0s, 0s; }
.dr.is-open .dr-root .dr-item:nth-child(5) { transition-delay: .36s, .36s, 0s, 0s; }
.dr-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 48px; padding: 0 14px 0 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); font-family: inherit; font-size: 17px; font-weight: 600; color: var(--teal); cursor: pointer; transition: background-color .25s, color .25s; }
.dr-back:hover { background: var(--teal); color: #fff; }
.dr-back .ic { width: 18px; height: 18px; transition: transform .3s; }
.dr-back:hover .ic { transform: translateX(4px); }
.dr-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 14px; border-bottom: 2px solid var(--teal); font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--teal); text-decoration: none; }
.dr-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--mist); }
.dr-partner { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; }
.dr-partner .ic { width: 18px; height: 18px; }

/* ---------- Sections & type ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-mist { background: var(--mist); }
.h-xl { font-size: clamp(36px, 5.2vw, 66px); line-height: 1.14; }
.h-lg { font-size: clamp(30px, 4vw, 48px); }
.h-md { font-size: clamp(24px, 2.8vw, 34px); }
.lead { font-size: clamp(19px, 1.7vw, 22px); }
.lead-xl { max-width: 1040px; font-size: clamp(21px, 2.3vw, 29px); font-weight: 500; line-height: 1.6; color: var(--ink); }
.accent { color: var(--teal); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.center { text-align: center; align-items: center; }
.narrow { max-width: 860px; margin-inline: auto; }

.card { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .4s var(--ease), border-color .25s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 24px 40px -28px rgba(0, 81, 75, .8); }
.card-top { border-top: 4px solid var(--orange); }
.card-top p { font-size: 20px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.card-top .ic { width: 32px; height: 32px; color: var(--orange-btn); }
.ico-solid { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--teal); color: #fff; }
.strong-p { font-size: 20px; font-weight: 600; line-height: 1.65; color: var(--ink); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero .split { position: relative; padding-block: clamp(48px, 8vw, 112px); }
.hero-heart { position: absolute; left: -6vw; top: -40px; width: clamp(280px, 46vw, 640px); height: clamp(280px, 46vw, 640px); color: var(--orange); opacity: .16; stroke-width: .6; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.rise { animation: rise .9s var(--ease) both; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
.rise-4 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.beat { animation: beat 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.05); } 24% { transform: scale(1); } 36% { transform: scale(1.03); } 48% { transform: scale(1); } }

.band { background: var(--teal); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 40px); padding-block: clamp(36px, 5vw, 64px); }
.band .ic { width: 56px; height: 56px; color: #FFB37D; stroke-width: 1.4; }
.band p { flex: 1 1 320px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; line-height: 1.6; }

.divided { padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- YouTube (lite embed) ---------- */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--teal-dark); cursor: pointer; box-shadow: 0 30px 50px -34px rgba(6, 22, 47, .9); transition: transform .4s var(--ease), box-shadow .4s; }
.yt:hover { transform: translateY(-4px); box-shadow: 0 36px 56px -30px rgba(6, 22, 47, .9); }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.yt:hover img { transform: scale(1.04); }
.yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 22, 47, .55), rgba(6, 22, 47, 0) 55%); }
.yt-play { position: absolute; z-index: 1; left: 50%; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: var(--radius); background: var(--orange-btn); color: #fff; transition: transform .4s var(--ease), background-color .25s; }
.yt:hover .yt-play { transform: scale(1.1); background: var(--orange); }
.yt-play .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.yt-caption { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; padding: 18px 22px; color: #fff; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; line-height: 1.4; text-align: start; }
.yt iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.yt.is-playing { cursor: default; transform: none; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(6, 22, 47, .9), rgba(0, 54, 50, .7)); }
.cta .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 36px; padding-block: clamp(56px, 8vw, 104px); text-align: center; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); }
.cta .btn-row { justify-content: center; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--teal); color: #fff; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 14px; padding-block: clamp(40px, 6vw, 80px); }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.page-hero-heart { position: absolute; left: -60px; bottom: -110px; width: 380px; height: 380px; color: rgba(255, 255, 255, .1); stroke-width: .8; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 16px; color: var(--teal-tint); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: #FFD2B3; text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-inline-end: 8px; color: rgba(255, 255, 255, .5); }

/* ---------- Team / people ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.team-card { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.team-card img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.team-card > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.team-card h3 { font-size: 26px; }
.role { font-size: 18px; font-weight: 700; color: var(--orange-btn); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.person { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .4s var(--ease), border-color .25s, box-shadow .35s; }
.person:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 24px 40px -28px rgba(0, 81, 75, .8); }
.person-img { overflow: hidden; aspect-ratio: 1 / 1; background: var(--mist); }
.person-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ease); }
.person:hover .person-img img { transform: scale(1.06); }
.person-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; }
.person h3 { font-size: 21px; }
.person-city { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--text); }
.person-city .ic { width: 16px; height: 16px; color: var(--orange-btn); }

/* ---------- Thanks ---------- */
.thanks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.thank { gap: 16px; }
.thank-img { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--mist); }
.thank-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.thank-img.is-logo { display: flex; align-items: center; justify-content: center; padding: 28px; }
.thank-img.is-logo img { height: auto; object-fit: contain; }
.thank h3 { font-size: 24px; }
.thank-links { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--teal); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.social:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-3px); }
.social .ic { width: 20px; height: 20px; }

/* ---------- Articles ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.post { padding: 0; overflow: hidden; gap: 0; }
.post-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--mist); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-img img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 30px); flex: 1; }
.post h3 { font-size: 26px; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--teal); }
.post-date { font-size: 15px; font-weight: 600; color: var(--orange-btn); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; text-decoration: none; }
.article { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; }
.article-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.credit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.credit p { font-size: 16px; }

/* ---------- Lists ---------- */
.checks { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 14px; font-size: 19px; font-weight: 500; color: var(--ink); }
.checks .ic { margin-top: 5px; color: var(--orange-btn); }
.notice { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink); color: #fff; }
.notice h2 { color: #FFB37D; font-size: 28px; }
.verse { font-size: clamp(34px, 5vw, 60px); color: var(--teal); }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 700; color: var(--ink); }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid #B9C7C4; border-radius: var(--radius); background: #fff; font-family: inherit; font-size: 18px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 81, 75, .15); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #B3261E; }
.form-msg { grid-column: 1 / -1; min-height: 28px; font-weight: 600; }
.form-msg.is-ok { color: var(--teal); }
.form-msg.is-err { color: #B3261E; }
.side-links { display: flex; flex-direction: column; gap: 14px; }
.side-links .btn { justify-content: space-between; min-height: 68px; font-size: 20px; }

/* ---------- Donate ---------- */
.donate-card { max-width: 520px; margin-inline: auto; text-align: center; align-items: center; text-decoration: none; color: var(--ink); }
.donate-card img { width: 100%; max-width: 360px; }
.donate-card h3 { font-size: 28px; }

/* ---------- Empty state / hub ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(40px, 6vw, 72px) 24px; border: 1px dashed #B9C7C4; border-radius: var(--radius); background: var(--mist); text-align: center; }
.empty .ic { width: 48px; height: 48px; color: var(--teal); stroke-width: 1.5; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.hub .mega-card { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot { background: #fff; border-top: 1px solid var(--line); }
.foot-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 48px; padding-block: clamp(40px, 5vw, 64px); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-brand .logo img { height: 96px; }
.foot-partner img { height: 64px; width: auto; }
.foot h2 { margin-bottom: 12px; font-size: 20px; color: var(--teal); }
.foot ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; }
.foot ul a:hover { color: var(--orange-btn); }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-block: 22px; font-size: 16px; }
.foot-bottom strong { color: var(--ink); font-weight: 600; }
.foot-link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot-credit { display: inline-flex; align-items: center; gap: 12px; }
.foot-credit img { height: 30px; width: auto; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1023px) {
  .mega, .mega-scrim { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .form { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person-body { padding: 12px 14px 14px; }
  .person h3 { font-size: 18px; }
  .btn-row .btn { flex: 1 1 100%; }
  .logo img { height: 54px; }
  .team-card img { width: 100%; }
}

@media (min-width: 1024px) {
  :root { --hdr-h: 88px; }
  .topbar { display: block; }
  .nav { display: flex; align-items: center; gap: 2px; }
  .hdr-cta { display: flex; align-items: center; gap: 12px; }
  .burger, .dr, .dr-scrim { display: none; }
  .logo img { height: 72px; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-link { padding: 0 10px; font-size: 17px; }
  .hdr-cta .btn-ghost { display: none; }
}

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