/* tokens — values reused by 3+ components or by responsive overrides */
:root {
  --color-bg: #FAF4EB;            /* body cream — Framer page bg */
  --color-card: #FFFFFF;          /* both white cards */
  --color-text-strong: #4D4539;   /* contact heading */
  --color-text-bio: #4A2B06;      /* "נעים להכיר" heading */
  --color-tagline: #ADABA6;       /* warm gray under brand */
  --color-gold: #D9B580;          /* brand name + doodles */
  --color-gold-strong: #967223;   /* "מיקום" link */
  --color-green: #22422B;         /* location pill */
  --color-orange: #FF8800;        /* hero accent */
  --color-whatsapp: #25D366;      /* FAB + CTA */
  --color-whatsapp-strong: #1ebe57;
  --radius-card: 23px;            /* outer cards */
  --radius-image: 8px;            /* images and inner pills */
  --w-card: 1100px;               /* both cards' max-width */
  --w-content: 1040px;            /* card padding-inside */
  --gap: 30px;                    /* between cards and inside main card between sections */
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: var(--gap);
  font-family: 'Alef', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  color: var(--color-text-strong);
  background: var(--color-bg);
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* page — wraps both white cards, centered with cream margins via body padding */
.page { max-width: var(--w-card); margin: 0 auto; }

/* card — shared white-card surface */
.card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  width: 100%;
}
.card--main { padding: 35px var(--gap) var(--gap); }
.card--contact { padding: var(--gap) var(--gap) 70px; margin-top: var(--gap); text-align: center; }

/* ----- header ----- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: var(--gap);
}
.header__brand { display: flex; align-items: center; gap: 14px; }
.header__avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.header__brand-text { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.header__brand-name {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 19px;
  line-height: 22.8px;
}
.header__brand-tagline {
  color: var(--color-tagline);
  font-size: 17px;
  font-weight: 400;
  line-height: 23.8px;
  text-align: end;
}
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 19.2px;
  white-space: nowrap;
}
.header__nav-link--map      { color: var(--color-gold-strong); }
.header__nav-link--whatsapp { color: var(--color-whatsapp); }   /* match the floating WhatsApp pill — text + icon both pick this up via currentColor */
.header__nav-link:hover     { opacity: 0.7; }
.header__nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ----- hero ----- */
.hero { position: relative; }
.hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1040 / 696;
  object-fit: cover;
  border-radius: var(--radius-image);
}
.hero__title {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 20px;
  color: #fff;
  font-size: 47px;
  font-weight: 700;
  line-height: 56.4px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero__title-accent { color: var(--color-orange); padding-inline-start: 0.25em; }

/* ----- gallery (two flush images, single rounded outer) ----- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--gap);
}
.gallery__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 519 / 779;
  object-fit: cover;
}
.gallery__image:first-child {
  border-start-start-radius: var(--radius-image);
  border-end-start-radius: var(--radius-image);
}
.gallery__image:last-child {
  border-start-end-radius: var(--radius-image);
  border-end-end-radius: var(--radius-image);
}

/* ----- location ----- */
.location {
  position: relative;
  margin-top: var(--gap);
  border-radius: var(--radius-image);
  overflow: hidden;
}
.location__map {
  width: 100%;
  aspect-ratio: 1040 / 600;
  border: 0;
}
.location__pill {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  margin: 0;
  padding: 18px 36px;
  background: var(--color-card);
  color: var(--color-green);
  font-size: 35px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
  border-radius: var(--radius-image);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  max-width: 80%;
}

/* ----- wide image ----- */
.wide-image { margin: var(--gap) 0 0; }
.wide-image__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1040 / 751;
  object-fit: cover;
  border-radius: var(--radius-image);
}

/* ----- intro (illustration + heading + paragraphs) ----- */
.intro { padding: 60px 16px 40px; text-align: center; }
.intro__art {
  position: relative;
  width: min(560px, 100%);
  height: 220px;
  margin: 0 auto 24px;
}
.intro__art-figure {
  position: absolute;
  bottom: 0;
  width: 220px;
  height: 220px;
}
.intro__art-figure--solo  { left: 0; }
.intro__art-figure--back  { left: 275px; transform: scaleX(-1); }   /* mirror to face the solo — Framer wraps these in a scaleX(-1) container */
.intro__art-figure--front { left: 312px; transform: scaleX(-1); }

.intro__heading {
  font-size: 44px;
  font-weight: 700;
  line-height: 44px;
  color: var(--color-text-bio);
  margin: 0 0 28px;
}
.intro__body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.8;
  text-align: start;
}
.intro__body p { margin: 0 0 18px; }
.intro__body p:last-child { margin-bottom: 0; }

/* ----- doodle row ----- */
.doodle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 0 10px;
  color: var(--color-gold);
}
.doodle { width: 28px; height: 28px; flex-shrink: 0; }

/* ----- contact card ----- */
.contact__heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 43.2px;
  color: var(--color-text-strong);
  margin: 0 0 18px;
}
.contact__body {
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin-inline: auto;
}
.contact__body p { margin: 4px 0; }
.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 14px 32px;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 20px;
  transition: background-color 120ms ease;
}
.contact__cta:hover { background: var(--color-whatsapp-strong); }
.contact__cta-icon { width: 22px; height: 22px; }

/* ----- floating WhatsApp FAB (matches Framer dimensions: 200x60, br 20) ----- */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;             /* viewport-fixed, matches Framer placement regardless of RTL flow */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 200px;
  height: 60px;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 19.2px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 100;
  direction: rtl;          /* keep label icons aligned to the Hebrew flow inside the pill */
  transition: background-color 120ms ease, transform 120ms ease;
}
.whatsapp-fab:hover { background: var(--color-whatsapp-strong); transform: translateY(-1px); }
.whatsapp-fab__icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ----- responsive -----
 * 1200+    : desktop (default rules above) — 1100-wide card
 * 600–1199 : same desktop layout, fluid via card max-width + body padding (no overrides)
 *            plus a couple of Framer's 1199 tweaks (contact 30px, intro 39px)
 * <600     : true mobile — header stacks with prominent avatar, gallery 1-col, FAB shrinks
 * <380     : tiny — avatar smaller, doodles trim further, FAB to circle
 */
@media (max-width: 1199px) {
  .card--contact { padding: 30px; }
  .intro { padding: 39px 0; }
}

@media (max-width: 599px) {
  body { padding: 16px; }
  .card--main    { padding: 24px 16px 16px; border-radius: 18px; }
  .card--contact { padding: 28px 16px 40px; margin-top: 16px; border-radius: 18px; }

  .header { flex-direction: column; align-items: center; gap: 18px; padding-bottom: 24px; }
  .header__brand { flex-direction: column; align-items: center; gap: 12px; }
  .header__avatar { width: 120px; height: 120px; }
  .header__brand-text { align-items: center; text-align: center; }
  .header__brand-name { font-size: 20px; line-height: 24px; }
  .header__brand-tagline { font-size: 14px; line-height: 19.6px; text-align: center; }
  .header__nav { justify-content: center; gap: 24px; }

  .hero__title {
    font-size: clamp(22px, 7vw, 36px);
    line-height: 1.15;
    white-space: normal;
    padding: 0 16px;
  }
  .hero__title-accent { display: block; padding-inline-start: 0; }   /* force "התפתחוּתית" to its own line on mobile */

  /* keep two-up gallery on mobile (matches the original Framer layout — Osnat's request) */

  .location__pill { font-size: 18px; line-height: 1.25; padding: 14px 20px; max-width: 88%; }
  .wide-image { margin-top: 20px; }

  .intro { padding: 36px 0 24px; }
  .intro__art { width: 290px; height: 150px; margin-bottom: 18px; }
  .intro__art-figure { width: 150px; height: 150px; }
  .intro__art-figure--solo  { left: 0; }
  .intro__art-figure--back  { left: 120px; transform: scaleX(-1); }
  .intro__art-figure--front { left: 140px; transform: scaleX(-1); }
  .intro__heading { font-size: 30px; line-height: 1.15; margin-bottom: 22px; }
  .intro__body { font-size: 15px; line-height: 1.75; }

  .doodle-row { gap: 6px; padding: 18px 0 8px; flex-wrap: nowrap; overflow: hidden; }
  .doodle { width: 22px; height: 22px; }
  .doodle:nth-child(n+9) { display: none; }

  .contact__heading { font-size: 28px; line-height: 1.15; margin-bottom: 14px; }
  .contact__body { font-size: 15px; }
  .contact__cta { padding: 12px 26px; font-size: 15px; }

  .whatsapp-fab {
    bottom: 16px; right: 16px;
    width: auto; height: 52px;
    padding: 0 16px; gap: 8px;
    font-size: 14px;
  }
  .whatsapp-fab__icon { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
  .header__avatar { width: 100px; height: 100px; }
  .intro__art { width: 250px; height: 130px; }
  .intro__art-figure { width: 130px; height: 130px; }
  .intro__art-figure--back  { left: 100px; transform: scaleX(-1); }
  .intro__art-figure--front { left: 120px; transform: scaleX(-1); }
  .doodle:nth-child(n+7) { display: none; }
  .whatsapp-fab__text { display: none; }
  .whatsapp-fab { width: 56px; padding: 0; height: 56px; border-radius: 50%; }
  .whatsapp-fab__icon { width: 26px; height: 26px; }
}
