/* Shlomo Peretz site: fonts, design tokens (:root), reset, type, section grounds, buttons and the top nav.
   Every page loads this first. Colours, type sizes and spacing are changed here, in :root. */

/* IBM Plex Sans Hebrew (SIL Open Font License), self-hosted: Hebrew + basic Latin (digits) only */
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/plex-hebrew-300-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: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/plex-hebrew-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plex-hebrew-400-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: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plex-hebrew-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/plex-hebrew-500-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: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/plex-hebrew-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/plex-hebrew-600-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: 'IBM Plex Sans Hebrew'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/plex-hebrew-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --white: #FFFFFF;
  --cream: #F4EFE6;
  --sand: #EADFCB;
  --ink: #141414;
  --text: #2B2925;
  --muted: #5E5A52;
  --gold: #C9A24D;
  --deep-hover: #5E4511;        /* buttons: deep gold, darker on hover */
  --deep: #765817;              /* gold for text on light grounds (AA on cream and sand) */
  --line: rgba(20, 20, 20, .14);

  --font: "IBM Plex Sans Hebrew", "Arial Hebrew", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);   /* entrances: fast start, soft landing */
  --press: cubic-bezier(.23, 1, .32, 1);

  --nav: 80px;
  --gut: 80px;
  --safe: max(var(--gut), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --pad: 112px;
  --bar: 0px;

  --t-h2: clamp(32px, 3.8vw, 60px);
  --t-lead: clamp(18px, 1.4vw, 22px);
  --t-body: 17px;
  interpolate-size: allow-keywords;
}
@media (max-width: 1023px) { :root { --gut: 40px; --pad: 88px; } }
@media (max-width: 639px)  { :root { --nav: 66px; --gut: 20px; --pad: 64px; --bar: calc(76px + env(safe-area-inset-bottom, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--cream); }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  zoom: var(--a11y-zoom, 1);
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, summary { touch-action: manipulation; }
.btn, button, summary { -webkit-user-select: none; user-select: none; }

.wrap { width: min(100% - 2 * var(--safe), 1280px); margin-inline: auto; }
.sprite { position: absolute; }
.show-sm { display: none; }

/* ---------- type: heavy first half, light gold second half ---------- */
h1, h2 { color: var(--ink); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
.light { font-weight: 300; color: var(--deep); }
/* two-part headings: the light half always starts its own line, so a phrase never breaks in the middle */
h2 .light, .footer__big .light { display: block; }
h3 { font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.sub { margin-top: 18px; max-width: 46ch; font-size: var(--t-lead); line-height: 1.6; }
.kicker { font-size: 15px; font-weight: 500; color: var(--deep); }

main > section { padding: var(--pad) 0; }
/* each section paints its own ground, easing in from the one above over its first 180px:
   soft transitions, and correct from the very first paint (no colour change on reload) */
main > section, .footer { --from: var(--bg); background: linear-gradient(to bottom, var(--from) 0, var(--bg) 180px) var(--bg); }
.hero { --bg: var(--cream); --from: var(--cream); }
.how { --bg: var(--white); --from: var(--cream); }
.services { --bg: var(--sand); --from: var(--white); }
.units { --bg: var(--white); --from: var(--sand); }
.works { --bg: var(--cream); --from: var(--white); }
.faq { --bg: var(--white); --from: var(--cream); }
.footer { --bg: var(--white); --from: var(--white); }

/* ---------- buttons: deep gold with sand ("hollow") text and icon circle, AA 5:1 ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; border-radius: 4px; transition: background-color .2s var(--ease), transform .16s var(--press), box-shadow .2s var(--ease), color .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--cta { background: var(--deep); color: var(--sand); min-height: 80px; padding: 12px 14px 12px 28px; box-shadow: 0 14px 30px -16px rgba(140, 100, 20, .65); }
.btn__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; flex: none; }
.btn__icon .wa { width: 28px; height: 28px; color: var(--deep); }
.btn__txt { display: flex; flex-direction: column; line-height: 1.25; }
.btn__txt strong { font-size: 21px; font-weight: 600; white-space: nowrap; }
.btn__txt small { font-size: 14.5px; margin-top: 2px; }
.btn__arrow { width: 24px; height: 24px; margin-inline-start: 18px; transition: transform .3s var(--ease); }
.btn--nav { white-space: nowrap; height: 48px; padding: 0 20px; background: var(--deep); color: var(--sand); font-size: 16px; font-weight: 600; }
.btn--nav .wa { width: 26px; height: 26px; }
.btn--line { min-height: 54px; padding: 0 22px; border: 1px solid var(--deep); color: var(--deep); font-weight: 500; }
.btn--line .wa { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .btn--cta:hover { background: var(--deep-hover); transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(140, 100, 20, .75); }
  .btn--cta:hover .btn__arrow { transform: translateX(-5px); }
  .btn--nav:hover { background: var(--deep-hover); }
  .btn--line:hover { background: var(--deep); color: var(--sand); }
}

:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: -9999px; }
.skip-link:focus { inset-inline-start: var(--safe); top: 12px; background: var(--ink); color: var(--white); padding: 8px 16px; z-index: 40; }

/* ---------- nav: glass over the easing page ground ---------- */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav); z-index: 20; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 40px; }
.nav__logo { display: block; padding: 6px 0; }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: clamp(22px, 2.4vw, 36px); margin-inline-start: auto; }
.nav__links a { font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink); position: relative; padding: 10px 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; inset: auto 0 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); } }
@media (max-width: 1099px) { .nav__links { display: none; } .btn--nav { margin-inline-start: auto; } }
@media (max-width: 639px) { .nav__logo img { height: 34px; } .btn--nav { height: 44px; padding: 0 14px; font-size: 15px; } }
/* phones: shorter labels and buttons */
@media (max-width: 639px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .btn--cta .btn__arrow { display: none; }
  .btn__txt strong { font-size: 19px; }
}
