/* =========================================================
   Gal Goren Rubin — personal site
   Aesthetic: quiet & elegant
   Ivory ground · charcoal ink · deep muted-green accent
   Bilingual: Hebrew (RTL, default) / English (LTR)
   ========================================================= */

:root {
  --bg:        #f5f2ea;   /* warm ivory */
  --bg-alt:    #efeadd;   /* alternating section */
  --card:      #fbf9f3;   /* card / surface */
  --ink:       #2a2823;   /* charcoal, warm */
  --muted:     #6f6a5d;   /* secondary text */
  --accent:    #324b3a;   /* deep forest green */
  --accent-2:  #436a50;   /* lighter green for hovers */
  --line:      #ddd6c6;   /* hairline */
  --line-soft: #e8e2d4;

  --serif-he: "Frank Ruhl Libre", Georgia, serif;
  --serif-en: "Cormorant Garamond", Georgia, serif;
  --sans:     "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- language visibility ---------- */
[data-lang="he"] .en { display: none; }
[data-lang="en"] .he { display: none; }
/* English headings get the Latin serif */
[data-lang="en"] .hero__title,
[data-lang="en"] .section__title { font-family: var(--serif-en); }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }

.photo-divider { display: block; width: 100%; height: clamp(200px, 30vw, 340px); object-fit: cover; }

.section__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); text-align: center; }
.section__kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--serif-he);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.nav__brand {
  font-family: var(--serif-he);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
[data-lang="en"] .nav__brand { font-family: var(--serif-en); font-size: 1.35rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav__links a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--muted);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.nav__tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover { background: var(--card); border-color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}
.nav__burger span {
  display: block; height: 1.8px; width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 12vw, 8.5rem);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(42, 40, 35, 0.35);
}
.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.6rem;
}
.hero__title {
  font-family: var(--serif-he);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.hero__lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.hero__tag {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 2.2rem;
  letter-spacing: 0.01em;
}

/* ---------- buttons ---------- */
.hero__actions, .contact__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); background: var(--card); }

/* ---------- prose ---------- */
.prose { max-width: 85ch; }
.prose p { margin: 0 0 1.3rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

.prose p,
.hero__lede,
.card p,
.list li,
.contact__lede {
  text-align: justify;
  hyphens: auto;
}

/* ---------- expertise grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); }
.grid--expertise {
  margin-top: clamp(2rem, 5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(42, 40, 35, 0.4);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.card h3 {
  font-family: var(--serif-he);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  color: var(--accent);
}
[data-lang="en"] .card h3 { font-family: var(--serif-en); font-size: 1.4rem; }
.card p { margin: 0; font-size: 0.99rem; color: var(--muted); line-height: 1.65; }

/* ---------- services ---------- */
.service {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service__label {
  font-family: var(--serif-he);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  color: var(--accent);
  align-self: start;
  position: sticky;
  top: 88px;
  height: fit-content;
}
[data-lang="en"] .service__label { font-family: var(--serif-en); }

.service__toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.service__toggle:hover { color: var(--accent-2); text-decoration: underline; }
.service__toggle-label--less { display: none; }
.service__toggle.is-open .service__toggle-label--more { display: none; }
.service__toggle.is-open .service__toggle-label--less { display: inline; }

/* ---------- background / education lists ---------- */
.grid--two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(2rem, 5vw, 3.5rem); }
.col__title {
  font-family: var(--serif-he);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  color: var(--ink);
}
[data-lang="en"] .col__title { font-family: var(--serif-en); font-size: 1.6rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  position: relative;
  padding-inline-start: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ink);
  line-height: 1.55;
}
.list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- contact ---------- */
.section--contact {
  background:
    radial-gradient(110% 120% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    url("images/therapy-room.jpg");
  background-size: auto, cover;
  background-position: 0 0, center;
  background-repeat: no-repeat, no-repeat;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact {
  max-width: 460px;
  margin-inline: auto;
  background: color-mix(in srgb, var(--card) 93%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 30px 60px -35px rgba(42, 40, 35, 0.45);
}
.contact .section__title { margin-bottom: 1rem; }
.contact__lede { font-size: 1.15rem; color: var(--ink); margin: 0 0 0.75rem; }
.contact__tag { font-size: 0.95rem; color: var(--muted); margin: 0 0 2rem; }
.contact__actions { justify-content: center; }

/* ---------- footer ---------- */
.footer {
  background: var(--accent);
  color: color-mix(in srgb, #fff 88%, var(--accent));
  padding-block: 2.25rem;
}
.footer__inner { text-align: center; }
.footer__name { font-size: 1rem; margin: 0 0 0.4rem; color: #fff; }
.footer__meta { font-size: 0.85rem; margin: 0; opacity: 0.8; }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1rem;
    box-shadow: 0 18px 30px -22px rgba(42, 40, 35, 0.45);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding-block: 0.7rem; border-bottom: 1px solid var(--line-soft); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }

  .service { grid-template-columns: 1fr; gap: 0.75rem; }
  .service__label { position: static; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 220px; margin-inline: auto; }
  .hero__title { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
