/* Beit Hillel Real Estate — house style. Logical properties throughout so the Hebrew (RTL) pages need no overrides. */
:root {
  /* From the logo: orange #f05a28 and grey #939598. --brass is the logo orange (lines, icons);
     --brass-ink a deeper orange that passes AA with white text (buttons, links). --cedar is the charcoal. */
  --cedar: #2d2f33;
  --cedar-2: #3b3e43;
  --stone: #f1ece6;
  --cream: #faf8f5;
  --paper: #ffffff;
  --brass: #f05a28;
  --brass-ink: #c2410c;
  --brand-grey: #939598;
  --on-dark: #f9a37f;
  --ink: #1f2023;
  --muted: #5d5f63;
  --line: #e4ddd4;
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 92px;
  color-scheme: light;
}
html[lang="he"] {
  --f-display: "Frank Ruhl Libre", "David", Georgia, serif;
  --f-body: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-ink); text-underline-offset: 3px; }
a:hover { color: var(--cedar); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--cedar); letter-spacing: -.005em; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.6rem; }
html[lang="he"] h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
html[lang="he"] h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
html[lang="he"] h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--cedar); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink);
  margin-bottom: 18px;
}
html[lang="he"] .eyebrow { letter-spacing: .08em; font-size: .9rem; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 .95rem/1 var(--f-body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-ink); color: #fff; }
.btn-dark { background: var(--cedar); color: #fff; }
.btn-dark:hover { background: var(--cedar-2); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--cedar); }
.btn-line { border-color: var(--cedar); color: var(--cedar); }
.btn-line:hover { background: var(--cedar); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { background: var(--paper); border-bottom: 3px solid var(--brass); }
.site-header.solid, .page-inner .site-header { box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--cedar); text-decoration: none; font: 500 .92rem/1 var(--f-body); letter-spacing: .03em; padding: 8px 0; border-bottom: 2px solid transparent; }
html[lang="he"] .nav a { font-size: 1.02rem; letter-spacing: 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-ink); border-bottom-color: var(--brass); }
.nav .lang { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.nav .lang:hover { border-color: var(--brass); }
.nav .btn { min-height: 42px; padding: 0 18px; border-bottom: 0; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cedar); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 24px; box-shadow: 0 20px 40px rgba(0,0,0,.15);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .lang { margin-top: 16px; text-align: center; }
  .nav .btn { margin-top: 12px; min-height: 50px; }
  .brand img { height: 56px; }
}

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end;
  color: #fff; background: var(--cedar); overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,29,32,.55) 0%, rgba(28,29,32,.15) 35%, rgba(28,29,32,.78) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 9vh, 110px); }
.hero h1 { color: #fff; max-width: 13em; }
.hero .eyebrow { color: var(--on-dark); }
.hero .lead { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 34px; }

/* Page header for inner pages */
.page-head { background: var(--cedar); color: #fff; padding: calc(var(--header-h) + 64px) 0 64px; position: relative; overflow: hidden; }
.page-head.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0; }
.page-head .eyebrow { color: var(--on-dark); }
.page-head .lead { color: rgba(255,255,255,.85); margin: 16px 0 0; }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.alt { background: var(--paper); }
.section.stone { background: var(--stone); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* Intro split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); border-radius: var(--radius); z-index: -1; }
html[dir="rtl"] .split-media::before { inset: 22px 22px -22px -22px; }
.split-media { isolation: isolate; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 3; }
  .split-media::before, html[dir="rtl"] .split-media::before { inset-block: 12px -12px; inset-inline: 12px -12px; }
  .split-media { margin-inline-end: 12px; }
}

.checks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--brass); flex: none; margin-top: 3px; }

/* AI search band */
.ask { background: var(--cedar); color: #fff; }
.ask h2 { color: #fff; }
.ask .lead { color: rgba(255,255,255,.8); }
.ask .eyebrow { color: var(--on-dark); }
.ask-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .ask-grid { grid-template-columns: 1fr; } }
.module-box { background: var(--paper); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.module-box[data-achuzot-done] .fallback { display: none; }
.fallback { padding: clamp(24px, 4vw, 40px); }
.fallback h3 { font-size: 1.5rem; margin-bottom: .3em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--cedar); text-decoration: none; font-size: .92rem; background: var(--cream); }
.chip:hover { border-color: var(--brass); color: var(--cedar); background: #fff; }

/* Area cards */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }
.area {
  position: relative; display: block; min-height: 440px; border-radius: var(--radius); overflow: hidden;
  color: #fff; text-decoration: none; background: var(--cedar);
}
@media (max-width: 900px) { .area { min-height: 320px; } }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; opacity: .92; }
.area:hover img { opacity: .75; }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(24,25,28,.88)); }
.area-body { position: absolute; inset-inline: 0; bottom: 0; padding: 28px; z-index: 1; }
.area h3 { color: #fff; font-size: 2rem; margin: 0 0 .25em; }
.area p { margin: 0 0 14px; color: rgba(255,255,255,.86); font-size: .98rem; }
.area .more { font: 600 .8rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); }
html[lang="he"] .area .more { letter-spacing: .05em; font-size: .92rem; }
.area:hover { color: #fff; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--paper); padding: clamp(28px, 3.5vw, 44px); }
.service svg { width: 38px; height: 38px; color: var(--brass); margin-bottom: 22px; }
.service h3 { font-size: 1.55rem; }
.service p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border-top: 1px solid var(--brass); padding-top: 22px; }
.steps li::before { content: "0" counter(s); display: block; font: 500 2.4rem/1 var(--f-display); color: var(--brass); margin-bottom: 14px; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); margin: 0; }

/* Photo band */
.band { position: relative; color: #fff; background: var(--cedar); overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.band .wrap { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.band h2 { color: #fff; max-width: 15em; }
.band .lead { color: rgba(255,255,255,.88); margin-bottom: 32px; }
.band .eyebrow { color: var(--on-dark); }

/* Agent card */
.agent { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .agent { grid-template-columns: 1fr; } }
.agent-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--cedar); display: grid; place-items: center; overflow: hidden; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-photo .agent-logo { width: 70%; height: auto; object-fit: contain; }
@media (max-width: 760px) { .agent-photo { max-width: 300px; } }
blockquote { margin: 0 0 24px; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.35 var(--f-display); color: var(--cedar); }
html[lang="he"] blockquote { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.sig { font-weight: 600; color: var(--cedar); margin: 0; }
.sig small { display: block; font-weight: 400; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
a.contact-card:hover { border-color: var(--brass); box-shadow: 0 12px 30px rgba(45,47,51,.08); color: var(--ink); }
.contact-card svg { width: 28px; height: 28px; color: var(--brass); margin-bottom: 16px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: .2em; }
.contact-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-card [dir="ltr"] { unicode-bidi: isolate; }

/* Listings block */
.listings-section { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.listings-slot { min-height: 640px; }
.listings-slot[data-achuzot-done] .fallback { display: none; }
.listings-slot .fallback { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: clamp(40px, 7vw, 80px) var(--gutter); }
.listings-slot .fallback .btns { justify-content: center; }
.listings-slot .fallback p { color: var(--muted); max-width: 36em; margin-inline: auto; }
.listings-slot:not([data-achuzot-done]) { min-height: 0; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.credits { list-style: none; padding: 0; display: grid; gap: 14px; }
.credits li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }

/* Footer */
.site-footer { background: #232427; color: rgba(255,255,255,.72); padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 600 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 6px 0 18px; }
html[lang="he"] .site-footer h4 { letter-spacing: .05em; font-size: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-brand img { height: 70px; width: auto; }
.foot-brand p { margin-top: 18px; max-width: 26em; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.55); }

/* Floating WhatsApp: always bottom LEFT (also in Hebrew), the Achuzot chat button sits bottom right */
.wa-float {
  position: fixed; bottom: 20px; left: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #1f7a4d; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float:hover { background: #17633e; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Fade-in on scroll: opacity only (a transform would trap the listings block's photo viewer) */
.js .reveal { opacity: 0; transition: opacity .9s ease; }
.js .reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transition: none; }
  * { scroll-behavior: auto !important; }
}
