/* ============================================================
   ועד הכשרות שנזן · Kosher Shenzhen Services
   Premium, calm, Hebrew-first. Warm white + cream + deep navy + subtle gold.
   ============================================================ */
:root {
  --bg: #fbfaf7;
  --cream: #f4efe4;
  --cream-2: #efe8d8;
  --navy: #102a56;
  --navy-2: #16356b;
  --navy-deep: #0a1f44;
  --ink: #2a3038;
  --muted: #6b7280;
  --gold: #b8973f;
  --gold-soft: #d2b673;
  --line: #e8e3d6;
  --accent: #9c2a2f;
  --serif: "Frank Ruhl Libre", "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Assistant", "Heebo", "Inter", "Noto Sans SC", system-ui, -apple-system, Segoe UI, sans-serif;
  --wrap: 1180px;
  --radius: 16px;
  --shadow: 0 26px 60px -30px rgba(16, 42, 86, 0.42);
  --shadow-sm: 0 12px 30px -18px rgba(16, 42, 86, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.75; font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0; }
.section { padding: clamp(44px, 5.5vw, 82px) 0; }
.section-title { font-size: clamp(28px, 4vw, 46px); letter-spacing: 0.2px; }
.section-title.center { margin-inline: auto; }
.subhead { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 27px); color: var(--navy); margin: 26px 0 12px; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.2em; font-size: 12.5px; font-weight: 700; color: var(--gold); margin: 0 0 14px; }
.eyebrow.center { display: block; text-align: center; }
.lead { font-size: 18.5px; color: var(--muted); margin: 16px 0 0; }
.lead.center { margin-inline: auto; max-width: 680px; }
.rich p { margin: 0 0 14px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans);
  font-weight: 600; font-size: 15.5px; cursor: pointer; border: 1.5px solid transparent; border-radius: 999px;
  padding: 13px 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -16px rgba(16, 42, 86, 0.8); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 28px; background: transparent; transition: background 0.4s, box-shadow 0.4s, padding 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgba(251, 250, 247, 0.86); backdrop-filter: saturate(140%) blur(12px); box-shadow: 0 12px 34px -26px rgba(16, 42, 86, 0.5); padding-top: 10px; padding-bottom: 10px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); white-space: nowrap; }
.topbar:not(.scrolled) .brand-name { color: #fff; }
.topbar:not(.scrolled) .brand-mark { filter: brightness(0) invert(1); }
.topnav { display: flex; gap: 26px; }
.topnav a { font-size: 15px; font-weight: 600; color: var(--ink); position: relative; padding: 4px 0; transition: color 0.25s; }
.topnav a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width 0.3s var(--ease); }
.topnav a:hover::after { width: 100%; }
.topbar:not(.scrolled) .topnav a { color: rgba(255, 255, 255, 0.92); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 9px; }
.lang-flag { width: 30px; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: none; cursor: pointer; overflow: hidden; line-height: 0; display: inline-block; transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s; opacity: 0.6; }
.lang-flag svg { width: 100%; height: 100%; }
.lang-flag:hover { transform: translateY(-1px) scale(1.06); opacity: 1; }
.lang-flag.active { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.topbar:not(.scrolled) .lang-flag { border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(82vh, 700px); display: flex; align-items: center; overflow: hidden; padding: 102px 0 52px; }
.hero-media { position: absolute; inset: -8% 0 0 0; z-index: 0; will-change: transform; }
.hero-media img { width: 100%; height: 116%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 68, 0.62), rgba(10, 31, 68, 0.5)), linear-gradient(100deg, rgba(10, 31, 68, 0.78) 0%, rgba(10, 31, 68, 0.34) 60%, rgba(10, 31, 68, 0.12) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero-text { color: #fff; max-width: 640px; }
.hero-text .eyebrow { color: var(--gold-soft); }
.hero-title { color: #fff; font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; line-height: 1.12; }
.hero-title::after { content: ""; display: block; width: 70px; height: 3px; background: var(--gold); margin: 22px 0 0; border-radius: 2px; }
.hero-intro { margin: 24px 0 30px; font-size: clamp(16.5px, 1.7vw, 19.5px); color: rgba(255, 255, 255, 0.92); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-text .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.hero-text .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(184, 151, 63, 0.25); }
.hero-verify { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; width: fit-content; color: var(--gold-soft); font-weight: 600; font-size: 15px; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.hero-verify svg { width: 19px; height: 19px; }
.hero-verify:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero-verify .hv-arrow { font-size: 18px; line-height: 1; opacity: 0.85; }
[dir="rtl"] .hero-verify .hv-arrow { transform: scaleX(-1); }
.hero-rabbi { margin: 0; }
.hero-rabbi-frame { border-radius: 14px; overflow: hidden; border: 2px solid rgba(210, 182, 115, 0.7); box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.8); }
.hero-rabbi-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
.rabbi-card { margin-top: -42px; margin-inline: 22px 22px; background: rgba(251, 250, 247, 0.97); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-sm); position: relative; }
.rabbi-name { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy); margin: 0 0 4px; }
.rabbi-bio { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: clamp(44px, 6vw, 70px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: -12px; top: 14%; height: 72%; width: 1px; background: rgba(255, 255, 255, 0.16); }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 46px); color: #fff; line-height: 1; }
.stat-num .u { color: var(--gold-soft); }
.stat-label { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.74); line-height: 1.5; }

/* ---------- Verify certificates ---------- */
.verify { background: var(--cream); }
.verify-head { margin-bottom: 28px; }
.verify-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.vrow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.vfield { display: flex; flex-direction: column; gap: 7px; }
.vfield label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.vfield input { font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .25s, box-shadow .25s, background .25s; }
.vfield input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(16, 42, 86, .08); }
.verify-result:not(:empty) { margin-top: 18px; }
.verify-card2 { border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; animation: vpop .35s var(--ease); }
@keyframes vpop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verify-ok { background: #eaf7ef; border: 1px solid #b7e0c6; }
.verify-bad { background: #fbecec; border: 1px solid #efc4c4; }
.v-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.verify-ok .v-badge { background: #1c9e54; }
.verify-bad .v-badge { background: var(--accent); }
.v-badge svg { width: 28px; height: 28px; }
.v-text { flex: 1 1 220px; }
.v-text h3 { font-size: 20px; margin: 0 0 3px; }
.verify-ok .v-text h3 { color: #15703c; }
.verify-bad .v-text h3 { color: var(--accent); }
.v-text p { margin: 0; font-size: 14.5px; color: var(--muted); }
.v-meta { margin-top: 7px; font-size: 13px; color: var(--ink); }
.v-action { flex: 0 0 auto; }
.btn-ok { background: #1c9e54; color: #fff; box-shadow: 0 12px 26px -14px rgba(28, 158, 84, .8); }
.btn-ok:hover { background: #157a41; color: #fff; transform: translateY(-2px); }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.about-media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-quote { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 22px 16px; color: #fff; font-family: var(--serif); font-style: italic; font-size: 18px;
  background: linear-gradient(transparent, rgba(10, 31, 68, 0.82)); }
.about-text .rich p { font-size: 17.5px; }
.team-band { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--line); }
.team-title { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); color: var(--navy); text-align: center; margin: 0 0 26px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.team-card { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(184, 151, 63, 0.45); }
.team-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(184, 151, 63, 0.12); color: var(--gold); }
.team-ic svg { width: 21px; height: 21px; stroke-width: 1.4; }
.team-tx h4 { font-family: var(--serif); font-size: 20px; color: var(--navy); margin: 0 0 6px; }
.team-tx p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.65; }

/* verify sample certificate preview */
.verify-sample { margin: 0 auto 24px; max-width: 380px; text-align: center; }
.verify-sample img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid rgba(184, 151, 63, 0.5); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease); }
.verify-sample a:hover img { transform: translateY(-3px); }
.verify-sample figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); }
.verify-sample figcaption a { color: var(--gold); font-weight: 600; }
.verify-sample figcaption a:hover { color: var(--navy); }

/* response-time badge */
.response-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--navy); background: rgba(184, 151, 63, 0.12); border: 1px solid rgba(184, 151, 63, 0.4); border-radius: 999px; padding: 6px 14px; }
.response-badge svg { width: 16px; height: 16px; color: var(--gold); }

/* quick-contact captions */
.quick-item { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; cursor: default; }
.quick-cap { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Areas ---------- */
.areas { background: var(--cream); }
.areas-grid { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.area-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(184, 151, 63, 0.55); }
.area-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); color: var(--navy); display: grid; place-items: center; flex: 0 0 auto; }
.area-icon svg { width: 19px; height: 19px; stroke-width: 1.4; }
.area-card span { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--ink); text-align: center; }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; position: relative; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.service-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(184, 151, 63, 0.4); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon { width: 32px; height: 32px; color: var(--gold); margin-bottom: 14px; }
.service-icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.service-card h3 { font-size: 23px; margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Process timeline ---------- */
.process { background: var(--cream); }
.timeline { list-style: none; counter-reset: step; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; inset-inline: 12% ; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.5; }
.tl-step { text-align: center; position: relative; }
.tl-num { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); color: var(--navy); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 24px; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.tl-step h3 { font-size: 21px; margin-bottom: 8px; }
.tl-step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Recognition / marquee ---------- */
.recognition { background: var(--bg); }
.recognition .wrap { margin-bottom: 36px; }
.agency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.marquee { overflow: hidden; padding: 12px 0; width: 100%; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 26px; width: max-content; will-change: transform; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee + .marquee { margin-top: 14px; }
.agency-item { height: 116px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; padding: 16px 20px; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.agency-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(184, 151, 63, 0.5); }
.agency-item img { max-height: 78px; max-width: 100%; width: auto; opacity: 0.92; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s; }
.agency-item:hover img { opacity: 1; filter: none; }

/* gallery moving rows */
.gal-item { flex: 0 0 auto; width: 280px; height: 184px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: #dfe3ec; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.02); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.gal-item:hover img { filter: none; transform: scale(1.04); }

/* knowledge band */
.kb-band { background: var(--navy); color: #fff; }
.kb-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.kb-band .eyebrow { color: var(--gold-soft); }
.kb-text { max-width: 640px; }
.kb-text h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.kb-text p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.82); }
.kb-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.kb-band .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery-grid { margin-top: 44px; column-count: 4; column-gap: 14px; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: #dfe3ec; }
.gallery-grid img { width: 100%; display: block; filter: grayscale(0.65) contrast(1.02); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.gallery-grid .g-item:hover img { filter: none; transform: scale(1.03); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.8fr; gap: 52px; align-items: start; }
.contact-form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 19px 16px 9px; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.field textarea { padding-top: 24px; resize: vertical; }
.field label { position: absolute; inset-inline-start: 16px; top: 16px; color: var(--muted); font-size: 16px; pointer-events: none; transition: transform 0.2s var(--ease), font-size 0.2s, color 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(16, 42, 86, 0.08); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-12px); font-size: 12px; color: var(--navy); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { margin: 4px 0 0; font-size: 14.5px; min-height: 1em; }
.form-note.ok { color: #1c7a45; } .form-note.err { color: var(--accent); }
.g-recaptcha { transform-origin: inset-inline-start top; }
.contact-quick { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-quick-label { font-size: 13.5px; color: var(--muted); }
.quick-icons { display: flex; gap: 16px; margin-top: 16px; }
.quick-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line); color: var(--navy); cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s; }
.quick-icon svg { width: 21px; height: 21px; stroke-width: 1.5; }
.quick-icon:hover { transform: translateY(-3px); background: var(--navy); color: #fff; border-color: var(--navy); }

.offices { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px; }
.office { padding: 16px 0; border-top: 1px dashed var(--line); }
.office-main { border-top: 0; padding-top: 0; }
.office-label { margin: 0 0 4px; font-weight: 700; color: var(--navy); font-size: 14.5px; }
.office-main .office-label { color: var(--gold); }
.office-name { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.office-line { margin: 0 0 4px; font-size: 14.5px; } .office-line a { color: var(--navy); font-weight: 600; }
.office-line a:hover { color: var(--gold); }
.office-addr { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.74); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 40px; }
.footer-logo { width: 118px; margin-bottom: 18px; }
.footer-tagline { margin: 0 0 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.7); max-width: 36ch; }
.footer-credit { margin: 0; font-size: 13px; color: var(--gold-soft); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14.5px; color: rgba(255, 255, 255, 0.78); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-offices p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.66); }
.footer-offices strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }

/* ---------- Floating menu (anchored to bottom) ---------- */
.fab { position: fixed; z-index: 60; bottom: 22px; right: 22px; left: auto; width: 64px; height: 64px; }
.fab-toggle { position: absolute; bottom: 0; right: 0; left: auto; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; padding: 3px; overflow: hidden; box-shadow: 0 16px 36px -12px rgba(16, 42, 86, 0.55); animation: fabPulse 2.8s var(--ease) infinite; transition: transform 0.3s var(--ease); }
.fab-toggle img { width: 100%; height: 100%; object-fit: contain; }
.fab-toggle:hover { transform: scale(1.06); }
.fab.open .fab-toggle { animation: none; }
@keyframes fabPulse { 0%, 100% { box-shadow: 0 16px 36px -12px rgba(16, 42, 86, 0.55), 0 0 0 0 rgba(184, 151, 63, 0.5); } 50% { box-shadow: 0 16px 36px -12px rgba(16, 42, 86, 0.55), 0 0 0 12px rgba(184, 151, 63, 0); } }
.fab-menu { position: absolute; bottom: 76px; right: 6px; left: auto; display: flex; flex-direction: column; gap: 10px; align-items: center; opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.fab.open .fab-menu { opacity: 1; transform: none; pointer-events: auto; }
.fab-link { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), background 0.2s; }
.fab-link:hover { background: var(--gold); transform: scale(1.08); }
.fab-link svg { width: 19px; height: 19px; stroke-width: 1.5; }
.fab-link .fab-tip { position: absolute; right: 58px; left: auto; white-space: nowrap; background: var(--navy-deep); color: #fff; font-size: 12.5px; padding: 5px 10px; border-radius: 6px; opacity: 0; transform: translateX(6px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.fab-link:hover .fab-tip { opacity: 1; transform: none; }
/* On touch devices there is no hover — show the labels next to the icons always */
@media (hover: none) {
  .fab-link .fab-tip { opacity: 1; transform: none; }
}

/* ---------- FAQ / details page ---------- */
.details-main { padding-bottom: 30px; }
.details-hero { background: var(--navy); color: #fff; padding: 130px 0 56px; }
.details-hero .section-title { color: #fff; margin-top: 8px; }
.details-hero .lead { color: rgba(255, 255, 255, 0.82); }
.details-hero .eyebrow { color: var(--gold-soft); }
.back-link { color: var(--gold-soft); font-weight: 600; font-size: 14.5px; display: inline-block; margin-bottom: 14px; }
.back-link:hover { color: #fff; }
.details-list { margin: 46px 0; display: flex; flex-direction: column; gap: 24px; }
.detail-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 230px 1fr; }
.detail-media { position: relative; background: var(--navy); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.detail-num { position: absolute; top: 12px; inset-inline-start: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.detail-body { padding: 30px 32px; }
.detail-body h2 { font-size: 25px; margin-bottom: 12px; }
.detail-body h3 { font-size: 16px; font-family: var(--sans); color: var(--gold); margin: 18px 0 8px; letter-spacing: 0.02em; }
.detail-body p { margin: 0 0 10px; }
.detail-body ul, .detail-body ol { margin: 0 0 10px; padding-inline-start: 22px; }
.detail-body li { margin-bottom: 6px; }
.detail-body strong { color: var(--navy); }
.details-cta { padding: 12px 0 20px; }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .fab-toggle { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-rabbi { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .agency-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar { padding: 9px 15px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .topbar-actions { gap: 0; }
  .topbar-actions .btn { display: none; }
  .lang { gap: 7px; }
  .lang-flag { width: 28px; height: 19px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .stat + .stat::before { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .vrow { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 2; }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-card { grid-template-columns: 1fr; }
  .detail-media { height: 170px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .fab { bottom: 16px; right: 16px; left: auto; }
}
