/* Landmark – Maintenance & Property Management
   Brand: navy #1B2A3A and white only. Contrast between sections comes from
   inverting (navy background, white text), never from extra colours. */

:root {
  --navy: #1B2A3A;
  --white: #FFFFFF;
  --tint: rgba(27, 42, 58, 0.06);
  --footer-bg: #EEF0F2; /* pale navy tint */
  --rule: 1.5px solid var(--navy);
  --radius: 18px;
  --radius-sm: 10px;
  --gutter: 16px;
  --header-h: 72px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 6.2vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 4.4vw, 2.375rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; }
ul { padding: 0; margin: 0; list-style: none; }
svg { display: block; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 800;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }
.section-navy { background: var(--navy); color: var(--white); }

.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.lead { font-size: 1.1875rem; max-width: 40em; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--navy); color: var(--white);
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: var(--white); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.section-navy .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.section-navy .btn:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white);
}
/* בס״ד sits at the end of the header row: after the nav on desktop (with a
   thin divider), on the right on phones. */
.bsd {
  flex-shrink: 0;
  font-family: "Noto Sans Hebrew", "Arial Hebrew", sans-serif; font-weight: 600;
  font-size: 13px; line-height: 1.6; opacity: .9;
}
@media (min-width: 1024px) {
  .bsd { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .35); }
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px;
}
.brand { display: block; flex-shrink: 0; margin-right: auto; }
.brand landmark-logo { width: 188px; }
@media (min-width: 1024px) { .brand landmark-logo { width: 236px; } }

landmark-logo { display: block; }
landmark-logo svg { width: 100%; height: auto; }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
/* Client login: outlined, since it leads to the separate portal site. */
.site-nav .nav-portal a { border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 999px; padding: 7px 16px; margin-left: 8px; }
.site-nav .nav-portal a:hover { background: var(--white); color: var(--navy); text-decoration: none; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--white); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  /* Menu button on the left, before the logo; the menu opens left-aligned. */
  .menu-toggle { display: inline-flex; margin-left: -10px; }
  .header-inner { gap: 6px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 4px; font-size: 1.125rem; }
  .site-nav .nav-portal { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .25); }
  .site-nav .nav-portal a { display: inline-block; margin-left: 0; padding: 10px 20px; }
}

/* ---------- Illustrations & frames ---------- */
.illo { width: 100%; height: auto; color: currentColor; }
.illo .tint { fill: currentColor; fill-opacity: .08; }
.illo .tint-2 { fill: currentColor; fill-opacity: .16; }
.illo .knock { fill: var(--white); stroke: none; }
.section-navy .illo .knock { fill: var(--navy); }

image-frame {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}
.section-navy image-frame { background: var(--navy); }
image-frame > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: url("#navy-duotone");
}
image-frame > .illo { padding: 6%; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: 28px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 8px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

/* ---------- Services ---------- */
#services { padding-top: 48px; }
@media (min-width: 768px) { #services { padding-top: 64px; } }
.cards { display: grid; gap: 48px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.card {
  display: flex; flex-direction: column;
}
.card .illo { width: 132px; margin-bottom: 20px; }
.card h3 { font-size: 1.25rem; }
.card ul { margin: 4px 0 16px; }
.card li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.card .note { font-size: .9375rem; margin: 0; }
.card .illo[data-story] { cursor: pointer; }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; } }

/* isolation keeps Leaflet's own layers (zoom buttons, pins) inside the map,
   so they never slide over the sticky header. */
.map-wrap { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; }
#map { height: 380px; background: #EEF0F2; }
@media (min-width: 900px) { #map { height: 520px; } }
.map-activate {
  position: absolute; left: 50%; bottom: 16px; z-index: 500; transform: translateX(-50%);
  padding: 0; background: transparent; border: 0; border-radius: 999px; cursor: pointer; font: inherit;
}
.map-activate span {
  background: var(--navy); color: var(--white); font-weight: 800; font-size: .9375rem;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap; display: block;
}
.map-wrap.is-active .map-activate { display: none; }

.leaflet-container { font-family: var(--font); }
/* Brand-coloured map: tiles go through the navy duotone filter (one filter
   per tile, so panning doesn't re-filter the whole map). */
.leaflet-tile-pane .leaflet-tile { filter: url("#map-duotone"); }
.leaflet-control-attribution { font-size: 11px; color: var(--navy); }
.leaflet-container .leaflet-control-attribution a { color: var(--navy); text-decoration: underline; }
.leaflet-touch .leaflet-bar, .leaflet-bar {
  border: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(27, 42, 58, .22);
}
.leaflet-bar a, .leaflet-touch .leaflet-bar a {
  width: 36px; height: 36px; line-height: 34px;
  background: var(--white); color: var(--navy); font: 800 20px/34px var(--font);
  border-bottom: 1px solid rgba(27, 42, 58, .12);
}
.leaflet-bar a:last-child { border-bottom: 0; }
.leaflet-bar a:hover, .leaflet-bar a:focus-visible { background: var(--navy); color: var(--white); }
.leaflet-bar a.leaflet-disabled { background: var(--white); color: rgba(27, 42, 58, .35); }
.lm-pin { background: none; border: 0; cursor: pointer; }
/* "Kiryas Joel" balloon marker: dark name with a white glow, like the map's
   own place names, so it reads over roads and buildings. */
.lm-village-marker { background: none; border: 0; }
.lm-village-marker svg { overflow: visible; }
.lm-village-marker text {
  font: 800 12.5px var(--font); fill: var(--navy);
  stroke: var(--white); stroke-width: 3.2px; stroke-linejoin: round; paint-order: stroke;
}
.lm-pin:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; border-radius: 6px; }
.lm-pin svg { width: 34px; height: 40px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }

.checker { padding: 0; }
.checker h3 { margin-bottom: 4px; }
.checker > p { margin-bottom: 18px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  min-height: 48px; padding: 0 14px; border: var(--rule); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); font: inherit; font-weight: 800; font-size: .9375rem;
  cursor: pointer; white-space: nowrap;
}
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon:hover { background: var(--navy); color: var(--white); }
.btn-icon[aria-busy="true"] svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 559px) {
  .input-row { flex-direction: column; }
  .input-row .btn-icon { align-self: flex-start; }
}
.ac { position: relative; flex: 1; min-width: 0; }
.ac input { width: 100%; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 600;
  margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: var(--rule); border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(27, 42, 58, .18);
}
.ac-list[hidden] { display: none; }
.ac-list li {
  display: flex; flex-direction: column; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; line-height: 1.35;
}
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--navy); color: var(--white); }
.ac-list .ac-main { font-weight: 800; }
.ac-list .ac-sub { font-size: .875rem; }
.field-note { display: flex; gap: 8px; margin: 10px 0 0; font-size: .9375rem; }
.field-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.checker .btn { margin-top: 16px; width: 100%; }

.result {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  margin-top: 20px; padding: 18px; border-radius: 14px; border: var(--rule);
}
.result:empty { display: none; }
.result svg { width: 28px; height: 28px; }
.result h4 { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 800; }
.result p { margin: 0 0 4px; }
.result .meta { font-size: .9375rem; }
.result .btn { margin-top: 12px; width: auto; min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.result.is-good { background: var(--navy); color: var(--white); }
.result.is-good .btn { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 800; font-size: .9375rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: var(--rule); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy);
  font: inherit; font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: var(--navy); opacity: .55; }
textarea { min-height: 128px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: var(--radius-sm); }
[aria-invalid="true"] { border-width: 3px !important; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: var(--rule); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9375rem;
}
.chip input:checked + span { background: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }

.field-error { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 800; margin: 0; }
.field-error[hidden] { display: none; }
.field-error::before {
  content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%; background: var(--navy); color: var(--white); font-size: .75rem;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px; border-radius: 14px;
  border: var(--rule);
}
.form-status[hidden] { display: none; }
.form-status svg { width: 28px; height: 28px; }
.form-status.is-success { background: var(--navy); color: var(--white); }
.form-status p { margin: 0; }
.form-status strong { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--navy); padding: 24px 0; font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.footer-row p { margin: 0; }
.footer-row p:last-child { margin-left: auto; }
.site-footer landmark-logo { width: 150px; }
@media (max-width: 767px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-row p:last-child { margin-left: 0; }
}

/* ---------- Motion ----------
   Only runs when <html> has .motion, which components.js adds unless the
   visitor has asked for reduced motion. Without it, every drawing shows its
   finished, still state. */

/* Hero scene: slow, looping, paused while off screen. */
.illo .pane { fill: currentColor; fill-opacity: 0; stroke: none; }
.motion .hero-scene:not(.in-view) * { animation-play-state: paused !important; }

.motion .cloud { animation: drift 80s linear infinite; }
.motion .cloud-1 { animation-delay: -30s; }
.motion .cloud-2 { animation-duration: 110s; animation-delay: -85s; }
@keyframes drift { from { transform: translateX(-90px); } to { transform: translateX(500px); } }

.motion .birds { animation: glide 46s linear infinite; animation-delay: -14s; }
@keyframes glide {
  from { transform: translate(-200px, 10px); }
  50% { transform: translate(130px, -6px); }
  to { transform: translate(460px, 4px); }
}
.motion .bird { transform-box: fill-box; transform-origin: center; animation: flap 1.4s ease-in-out infinite; }
.motion .bird-2 { animation-delay: -.6s; }
@keyframes flap { 50% { transform: scaleY(.45); } }

.sway { transform-box: view-box; }
.sway-1 { transform-origin: 82px 300px; }
.sway-2 { transform-origin: 414px 300px; }
.motion .sway-1 { animation: sway 7s ease-in-out infinite alternate; }
.motion .sway-2 { animation: sway 5.5s ease-in-out -2s infinite alternate; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

.puff { opacity: 0; stroke-width: 2.5; }
.motion .puff {
  transform-box: fill-box; transform-origin: center;
  animation: puff 7.5s ease-out infinite;
}
.motion .puff:nth-child(2) { animation-delay: -2.5s; }
.motion .puff:nth-child(3) { animation-delay: -5s; }
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(14px, -54px) scale(1.9); }
}

.motion .pane { animation: lights 18s ease-in-out infinite; }
.motion .pane-2 { animation-delay: 1.4s; }
.motion .pane-3 { animation-delay: 2.8s; }
@keyframes lights {
  0%, 10% { fill-opacity: 0; }
  18%, 62% { fill-opacity: .26; }
  72%, 100% { fill-opacity: 0; }
}

/* Story moments: play once when the drawing scrolls into view. */
/* --len is each path's real length, set by site.js (works in every browser,
   unlike pathLength). Clicking a drawing plays it again. */
.motion [data-story] .draw { stroke-dasharray: var(--len, 100); stroke-dashoffset: var(--len, 100); }
.motion [data-story].is-playing .draw { animation: draw .55s ease-out var(--d, 0s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.illo .lite { fill: currentColor; fill-opacity: 0; }
.motion [data-story].is-playing .lite { animation: lite .5s ease-out var(--d, 0s) forwards; }
@keyframes lite { to { fill-opacity: .3; } }

.lid { transform-box: view-box; transform-origin: 14px 56px; }
.motion [data-story].is-playing .lid { animation: lid 2.4s ease-in-out .4s both; }
@keyframes lid {
  0%, 100% { transform: rotate(0); }
  30%, 66% { transform: rotate(-17deg); }
}

/* Map: the 10-mile circle traces itself in, the 15-mile one fades in, and a
   checked address gets a pin that drops in with a soft ripple. */
.motion .map-wrap .lm-circle-10 { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); fill-opacity: 0; }
.motion .map-wrap .lm-circle-10.is-traced { stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: .08; animation: none; }
.motion .map-wrap.is-playing .lm-circle-10 { animation: trace 1.8s ease-in-out .2s forwards; }
@keyframes trace {
  70% { stroke-dashoffset: 0; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: .08; }
}
.motion .lm-circle-15 { animation: fade-in .7s ease-out both; }
@keyframes fade-in { from { opacity: 0; } }

.lm-pin .lm-pin-body { display: block; transform-origin: 50% 100%; }
.lm-pin .lm-ripple {
  position: absolute; left: 50%; bottom: -2px; width: 44px; height: 16px; margin-left: -22px;
  border: 2px solid var(--navy); border-radius: 50%; opacity: 0; pointer-events: none;
}
.motion .lm-pin .lm-pin-body { animation: pin-drop .7s cubic-bezier(.3, .6, .4, 1) both; }
.motion .lm-pin .lm-ripple { animation: ripple 1.1s ease-out .45s both; }
@keyframes pin-drop {
  0% { transform: translateY(-46px); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translateY(0) scale(1.06, .9); }
  78% { transform: translateY(-7px) scale(1); }
  100% { transform: translateY(0); }
}
@keyframes ripple {
  0% { opacity: .8; transform: scale(.2); }
  100% { opacity: 0; transform: scale(1.7); }
}
