/* Self-hosted fonts (SIL Open Font License), Hebrew and Latin subsets. */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/rubik-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/frank-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/frank-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Palette: change these few values to re-colour the whole site. */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --tint: #e3ecf5;
  --sky: #eef4fa;
  --ink: #222222;
  --muted: #5f5f5f;
  --primary: #2b2b2b;
  --primary-dark: #161616;
  --accent: #3e6b94;
  --line: #e5e2dd;
  --on-primary: #ffffff;
  --focus: #3e6b94;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Rubik", "Arial Hebrew", Arial, sans-serif;
  --radius: 18px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.75; overflow-x: hidden; }
@media (max-width: 719px) { body { padding-bottom: 76px; } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.8rem); line-height: 1.1; letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.kicker { font-size: .95rem; font-weight: 500; color: var(--accent); letter-spacing: .02em; margin-bottom: .6em; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 248, .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(250, 250, 248, .8); backdrop-filter: blur(12px); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 34px; flex: none; }
@media (min-width: 1060px) and (max-width: 1279px) { .nav { gap: 22px; } }
@media (min-width: 1160px) { .nav a, .header-phone { white-space: nowrap; } }
.brand small { font-size: .82rem; line-height: 1.2; color: var(--muted); padding-inline-start: 12px; border-inline-start: 1px solid var(--line); white-space: nowrap; }
/* the title gives way to the full nav; it also appears in the hero */
@media (max-width: 380px), (min-width: 1060px) and (max-width: 1439px) { .brand small { display: none; } }
.nav { display: none; gap: 30px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .98rem; padding: 6px 0; background: linear-gradient(var(--accent), var(--accent)) no-repeat 100% 100% / 0 1.5px; transition: color .2s, background-size .3s var(--ease); }
.nav a:hover { color: var(--ink); background-size: 100% 1.5px; }
@media (min-width: 1060px) { .nav { display: flex; } }
.header-actions { display: none; align-items: center; gap: 18px; }
@media (min-width: 720px) { .header-actions { display: flex; } }
.header-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 26px;
  border-radius: 999px; font: 500 1.04rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(30, 40, 50, .35); }
.btn:active { transform: none; box-shadow: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .98rem; }
.btn-primary, .btn-wa { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover, .btn-wa:hover { background: var(--primary-dark); color: var(--on-primary); }
.btn-ghost, .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--bg); color: var(--primary-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { font-size: 1rem; font-weight: 500; color: var(--accent); margin-bottom: 18px; }
.hero h1 { max-width: 14ch; margin-bottom: .3em; }
.hero-places { font-size: 1.1rem; color: var(--primary); font-weight: 500; margin-bottom: 22px; }
.lead { font-size: clamp(1.15rem, 1rem + .4vw, 1.3rem); line-height: 1.65; color: var(--muted); max-width: 38ch; margin-bottom: 30px; }
.hero-note { margin: 18px 0 0; font-size: .98rem; color: var(--muted); }
.hero-photo { position: relative; aspect-ratio: 4 / 4.3; display: flex; align-items: flex-end; justify-content: center; }
.hero-photo picture { position: relative; width: 78%; }
.hero-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
.hero-photo img { width: 100%; height: auto; }
@media (max-width: 480px) { .hero .btn-row .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .hero { padding: 24px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  /* Fit the whole portrait on the first screen, even on short laptop windows. */
  .hero-photo { aspect-ratio: auto; height: clamp(360px, calc(100svh - 130px), 560px); }
  .hero-photo picture { width: auto; height: 100%; display: flex; align-items: flex-end; }
  .hero-photo img { width: auto; height: 100%; }
  .hero h1 { font-size: clamp(2.3rem, 1.2rem + 2.4vw, 3.4rem); }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: 80px 0; }
@media (min-width: 720px) { .section { padding: 112px 0; } }
.section-tint { background: var(--sky); border-block: 1px solid #dfe8f1; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.split-head .muted { max-width: 36ch; }

/* Fit */
.lines { list-style: none; margin: 0; padding: 0; counter-reset: line; border-top: 1px solid var(--line); }
.lines li { counter-increment: line; display: flex; gap: 22px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); line-height: 1.4; }
.lines li::before { content: "0" counter(line); font: 500 .95rem var(--sans); color: var(--accent); flex: none; }

/* About */
.about { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 420px 1fr; gap: 88px; } }
.about-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-portrait { overflow: visible; }
.about-portrait img { aspect-ratio: 700 / 809; object-fit: contain; border-radius: 0; -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
.about-portrait:hover img { transform: none; }
.letter { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.6; max-width: 34ch; }
.cred { color: var(--muted); font-size: 1rem; }
.goals-title { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); margin: 40px 0 8px; }
.goals { list-style: none; margin: 0; padding: 0; }
.goals li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.goals h4 { margin-bottom: .2em; }
.goals p { margin: 0; color: var(--muted); }

/* Approach */
.methods { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .methods { grid-template-columns: repeat(3, 1fr); } }
.methods div { background: var(--surface); padding: 36px 32px; }
.methods dt { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; margin-bottom: 12px; }
.methods dt small { display: block; font: 500 .85rem var(--sans); letter-spacing: .08em; color: var(--accent); margin-top: 8px; }
.methods dd { margin: 0; color: var(--muted); }

/* Where */
.where { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .where { grid-template-columns: 1fr 560px; gap: 80px; } }
.places { list-style: none; margin: 28px 0 24px; padding: 0; border-top: 1px solid var(--line); }
.places li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .7vw, 1.9rem); }
.zoom-line { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 0; }
.zoom-line svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.where-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Start */
.steps { list-style: none; counter-reset: step; margin: 0 0 40px; padding: 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 24px; }
.steps li::before { content: counter(step); display: block; font: 500 2.6rem/1 var(--serif); color: var(--accent); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.info { background: var(--sky); border: 1px solid #d6e3ef; border-radius: var(--radius); padding: 24px 28px; max-width: 760px; }
.info p { font-size: 1rem; }
.info p:last-child { margin-bottom: 0; }

/* Sea */
.sea { position: relative; margin: 0; }
.sea img { width: 100%; height: clamp(240px, 30vw, 420px); object-fit: cover; object-position: 50% 14%; }
.sea::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20, 30, 26, .38), rgba(20, 30, 26, 0) 60%); pointer-events: none; }
.sea-quote { position: absolute; z-index: 1; inset-inline: var(--gutter); top: 12%; margin: 0; text-align: center; }
.sea-quote p { margin: 0 auto; max-width: 26ch; font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1.3; color: #fff; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; min-height: 44px; font-size: 1.12rem; font-weight: 500; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.7rem/1 var(--sans); color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 62ch; }

/* Contact */
.contact { background: var(--primary); color: #fff; padding: 88px 0; }
@media (min-width: 720px) { .contact { padding: 112px 0; } }
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr auto; align-items: end; gap: 80px; } }
.contact h2 { color: #fff; max-width: 18ch; }
.contact p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 42ch; }
.contact .contact-small { font-size: 1rem; margin: 0; }
.contact a:not(.btn) { color: #fff; }
.phone-big { display: inline-block; font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: 1; text-decoration: none; margin-bottom: 22px; }
.phone-big:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .78); padding: 64px 0 32px; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; transition: color .2s, opacity .2s; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Crisis: calm, clear, each line a full tap target */
.crisis { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; margin-bottom: 56px; }
.crisis-head { margin-bottom: 20px; }
.crisis h2 { font-family: var(--sans); font-weight: 500; font-size: 1.3rem; color: #fff; margin-bottom: .3em; display: flex; align-items: center; gap: 10px; }
.crisis h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #e8a07a; flex: none; }
.crisis-head p { margin: 0; }
.crisis-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.crisis-grid a { display: flex; flex-direction: column; gap: 4px; min-height: 84px; justify-content: center; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); transition: background-color .2s, transform .2s var(--ease); }
.crisis-grid a:hover { background: rgba(255, 255, 255, .13); text-decoration: none; transform: translateY(-2px); }
.c-label { font-size: .92rem; color: rgba(255, 255, 255, .78); line-height: 1.35; }
.c-num { font-size: 1.35rem; font-weight: 600; color: #fff; line-height: 1.2; white-space: nowrap; }
.c-num.ltr { display: block; text-align: right; }

/* Columns */
.footer-main { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 720px) { .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 6px; }
.footer-brand span { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: #fff; }
.footer-brand small { font-family: var(--sans); font-size: .85rem; color: rgba(255, 255, 255, .7); }
.footer-about p { max-width: 30ch; margin: 0; font-size: .98rem; }
.footer-h { font-family: var(--sans); font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 40px; color: rgba(255, 255, 255, .9); }
.footer-col li a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-bottom p { margin: 0; }
.credits { max-width: 80ch; }
.credits a { color: rgba(255, 255, 255, .75); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }

/* Mobile call bar */
.callbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(250, 250, 248, .97); border-top: 1px solid var(--line); }
.callbar .btn { min-height: 48px; padding-inline: 10px; }
@media (min-width: 720px) { .callbar { display: none; } }

/* ---------- Legal and utility pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: 1rem; }
.crumbs { font-size: .98rem; margin-bottom: 18px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line); }
.notfound { padding: 110px 0; text-align: center; }
.notfound .btn-row { justify-content: center; }

/* ---------- Motion: one short entrance, off under reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-copy > :nth-child(6) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero + .section { padding-top: 40px; }
@media (min-width: 720px) { .hero + .section { padding-top: 56px; } }

/* ---------- Life: hover details ---------- */
.lines li { transition: padding .3s var(--ease), color .2s; }
.lines li::before { transition: color .2s; }
.lines li:hover { padding-inline-start: 10px; }
.lines li:hover::before { color: var(--ink); }
.methods div { position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.methods div::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.methods div:hover { z-index: 1; transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(30, 40, 50, .35); }
.methods div:hover::before { transform: scaleX(1); }
.about-media, .where-media { display: block; overflow: hidden; border-radius: var(--radius); }
.about-media img, .where-media img { transition: transform 1.2s var(--ease); }
.about-media:hover img, .where-media:hover img { transform: scale(1.04); }
.places li { transition: padding .3s var(--ease); }
.places li:hover { padding-inline-start: 10px; }
.faq summary { transition: color .2s; }

/* ---------- Life: sections drift in as they scroll into view ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head, .split-head, .lines li, .about-text, .about-media, .methods div, .where > *, .steps li, .info, .faq details, .contact-grid > *, .sea-quote {
      animation: drift linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
  }
  .faq details[open] p { animation: fadein .25s ease-out; }
}
@keyframes drift { from { opacity: 0; transform: translateY(22px); } }
@keyframes fadein { from { opacity: 0; } }
