/* Prof. Barak Haviv — home page, design pass 1.
   Two inks only, straight from the logo: indigo #0102AD and teal #018CA1, on white.
   Secondary text and hairlines are indigo at reduced alpha, never a third hue. */

@font-face { font-family: "FUP Erez"; src: url(fonts/fup-erez-light.woff2) format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+2018-201F; }
@font-face { font-family: "FUP Erez"; src: url(fonts/fup-erez-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+2018-201F; }
@font-face { font-family: "FUP Erez"; src: url(fonts/fup-erez-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+2018-201F; }
@font-face { font-family: "FUP Erez"; src: url(fonts/fup-erez-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+2018-201F; }
@font-face { font-family: "FUP Erez"; src: url(fonts/fup-erez-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+2018-201F; }
@font-face { font-family: "FUP Erez"; src: url(fonts/fup-erez-extrabold.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F, U+2018-201F; }

:root {
  --indigo: #0102AD;
  --teal: #018CA1;
  --white: #FFFFFF;
  --ink-2: var(--indigo);           /* secondary text: same ink, hierarchy by size and weight */
  --hair: var(--indigo);            /* rules: solid ink, 1px */
  --on-ink-2: var(--white);
  --display: "FUP Erez", "Assistant", "Arial Hebrew", sans-serif;
  --body: "FUP Erez", "Assistant", "Arial Hebrew", sans-serif;   /* one face for the whole site; Assistant only fills Latin letters and digits */
  --gutter: clamp(20px, 5.5vw, 80px);
  --sec: clamp(72px, 9vw, 128px);
  color-scheme: light;
  accent-color: var(--teal);
  scrollbar-color: var(--indigo) var(--white);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--indigo); font: 400 18px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--teal); color: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
mark { background: #FFF08A; color: #3d3300; font: 700 .8em/1.4 var(--body); padding: 1px 6px; border-radius: 4px; }
.skip { position: absolute; top: -80px; right: 16px; z-index: 20; padding: 10px 18px; border-radius: 999px; background: var(--indigo); color: var(--white); }
.skip:focus { top: 12px; }

/* buttons: pills, the label set in Erez bold so white on teal reads as large text */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent; font: 700 19px/1 var(--display); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 20px; }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--white); color: var(--teal); border-color: var(--teal); }
.btn--ink { background: var(--indigo); color: var(--white); }
.btn--ink:hover { background: var(--white); color: var(--indigo); border-color: var(--indigo); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: var(--white); color: var(--indigo); border-color: var(--white); }

/* header: a white strip over both fields */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; height: 88px; padding: 0 var(--gutter); background: var(--white); }
.top__logo img { height: 56px; width: auto; }
.menu { margin-inline-start: auto; }
.menu__t, .menu__btn { display: none; }
.menu nav { display: flex; gap: 28px; }
.menu nav a { font: 600 18px/1 var(--display); text-decoration: none; padding: 8px 0; }
.menu nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.top__phone { font: 700 18px/1 var(--display); text-decoration: none; direction: ltr; }
.top__cta { min-height: 46px; font-size: 19px; }
/* טיפולים opens its five services */
.sub { position: relative; display: flex; align-items: center; }
.sub > a { display: inline-flex; align-items: center; gap: 6px; }
.sub__caret { width: 12px; height: 12px; transition: transform .2s; }
.sub__panel { position: absolute; top: calc(100% + 14px); right: -20px; z-index: 20; min-width: 250px; display: flex; flex-direction: column; padding: 10px 20px; background: var(--white); border-radius: 22px; box-shadow: inset 0 0 0 2px var(--indigo), 0 18px 40px -16px rgb(1 2 173 / .45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub__panel::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.sub__panel a { padding: 12px 0 !important; border-bottom: 1px solid var(--indigo); }
.sub__panel a:last-child { border-bottom: 0; }
.sub:hover .sub__panel, .sub:focus-within .sub__panel { opacity: 1; visibility: visible; transform: none; }
.sub:hover .sub__caret, .sub:focus-within .sub__caret { transform: rotate(180deg); }
/* floating WhatsApp, in the logo's teal */
.wa { position: fixed; z-index: 30; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--teal); color: var(--white); font: 700 19px/1 var(--display); text-decoration: none; box-shadow: 0 10px 28px -10px rgb(1 2 173 / .6), 0 0 0 3px var(--white); }
.wa svg { width: 26px; height: 26px; }
.wa:hover { background: var(--indigo); }

/* hero: the words on indigo, the man on white, the teal bone across the seam */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(812px, calc(100svh - 88px)); overflow: hidden; }
.hero__ink { background: var(--indigo); color: var(--white); padding: 56px var(--gutter) 56px clamp(32px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.05; letter-spacing: -0.01em; color: var(--white); }
.hero h1 span { display: inline-block; margin-top: .08em; }
.hero__lead { margin-top: 28px; max-width: 30em; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; color: var(--on-ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__tags { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 8px; font: 600 16px/1.5 var(--display); color: var(--on-ink-2); }
.hero__tags li { display: flex; align-items: center; gap: 12px; }
.hero__tags li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--white); flex: none; }
.hero__photo { margin: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hero__photo img { width: min(100%, 720px); max-height: 100%; object-fit: contain; object-position: bottom; }
.hero__bone { position: absolute; z-index: 2; left: 50%; bottom: 12%; width: clamp(180px, 21vw, 300px); height: clamp(60px, 6.6vw, 96px); margin-left: calc(clamp(180px, 21vw, 300px) / -2); border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 12px var(--white); transform: rotate(-32deg); animation: bone 900ms cubic-bezier(.16, 1, .3, 1) 200ms both; }
@keyframes bone { from { transform: translate(-40px, 26px) rotate(-32deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__bone { animation: none; } html { scroll-behavior: auto; } }

/* credentials: one typographic run under the hero, ball-with-ring separators */
.creds { list-style: none; margin: 0; padding: 26px var(--gutter); border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; font: 400 17px/1.6 var(--body); }
.creds li { display: inline-flex; align-items: center; white-space: nowrap; }
.creds li + li::before { content: ""; width: 9px; height: 9px; margin: 0 18px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--white); flex: none; }
.creds b { font: 800 19px/1 var(--display); margin-inline-end: 6px; }

/* sections */
.sec { padding: var(--sec) var(--gutter); }
.sec__head { max-width: 760px; margin-bottom: 56px; }
.sec__head h2, .about h2, .symptoms h2, .method h2, .clinic h2 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.1; }
.sec__head p { margin-top: 18px; font-size: 20px; line-height: 1.65; color: var(--ink-2); }
.sec__head .btn { margin-top: 28px; }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.sec__head--row > div { max-width: 700px; }

/* treatment areas: ruled rows that flip to indigo on hover */
.areas { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--indigo); }
.areas a { display: grid; grid-template-columns: 96px minmax(0, 300px) 1fr 56px; align-items: center; gap: 32px; padding: 30px 24px; border-bottom: 1px solid var(--hair); text-decoration: none; transition: background-color .25s, color .25s; }
.areas__icon { width: 80px; height: 80px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--indigo); display: grid; place-items: center; transition: background-color .25s; }
.areas__icon img { width: 48px; height: 48px; }
.areas b { font: 800 clamp(30px, 3vw, 44px)/1.1 var(--display); }
.areas__text { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; transition: color .25s; }
.areas__go { justify-self: end; width: 52px; height: 52px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.areas__go svg { width: 30px; height: 30px; }
.areas a:hover, .areas a:focus-visible { background: var(--indigo); color: var(--white); border-radius: 0; }
.areas a:hover .areas__text, .areas a:focus-visible .areas__text { color: var(--on-ink-2); }
.areas a:hover .areas__icon, .areas a:focus-visible .areas__icon { background: var(--white); }

/* symptoms: the one teal field. Copy is set large so white on teal stays legible */
.symptoms { background: var(--teal); color: var(--white); padding: var(--sec) var(--gutter); }
.symptoms__in { max-width: 1100px; margin-inline: auto; text-align: center; }
.symptoms p { margin: 18px auto 0; max-width: 34em; font: 600 24px/1.5 var(--display); }
.symptoms ul { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.symptoms a { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 28px; border-radius: 999px; background: var(--white); color: var(--indigo); font: 700 20px/1.2 var(--display); text-decoration: none; transition: background-color .2s, color .2s; }
.symptoms a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.symptoms a:hover { background: var(--indigo); color: var(--white); }
.symptoms :focus-visible { outline-color: var(--white); }

/* the method */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.method__img { margin: 0; border-radius: 24px; overflow: hidden; background: var(--white); aspect-ratio: 4 / 5; }
.method__img img { width: 100%; height: 100%; object-fit: cover; }
.method__text > p { margin-top: 20px; font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.steps { list-style: none; padding: 0; margin: 40px 0 44px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 20px; bottom: 20px; right: 21px; width: 2px; background: var(--teal); }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 10px 0 18px; }
.steps li::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: var(--white); display: grid; place-items: center; font: 800 20px/1 var(--display); box-shadow: 0 0 0 6px var(--white); }
.steps b { display: block; font: 800 24px/1.3 var(--display); }
.steps span { display: block; margin-top: 4px; font-size: 17px; line-height: 1.6; color: var(--ink-2); grid-column: 2; }

/* about: an indigo field, text only */
.about { background: var(--indigo); color: var(--white); padding: var(--sec) var(--gutter); }
.about__in { max-width: 860px; }
.about p { margin-top: 24px; font-size: 21px; line-height: 1.75; color: var(--on-ink-2); }
.about blockquote { margin: 40px 0; padding: 0; font: 700 clamp(24px, 2.4vw, 32px)/1.4 var(--display); }
.about .btn--line:hover { color: var(--indigo); }

/* articles */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article { text-decoration: none; display: flex; flex-direction: column; }
.article img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; background: var(--white); transition: border-radius .35s cubic-bezier(.16, 1, .3, 1); }
.article b { margin-top: 22px; font: 800 24px/1.35 var(--display); text-wrap: balance; }
.article:hover b { text-decoration: underline; text-decoration-thickness: 2px; }

/* patient documents */
.patients { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); align-items: start; border-top: 1px solid var(--hair); }
.docs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--indigo); }
.docs a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--hair); font: 700 21px/1.3 var(--display); text-decoration: none; }
.docs small { flex: none; padding: 4px 12px; border-radius: 999px; border: 1.5px solid currentColor; font: 700 13px/1.2 var(--display); }
.docs a:hover { color: var(--teal); }

/* clinic */
.clinic { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.clinic__in { padding: var(--sec) var(--gutter); }
.clinic dl { margin: 36px 0 0; border-top: 2px solid var(--indigo); }
.clinic dl div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.clinic dt { font: 600 16px/1.6 var(--display); color: var(--ink-2); }
.clinic dd { margin: 0; font: 700 19px/1.6 var(--body); }
.clinic dd a { text-decoration: none; direction: ltr; display: inline-block; }
.clinic__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.clinic .btn--line:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.clinic__map { position: relative; background: var(--indigo); min-height: 420px; display: grid; place-items: center; color: var(--white); font: 700 20px/1 var(--display); }
.clinic__map i { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 8px var(--white); margin-bottom: 70px; }
.clinic__map span { position: absolute; top: calc(50% + 16px); }
.clinic__map mark { position: absolute; top: 24px; right: 24px; }

/* footer */
.foot { background: var(--indigo); color: var(--white); padding: 80px var(--gutter) 32px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__grid img { height: 64px; width: auto; }
.foot h3 { font-size: 18px; margin-bottom: 14px; }
.foot__grid div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: var(--on-ink-2); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__note { margin-top: 56px; font-size: 15px; color: var(--on-ink-2); }
.foot__bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .2); display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; color: var(--on-ink-2); }
.foot :focus-visible { outline-color: var(--white); }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .menu { position: relative; }
  .menu__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--indigo); border-radius: 999px; font: 700 17px/1 var(--display); cursor: pointer; }
  .menu__t { display: block; position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
  .menu__t:focus-visible + .menu__btn { outline: 3px solid var(--teal); outline-offset: 3px; }
  .menu nav { display: none; }
  .menu__t:checked ~ nav { display: flex; }
  .menu nav { position: absolute; top: calc(100% + 18px); left: 0; min-width: 240px; flex-direction: column; gap: 0; padding: 12px 20px; background: var(--white); border: 2px solid var(--indigo); border-radius: 20px; }
  .menu nav a { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .menu nav a:last-child { border-bottom: 0; }
  .sub { display: block; }
  .sub > a { display: flex; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .sub__caret { display: none; }
  .sub__panel { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 18px 0 0; box-shadow: none; border-radius: 0; }
  .sub__panel::before { display: none; }
  .sub__panel a { font-weight: 500 !important; }
  .menu nav { max-height: calc(100svh - 110px); overflow-y: auto; }
  .top__phone { display: none; }
  .areas a { grid-template-columns: 80px 1fr 52px; }
  .areas__text { grid-column: 2; grid-row: 2; }
  .areas__go { grid-row: 1 / span 2; grid-column: 3; }
  .areas__icon { grid-row: 1 / span 2; }
}
@media (max-width: 860px) {
  .creds { flex-direction: column; align-items: flex-start; gap: 10px; }
  .creds li { white-space: normal; align-items: baseline; display: block; padding-inline-start: 22px; position: relative; }
  .creds li + li::before, .creds li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 9px; height: 9px; margin: 0; border-radius: 50%; background: var(--teal); }
  .top { height: 72px; gap: 12px; }
  .top__logo img { height: 44px; }
  .top__cta { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__photo { order: -1; height: 380px; background: var(--white); }
  .hero__photo img { height: 100%; width: auto; }
  .hero__bone { bottom: auto; top: 330px; left: auto; right: 24px; margin: 0; width: 150px; height: 52px; box-shadow: 0 0 0 8px var(--white); }
  .hero__ink { padding: 56px var(--gutter) 48px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .method, .patients, .clinic { grid-template-columns: 1fr; }
  .method__img { aspect-ratio: 16 / 11; border-radius: 24px; }
  .articles { grid-template-columns: 1fr; }
  .sec__head--row { flex-direction: column; align-items: flex-start; }
  .areas a { grid-template-columns: 56px 1fr 44px; gap: 16px; padding: 22px 0; }
  .areas__icon { width: 56px; height: 56px; }
  .areas__icon img { width: 36px; height: 36px; }
  .areas__go { width: 44px; height: 44px; }
  .symptoms a { min-height: 52px; padding: 0 20px; font-size: 18px; }
  .symptoms p { font-size: 22px; font-weight: 800; }
  .clinic dl div { grid-template-columns: 1fr; gap: 2px; }
  .clinic__map { min-height: 280px; order: -1; }
  .clinic__in { padding-top: 48px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid div:first-child { grid-column: 1 / -1; }
}
