/*
Theme Name: Eden Aloni
Theme URI: https://edenaloni.co.il
Author: Eden Aloni
Description: Custom theme for עדן אלוני — פסיכולוגית התפתחותית מתמחה. Hebrew RTL, minimal, clean.
Version: 0.6.4
Requires at least: 6.0
Requires PHP: 8.1
License: GPL v2 or later
Text Domain: edenaloni
*/

:root {
  --color-ink: #1a1a1f;
  --color-muted: #6b6b74;
  --color-subtle: #9a9aa3;
  --color-cream: #f7f1e6;
  --color-pink: #e78aaf;
  --color-pink-soft: #fce8ef;
  --color-pink-tint: #fdf4f7;
  --color-line: #ececec;
  --font-sans: "Heebo", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Smooth in-page jumps (e.g. Hero CTA → #contact). The reduced-motion media
   query later in the file flips this back to auto for users who prefer it. */
html { scroll-behavior: smooth; }

/* Anchored sections must clear the sticky header (~5rem) when jumped to. */
:where(section[id], div[id^="contact"], h1[id], h2[id], h3[id]) {
  scroll-margin-top: 5.5rem;
}

/* ---------- Accessibility primitives ---------- */

/* Skip-to-content link — invisible until keyboard-focused. Lets screen-reader
   and keyboard-only users jump past the header straight to the page body. */
.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -100px;
  z-index: 1000;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; outline: none; }

/* Visually-hidden helper (use for aria-only labels). */
.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;
}

/* Visible focus ring on every interactive element. */
:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 4px;
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__photo-card { transition: none !important; }
  .hero__photo-card.is-leaving { transform: none !important; opacity: 0.6 !important; }
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: #fff;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; image-orientation: none; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { letter-spacing: -0.01em; color: var(--color-ink); margin: 0; }

p { margin: 0; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--color-line);
  min-height: 4rem;
  transition: box-shadow 0.3s ease;
  /* Force own GPU layer so iOS Chrome/Safari don't drop frames where the header lives. */
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.site-header .container { position: relative; }

/* Compensate for fixed header height so content doesn't slip under it. */
body { padding-top: 4rem; }
@media (min-width: 640px) { body { padding-top: 5rem; } }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.15); }

.site-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.625rem 0;
}
@media (min-width: 640px) {
  .site-header__inner {
    height: 5rem;
    min-height: 0;
    padding: 0;
  }
}

.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand__mark { height: 2.75rem; width: auto; flex-shrink: 0; }
@media (min-width: 640px) { .brand__mark { height: 2.5rem; } }
@media (min-width: 768px) { .brand__mark { height: 2.75rem; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name { font-weight: 700; font-size: 1rem; white-space: nowrap; }
@media (min-width: 640px) { .brand__name { font-size: 0.9375rem; } }
@media (min-width: 768px) { .brand__name { font-size: 1rem; } }
.brand__title { color: var(--color-muted); font-size: 0.8125rem; white-space: nowrap; }
@media (min-width: 640px) { .brand__title { font-size: 0.71875rem; } }
@media (min-width: 768px) { .brand__title { font-size: 0.8125rem; } }

/* Hamburger button — visible only on mobile; flips to ✕ when open. */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.menu-toggle:hover { background: rgba(0,0,0,0.04); }
.menu-toggle__bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
  margin: 0 auto;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}
@media (max-width: 767px) {
  .menu-toggle { margin-inline-end: 1.25rem; }   /* 20px from the visual left edge in RTL */
  .brand       { margin-inline-start: 1.25rem; } /* matching 20px from the visual right edge */
}

/* Primary navigation container — inline on desktop, drawer on mobile. */
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }

/* Admin shortcut — only shown to logged-in WP admins, sits beside the CTA
   as a subdued secondary action so it doesn't outshine the main button. */
.primary-nav__admin {
  font-size: 0.9375rem;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.primary-nav__admin:hover { color: var(--color-pink); }

/* Nav inline on desktop, becomes a vertical list inside the mobile drawer. */
.nav { display: flex; align-items: center; font-size: 0.9375rem; color: var(--color-muted); }
.nav ul.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2.5rem; }
.nav li { margin: 0; }
.nav a { color: var(--color-muted); transition: color 0.2s ease; text-decoration: none; }
.nav a:hover { color: var(--color-pink); }

/* Mobile drawer overrides — must come AFTER the .nav base rules so they win the cascade. */
@media (max-width: 767px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.18);
    padding: 1rem 0 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav .nav { width: 100%; padding: 0; border: 0; margin: 0; }
  .primary-nav ul.nav__list {
    width: 100%;
    padding-inline: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav .nav__list li { width: 100%; }
  .primary-nav .nav__list a {
    display: block;
    padding: 0.875rem 0;
    color: var(--color-ink);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-line);
  }
  .primary-nav .nav__list li:last-child a { border-bottom: 0; }
  .primary-nav__cta {
    margin: 1rem 1.25rem 0;
    text-align: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}
.btn--outline-pink { border: 1px solid var(--color-pink); color: var(--color-ink); background: transparent; }
.btn--outline-pink:hover { background: var(--color-pink); color: var(--color-ink); }
.btn--ink { background: var(--color-ink); color: #fff; }
.btn--ink:hover { filter: brightness(1.25); }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 0.9375rem; }
.btn--lg .btn__arrow { font-size: 1.125rem; line-height: 1; }
.header__actions .btn { padding: 0.625rem 1.5rem; font-size: 0.875rem; }
@media (min-width: 640px) {
  .header__actions .btn { padding: 0.5rem 1rem; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--color-cream); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 26, 31, 0.12) 1px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  padding: 3.5rem 1.25rem;
}
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 6rem 1.5rem;
    align-items: center;
  }
}

.hero__title {
  font-weight: 800;
  font-size: 4rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
@media (min-width: 640px) { .hero__title { font-size: 4.5rem; } }
@media (min-width: 768px) { .hero__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 6rem; } }
@media (min-width: 1280px) { .hero__title { font-size: 6.5rem; } }

/* (.hero__title-line removed — title now wraps naturally based on container width.) */

.hero__highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(transparent 58%, rgba(231, 138, 175, 0.45) 58%, rgba(231, 138, 175, 0.45) 90%, transparent 90%);
}

.hero__sub {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 28rem;
}
@media (min-width: 768px) { .hero__sub { margin-top: 2rem; } }
.hero__sub-bar {
  width: 3px;
  height: 3rem;
  background: var(--color-pink);
  border-radius: 9999px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
@media (min-width: 768px) { .hero__sub-bar { height: 3.5rem; } }
.hero__sub p { color: var(--color-muted); font-size: 0.9375rem; line-height: 1.7; }
@media (min-width: 768px) { .hero__sub p { font-size: 1rem; } }

.hero__cta { margin-top: 2rem; }
@media (min-width: 768px) { .hero__cta { margin-top: 2.5rem; } }

.hero__photo {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}
@media (min-width: 640px) { .hero__photo { max-width: 380px; } }
@media (min-width: 1024px) { .hero__photo { max-width: 440px; } }

.hero__photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero__photo-bg {
  position: absolute;
  inset: 0;
  background: var(--color-pink);
  border-radius: 1rem;
  transform: rotate(5deg) translate(2%, -1%);
}

/* Dot pagination — shown only when ≥2 images */
.hero__photo-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.hero__photo-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: #d4d4d4;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero__photo-dot:hover { background: var(--color-pink-soft); }
.hero__photo-dot:focus-visible { outline: 2px solid var(--color-pink); outline-offset: 2px; }
.hero__photo-dot.is-active {
  background: var(--color-pink);
  transform: scale(1.25);
}

/* Card stack — up to 4 photos, each at a slightly different angle.
   Click on the front card cycles it to the back (see main.js).
   Pure CSS transitions handle the smooth re-stack. */
.hero__photo-stack { position: absolute; inset: 0; }
.hero__photo-card {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.2);
  transform-origin: center;
  transition:
    transform   0.55s cubic-bezier(.4,.0,.2,1),
    box-shadow  0.55s ease,
    opacity     0.4s ease;
  will-change: transform;
}
.hero__photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Stack positions: 0 = front (most prominent), increasing = further back */
.hero__photo-card[data-stack="0"] { transform: rotate(-3deg);                                  z-index: 4; }
.hero__photo-card[data-stack="1"] { transform: rotate(3deg)  translate(-2.5%, 1.5%) scale(0.97); z-index: 3; }
.hero__photo-card[data-stack="2"] { transform: rotate(-1deg) translate(2.5%, -1.5%) scale(0.94); z-index: 2; }
.hero__photo-card[data-stack="3"] { transform: rotate(5deg)  translate(-2%, 2%)     scale(0.91); z-index: 1; }

.hero__photo-stack[data-cycle="true"] .hero__photo-card[data-stack="0"] {
  cursor: pointer;
}
.hero__photo-stack[data-cycle="true"] .hero__photo-card[data-stack="0"]:hover {
  transform: rotate(-2deg) scale(1.015);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.28);
}
/* Mid-cycle: the leaving (front → back) card briefly lifts and rotates further. */
.hero__photo-card.is-leaving {
  transform: rotate(-12deg) translate(-30%, -8%) scale(0.92) !important;
  box-shadow: 0 18px 35px -15px rgba(0, 0, 0, 0.35);
  z-index: 5;
}
.hero__credential {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: -0.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1rem;
  text-align: center;
  z-index: 10;
  width: 10rem;
  transform: rotate(-4deg);
}
@media (min-width: 768px) { .hero__credential { inset-inline-start: -1.5rem; padding: 0.75rem 1.25rem; width: 12rem; } }
@media (min-width: 1024px) { .hero__credential { inset-inline-start: -2.5rem; } }
.hero__credential-name { font-weight: 700; font-size: 0.8125rem; line-height: 1.2; }
.hero__credential-sub { font-size: 0.6875rem; color: var(--color-muted); margin-top: 0.25rem; line-height: 1.2; }

/* ---------- Sections shared ---------- */

.section { border-top: 1px solid var(--color-line); }
.section__inner { padding: 7rem 1.25rem; max-width: 1152px; margin: 0 auto; }
@media (min-width: 768px) { .section__inner { padding: 7rem 1.5rem; } }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-subtle);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- About ---------- */

.about__inner {
  display: grid;
  gap: 4rem;
  max-width: 1024px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}
@media (min-width: 768px) { .about__inner { grid-template-columns: 1fr 2fr; align-items: start; } }
.about__title { font-weight: 600; font-size: 2rem; line-height: 1.2; }
.about__body { display: flex; flex-direction: column; gap: 1.25rem; color: var(--color-muted); font-size: 1.0625rem; line-height: 1.8; }

/* ---------- Services ---------- */

.services { background: var(--color-pink-tint); }
.services__heading { max-width: 42rem; margin-bottom: 5rem; }
.services__title { font-weight: 700; font-size: 2.25rem; line-height: 1.2; }
.services__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem; } }
.service { display: flex; flex-direction: column; gap: 1rem; }
.service__line { width: 2.5rem; height: 1px; background: var(--color-pink); }
.service__title { font-weight: 700; font-size: 1.25rem; line-height: 1.4; }
.service__desc { font-size: 1rem; color: var(--color-muted); line-height: 1.8; }

/* ---------- Contact CTA ---------- */

.contact__inner { max-width: 48rem; margin: 0 auto; padding: 7rem 1.5rem; text-align: center; }
.contact__title { font-weight: 700; font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .contact__title { font-size: 2.75rem; } }
.contact__body { font-size: 1.0625rem; color: var(--color-muted); line-height: 1.6; margin-bottom: 2.5rem; }
.contact__buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .contact__buttons { flex-direction: row; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--color-line); }
.site-footer__sep { margin: 0 0.5rem; opacity: 0.5; }
.site-footer__legal { color: var(--color-subtle); text-decoration: none; }
.site-footer__legal:hover { color: var(--color-pink); }
.site-footer__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--color-subtle);
}
@media (min-width: 768px) { .site-footer__inner { flex-direction: row; } }

/* ---------- Gutenberg blocks rendered via the_content() ----------
   The home page below the hero uses Group/Columns/Heading/Paragraph blocks.
   We style by the custom class names set on each Group block in the editor. */

.home-content { color: var(--color-ink); }
.home-content p { color: var(--color-muted); line-height: 1.8; margin: 0; }

.home-content .is-section {
  border-top: 1px solid var(--color-line);
  padding: 4rem 1.25rem;
  /* Override Gutenberg's default 1.75em block-gap with something tighter */
  --wp--style--block-gap: 1.5rem;
}
@media (min-width: 768px) { .home-content .is-section { padding: 6rem 1.5rem; } }
.home-content .is-section > .wp-block-group__inner-container { max-width: 1152px; margin-inline: auto; }

/* Centered contact-style section: constrain paragraph + buttons width */
.home-content .is-section.is-centered .wp-block-group__inner-container {
  max-width: 48rem;
  text-align: center;
}
.home-content .is-section.is-centered .wp-block-buttons { justify-content: center; }

/* Tighten spacing between heading and the next block */
.home-content .is-section .wp-block-heading + p,
.home-content .is-section .wp-block-heading + .wp-block-paragraph { margin-top: 1.25rem !important; }
.home-content .is-section p + .wp-block-buttons,
.home-content .is-section .wp-block-paragraph + .wp-block-buttons { margin-top: 2rem !important; }

.home-content .is-section.is-tinted { background: var(--color-pink-tint); }

.home-content .is-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-subtle);
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.home-content .is-section h2 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
@media (min-width: 768px) { .home-content .is-section h2 { font-size: 2.25rem; } }

.home-content .is-section h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0.75rem 0 0.5rem;
  position: relative;
  padding-top: 1rem;
}
.home-content .is-section h3::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--color-pink);
}

.home-content .is-section .wp-block-columns { gap: 2.5rem; }
@media (min-width: 768px) { .home-content .is-section .wp-block-columns { gap: 4rem; } }

/* Gutenberg can inline `flex-wrap: nowrap` on columns without a media query
   (when "Stack on mobile" is off). Force wrap below 782px so the columns
   stack instead of pushing the page wider than the viewport. */
@media (max-width: 781px) {
  .home-content .wp-block-columns,
  .contact-page .wp-block-columns {
    flex-wrap: wrap !important;
  }
  .home-content .wp-block-columns > .wp-block-column,
  .contact-page .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
  }
}

.home-content .wp-block-buttons { gap: 0.75rem; align-items: center; }

/* Primary button: solid pink with ink text (white-on-pink fails AA contrast). */
.home-content .wp-block-button .wp-block-button__link {
  background: var(--color-pink);
  color: var(--color-ink);
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  transition: filter 0.2s ease;
}
.home-content .wp-block-button .wp-block-button__link:hover { filter: brightness(0.95); }

/* "Outline" style → reused as plain text link (matches React's secondary link) */
.home-content .wp-block-button.is-style-outline .wp-block-button__link,
.home-content .wp-block-button.is-style-outline:hover .wp-block-button__link {
  background: transparent;
  color: var(--color-ink);
  border: none;
  padding: 0.75rem 1rem;
}
.home-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: var(--color-pink);
  filter: none;
}

/* ---------- WP page template (About / Privacy / future static pages) ---------- */

.page-content {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  --wp--style--block-gap: 1.25rem;
}
@media (min-width: 768px) { .page-content { padding: 6rem 1.5rem 8rem; } }

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}
@media (min-width: 768px) { .page-content h1 { font-size: 2.5rem; } }
.page-content h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--color-pink);
  border-radius: 2px;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
  color: var(--color-ink);
}
@media (min-width: 768px) { .page-content h2 { font-size: 1.75rem; } }

.page-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-ink);
}

.page-content p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: var(--color-muted);
  font-size: 1rem;
}
@media (min-width: 768px) { .page-content p { font-size: 1.0625rem; } }

/* Bold inline text — used in this content as inline section labels.
   Make it sit visually like a small heading without changing the user's markup. */
.page-content p strong {
  color: var(--color-ink);
  font-weight: 700;
}
/* When a paragraph leads with bold (service-block pattern), give it more room above. */
.page-content p:has(> strong:first-child) {
  margin-top: 2.25rem;
}
.page-content p:has(> strong:first-child) > strong:first-child {
  display: inline-block;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

/* Subtle separator instead of WP's default heavier line. */
.page-content .wp-block-separator,
.page-content hr {
  border: 0;
  height: 1px;
  background: var(--color-line);
  max-width: 4rem;
  margin: 3.5rem auto;
  opacity: 1;
}

/* Paragraphs that look like a disclaimer (start with "*" or contain "דיסקליימר") get the quiet treatment.
   Targeted via :has() so no markup changes needed. */
.page-content p:has(> strong:only-child) + p {
  /* leave alone */
}

/* ---------- Contact page (page-contact.php) ---------- */

.contact-page { position: relative; background: var(--color-cream); overflow: hidden; }
.contact-page__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(26,26,31,0.10) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.contact-page__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}
@media (min-width: 768px) { .contact-page__inner { padding: 6rem 1.5rem 8rem; } }

.contact-page__header { text-align: center; margin-bottom: 3rem; }
.contact-page__title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.875rem;
}
@media (min-width: 768px) { .contact-page__title { font-size: 3rem; } }
.contact-page__title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 2.5rem; height: 2px;
  background: var(--color-pink);
  border-radius: 2px;
}
.contact-page__lede {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 38rem;
  margin: 0 auto;
}

.contact-page__grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .contact-page__grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

.contact-card,
.contact-info-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.12);
  position: relative; /* contains the honeypot's positioning */
}

/* Honeypot — hide visually + from screen readers without using off-screen positioning
   (off-screen with absolute + huge negative left makes the page 10kpx wide). */
.contact-form__hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 768px) {
  .contact-card        { padding: 2.25rem 2rem; }
  .contact-info-card   { padding: 2rem 1.75rem; }
}

/* Form fields */
.contact-form__row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 600px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }

.contact-form__field { display: flex; flex-direction: column; }
.contact-form__field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}
.contact-form__hint { color: var(--color-subtle); font-weight: 400; }
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: #fafafa;
  border: 1px solid var(--color-line);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.18s ease, background 0.18s ease;
  width: 100%;
}
.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-pink);
  box-shadow: 0 0 0 3px rgba(231, 138, 175, 0.18);
}
.contact-form__field.is-error input,
.contact-form__field.is-error textarea {
  border-color: #d04a4a;
  background: #fff5f5;
}

.contact-form__error {
  color: #b13a3a;
  font-size: 0.875rem;
  margin: 1rem 0 0;
}
.contact-form__actions {
  margin-top: 1.5rem;
}
.contact-form__actions .btn { width: 100%; justify-content: center; }
@media (min-width: 600px) { .contact-form__actions .btn { width: auto; } }

.contact-form__sent { text-align: center; padding: 2rem 0; }
.contact-form__check {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: var(--color-pink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.contact-form__sent h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.contact-form__sent p  { color: var(--color-muted); }

/* Side info card */
.contact-info-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}
.contact-info-card__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card__list li { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-info-card__label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-subtle);
}
.contact-info-card__value {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 1rem;
}
.contact-info-card__value:hover { color: var(--color-pink); }
.contact-info-card__note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-line);
  padding-top: 1.25rem;
  margin: 0;
}
.contact-info-card__note a { color: var(--color-pink); }

/* ---------- Personal area shell ---------- */

.personal-area { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.personal-area__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.personal-area__title { font-weight: 700; font-size: 1.5rem; margin: 0; }
.personal-area__hint { color: var(--color-muted); margin-bottom: 2rem; }
