/* דוד אינסטלציה – עיצוב נקי ובהיר בגווני מים
   Colours from reference 1 (sky blue, white, navy, one warm call colour); structure from reference 2.
   Motion (Emil): ease-out curves, press scale, hover only on real pointers, calm under reduced motion. */

:root {
  /* palette */
  --sky-50: #f4fafd;
  --sky-100: #eaf5fb;
  --sky-200: #cfe7f5;
  --sky-300: #a9d3ec;
  --blue: #1c6e98;        /* water blue: links, icons */
  --blue-deep: #17618a;   /* the call band */
  --navy: #13314a;        /* text */
  --muted: #4a6275;       /* secondary text, 5.7:1 on sky-100 */
  --white: #ffffff;
  --beige: #faf6ef;
  --green-bg: #e6f2ea;    /* pastel green: availability */
  --green: #1f7a4a;
  --coral: #c8431b;       /* the call button only, 4.9:1 with white */
  --coral-hover: #b13a16;
  --line: rgb(19 49 74 / 0.10);

  /* type */
  --font-display: "Rubik", system-ui, sans-serif;
  --font-text: "Assistant", system-ui, sans-serif;

  /* shape and depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(19 49 74 / 0.06), 0 2px 8px rgb(19 49 74 / 0.06);
  --shadow-md: 0 2px 4px rgb(19 49 74 / 0.05), 0 12px 32px rgb(19 49 74 / 0.10);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* layout */
  --wrap: 1200px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px;
  caret-color: var(--blue); accent-color: var(--blue); scrollbar-color: rgb(19 49 74 / 0.3) transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.65; color: var(--navy); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--sky-300); color: var(--navy); }
img, svg { display: block; max-width: 100%; }
/* phones: no grey/blue flash on tap; every button and link already shows its own press state */
a, button, input { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
.tel { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* focus: shows at once, never animated */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* skip link */
.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent; font: 600 17px/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--call { background: var(--coral); color: var(--white); box-shadow: 0 2px 8px rgb(200 67 27 / 0.25); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--white { background: var(--white); color: var(--blue-deep); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 19px; }
@media (hover: hover) and (pointer: fine) {
  .btn--call:hover { background: var(--coral-hover); }
  .btn--ghost:hover { border-color: var(--sky-300); background: var(--sky-50); }
  .btn--white:hover { background: var(--sky-100); }
}

/* ---------- top bar (reference 2) ---------- */
.topbar { background: var(--navy); color: #dbe7ef; font-size: 15px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__avail { display: inline-flex; align-items: center; gap: 8px; }
.topbar__links { display: flex; gap: 20px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 16px; height: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5cc98a; flex: none; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 0.96); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--navy); text-decoration: none; }
.logo__mark { width: 36px; height: 36px; border-radius: 12px; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.logo__mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { font-weight: 500; text-decoration: none; color: var(--navy); padding: 8px 0; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat;
  transition: background-size 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background-size: 100% 1.5px; } }
.header .btn { min-height: 44px; }

/* ---------- hero (reference 1: sky gradient, wave edge) ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-200) 100%); padding: 64px 0 120px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.2vw, 76px); font-weight: 600; letter-spacing: -0.01em; }
.hero__sub { display: block; margin-top: 0.3em; font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--navy); }
.hero__values { margin-top: 16px; font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); color: var(--blue); }
.hero__values span[aria-hidden] { color: var(--sky-300); padding-inline: 0.4em; }
.hero__lead { margin-top: 24px; font-size: clamp(18px, 1.3vw, 21px); line-height: 1.7; max-width: 34ch; color: var(--navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.wave { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: 72px; color: var(--white); }

/* the help card beside the words: a stressed visitor picks what happened */
.help { background: var(--white); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); }
.help__status { display: inline-flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green); font-weight: 600;
  font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.help__title { margin-top: 16px; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--sky-50);
  border: 1px solid var(--sky-200); text-decoration: none; font-weight: 500; color: var(--navy);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.chip svg { width: 18px; height: 18px; color: var(--blue); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--sky-100); border-color: var(--sky-300); } }
.help__phone { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-md); background: var(--sky-50); border: 1px solid var(--sky-200);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-decoration: none; color: var(--navy);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.help__phone:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .help__phone:hover { background: var(--sky-100); border-color: var(--sky-300); } }
.help__phone-label { color: var(--muted); font-size: 16px; }
.help__phone-num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--blue-deep); }
.help__phone-num svg { width: 22px; height: 22px; flex: none; }

/* hero entrance: once on load, from an already-visible state */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 600ms var(--ease-out) both; }
  .enter--2 { animation-delay: 80ms; }
  .enter--3 { animation-delay: 140ms; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }

/* services grid (reference 2): three across, one card per problem */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); scroll-margin-top: 104px; }
.service:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-200), var(--shadow-md); }
.service__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 20px; font-size: 22px; font-weight: 500; }
.service p { margin-top: 8px; color: var(--muted); flex: 1; }
/* one pair of actions under all the services */
.services__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 640px) { .services__actions { margin-top: 28px; } .services__actions .btn { flex: 1 1 100%; } }
.service--other { background: var(--beige); border-style: dashed; border-color: rgb(19 49 74 / 0.18); box-shadow: none; }
.service--other .service__icon { background: var(--white); }

/* ---------- call band (reference 2) ---------- */
.callband { background: var(--blue-deep); color: var(--white); padding: 72px 0; position: relative; overflow: hidden; }
.callband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.callband h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; }
.callband p { margin-top: 10px; color: #dbeefa; font-size: 19px; }
.callband__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.callband__phone { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 600; color: var(--white); text-decoration: none; }

/* ---------- footer ---------- */
.footer { background: var(--sky-50); padding: 32px 0 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 20px 32px; align-items: start; }
.footer .logo { font-size: 18px; gap: 8px; }
.footer .logo__mark { width: 30px; height: 30px; border-radius: 10px; }
.footer .logo__mark svg { width: 16px; height: 16px; }
.footer__about p { margin-top: 6px; color: var(--muted); }
.footer h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.footer__col p { color: var(--navy); }
.footer__col a { color: var(--navy); text-decoration: none; display: inline-block; padding-block: 4px; }
.footer__col a:hover { text-decoration: underline; }
.footer__sep { color: var(--sky-300); padding-inline: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__links a { color: var(--muted); text-decoration: none; padding-block: 6px; }
.footer__links a:hover { color: var(--navy); text-decoration: underline; }
.footer__legal { margin-top: 6px; padding-top: 8px; display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- floating buttons: WhatsApp and back to top ---------- */
.float { position: fixed; z-index: 40; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; justify-items: center; }
.float__btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--white); color: var(--navy); box-shadow: var(--shadow-md);
  transition: transform 160ms var(--ease-out), opacity 200ms var(--ease-out); }
.float__btn:active { transform: scale(0.95); }
.float__btn img { width: 30px; height: 30px; }
.float__top { width: 44px; height: 44px; }
.float__top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float__top[data-hidden] { opacity: 0; transform: translateY(8px) scale(0.95); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .float__btn:hover { transform: translateY(-2px); } .float__btn:hover:active { transform: scale(0.95); } }
@media (prefers-reduced-motion: reduce) { .float__btn, .btn, .chip, .service { transition-property: opacity, background-color, border-color, box-shadow; } .float__top[data-hidden] { transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer { padding: 26px 0 12px; font-size: 14.5px; }
  .footer__grid { grid-template-columns: 1fr; gap: 12px; }
  .footer__links { gap: 0 14px; margin-top: 14px; }
  .topbar__avail-text--long { display: none; }
  .topbar__links .topbar__wa { display: none; }
  .header .wrap { min-height: 60px; gap: 12px; }
  .nav { display: none; }
  .header .btn { margin-inline-start: auto; padding: 0 18px; }
  .logo { font-size: 20px; }
  .hero { padding: 40px 0 96px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .help { padding: 22px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .services { grid-template-columns: 1fr; gap: 16px; }
  .service { padding: 24px; }
  .callband { padding: 56px 0; }
  .callband__actions { width: 100%; }
  .callband__actions .btn { flex: 1 1 100%; }
  .float { bottom: calc(12px + env(safe-area-inset-bottom)); inset-inline-end: 12px; }
}
@media (max-width: 360px) {
  .header .btn { display: none; }
}

/* ---------- GSAP word reveals (js/animations.js) ---------- */
/* until GSAP has split a heading, it stays hidden so it never flashes; with reduced motion this class is never set */
.split-wait [data-split-hero], .split-wait [data-split-scroll] { visibility: hidden; }
/* SplitText's word masks: keep the space between Hebrew words and the line height unchanged */
[data-split-hero] .split-word-mask, [data-split-scroll] .split-word-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* ---------- before and after gallery ---------- */
.section--tint { background: var(--sky-50); }
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm); }
.work--extra { display: none; }
.works.is-open .work--extra { display: flex; }
.work__media { display: grid; grid-template-columns: 1fr; gap: 3px; background: var(--white); }
.work__media--pair { grid-template-columns: 1fr 1fr; }
.work__shot { position: relative; margin: 0; overflow: hidden; aspect-ratio: 8 / 5; background: var(--sky-100); }
.work__media--pair .work__shot { aspect-ratio: 4 / 5; }
.work__shot img { width: 100%; height: 100%; object-fit: cover; }
.work__tag { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgb(255 255 255 / 0.94); color: var(--navy); box-shadow: 0 1px 3px rgb(19 49 74 / 0.15); }
.work__tag--after { background: var(--blue); color: var(--white); }
.work__body { padding: 18px 20px 22px; }
.work__cat { display: inline-block; font-size: 14px; font-weight: 600; color: var(--blue); }
.work h3 { margin-top: 6px; font-size: 18px; font-weight: 500; line-height: 1.45; }
.work__body p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.works__more { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 960px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .works { grid-template-columns: 1fr; gap: 16px; } .works__more .btn { width: 100%; } }

/* ---------- tap a photo to enlarge it ---------- */
.work__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; margin: 0; background: none; cursor: zoom-in; border-radius: 0; }
.work__zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 0; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0a1a28; color: var(--white); }
.lightbox::backdrop { background: #0a1a28; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 64px 16px 24px; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-sm); background: rgb(255 255 255 / 0.04); cursor: zoom-out; }
.lightbox__cap { max-width: 62ch; text-align: center; font-size: 17px; line-height: 1.5; color: #e6eef4; }
.lightbox__cap b { color: var(--white); font-weight: 600; }
.lightbox__close { position: fixed; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.14); color: var(--white); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lightbox__close:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .lightbox__close:hover { background: rgb(255 255 255 / 0.24); } }
html.has-lightbox { overflow: hidden; }

/* ---------- phone bar: call and WhatsApp under the thumb ---------- */
.mbar { display: none; }
@media (max-width: 640px) {
  .mbar { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.98); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgb(19 49 74 / 0.08); }
  .mbar .btn { min-height: 52px; font-size: 17px; padding: 0 12px; }
  .mbar .btn img { width: 20px; height: 20px; }
  .mbar[data-off] { visibility: hidden; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .float__wa { display: none; }
  .float { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* ---------- lightbox: before / after switch ---------- */
.lightbox__switch { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.12); }
.lightbox__switch[hidden] { display: none; }
.lightbox__switch button { min-width: 96px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--white);
  font: 600 17px/1 var(--font-text); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.lightbox__switch button:active { transform: scale(0.97); }
.lightbox__switch button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.lightbox:has(.lightbox__switch:not([hidden])) .lightbox__figure { padding-bottom: 88px; }
.lightbox:has(.lightbox__switch:not([hidden])) .lightbox__img { max-height: calc(100dvh - 230px); }


/* ---------- reviews: a compact carousel, name and words only ---------- */
/* a native horizontal scroll with snap points: swipe on a phone, arrows or a trackpad on a computer; it never moves by itself */
.reviews { list-style: none; margin: 0; padding: 4px 2px 12px; display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.reviews:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--r-md); }
.review { flex: 0 0 calc((100% - 3 * 16px) / 4); scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.review::before { content: "״"; display: block; height: 20px; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600;
  font-size: 44px; line-height: 0.9; color: var(--sky-300); }
.review__text { margin: 0; flex: 1; }
.review__text p { font-size: 16px; line-height: 1.6; color: var(--navy); }
.review__who { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.review__initial { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--sky-100);
  color: var(--blue); font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.review__name { font-weight: 600; }
.carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), opacity 200ms ease, border-color 200ms ease; }
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn:active { transform: scale(0.95); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) { .carousel__btn:not(:disabled):hover { border-color: var(--sky-300); } }
@media (max-width: 960px) { .review { flex-basis: calc((100% - 16px) / 2.3); } }
@media (max-width: 640px) { .review { flex-basis: 78%; } .reviews { gap: 12px; } }
/* ---------- an invitation to write a Google review, under the Google reviews ---------- */
.review-ask { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 560px; margin: 40px auto 0; padding: 24px 28px;
  text-align: center; background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--r-lg); }
.review-ask__stars { margin-bottom: -6px; font-size: 18px; letter-spacing: 4px; color: #e8a317; }
.review-ask .btn { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.review-ask p { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--navy); }
@media (max-width: 640px) { .review-ask { margin-top: 28px; padding: 20px 16px; } .review-ask p { font-size: 18px; } .review-ask .btn { width: 100%; } }

/* ---------- reviews from Midrag: David's photo and score, then a few reviews word for word ---------- */
.midrag { margin-top: 64px; }
.midrag__card { display: flex; align-items: center; gap: 24px; max-width: 760px; margin: 0 auto 28px; padding: 20px 24px;
  background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--r-lg); }
.midrag__photo { width: 88px; height: 115px; object-fit: cover; border-radius: var(--r-sm); flex: none; box-shadow: var(--shadow-sm); }
.midrag__body { flex: 1; min-width: 0; }
.midrag__body h3 { font-size: 22px; font-weight: 600; }
.midrag__stats { display: flex; gap: 28px; margin: 10px 0 0; }
.midrag__stats div { display: flex; flex-direction: column-reverse; }
.midrag__stats dt { font-size: 15px; color: var(--muted); }
.midrag__stats dd { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; }
.midrag__note { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.midrag__link { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--sky-300); color: var(--blue); font-weight: 600; text-decoration: none;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.midrag__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.midrag__link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .midrag__link:hover { border-color: var(--blue); } }
.review--midrag { position: relative; }   /* keeps the screen-reader text inside the scrolling track */
.review--midrag::before { content: none; }
.review__score { align-self: flex-start; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.review__job { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 640px) {
  .midrag { margin-top: 44px; }
  .midrag__card { flex-wrap: wrap; gap: 16px; padding: 16px; }
  .midrag__photo { width: 72px; height: 94px; }
  .midrag__body h3 { font-size: 19px; }
  .midrag__stats dd { font-size: 28px; }
  .midrag__link { width: 100%; justify-content: center; }
}


/* ---------- water stream down the page (js/animations.js) ---------- */
/* it lives in the empty margin on the right, from the faucet under the header to the foot of the page */
body { position: relative; }
.stream { --sx: max(16px, calc((100vw - 1200px) / 4)); --top: 30px;
  position: absolute; z-index: 5; top: 128px; bottom: 44px; right: 0; width: calc(var(--sx) + 26px); overflow: hidden; pointer-events: none; }
.stream[hidden] { display: none; }
.stream__faucet { position: absolute; top: 0; right: calc(var(--sx) - 26px); width: 34px; height: 34px;
  fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.stream__water { position: absolute; top: var(--top); bottom: calc(var(--bucket) * 0.62); right: calc(var(--sx) - 1px); width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--sky-300), #7dbbe1); transform-origin: top; transform: scaleY(0); }
.stream__drop { position: absolute; top: var(--top); right: calc(var(--sx) - 4px); width: 8px; height: 11px; margin-top: -2px; fill: #6fb2dc; }
/* the bucket at the foot of the stream: the drop lands in it, its water rises and a small ripple spreads */
.stream { --bucket: 30px; }
.stream__bucket { position: absolute; bottom: 0; right: calc(var(--sx) - var(--bucket) / 2); width: var(--bucket); height: calc(var(--bucket) * 28 / 30); overflow: visible; }
.stream__bucket-line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.stream__fill { fill: #8cc6e8; }   /* its height is set by GSAP (empty until the drop lands) */
.stream__ripple { fill: none; stroke: #3f8fc2; stroke-width: 1; opacity: 0; }
@media (max-width: 640px) {
  .stream { --sx: 9px; --top: 0px; top: 110px; bottom: calc(96px + env(safe-area-inset-bottom)); }   /* ends above the phone bar */
  .stream__faucet { display: none; }
  .stream__water { width: 1.5px; opacity: 0.85; }
  .stream__drop { width: 6px; height: 8px; right: calc(var(--sx) - 3px); }
  .stream { --bucket: 18px; }
  .stream__bucket-line { stroke-width: 2.4; }
}

/* phone: the services read as a compact list, the icon beside the name */
@media (max-width: 640px) {
  .services { gap: 10px; }
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px 18px; align-items: start; }
  .service__icon { width: 44px; height: 44px; border-radius: 12px; grid-row: span 2; }
  .service__icon svg { width: 22px; height: 22px; }
  .service h3 { margin-top: 0; font-size: 18px; line-height: 1.35; }
  .service p { margin-top: 2px; font-size: 15px; line-height: 1.55; }
}

/* ---------- gallery: the whole card is a way in (hover lift on a mouse, click anywhere opens the photos) ---------- */
.work { position: relative; cursor: zoom-in; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease; }
.work__media { position: relative; }
.work__shot img { transition: transform 500ms var(--ease-out); }
/* the hint over the photos: hidden until the pointer is on the card */
.work__hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 14px;
  border-radius: 999px; background: rgb(19 49 74 / 0.82); color: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 6px); transition: opacity 200ms ease, transform 260ms var(--ease-out); }
.work__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) {
  .work:hover { transform: translateY(-8px); border-color: var(--sky-300);
    box-shadow: 0 4px 8px rgb(19 49 74 / 0.06), 0 22px 44px rgb(19 49 74 / 0.18); }
  .work:hover .work__shot img { transform: scale(1.06); }
  .work:hover .work__hint { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .work, .work__shot img, .work__hint { transition: box-shadow 200ms ease, border-color 200ms ease, opacity 200ms ease; }
  .work:hover, .work:hover .work__shot img { transform: none; }
  .work:hover .work__hint { transform: translate(-50%, 0); }
}

/* gallery filter chips and arrows: phones only */
.works-filter, .works__nav { display: none; }
@media (max-width: 640px) {
  .works-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
  .works-filter button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sky-200); background: var(--white);
    color: var(--navy); font: 600 15px/1 var(--font-text); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
  .works-filter button:active { transform: scale(0.97); }
  .works-filter button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
  /* one job at a time, swiped sideways; the next one peeks in from the screen edge */
  .works { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 12px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .works::-webkit-scrollbar { display: none; }
  .works .work, .works .work--extra { display: flex; flex: 0 0 84%; scroll-snap-align: start; }
  .works .work.is-out { display: none; }
  .works__nav { display: flex; margin-top: 16px; }
  .works__more { display: none; }
}

/* ---------- phone: type sized for a phone, everything inside the screen ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(32px, 9.4vw, 38px); }
  .hero__sub { font-size: 0.56em; }
  .hero__values { font-size: 19px; margin-top: 10px; }
  .hero__lead { font-size: 16.5px; margin-top: 16px; }
  .hero__actions { margin-top: 24px; }
  .btn--lg { min-height: 52px; font-size: 17px; }
  .help__title { font-size: 20px; }
  .help__phone-num { font-size: 21px; }
  .help__phone { padding: 12px 16px; }
  .chip { font-size: 15px; padding: 0 13px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: clamp(25px, 7vw, 28px); }
  .section-head p { font-size: 16px; }
  .work h3 { font-size: 16.5px; }
  .callband { padding: 48px 0; }
  .callband h2 { font-size: clamp(23px, 6.6vw, 26px); }
  .callband p { font-size: 16.5px; }
  .callband__phone { font-size: 26px; }
  .topbar { font-size: 14px; }
  /* the reviews run to the screen's edge, so the next card peeks in from the edge, not from the page margin */
  .reviews { margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .review { flex-basis: 80%; }
  .review__text p { font-size: 15.5px; }
}

/* ---------- accessibility menu (js/a11y.js) ---------- */
.a11y { position: relative; }
.header .a11y { margin-inline-start: 0; }
.a11y__toggle { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--sky-200); background: var(--white); color: var(--blue-deep);
  display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
.a11y__toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y__toggle circle { fill: currentColor; stroke: none; }
.a11y__toggle:active { transform: scale(0.95); }
.a11y__toggle[aria-expanded="true"] { background: var(--sky-100); border-color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .a11y__toggle:hover { border-color: var(--sky-300); background: var(--sky-50); } }
.a11y__panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: 300px; padding: 18px; border-radius: var(--r-md);
  background: var(--white); color: var(--navy); border: 1px solid var(--line); box-shadow: 0 6px 12px rgb(19 49 74 / 0.08), 0 24px 48px rgb(19 49 74 / 0.18); }
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y__title { font-size: 19px; font-weight: 600; }
.a11y__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sky-50); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.a11y__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.a11y__label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.a11y__sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.a11y__sizes button, .a11y__toggles button, .a11y__reset { min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--sky-200); background: var(--white);
  color: var(--navy); font: 600 16px/1 var(--font-text); cursor: pointer; }
.a11y__sizes button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.a11y__toggles { display: grid; gap: 6px; }
.a11y__toggles button { display: flex; align-items: center; gap: 12px; padding: 0 12px; text-align: start; }
.a11y__switch { position: relative; width: 36px; height: 20px; flex: none; border-radius: 999px; background: var(--sky-200); transition: background-color 160ms ease; }
.a11y__switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 160ms var(--ease-out); }
.a11y__toggles button[aria-pressed="true"] .a11y__switch { background: var(--blue); }
.a11y__toggles button[aria-pressed="true"] .a11y__switch::after { transform: translateX(-16px); }
[dir="ltr"] .a11y__toggles button[aria-pressed="true"] .a11y__switch::after { transform: translateX(16px); }
.a11y__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.a11y__reset { padding: 0 14px; font-size: 15px; }
.a11y__foot a { color: var(--blue-deep); font-weight: 600; font-size: 15px; padding-block: 10px; }
@media (max-width: 640px) {
  .a11y__toggle { width: 40px; height: 40px; }
  .a11y__panel { position: fixed; top: 108px; inset-inline: 12px; width: auto; max-height: calc(100dvh - 130px); overflow: auto; }
}
@media (max-width: 360px) { .header .wrap { gap: 8px; } .logo { font-size: 18px; } }

/* the modes the menu switches on (attributes on <html>, set before the first paint by js/a11y-boot.js) */
html[data-a11y-text="1"] body { zoom: 1.15; }
html[data-a11y-text="2"] body { zoom: 1.3; }
html[data-a11y-contrast] { --navy: #000; --muted: #1d2b36; --sky-50: #fff; --sky-100: #fff; --sky-200: #4b6273; --sky-300: #2f4656;
  --line: rgb(0 0 0 / 0.5); --blue: #084566; --blue-deep: #063550; --coral: #9e300d; --coral-hover: #852809; --beige: #fff; --green: #0b4d2b; }
html[data-a11y-contrast] body, html[data-a11y-contrast] .hero, html[data-a11y-contrast] .section--tint { background: #fff; color: #000; }
html[data-a11y-contrast] .service, html[data-a11y-contrast] .work, html[data-a11y-contrast] .review, html[data-a11y-contrast] .help,
html[data-a11y-contrast] .chip, html[data-a11y-contrast] .btn--ghost { border: 2px solid #000; }
html[data-a11y-contrast] .wave { display: none; }
html[data-a11y-links] a:not(.btn):not(.logo) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html[data-a11y-links] a, html[data-a11y-links] button { outline: 2px solid rgb(28 110 152 / 0.55); outline-offset: 2px; }
html[data-a11y-font] { --font-display: Arial, "Assistant", sans-serif; --font-text: Arial, "Assistant", sans-serif; }
html[data-a11y-font] body { letter-spacing: 0.01em; word-spacing: 0.08em; line-height: 1.75; }
html[data-a11y-still] *, html[data-a11y-still] *::before, html[data-a11y-still] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-a11y-still] .stream { display: none !important; }

/* the accessibility statement page */
.doc { padding: 48px 0 64px; }
.doc__wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; }
.doc__meta { margin-top: 6px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 32px; font-size: 22px; font-weight: 600; }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.doc__contact { margin-top: 28px; padding: 20px 22px; border-radius: var(--r-md); background: var(--sky-50); border: 1px solid var(--sky-200); }
.doc__contact h3 { font-size: 17px; font-weight: 600; }
.doc__contact p { margin-top: 6px; }
.doc__contact a { color: var(--blue-deep); font-weight: 600; }
.page-doc .footer { padding: 16px 0; }

/* phone header: the name on one line and the accessibility button beside it. The call button lives in the hero
   and in the bottom bar there, so the header does not repeat it. */
@media (max-width: 640px) {
  .header .btn--call { display: none; }
  .header .a11y { margin-inline-start: auto; }
  .logo { white-space: nowrap; }
}
