/* Zecharia — light corporate real-estate world: navy + gold, heavy Hebrew display */
:root {
  --navy: #0b2d4f;
  --navy-deep: #082340;
  --navy-glass: rgba(11, 45, 79, .84);
  --gold: #c39a2c;
  --gold-text: #8c6a12; /* gold dark enough for text on light grounds */
  --paper: #fbfbfa;
  --mist: #eef2f6;
  --ink: #1d2733;
  --ink-2: #4a5866;
  --line: #d9e0e7;

  --display: "Secular One", "Heebo", sans-serif;
  --body: "Heebo", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --hdr-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1380px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 18px/1.7 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 700; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html { scrollbar-color: var(--navy) var(--mist); }

.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 200; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__he { font: 400 32px/0.95 var(--display); letter-spacing: .01em; }
.logo__en { font: 500 11px/1 var(--body); letter-spacing: .34em; margin-top: 6px; color: var(--gold); direction: ltr; text-align: right; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr-h); display: flex; align-items: center; gap: 40px; padding-inline: var(--gutter); color: #fff; transition: height 300ms var(--ease-out), background-color 300ms ease, box-shadow 300ms ease; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(8,35,64,.75), rgba(8,35,64,0)); transition: opacity 300ms ease; }
.hdr[data-solid="true"] { --hdr-h: 68px; background: var(--navy); box-shadow: 0 6px 24px -12px rgba(8,35,64,.6); }
.hdr[data-solid="true"]::before { opacity: 0; }
.hdr__nav { display: flex; gap: clamp(18px, 2.4vw, 38px); margin-inline-start: auto; }
.hdr__nav a { text-decoration: none; font-weight: 400; font-size: 17px; position: relative; padding-block: 6px; }
.hdr__nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 260ms var(--ease-out); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="true"]::after { transform: scaleX(1); }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; padding: 8px 16px; border: 1px solid rgba(255,255,255,.4); transition: background-color 200ms ease, border-color 200ms ease; }
.hdr__phone:hover { background: rgba(255,255,255,.1); border-color: var(--gold); }
.hdr__burger { display: none; }
.menu { display: none; }

/* ---------- Side tab (like the reference's consultation tab) ---------- */
.sidetab { position: fixed; inset-inline-end: 0; top: 52%; z-index: 55; display: flex; align-items: center; gap: 10px; max-width: 168px; padding: 14px 16px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1.25; box-shadow: 0 10px 24px -10px rgba(8,35,64,.6); transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.sidetab i { font-size: 30px; color: var(--gold); flex: none; }
.sidetab:hover { background: var(--navy-deep); transform: translateX(-4px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font: 500 18px/1 var(--body); text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; }
.btn i { font-size: 1.3em; }
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 22px -12px rgba(0,0,0,.6); }
.btn--gold:hover { background: #d5ad40; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; place-items: center; text-align: center; color: #fff; overflow: clip; isolation: isolate; padding: calc(var(--hdr-h) + 24px) var(--gutter) 110px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.16) translateY(-1.5%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(8,35,64,.55), rgba(8,35,64,.25) 70%), linear-gradient(to bottom, rgba(8,35,64,.35), rgba(8,35,64,.1) 40%, rgba(8,35,64,.55)); }
.hero__inner { display: grid; justify-items: center; }
.hero__mark { width: clamp(64px, 8vw, 104px); height: clamp(64px, 8vw, 104px); color: #fff; margin-bottom: 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero__title { font-size: clamp(76px, 13vw, 176px); line-height: .9; letter-spacing: -.01em; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.hero__title span { display: block; font: 300 clamp(20px, 2.6vw, 36px)/1.2 var(--body); letter-spacing: .5em; margin-top: 18px; margin-inline-start: .5em; color: #e6ecf2; text-shadow: none; }
.hero__lede { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; }
.hero__lede i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.hero .btn { margin-top: 38px; }
.hero__down { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; font-size: 44px; color: #fff; text-decoration: none; animation: nudge 2.4s var(--ease-out) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(8px); } }

/* hero entrance */
.js .hero__mark, .js .hero__title, .js .hero__lede, .js .hero .btn { opacity: 0; transform: translateY(18px); }
.is-ready .hero__mark, .is-ready .hero__title, .is-ready .hero__lede, .is-ready .hero .btn { opacity: 1; transform: none; transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
.is-ready .hero__title { transition-delay: 120ms; }
.is-ready .hero__lede { transition-delay: 260ms; }
.is-ready .hero .btn { transition-delay: 380ms; }

/* ---------- Section titles ---------- */
.sec-title { font-size: clamp(38px, 4.6vw, 64px); color: var(--navy); text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- Expertise cards ---------- */
.expertise { padding: clamp(72px, 9vw, 120px) var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.cards { display: grid; gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(16px, 2vw, 28px); }
.cards--two { grid-template-columns: 1fr 1fr; }
.cards--two .card { height: clamp(420px, 44vw, 600px); }
.cards--three { grid-template-columns: repeat(3, 1fr); }
.cards--three .card { height: clamp(380px, 34vw, 500px); }
.card { position: relative; overflow: hidden; display: block; text-decoration: none; color: #fff; background: var(--navy); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.card:hover img { transform: scale(1.06); }
.card__panel { position: absolute; inset: auto 0 0 0; padding: 26px 30px 24px; background: var(--navy-glass); backdrop-filter: blur(3px); }
.card h3 { font-size: clamp(28px, 2.6vw, 40px); }
.card__sub { margin-top: 4px; font-size: 17px; color: #dfe7ef; font-weight: 400; }
.card__text { margin-top: 12px; font-size: 16px; color: #cfdae5; max-width: 54ch; }
.card__more { display: inline-block; margin-top: 14px; font-weight: 500; color: var(--gold); transition: transform 200ms var(--ease-out); }
.card:hover .card__more { transform: translateX(-6px); }
.tag { position: absolute; z-index: 1; top: 22px; inset-inline-start: 0; background: var(--gold); color: var(--navy-deep); font: 400 17px/1 var(--display); padding: 10px 18px; }
.cards--three .card__panel { padding: 22px 24px 20px; }

/* ---------- Intro strip ---------- */
.intro { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 90px); align-items: center; }
.intro p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.75; color: var(--ink-2); max-width: 62ch; }
.intro p strong { color: var(--navy); }
.intro a { color: var(--gold-text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.intro a:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro__mark { width: clamp(120px, 16vw, 230px); height: clamp(120px, 16vw, 230px); color: var(--navy); --mark-accent: var(--gold); opacity: .12; }

/* ---------- Urban renewal ---------- */
.renewal { background: var(--navy); color: #fff; }
.renewal__hero { position: relative; height: clamp(320px, 46vw, 620px); display: grid; place-items: center; overflow: clip; isolation: isolate; }
.renewal__hero img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; }
.renewal__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(8,35,64,.35), rgba(11,45,79,.55) 70%, var(--navy)); }
.renewal__hero h2 { font-size: clamp(48px, 8vw, 120px); text-align: center; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.renewal__body { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter) clamp(72px, 9vw, 120px); }
.renewal__intro { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.renewal__intro h3 { font-size: clamp(28px, 3vw, 42px); color: var(--gold); }
.renewal__intro p { margin-top: 14px; font-size: 19px; color: #d3dde7; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { border-top: 2px solid var(--gold); padding-top: 22px; }
.steps i { font-size: 38px; color: var(--gold); }
.steps h4 { margin-top: 12px; font-size: 25px; }
.steps p { margin-top: 8px; font-size: 16px; color: #c9d5e1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .renewal__hero img { animation: pan linear both; animation-timeline: view(); }
    @keyframes pan { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
  }
}

/* ---------- Split sections ---------- */
.split { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter) 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--flip .split__img { order: 2; }
.split + .services { padding-top: clamp(72px, 9vw, 120px); }
.split__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.split__img::before { content: ""; position: absolute; inset-block-end: -1px; inset-inline-end: -1px; width: 38%; height: 38%; border-block-end: 6px solid var(--gold); border-inline-end: 6px solid var(--gold); z-index: 1; pointer-events: none; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__text h2 { font-size: clamp(36px, 4vw, 56px); color: var(--navy); }
.split__text > p { margin-top: 18px; color: var(--ink-2); max-width: 56ch; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.checks i { color: var(--gold); font-size: 24px; margin-top: 2px; flex: none; }

/* ---------- Appraisal services ---------- */
.services { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.services__grid article { padding: 30px 26px 34px; border-inline-start: 1px solid var(--line); transition: background-color 300ms ease; }
.services__grid article:first-child { border-inline-start: 0; }
.services__grid article:hover { background: var(--mist); }
.services__grid h3 { font-size: 24px; color: var(--navy); }
.services__grid p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* ---------- About ---------- */
.about { background: var(--mist); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.about__photo { margin: 0; min-height: 520px; position: relative; overflow: hidden; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.about__text { padding: clamp(48px, 7vw, 110px) var(--gutter); align-self: center; max-width: 680px; }
.about__text h2 { font-size: clamp(42px, 5vw, 68px); color: var(--navy); }
.about__role { color: var(--gold-text); font-weight: 500; margin-top: 6px !important; margin-bottom: 22px !important; font-size: 20px; }
.about__text p + p { margin-top: 14px; }
.about__text p { color: var(--ink-2); }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); padding: clamp(12px, 1.6vw, 20px); }
.tile { position: relative; height: clamp(320px, 34vw, 480px); overflow: hidden; display: grid; place-content: center; text-align: center; text-decoration: none; color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11,45,79,.72); transition: background-color 400ms ease; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { background: rgba(11,45,79,.6); }
.tile__title { font: 400 clamp(56px, 7vw, 104px)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px #fff; transition: color 400ms ease; }
.tile:hover .tile__title { color: #fff; }
.tile__sub { margin-top: 18px; font-size: 18px; font-weight: 400; color: #dfe7ef; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy); color: #fff; padding: 56px var(--gutter) 28px; }
.ftr__top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.ftr__contact { border-inline: 1px solid rgba(255,255,255,.25); padding-inline: clamp(28px, 4vw, 56px); font-size: 16px; line-height: 1.9; }
.ftr__contact a { color: #fff; text-underline-offset: 4px; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.ftr__nav a { text-decoration: none; font-size: 16px; color: #d3dde7; }
.ftr__nav a:hover { color: var(--gold); }
.ftr__copy { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #a9bacb; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .services__grid .reveal:nth-child(2) { transition-delay: 90ms; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .services__grid .reveal:nth-child(3) { transition-delay: 180ms; }
.steps .reveal:nth-child(4), .services__grid .reveal:nth-child(4) { transition-delay: 270ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hdr__nav { display: none; }
  .hdr__phone { margin-inline-start: auto; }
  .hdr__burger { display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); background: transparent; cursor: pointer; }
  .hdr__burger span { width: 22px; height: 2px; background: #fff; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
  .hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu { position: fixed; inset: 68px 0 auto 0; z-index: 59; display: flex; flex-direction: column; background: var(--navy); padding: 8px var(--gutter) 24px; box-shadow: 0 20px 40px -20px rgba(8,35,64,.7); }
  .menu[hidden] { display: none; }
  .menu a { color: #fff; text-decoration: none; font: 400 26px/2.1 var(--display); border-bottom: 1px solid rgba(255,255,255,.12); }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__grid article:nth-child(3) { border-inline-start: 0; }
  .services__grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 68px; }
  body { font-size: 17px; }
  .logo__he { font-size: 27px; }
  .logo__mark { width: 34px; height: 34px; }
  .hdr__phone { display: none; }
  .hdr__burger { margin-inline-start: auto; }
  .sidetab { top: auto; bottom: 0; inset-inline: 0; max-width: none; justify-content: center; padding: 14px; font-size: 17px; }
  .sidetab:hover { transform: none; }
  .sidetab i { font-size: 26px; }
  body { padding-bottom: 58px; }
  .hero { padding-bottom: 96px; }
  .hero__title span { letter-spacing: .3em; margin-inline-start: .3em; }
  .hero__lede { flex-direction: column; gap: 6px; }
  .hero__lede i { display: none; }
  .cards--two, .cards--three { grid-template-columns: 1fr; }
  .cards--two .card, .cards--three .card { height: 440px; }
  .card__panel { padding: 22px 20px 20px; }
  .intro { grid-template-columns: 1fr; }
  .intro__mark { display: none; }
  .steps { grid-template-columns: 1fr; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__img { order: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid article { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 4px; }
  .services__grid article:first-child { border-top: 0; }
  .about { grid-template-columns: 1fr; }
  .about__photo { min-height: 380px; }
  .tiles { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr; justify-items: start; }
  .ftr__contact { border-inline: 0; padding-inline: 0; border-block: 1px solid rgba(255,255,255,.2); padding-block: 18px; width: 100%; }
  .ftr__nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img, .hero__down { animation: none; }
  .js .reveal, .js .hero__mark, .js .hero__title, .js .hero__lede, .js .hero .btn { opacity: 1; transform: none; transition: none; }
  .card img, .tile img { transition: none; }
}
