/* FLOW Real Estate — sample homepage, urban brokerage direction.
   Warm off-white ground, heavy condensed uppercase headlines, numbered section labels,
   FLOW blue as the single accent, square bullets, rectangular buttons,
   photography with dark caption tags.
   Motion follows emil-design-eng: custom ease-out curves, specific properties only,
   UI transitions under 300ms, press feedback, hover gated to fine pointers,
   reduced-motion keeps fades and drops movement. */

:root {
  --ink: #161616;
  --ink-2: #3b3b3b;
  --muted: #5f5f5f;      /* 5.9:1 on the ground */
  --ground: #f3f1ec;
  --paper: #ffffff;
  --line: #dcd8cf;
  --night: #121212;
  --brand: #2b8fe8;      /* logo blue: the mark and focus ring */
  --blue: #1569b8;       /* logo hue, deepened for text: 5.2:1 on the ground */
  --blue-strong: #0f58a0;

  --font-display: "Archivo", "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 68%;
  text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.95;
  color: var(--blue); margin: 0; text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.eyebrow {
  display: flex; align-items: baseline; gap: 10px;
  font: 500 12px/1.4 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--blue); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  border: 2px solid var(--blue); border-radius: 0;
  font: 800 15px/1 var(--font-display); font-stretch: 75%; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 56px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.85); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-strong); border-color: var(--blue-strong); }
  .btn-outline:hover { background: var(--blue); color: #fff; }
  .btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 800 15px/1 var(--font-display); font-stretch: 75%; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--blue);
}
.text-link span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .text-link:hover span { transform: translateX(3px); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243,241,236,0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; }
/* Team + brokerage lockup. FREC 61J2-10.026(6): the team name may not be larger
   than the brokerage name, so both lines share one size. */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: auto; flex: none; }
.lockup { display: flex; flex-direction: column; gap: 3px; }
.lockup-team, .lockup-broker {
  font: 800 15px/1 var(--font-display); font-stretch: 75%; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.lockup-team { color: var(--blue); }
.lockup-broker { color: var(--ink); }
.broker-line { margin-top: 12px; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none;
  font: 800 15px/1 var(--font-display); font-stretch: 75%; letter-spacing: 0.1em; text-transform: uppercase;
  padding-block: 8px; transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--blue); } }
.header-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }

.menu-btn, .drawer-close {
  display: none; width: 44px; height: 44px; border: 0;
  background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
  transition: transform 160ms var(--ease-out);
}
.menu-btn:active, .drawer-close:active { transform: scale(0.94); }

/* ---------- Drawer (mobile menu) ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 60;
  width: min(86vw, 380px);
  background: var(--ground);
  padding: 16px 28px 32px;
  display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.drawer[data-open] {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -24px 0 60px rgba(0,0,0,0.16);
  transition: transform 320ms var(--ease-drawer);
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--blue); text-decoration: none;
  font: 800 30px/1 var(--font-display); font-stretch: 68%; text-transform: uppercase;
}
.drawer .drawer-close { display: inline-flex; align-self: flex-end; }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 200ms ease;
}
.drawer-scrim[data-open] { opacity: 1; }

/* ---------- Hero: full-bleed photo ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - 76px), 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--night); color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* readability scrim: white text clears 4.5:1 */
  background: linear-gradient(0deg, rgba(10,14,20,0.88) 0%, rgba(10,14,20,0.55) 55%, rgba(10,14,20,0.25) 100%);
}
.hero-inner { padding-block: 120px 96px; }
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 {
  color: #fff; margin-top: 18px; max-width: 16ch;
  font-size: clamp(54px, 9vw, 132px); line-height: 0.9;
}
.hero-sub { margin-top: 26px; max-width: 54ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.photo-tag {
  display: inline-flex; gap: 10px; align-items: baseline;
  background: rgba(18,18,18,0.86); color: #fff;
  padding: 9px 14px; margin: 0;
  font: 500 11px/1.3 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.photo-tag span { color: #8cc6ff; font-weight: 700; }
.hero-tag { position: absolute; right: var(--gutter); bottom: 24px; }

/* Hero entrance: once on load, short stagger, never blocks clicks */
@keyframes enter-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.enter { animation: enter-up 460ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.stats div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px;
  padding: 36px 0 36px 32px; border-left: 1px solid var(--line);
}
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font: 800 clamp(48px, 6vw, 80px)/0.9 var(--font-display); font-stretch: 68%; color: var(--blue); }
.stats dt { color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(44px, 6vw, 84px); margin-top: 16px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); margin-top: 18px; max-width: 58ch; }

.owner { padding-block: clamp(88px, 11vw, 140px); }
.owner h2 { font-size: clamp(44px, 6vw, 84px); margin-top: 16px; max-width: 14ch; }
.owner p:not(.eyebrow) { margin: 22px 0 30px; max-width: 62ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

/* ---------- Transactions ---------- */
.transactions { background: var(--paper); padding-block: clamp(88px, 11vw, 140px); }
.tx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); column-gap: 28px; row-gap: 56px; }
.tx-card { display: flex; flex-direction: column; }
.tx-media { position: relative; margin: 0 0 20px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground); }
.tx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.tx-media .photo-tag { position: absolute; left: 0; bottom: 0; }
@media (hover: hover) and (pointer: fine) { .tx-card:hover .tx-media img { transform: scale(1.03); } }
.tx-body { display: flex; flex-direction: column; gap: 8px; }
.tx-meta { display: flex; gap: 12px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tx-status { color: var(--blue); font-weight: 700; }
.tx-body h3 { font-size: clamp(30px, 2.8vw, 40px); }
.tx-price { font-weight: 600; color: var(--ink); }
.tx-body p:last-child { color: var(--ink-2); font-size: 15px; }
.tx-card-text .tx-body {
  background: var(--blue); color: #fff; padding: 32px; min-height: 100%; justify-content: flex-end;
}
.tx-card-text .tx-body h3, .tx-card-text .tx-price, .tx-card-text .tx-status { color: #fff; }
.tx-card-text .tx-meta, .tx-card-text .tx-body p:last-child { color: rgba(255,255,255,0.88); }

/* ---------- Services ---------- */
.services { padding-block: clamp(88px, 11vw, 140px); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 36px; }
.svc-grid article { padding-top: 22px; border-top: 2px solid var(--ink); }
.svc-grid h3 { font-size: 34px; display: flex; align-items: center; gap: 12px; }
.svc-grid h3::before { content: ""; width: 10px; height: 10px; background: var(--blue); flex: none; }
.svc-grid p { margin-top: 12px; color: var(--ink-2); }

.phases-title { font-size: clamp(34px, 4vw, 56px); margin: 104px 0 36px; }
.phases {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px;
}
.phase-n { font: 800 16px/1 var(--font-display); color: var(--blue); letter-spacing: 0.08em; }
.phases h4 { font-size: 30px; margin-top: 12px; color: var(--ink); }
.phases p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* ---------- About ---------- */
.about { background: var(--paper); padding-block: clamp(88px, 11vw, 140px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.about-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(48px, 6vw, 84px); margin-top: 16px; }
.about .role { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin: 14px 0 26px; }
.about p + p { margin-top: 16px; }
.about p { color: var(--ink-2); max-width: 58ch; font-size: 17px; }
.about .btn { margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(88px, 11vw, 140px); max-width: 1000px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); font-stretch: 72%; text-transform: uppercase; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--blue);
  transition: transform 200ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 66ch; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; padding-block: clamp(88px, 11vw, 140px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact .eyebrow { color: rgba(255,255,255,0.75); }
.contact .eyebrow .num { color: #8cc6ff; }
.contact h2 { color: #fff; font-size: clamp(44px, 5.4vw, 76px); margin-top: 16px; }
.contact-info > p { color: rgba(255,255,255,0.85); margin-top: 18px; }
.contact-list { margin: 40px 0 0; display: grid; gap: 22px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 28px; }
.contact-list dt { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.contact-list dd { margin: 6px 0 0; font-size: 17px; }
.contact-list a { color: #fff; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.4); }

.lead-form { background: var(--ground); color: var(--ink); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.lead-form h3 { font-size: clamp(32px, 3vw, 42px); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select {
  height: 50px; padding: 0 14px; width: 100%;
  font: 400 16px var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid #c9c4b9; border-radius: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field select { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field input::placeholder { color: #85807a; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,105,184,0.18); }
.field input[aria-invalid="true"] { border-color: #b42318; }
.check { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink-2); min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.investor-fields { display: flex; flex-direction: column; gap: 20px; }


/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,0.72); padding: 72px 0 32px; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.brand-footer { margin-bottom: 16px; }
.brand-footer img { filter: brightness(0) invert(1); }
.brand-footer .lockup-team, .brand-footer .lockup-broker { color: #fff; }
.site-footer address strong { color: #fff; font-weight: 600; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { font: 800 16px/1.2 var(--font-display); font-stretch: 75%; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-legal p + p { margin-top: 8px; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 12px; color: rgba(255,255,255,0.6); }

/* ---------- Scroll reveals (only when JS runs, so content is never hidden from crawlers) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-img] { clip-path: inset(0 0 100% 0); transition: clip-path 800ms var(--ease-in-out); }
.js [data-reveal-img].is-in { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 380px; }
}
@media (max-width: 640px) {
  .hero-inner { padding-block: 96px 88px; }
  .hero-tag { left: var(--gutter); right: auto; bottom: 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats div, .stats div:first-child {
    flex-direction: row-reverse; justify-content: space-between; align-items: baseline;
    padding: 20px 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .stats div:first-child { border-top: 0; }
}

/* ---------- Reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter { animation-name: fade-only; }
  @keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .js [data-reveal-img] { clip-path: none; opacity: 0; transition: opacity 300ms ease; }
  .js [data-reveal-img].is-in { opacity: 1; }
  .drawer, .drawer[data-open] { transition: none; }
  .btn:active, .menu-btn:active { transform: none; }
  .tx-media img { transition: none; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-block: 72px 96px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); line-height: 0.95; margin: 12px 0 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--blue); }
.legal-date { color: var(--muted); font-size: 14px; }
.legal-date { margin-bottom: 24px; }
.legal-cta { margin-left: auto; display: inline-flex; }
@media (max-width: 640px) { .legal-cta { display: none; } }

/* ---------- Language switcher ---------- */
.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  font: 600 13px/1 var(--font-body); letter-spacing: 0.06em; color: var(--muted);
  text-decoration: none; padding: 10px 6px; transition: color 150ms ease;
}
.lang a[aria-current="page"] { color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .lang a:hover { color: var(--ink); } }
.drawer .lang a { font-size: 16px; padding: 12px 10px 12px 0; }
.lang-footer { margin-top: 14px; }
.lang-footer a { color: rgba(255,255,255,0.72); padding-inline: 0 12px; }
.lang-footer a[aria-current="page"] { color: #fff; }
@media (max-width: 960px) { .site-header .lang { display: none; } }

/* ---------- Right-to-left (Hebrew) ---------- */
[dir="rtl"] {
  --font-display: "Heebo", "Archivo", "Arial Hebrew", sans-serif;
  --font-body: "Heebo", "Inter", "Arial Hebrew", system-ui, sans-serif;
}
[dir="rtl"] body * { letter-spacing: normal !important; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.05; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .legal-cta { margin-left: 0; margin-right: auto; }
[dir="rtl"] .drawer { inset: 0 auto 0 0; transform: translateX(-100%); }
[dir="rtl"] .drawer[data-open] { transform: translateX(0); box-shadow: 24px 0 60px rgba(0,0,0,0.16); }
[dir="rtl"] .drawer .lang a { padding: 12px 0 12px 10px; }
[dir="rtl"] .hero-tag { right: auto; left: var(--gutter); }
[dir="rtl"] .stats div { padding: 36px 32px 36px 0; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .stats div:first-child { border-right: 0; padding-right: 0; }
[dir="rtl"] .tx-media .photo-tag { left: auto; right: 0; }
[dir="rtl"] .faq summary { padding: 24px 0 24px 48px; }
[dir="rtl"] .faq summary::before, [dir="rtl"] .faq summary::after { right: auto; left: 8px; }
[dir="rtl"] .faq details p { padding: 0 0 24px 48px; }
[dir="rtl"] .field select { background-position: left 14px center; padding-right: 14px; padding-left: 36px; }
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 20px; }
@media (hover: hover) and (pointer: fine) { [dir="rtl"] .text-link:hover span { transform: translateX(-3px); } }
@media (max-width: 960px) { [dir="rtl"] .menu-btn { margin-left: 0; margin-right: auto; } }
@media (max-width: 640px) {
  [dir="rtl"] .hero-tag { left: auto; right: var(--gutter); }
  [dir="rtl"] .stats div, [dir="rtl"] .stats div:first-child { padding: 20px 0; border-right: 0; }
}
[dir="rtl"] .skip { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { left: auto; right: 16px; }

/* Long Spanish words in the hero headline */
.hero h1 { overflow-wrap: break-word; hyphens: auto; }
:lang(es) .hero h1 { font-size: clamp(40px, 7.4vw, 116px); }

/* Language links inside the phone menu: one quiet row, not big menu links */
.drawer .lang { flex-direction: row; gap: 18px; }
.drawer .lang a {
  font: 600 15px/1 var(--font-body); text-transform: none; letter-spacing: 0.02em;
  color: var(--muted); border-bottom: 0; padding: 10px 0;
}
.drawer .lang a[aria-current="page"] { color: var(--blue); }


/* ---------- Contact card (email + call, no form) ---------- */
.contact-card p { color: var(--ink-2); }
.card-actions { display: flex; flex-direction: column; gap: 12px; }
.card-actions .btn { width: 100%; }
.card-actions .btn span { overflow-wrap: anywhere; }
.card-investors { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-investors h4 { font: 800 22px/1.1 var(--font-display); font-stretch: 72%; text-transform: uppercase; color: var(--blue); }

/* ---------- Gmail / copy row ---------- */
.alt-mail { font-size: 14px; color: var(--muted); }
.alt-mail a { color: var(--blue); font-weight: 600; }
.copy-email {
  font: 600 14px var(--font-body); color: var(--blue); background: none; border: 0; padding: 4px 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.copy-email:active { transform: scale(0.96); }

/* ---------- WhatsApp ---------- */
:root { --wa: #25d366; --wa-ink: #05361a; }  /* WhatsApp green; dark text keeps 9:1 contrast */
.btn-wa { background: var(--wa); color: var(--wa-ink); gap: 10px; }
.btn-wa .wa-icon { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { background: #20bd5a; } }

/* Floating chat button: pops in once after load, squishes when pressed. */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.14);
  /* Coming back in: a quick pop with a small overshoot. */
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease, box-shadow 180ms ease;
}
.wa-fab .wa-icon { width: 32px; height: 32px; }
.wa-fab:active { transform: scale(0.9); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover { transform: scale(1.07); box-shadow: 0 12px 30px rgba(0,0,0,0.26), 0 3px 8px rgba(0,0,0,0.16); }
}
.wa-fab.is-tucked { opacity: 0; transform: scale(0.6); pointer-events: none; transition: transform 180ms var(--ease-out), opacity 160ms ease; }
[dir="rtl"] .wa-fab { right: auto; left: 20px; }
@media (max-width: 640px) { .wa-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; } [dir="rtl"] .wa-fab { right: auto; left: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab.is-tucked, .wa-fab:active, .wa-fab:hover { transform: none; }
}

/* ---------- Listing cards: whole card is a link ---------- */
.tx-card { position: relative; }
.tx-link { color: inherit; text-decoration: none; }
.tx-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tx-link:focus-visible { outline: none; }
.tx-card:has(.tx-link:focus-visible) { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .tx-card:hover .tx-link { color: var(--blue); } }
.tx-noimg { width: 100%; height: 100%; background: linear-gradient(135deg, #dfe8f2, #c9d6e4); }
.tx-draft { background: #b42318; color: #fff; padding: 2px 6px; font-weight: 700; }
.transactions .section-head .text-link { margin-top: 18px; }

/* ---------- Listings page ---------- */
.lst-index { padding-top: clamp(56px, 8vw, 104px); }
.lst-index .section-head h1 { font-size: clamp(48px, 7vw, 96px); margin-top: 16px; }
.lst-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 36px; }
.lst-tab {
  font: 800 14px/1 var(--font-display); font-stretch: 75%; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.lst-tab span { color: var(--muted); margin-left: 4px; }
.lst-tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.lst-tab[aria-pressed="true"] span { color: rgba(255,255,255,0.8); }
.lst-tab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .lst-tab:not([aria-pressed="true"]):hover { border-color: var(--blue); color: var(--blue); } }
.tx-card[hidden] { display: none; }
.lst-cta {
  margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 4vw, 44px); background: var(--night); color: #fff;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.lst-cta h2 { font-size: clamp(28px, 3vw, 40px); color: #fff; }
.lst-cta p { color: rgba(255,255,255,0.8); margin-top: 8px; max-width: 52ch; }

/* ---------- Single listing ---------- */
.draft-banner { background: #b42318; color: #fff; text-align: center; padding: 10px var(--gutter); font-size: 14px; }
.lst { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.lst-back a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .lst-back a:hover { color: var(--blue); } }
.lst-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin: 28px 0 28px; }
.lst-head > div { max-width: 880px; }
.lst-head h1 { font-size: clamp(40px, 5.6vw, 80px); margin-top: 14px; }
.lst-where { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.lst-price { border: 2px solid var(--blue); padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.lst-price span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.lst-price { font: 800 clamp(30px, 3vw, 40px)/1 var(--font-display); font-stretch: 72%; color: var(--blue); }
.lst-price span { font-family: var(--font-body); font-stretch: 100%; font-weight: 500; }
.lst-hero { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ground); }
.lst-hero img { width: 100%; height: 100%; object-fit: cover; }
.lst-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.lst-thumbs figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.lst-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lst-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  margin: 36px 0 0; border-top: 2px solid var(--ink);
}
.lst-facts div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.lst-facts dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lst-facts dd { margin: 0; font: 800 22px/1.15 var(--font-display); font-stretch: 75%; color: var(--ink); }
.lst-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.lst-text h2 { font-size: clamp(30px, 3vw, 40px); margin: 0 0 16px; }
.lst-text h2:not(:first-child) { margin-top: 40px; }
.lst-text p { color: var(--ink-2); margin-bottom: 16px; max-width: 68ch; font-size: 17px; }
.lst-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lst-highlights li { display: flex; gap: 12px; color: var(--ink-2); }
.lst-highlights li::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; margin-top: 0.6em; }
.lst-disclaimer { margin-top: 36px !important; font-size: 13px !important; color: var(--muted) !important; }
.lst-contact { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.lst-contact h2 { font-size: clamp(26px, 2.4vw, 34px); color: var(--blue); }
.lst-contact p { color: var(--ink-2); }
.lst-contact .broker-line { margin-top: 0; }
.lst-more { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 112px); }
@media (max-width: 960px) {
  .lst-body { grid-template-columns: minmax(0, 1fr); }
  .lst-contact { position: static; }
}

/* ---------- iPhone polish ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

/* Footer language links: one quiet row at every width */
.site-footer .lang-footer { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.site-footer .lang-footer a { font: 500 14px/1 var(--font-body); font-stretch: 100%; letter-spacing: 0.02em; text-transform: none; padding: 10px 0; }

.wa-fab { bottom: max(20px, env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
  /* Opening screen: headline, text and both buttons fit on one iPhone screen */
  .hero-inner { padding-block: 56px 92px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .hero-sub { font-size: 16px; line-height: 1.55; }
  .hero-ctas { gap: 10px; }
  .hero-tag { font-size: 10px; max-width: calc(100% - 2 * var(--gutter)); }

  /* Numbers side by side, big, like a scoreboard */
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div, .stats div:first-child {
    flex-direction: column-reverse; justify-content: flex-end; align-items: flex-start; gap: 6px;
    padding: 24px 0 24px 14px; border-top: 0; border-left: 1px solid var(--line);
  }
  .stats div:first-child { border-left: 0; padding-left: 0; }
  .stats dd { font-size: clamp(34px, 10vw, 44px); }
  .stats dt { font-size: 10px; letter-spacing: 0.12em; line-height: 1.35; }
  [dir="rtl"] .stats div, [dir="rtl"] .stats div:first-child { padding: 24px 14px 24px 0; border-left: 0; border-right: 1px solid var(--line); }
  [dir="rtl"] .stats div:first-child { border-right: 0; padding-right: 0; }
  [dir="rtl"] .stats dd { font-size: clamp(26px, 7.6vw, 34px); }

  /* Deal cards on the home page and "Other listings": a swipeable row */
  #transactions .tx-grid, .lst-more .tx-grid {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 6px;
    scrollbar-width: none;
  }
  #transactions .tx-grid::-webkit-scrollbar, .lst-more .tx-grid::-webkit-scrollbar { display: none; }
  #transactions .tx-card, .lst-more .tx-card { flex: 0 0 84%; scroll-snap-align: start; }
  .tx-body h3 { font-size: 28px; }
  .tx-body p:last-child { font-size: 15px; }

  .section-head { margin-bottom: 36px; }
}

/* ---------- Listings in Hebrew (right-to-left) ---------- */
[dir="rtl"] .lst-tab span { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .lst-facts div { padding: 18px 0 18px 16px; }
[dir="rtl"] .lst-facts dd { font-size: 20px; }
[dir="rtl"] .lst-head h1 { line-height: 1.1; }
[dir="rtl"] .lst-price { font-size: clamp(26px, 2.6vw, 34px); }
[dir="rtl"] .tx-body h3 { line-height: 1.15; }

/* ---------- Hebrew home: "for investors from Israel" ---------- */
.israel { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(72px, 10vw, 128px); }
.israel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.israel h2 { font-size: clamp(40px, 5vw, 72px); margin: 16px 0 20px; }
.israel-intro > p:not(.eyebrow) { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); max-width: 52ch; }
.israel-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.israel-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.israel-points li { background: var(--paper); padding: 26px 24px; }
.israel-points h3 { font-size: 24px; color: var(--blue); margin-bottom: 8px; }
.israel-points p { color: var(--ink-2); font-size: 15px; }
.israel-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .israel-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .israel-points { grid-template-columns: minmax(0, 1fr); } .israel-ctas .btn { flex: 1 1 100%; } }

/* ---------- Standalone pages: consulting + guides ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 92px); margin: 16px 0 20px; max-width: 18ch; }
.page-lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }
.page-hero .lst-back, .guide .lst-back { margin-bottom: 28px; }
.page-section { padding-block: clamp(72px, 10vw, 120px); }
.page-section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-cards article { background: var(--paper); padding: clamp(24px, 3vw, 36px); }
.svc-cards h3 { font-size: clamp(26px, 2.4vw, 32px); color: var(--blue); margin-bottom: 12px; }
.svc-cards p { color: var(--ink-2); }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 72ch; }
.why-list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 17px; }
.why-list li::before { content: ""; width: 10px; height: 10px; background: var(--blue); flex: none; margin-top: 0.55em; }
.why-list strong { color: var(--ink); }
.why-list a { color: var(--blue); }
.guide-faq { padding-block: clamp(48px, 7vw, 88px) 24px; max-width: none; }
.guide-faq h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 24px; }
.guide-disclaimer { font-size: 13px; color: var(--muted); max-width: 80ch; padding-block: 24px clamp(64px, 8vw, 96px); }

.guide { max-width: 860px; padding-block: clamp(32px, 5vw, 56px) 0; }
.guide-head h1 { font-size: clamp(40px, 5.4vw, 72px); margin: 14px 0 18px; }
.guide-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.guide-meta a { color: var(--blue); }
.toc { margin: 36px 0 8px; padding: 22px 26px; background: var(--paper); border: 1px solid var(--line); }
.toc-title { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.toc a { color: var(--blue); text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { text-decoration: underline; } }
.guide h2 { font-size: clamp(30px, 3.2vw, 44px); margin: clamp(44px, 6vw, 64px) 0 16px; scroll-margin-top: 100px; }
.guide > p, .guide-list li, .guide-steps li, .guide-check li { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.guide > p { margin-bottom: 16px; }
.guide-list, .guide-check { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.guide-list li { display: flex; gap: 12px; }
.guide-list li::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; margin-top: 0.7em; }
.guide-list strong, .guide-steps strong { color: var(--ink); }
.guide-steps { margin: 0 0 16px; padding-inline-start: 24px; display: grid; gap: 10px; }
.guide-steps li::marker { color: var(--blue); font-weight: 800; }
.guide-check li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guide-check li::before { content: "✓"; color: var(--blue); font-weight: 800; flex: none; }
.callout { margin: 36px 0; padding: clamp(22px, 3vw, 32px); background: var(--night); color: #fff; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.callout p { color: rgba(255,255,255,0.9); max-width: 52ch; font-size: 17px; }
.guide .israel-ctas { margin-top: 20px; }
@media (max-width: 640px) { .callout .btn { width: 100%; } }

@media (max-width: 720px) { .svc-cards { grid-template-columns: minmax(0, 1fr); } }

/* Bulleted lists with a bold lead-in ("LLC: ..."): keep the bold words and the text
   in one flowing line instead of two flex columns. The bullet sits in the start margin. */
.guide-list li, .why-list li, .lst-highlights li, .guide-check li {
  display: block; position: relative; padding-inline-start: 22px;
}
.guide-list li::before, .why-list li::before, .lst-highlights li::before {
  position: absolute; inset-inline-start: 0; top: 0.72em; margin: 0;
}
.guide-check li { padding-block: 12px; }
.guide-check li::before { position: absolute; inset-inline-start: 0; top: 12px; }
