/* עו"ד נופר לנקרי: אתר הדגמה
   Direction: an architect's permit sheet. Concrete paper, graphite line work, walnut for the
   voice of the office, survey teal for what is "proposed". Title blocks and legends carry real info.
   Type: Frank Ruhl Libre (classic Hebrew book serif) + Miriam Libre (the vernacular of official forms). */

:root {
  --concrete: #ECEDEA;
  --sheet: #FFFFFF;
  --graphite: #23272B;
  --lead: #51575C;
  --walnut: #5B3A27;
  --walnut-hover: #4A2F1F;
  --walnut-deep: #36241A;
  --teal: #2B6A77;
  --teal-tint: #DCEAEC;
  --teal-on-dark: #9FD0D8;
  --line: #C4C7C1;
  --field: #7A8086;
  --on-dark: #F3EEE8;
  --on-dark-soft: #D2C4B7;
  --error: #A11B22;
  --focus: #2B6A77;
  --serif: 'Frank Ruhl Libre', 'David', 'Times New Roman', serif;
  --sans: 'Miriam Libre', 'Arial Hebrew', Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--concrete);
  padding-bottom: 64px; /* room for the mobile call bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--graphite); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { max-width: 66ch; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--graphite); }
ul, ol { list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

.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;
}

/* Focus: always visible */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.band-dark, .site-footer, .demo-banner { --focus: var(--teal-on-dark); }
#main:focus { outline: none; }

.skip-link {
  position: absolute; top: -200px; right: 16px; z-index: 300;
  background: var(--walnut-deep); color: var(--on-dark);
  padding: .7rem 1.1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; --focus: var(--teal-on-dark); }

/* Demo banner */
.demo-banner {
  background: var(--walnut-deep); color: var(--on-dark);
  font-size: .9375rem; line-height: 1.5; text-align: center;
  padding: .55rem 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 70px;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--graphite);
  margin-inline-end: auto;
}
.brand-mark { width: 38px; height: 38px; color: var(--walnut); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--walnut); }
.brand-sub { font-size: .875rem; color: var(--lead); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 1px solid var(--field); color: var(--graphite);
  font: inherit; font-size: .9375rem; padding: .45rem .8rem; cursor: pointer;
  border-radius: 3px; min-height: 44px;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav {
  display: none;
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--sheet); border-bottom: 1px solid var(--line);
  padding: .5rem 16px 1rem;
}
.site-nav.open { display: block; }
.site-nav a {
  display: block; padding: .7rem 0; color: var(--graphite);
  text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--concrete);
}
.site-nav a:hover { color: var(--teal); }

.header-call {
  display: none; align-items: center; gap: .45rem;
  color: var(--walnut); font-weight: 700; text-decoration: none;
  direction: ltr; white-space: nowrap;
}
.header-call svg { width: 18px; height: 18px; }
.header-call:hover { color: var(--graphite); }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 1.4rem; }
  .site-nav a { padding: .4rem 0; border: 0; font-size: .96875rem; }
  .header-call { display: inline-flex; padding-inline-start: 1.2rem; border-inline-start: 1px solid var(--line); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .7rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 3px; cursor: pointer;
  border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--walnut); color: #FFFFFF; border-color: var(--walnut); }
.btn-primary:hover { background: var(--walnut-hover); border-color: var(--walnut-hover); color: #FFFFFF; }
.btn-quiet { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-quiet:hover { background: var(--graphite); color: var(--sheet); }

/* Hero */
.hero { padding: 2.75rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-text h1 { display: flex; flex-direction: column; gap: .9rem; }
.h1-name {
  font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 700; color: var(--walnut);
  letter-spacing: -.01em; line-height: 1.05;
}
.h1-line {
  font-size: clamp(1.5rem, 2.9vw, 2.15rem); font-weight: 400; line-height: 1.3;
  max-width: 20ch;
}
.lede { margin-top: 1.4rem; font-size: 1.125rem; color: var(--lead); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-aside { margin-top: 1rem; color: var(--lead); font-size: .9688rem; }

@media (min-width: 960px) {
  .hero { padding: 4rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

/* The drawing sheet */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 10px;
  max-width: 520px; width: 100%; margin-inline: auto;
}
.sheet-inner { border: 1.5px solid var(--graphite); }
.elevation { width: 100%; height: auto; padding: 1.25rem 1rem .5rem; }
.dim-label { font-family: var(--sans); font-size: 15px; fill: var(--lead); text-anchor: middle; }
.dim-new { fill: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .grow {
    transform-box: fill-box; transform-origin: 50% 100%;
    animation: rise .75s cubic-bezier(.2, .7, .2, 1) backwards;
  }
  .grow-1 { animation-delay: .35s; }
  .grow-2 { animation-delay: .85s; }
  .grow-3 { animation-delay: 1.35s; }
  .grow-4 { animation-delay: 1.85s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Title block (used on the sheet and in contact) */
.title-block dl, dl.title-block {
  display: grid; grid-template-columns: 1fr 1fr;
}
.tb-cell {
  border-top: 1.5px solid var(--graphite);
  padding: .5rem .8rem .6rem;
  min-width: 0;
}
.tb-cell + .tb-cell:nth-child(even) { border-inline-start: 1.5px solid var(--graphite); }
.tb-wide { grid-column: 1 / -1; border-inline-start: 0 !important; }
.tb-cell dt { font-size: .8125rem; color: var(--lead); line-height: 1.4; }
.tb-cell dd { font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.key { display: inline-flex; align-items: center; gap: .4rem; margin-inline-end: .9rem; font-weight: 600; }
.key-line { display: inline-block; width: 26px; border-top: 2.5px solid var(--graphite); }
.key-new { border-top: 2.5px dashed var(--teal); }

/* Bands */
.band { padding: 4rem 0; }
@media (min-width: 960px) { .band { padding: 5.5rem 0; } }
.band-white { background: var(--sheet); }
.band-concrete { background: var(--concrete); }
.band-dark { background: var(--walnut-deep); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }

.section-head { margin-bottom: 2.5rem; }
.section-head p { margin-top: .9rem; color: var(--lead); font-size: 1.09375rem; }

.demo-note {
  margin-top: 1.75rem; padding: .7rem 1rem;
  border: 1px dashed var(--field); color: var(--lead);
  font-size: .9375rem; max-width: 60ch;
}
.on-dark-note { border-color: var(--on-dark-soft); color: var(--on-dark-soft); }
.placeholder { color: var(--lead); font-style: italic; }
.fine { font-size: .9063rem; color: var(--lead); margin-top: 1.25rem; }
.band-dark .fine { color: var(--on-dark-soft); }

/* Areas as a drawing legend */
.legend { border-top: 1.5px solid var(--graphite); }
.legend-row {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; row-gap: .5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
  align-items: center;
}
.legend-key { width: 48px; height: 24px; }
.legend-row h3 { font-size: 1.5rem; }
.legend-row p { color: var(--lead); grid-column: 1 / -1; }
@media (min-width: 900px) {
  .legend-row { grid-template-columns: 80px minmax(200px, 20rem) 1fr; column-gap: 2rem; align-items: baseline; }
  .legend-key { width: 64px; align-self: center; }
  .legend-row p { grid-column: auto; }
}

/* Purchase journey */
.journey-grid { display: grid; gap: 2.5rem; }
.journey-head p { margin-top: 1rem; color: var(--lead); }
.journey-head .fine { margin-top: 1.25rem; }
@media (min-width: 960px) {
  .journey-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: start; }
  .journey-head { position: sticky; top: 110px; }
}
.steps { position: relative; }
.steps li {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem;
  padding-bottom: 2rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: ""; position: absolute; top: 48px; bottom: 0; inset-inline-start: 23px;
  border-inline-start: 2px solid var(--graphite);
}
.steps li:last-child::before { display: none; }
.step-no {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--sheet); border: 2px solid var(--graphite);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--walnut);
}
.steps h3 { margin-top: .55rem; }
.steps p { margin-top: .35rem; color: var(--lead); }

/* Urban renewal */
.renewal-grid { display: grid; gap: 2.5rem; }
.renewal-text p { margin-top: 1rem; color: var(--on-dark-soft); font-size: 1.09375rem; }
.renewal-text .demo-note { font-size: .9375rem; }
.renewal-questions {
  border: 1.5px solid var(--on-dark-soft);
  padding: 1.5rem 1.4rem;
}
.renewal-questions h3 { font-size: 1.3rem; }
.dash-list { margin-top: 1rem; }
.dash-list li {
  position: relative; padding: .7rem 2.4rem .7rem 0;
  border-bottom: 1px solid rgba(210, 196, 183, .35);
}
.dash-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 1.45rem;
  width: 1.6rem; border-top: 2.5px dashed var(--teal-on-dark);
}
@media (min-width: 960px) {
  .renewal-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
  .renewal-questions { padding: 2rem 2rem; }
}

/* About */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
.portrait { position: relative; max-width: 300px; width: 100%; }
.portrait svg { width: 100%; height: auto; }
.portrait-label {
  position: absolute; inset-inline: 1rem; bottom: 1.25rem;
  text-align: center; font-size: .9063rem; color: var(--lead);
}
.about-text p { margin-top: 1rem; }
.about-text h2 + p { font-size: 1.125rem; }
.facts {
  margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--graphite);
}
.facts > div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-inline-end: 1rem; }
.facts dt { font-size: .8125rem; color: var(--lead); }
.facts dd { font-weight: 600; }
.facts dd.placeholder { font-weight: 400; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 300px 1fr; gap: 4.5rem; }
}

/* FAQ */
.faq { margin-top: 2rem; border-top: 1.5px solid var(--graphite); max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--walnut); }
@media (prefers-reduced-motion: no-preference) { .faq summary svg { transition: transform .2s ease; } }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--lead); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.tb-contact { border: 1.5px solid var(--graphite); }
.tb-contact .tb-cell:first-child { border-top: 0; }
.tb-contact dd a { color: var(--walnut); }
.tb-contact dd a[href^="tel"] { direction: ltr; display: inline-block; font-size: 1.2rem; }
.small-link { display: inline-block; margin-inline-start: .6rem; font-weight: 400; font-size: .9375rem; color: var(--teal) !important; }
.map { margin-top: 1.25rem; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--concrete); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.req { font-weight: 400; color: var(--lead); font-size: .9063rem; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--graphite);
  background: var(--sheet); border: 1.5px solid var(--field); border-radius: 2px;
  padding: .7rem .8rem; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { display: block; margin-top: .35rem; font-size: .9063rem; color: var(--lead); }
.error-msg { display: block; color: var(--error); font-weight: 600; font-size: .9375rem; }
.error-msg:not(:empty) { margin-top: .35rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: .3rem; flex: none; accent-color: var(--walnut); }
.check label { font-weight: 400; margin: 0; }
.form-status:not(:empty) {
  margin-top: 1.25rem; padding: 1rem 1.1rem;
  border: 1.5px solid var(--teal); background: var(--teal-tint); color: var(--graphite);
}
.form-status strong { display: block; }

/* Footer */
.site-footer { background: var(--graphite); color: var(--on-dark); padding: 3rem 0 2rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--teal-on-dark); }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.footer-brand p + p { color: var(--on-dark-soft); margin-top: .2rem; }
.footer-brand a { direction: ltr; display: inline-block; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-fine { color: var(--on-dark-soft); font-size: .9063rem; }
.footer-demo {
  border-top: 1px solid rgba(243, 238, 232, .25); padding-top: 1.25rem;
  font-size: .9375rem; color: var(--on-dark);
}

/* Mobile call bar */
.call-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--walnut-deep); border-top: 1px solid var(--walnut);
  --focus: var(--teal-on-dark);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; color: var(--on-dark); text-decoration: none; font-weight: 700;
}
.call-bar a + a { border-inline-start: 1px solid rgba(243, 238, 232, .25); }
.call-bar svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .call-bar { display: none; } }

/* Inner pages (accessibility, privacy) */
.doc { max-width: 760px; padding: 3rem 0 4rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; }
.doc h2 { font-size: 1.45rem; font-weight: 700; margin-top: 2rem; }
.doc p, .doc ul { margin-top: .8rem; }
.doc ul { list-style: disc; padding-inline-start: 1.3rem; }
.doc li { margin-top: .3rem; }
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 700; }
