/* =====================================================================
   יעקב - שירותי אינסטלציה ודוודים
   Main stylesheet for all pages.

   How this file is organized:
     0. Font (self-hosted Rubik)
     1. Design tokens (colors, type, spacing) — change the look here first
     2. Base / reset
     3. Accessibility helpers (skip link, focus, visually-hidden)
     4. Layout helpers
     5. Buttons
     6. Header
     7. Hero
     8. Page sections (trust bar, services, reasons, reviews, area, steps, gallery)
     9. Final CTA + footer
    10. Mobile sticky bar
    11. Legal pages (privacy / terms / accessibility)
    12. Larger screens (min-width media queries)
    13. Reduced motion
    14. Tap targets & small-screen tweaks

   The CSS is mobile-first: base rules are for phones, and
   @media (min-width: ...) blocks at the end add the tablet/desktop layout.

   The site is RTL (dir="rtl"). Use logical properties (margin-inline-start,
   padding-inline-end, inset-inline-start...) instead of left/right, so the
   layout stays correct without separate RTL rules.
   ===================================================================== */


/* ---------- 0. Font (self-hosted) ----------
   Rubik is served from /fonts on this site instead of Google Fonts: no extra
   connection to another server before the page can render, and visitors' IP
   addresses are not sent to Google. Each file is a variable font covering
   weights 400-800. unicode-range makes the browser download only the subset
   the page actually uses (Hebrew letters / Latin letters and digits).
   Both files are preloaded in the <head> of every page.
   License: SIL Open Font License, see /fonts/OFL.txt. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- 1. Design tokens ----------
   Contrast ratios were measured against WCAG 2.0 (AA needs 4.5:1 for
   normal text, 3:1 for large text). If you change a color, re-check it
   with a contrast checker, e.g. https://webaim.org/resources/contrastchecker/ */
:root {
  /* Blues */
  --blue-900: #0A2E57;   /* hero, final CTA, footer. White text on it: 13.6:1 */
  --blue-700: #0D5BB5;   /* links, icons, focus ring. On white: 6.6:1, on --mist: 6.0:1 */
  --blue-100: #DCE9F8;   /* light blue text on --blue-900: 9.7:1 (value #C9DCF2 used for text) */
  --blue-50:  #EEF4FB;   /* light blue background behind service icons */

  /* Neutrals */
  --ink:   #14263D;      /* body text. On white: 15.3:1, on --mist: 14.0:1 */
  --muted: #4A5B70;      /* secondary text. On white: 7.0:1, on --mist: 6.3:1 */
  --mist:  #F1F5F9;      /* alternate section background */
  --line:  #D6DFEA;      /* borders and dividers (decorative only) */
  --white: #FFFFFF;

  /* Action colors.
     Call = "sun" yellow, a nod to solar water heaters
     and the highest-visibility color on the page. --ink on it: 9.8:1.
     WhatsApp = a dark WhatsApp-style green. White text on it: 5.3:1. */
  --sun:       #FFC72C;
  --sun-hover: #FFD45E;
  --sun-edge:  #B88600;  /* outline of yellow buttons on white backgrounds: 3.3:1 */
  --wa:        #0B7A55;
  --wa-hover:  #096646;

  /* Stars on white backgrounds (graphic, the rating is also given in text): 3.6:1 */
  --star: #B87A00;

  /* Status indicator text on --blue-900 */
  --open:   #7EE2A8;     /* 8.7:1 */
  --closed: #FFD5C2;     /* 10.1:1 */

  /* Type: Rubik (self-hosted, see section 0) has full Hebrew support. System fonts are the fallback while it loads. */
  --font: "Rubik", "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;

  /* Type scale (ratio ~1.25). clamp() = grows smoothly from phone to desktop. */
  --fs-sm:   0.9375rem;                       /* 15px */
  --fs-base: 1.0625rem;                       /* 17px: Hebrew reads better a bit larger */
  --fs-lg:   1.25rem;
  --fs-h3:   1.1875rem;
  --fs-h2:   clamp(1.6rem, 4.5vw, 2.25rem);
  --fs-h1:   clamp(2rem, 7.2vw, 3.4rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius-sm: 8px;      /* chips, small elements */
  --radius:    12px;     /* buttons, panels */
  --container: 1120px;
  --header-h:  60px;
  --bar-h:     72px;     /* height of the mobile sticky bar (used to pad the page bottom) */
}


/* ---------- 2. Base / reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Anchor jumps (e.g. the skip link) stop below the sticky header instead of under it */
  scroll-padding-top: calc(var(--header-h) + 8px);
  /* Same idea at the bottom: on phones the fixed call bar covers the last ~72px of
     the screen. This makes the browser scroll a Tab-focused element above the bar
     instead of leaving it hidden behind it (WCAG 2.4.7). Reset to 0 on desktop. */
  scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  /* Room at the bottom so the mobile sticky bar never covers the footer.
     env(safe-area-inset-bottom) = extra space for the iPhone home indicator. */
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  font-weight: 700;
}
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-base); }

p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
dd { margin: 0; }

a { color: var(--blue-700); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

/* Inline SVG icons from images/icons.svg. 1em = scales with the text around it. */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: middle;
}


/* ---------- 3. Accessibility helpers ---------- */

/* Text for screen readers only (e.g. "opens in a new window"). Standard pattern. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to main content": hidden off-screen until it gets keyboard focus. */
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--white);
  color: var(--blue-900);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-1); }

/* Visible keyboard focus on everything. :focus-visible shows it for keyboard
   users without showing it on every mouse click. */
:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On dark-blue areas the blue ring would be invisible, so use yellow there. */
.site-header :focus-visible,
.hero :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible,
.mobile-bar :focus-visible {
  outline-color: var(--sun);
}
/* <main tabindex="-1"> receives focus from the skip link; it needs no ring. */
main:focus { outline: none; }


/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.section { padding-block: var(--space-5); }
.section--alt { background: var(--mist); }

.section-lead {
  color: var(--muted);
  font-size: var(--fs-lg);
  max-width: 40ch;
}


/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;              /* large touch target (minimum is 44px) */
  padding: 0.75em 1.25em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;  /* only color changes, no movement */
}
.btn .icon { width: 1.4em; height: 1.4em; }

.btn-call {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--sun-edge);
}
.btn-call:hover { background: var(--sun-hover); }

.btn-wa {
  background: var(--wa);
  color: var(--white);
}
.btn-wa:hover { background: var(--wa-hover); }

/* Two-line button label: main action + the number/hint underneath */
.btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.btn-sub { font-size: var(--fs-sm); font-weight: 500; }
.btn-sub[dir="ltr"] { white-space: nowrap; }   /* never split a phone number */

/* Call + WhatsApp side by side. On very narrow phones they stack.
   On phones the text is a bit smaller so "התקשרו עכשיו" and the number fit
   on one line each inside a half-width button. */
.cta-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);  /* minmax(0,..) stops long text from widening a column */
  gap: 10px;
}
@media (max-width: 359px) {
  .cta-pair { grid-template-columns: 1fr; }
}
.cta-pair .btn {
  padding: 0.6em 0.6em;
  gap: 0.5em;
  font-size: 1.125rem;
}
.cta-pair .btn .icon { width: 1.3em; height: 1.3em; }
@media (min-width: 600px) {
  .cta-pair .btn { font-size: var(--fs-lg); padding-inline: 1em; }
}

.link-strong { font-weight: 700; }


/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;              /* stays at the top while scrolling */
  top: 0;
  z-index: 50;
  background: var(--blue-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}
/* On narrow screens or with enlarged text spacing the brand shrinks and its tagline
   wraps, instead of the page scrolling sideways (WCAG 1.4.10 / 1.4.12).
   The call/WhatsApp buttons never shrink. */
.header-actions { flex: none; }

.brand {
  min-width: 0;                  /* lets the tagline wrap so the header fits 320px screens */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;              /* comfortable tap target */
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
}
.brand-name { font-size: 1.35rem; font-weight: 800; }
.brand-tagline { font-size: 0.75rem; color: #C9DCF2; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.header-call,
.header-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.header-call { padding-inline: 0.6em; border: 1px solid rgba(255, 255, 255, 0.35); font-size: var(--fs-sm); }
@media (min-width: 600px) { .header-call { font-size: var(--fs-base); } }
.header-call:hover { background: rgba(255, 255, 255, 0.1); }
.header-wa { background: var(--wa); }
.header-wa:hover { background: var(--wa-hover); }
.header-wa .icon { width: 1.5em; height: 1.5em; }


/* ---------- 7. Hero ---------- */
/* Hero background: a photo of copper pipes (AI-generated texture, no people and
   not presented as a real job) under a dark-blue overlay. The overlay keeps
   white text above 10:1 contrast wherever it lands on the photo, so the text
   never depends on the photo. If the image fails to load, the solid
   --blue-900 background-color is used instead. */
.hero {
  background-color: var(--blue-900);
  background-image:
    linear-gradient(rgba(10, 46, 87, 0.88), rgba(10, 46, 87, 0.88)),
    url("../images/hero-bg-mobile.webp");   /* 800px phone version; preloaded in index.html */
  background-size: cover;
  background-position: left center;
  color: var(--white);
  padding-block: var(--space-4) var(--space-5);
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 17ch;               /* keeps the headline in 2-4 balanced lines */
  margin-bottom: var(--space-3);
  text-wrap: balance;            /* even line lengths where supported */
}

/* The three trust points under the H1, separated by dots (from the brief). */
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0;
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #C9DCF2;
}
.hero-points li { white-space: nowrap; }
@media (min-width: 600px) { .hero-points { font-size: var(--fs-lg); } }
/* Phones: every item gets a leading dot, so when the line wraps it reads as
   a short bullet list instead of a line starting with a stray separator. */
.hero-points { column-gap: 1em; }
.hero-points li::before {
  content: "·";
  margin-inline-end: 0.35em;
  color: var(--sun);
  font-weight: 800;
}
/* Wider screens: the items fit on one line, so the dot becomes a separator between them. */
@media (min-width: 600px) {
  .hero-points { column-gap: 0; }
  .hero-points li:first-child::before { content: none; }
  .hero-points li + li::before { margin-inline: 0.5em; }
}

.hero .cta-pair { max-width: 560px; }

/* Review quote under the hero buttons: real proof right where visitors decide.
   A yellow start-side rule ties it to the call button. Text on the dark hero:
   white 13.6:1, light blue #C9DCF2 9.7:1. Stars use --sun here (8.7:1 on dark blue). */
.hero-quote {
  margin-top: var(--space-3);
  padding-inline-start: var(--space-2);
  border-inline-start: 3px solid var(--sun);
  max-width: 560px;
}
.hero-quote blockquote { margin: 0; }
.hero-quote p {
  margin: 0 0 0.3em;
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.4;
}
.hero-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 0.5em;
  font-size: var(--fs-sm);
  color: #C9DCF2;
}
.hero-quote .stars { color: var(--sun); }

.hero-area {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: var(--space-3) 0 0;
  color: #C9DCF2;
  font-size: var(--fs-sm);
}

/* Open / closed indicator (filled by main.js). The dot is the only animated
   element on the page: two slow pulses when open, then it stops.
   Turned off completely for reduced motion. */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-2);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.open-status::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: currentColor;
}
.open-status.is-open { color: var(--open); }
.open-status.is-open::before { animation: pulse 2.4s ease-in-out 2; }   /* 2 cycles = 4.8s, then it stops (WCAG 2.2.2: under 5s) */
.open-status.is-closed { color: var(--closed); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(126, 226, 168, 0); }
}

/* Hero photo: desktop only (see media queries). Hidden on phones so the
   call buttons stay high on the screen; loading="lazy" means a hidden
   image is not downloaded on phones. */
.hero-photo { display: none; }


/* ---------- 8. Page sections ---------- */

/* Trust bar: 2x2 grid on phones, one row on larger screens */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding-block: var(--space-3);
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.trust-list .icon { color: var(--blue-700); width: 1.6em; height: 1.6em; }
.trust-list li:first-child .icon { color: var(--star); }
.trust-list strong { font-weight: 700; }

/* Services */
.service-list { list-style: none; display: grid; gap: var(--space-3); }
.service { display: flex; gap: var(--space-2); align-items: flex-start; }
.service h4 { margin-bottom: 0.15em; font-size: var(--fs-base); }
.service p { margin: 0; color: var(--muted); }
.service-icon {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue-700);
}

/* General plumbing list is followed by the water-heater list (additional service). */
.service-list--spaced { margin-bottom: var(--space-5); }

.general-title { font-size: var(--fs-lg); margin-bottom: var(--space-3); }

.inline-cta {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-lg);
}
.inline-cta a { font-weight: 700; }

/* "Why Yaakov" reasons */
.reasons { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.reasons li { display: flex; gap: var(--space-2); align-items: flex-start; }
.reasons .icon { width: 1.75em; height: 1.75em; color: var(--blue-700); margin-top: 0.1em; }
.reasons h3 { margin-bottom: 0.15em; }
.reasons p { margin: 0; color: var(--muted); }

/* Reviews */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 1.3em; height: 1.3em; }
.stars--small .icon { width: 1em; height: 1em; }

.reviews { list-style: none; display: grid; gap: var(--space-2); }
/* A review is a quote, not a card: a start-side rule and plain white background. */
.review {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--star);
  border-radius: var(--radius-sm);
}
.review blockquote { margin: 0; flex: 1; }
.review-text { margin: 0; font-size: var(--fs-base); }
.review figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 0.75em;
  font-size: var(--fs-sm);
}
.review-name { font-weight: 700; }
.review-source { color: var(--muted); }

.reviews-more { margin: var(--space-3) 0 0; font-size: var(--fs-lg); }

/* Placeholder content (reviews, captions) is shown in a dashed box so it is
   obvious what still needs to be replaced. Remove the "placeholder" class
   after pasting the real text. */
.placeholder {
  padding: var(--space-1) var(--space-2);
  border: 2px dashed var(--sun-edge);
  border-radius: var(--radius-sm);
  background: #FFF8E1;
  color: var(--ink);
}

/* Service-area chips */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4em 1em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}
.area-note { margin: 0; }
.area-note a { font-weight: 700; }

/* How it works: numbered steps. The numbers come from the <ol> counter,
   so the order is real content, not decoration. */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 4rem;
  min-height: 3rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
}
/* A thin vertical line connects the steps on phones (like a pipe run). */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(1.5rem - 1px);
  top: 3.25rem;
  bottom: calc(-1 * var(--space-4) + 0.25rem);
  width: 2px;
  background: var(--line);
}
.steps h3 { margin-bottom: 0.2em; padding-top: 0.55rem; }
.steps p { margin: 0; color: var(--muted); }

/* Job photo gallery */
.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;           /* square: works for both portrait and landscape job photos */
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--line);
}
.gallery figcaption {
  margin-top: 0.4em;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* "More videos" links under the gallery (Instagram, TikTok).
   Outline buttons, quieter than the yellow/green call buttons so they don't compete with them.
   --blue-700 on --mist: 6.0:1. */
.more-work {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
}
.more-work-text { margin: 0; font-size: var(--fs-lg); font-weight: 500; }
.more-work-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.5em 1.1em;
  border: 2px solid var(--blue-700);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-outline:hover { background: var(--blue-50); }
.btn-outline .icon { width: 1.35em; height: 1.35em; }

/* Before/after feature: spans the full gallery width, above the square photos.
   Two portrait photos side by side; "before" on the right because Hebrew reads right to left. */
.gallery-feature { grid-column: 1 / -1; }
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ba-item { position: relative; }
.gallery .ba-item img { aspect-ratio: 3 / 4; }
.ba-label {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 0.2em 0.75em;
  border-radius: 999px;
  background: var(--blue-900);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.ba-label--after { background: var(--sun); color: var(--ink); }
.before-after figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  margin-top: 0.6em;
  font-size: var(--fs-base);
}
.before-after figcaption strong { color: var(--ink); font-size: var(--fs-lg); }

/* Desktop: photos at a readable size with the caption beside them, not a giant full-width pair. */
@media (min-width: 900px) {
  .before-after {
    display: grid;
    grid-template-columns: minmax(0, 620px) 1fr;
    gap: var(--space-4);
    align-items: center;
  }
  .before-after figcaption { margin-top: 0; }
}


/* ---------- 9. Final CTA + footer ---------- */
.final-cta {
  background: var(--blue-900);
  color: var(--white);
  padding-block: var(--space-5);
}
.final-cta h2 { max-width: 22ch; text-wrap: balance; }
.final-sub { color: #C9DCF2; font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.final-cta .cta-pair { max-width: 560px; }

.hours { margin-top: var(--space-4); }
.hours-title { font-size: var(--fs-base); margin-bottom: var(--space-1); }
.hours-list { margin: 0; max-width: 320px; }
.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.hours-list dt { font-weight: 500; }

.site-footer {
  background: #08233F;           /* a step darker than the hero so the two read as separate */
  color: #C9DCF2;                /* 10.9:1 on this background */
  padding-block: var(--space-5) var(--space-3);
  font-size: var(--fs-sm);
}
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: var(--space-4); }
.footer-brand { color: var(--white); font-weight: 700; font-size: var(--fs-lg); }
.footer-heading { font-size: var(--fs-base); color: var(--white); margin: var(--space-3) 0 var(--space-1); }
.footer-grid > div > .footer-heading:first-child { margin-top: 0; }

.footer-details { margin: 0; display: grid; gap: 0.35em; }
.footer-details div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5em; }  /* keeps the label in line with the taller phone link */
.footer-details dt::after { content: ":"; }
.footer-details dd { color: var(--white); }

.social { list-style: none; display: flex; gap: 10px; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.social a:hover { background: rgba(255, 255, 255, 0.1); }

.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25em 1.25em; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }  /* 44px tap target */
.copyright { margin: 0; align-self: center; }


/* ---------- 10. Mobile sticky bar ----------
   Fixed to the bottom of the screen on phones so Call/WhatsApp is always one tap away. */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(10, 46, 87, 0.12);
}
.mobile-bar .btn { min-height: 52px; font-size: var(--fs-base); padding: 0.5em; }
/* The bar sits on white, so the focus ring goes back to blue here. */
.mobile-bar :focus-visible { outline-color: var(--blue-700); }


/* ---------- 11. Legal pages ---------- */
.legal { padding-block: var(--space-4) var(--space-5); }
.legal h1 { font-size: var(--fs-h2); color: var(--blue-900); }
.legal h2 { font-size: 1.35rem; margin-top: var(--space-4); }
.legal h3 { font-size: var(--fs-base); margin-top: var(--space-3); }
.legal p,
.legal li { max-width: 70ch; }
.legal ul { padding-inline-start: 1.25em; margin-bottom: var(--space-2); }
.legal li { margin-bottom: 0.35em; }
.legal .updated { color: var(--muted); }
/* 404 page: the call/WhatsApp pair sits under the message, same as in the hero */
.not-found .cta-pair { max-width: 560px; margin-top: var(--space-3); }
.legal-contact {
  background: var(--mist);
  border-radius: var(--radius);
  padding: var(--space-3);
  max-width: 70ch;
}
.legal-contact dl { margin: 0; display: grid; gap: 0.3em; }
.legal-contact div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5em; }
.legal-contact dt { font-weight: 700; }
.legal-contact dt::after { content: ":"; }


/* ---------- 12. Larger screens ---------- */
@media (min-width: 600px) {
  .trust-list { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .service-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }

  /* No sticky bar on desktop: the header and hero buttons are enough. */
  html { scroll-padding-bottom: 0; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }

  .section { padding-block: var(--space-6); }

  /* Desktop: the text sits on the right (RTL), so the overlay is darkest there
     and lighter on the left, where the pipes show through beside the photo. */
  .hero {
    padding-block: var(--space-6);
    background-image:
      linear-gradient(to left, rgba(10, 46, 87, 0.96) 0%, rgba(10, 46, 87, 0.9) 50%, rgba(10, 46, 87, 0.6) 100%),
      url("../images/hero-bg.webp");        /* 1344px desktop version; preloaded in index.html */
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-5);
    align-items: center;
  }
  .hero-photo { display: block; }
  .hero-photo img { border-radius: var(--radius); width: 100%; }

  .reasons { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-4); }
  .reviews { grid-template-columns: repeat(3, 1fr); }

  /* Steps run side by side; the connecting line becomes horizontal. */
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding-inline-start: 0; padding-top: 4rem; }
  .steps li:not(:last-child)::after {
    top: 1.5rem;
    bottom: auto;
    inset-inline-start: 3.75rem;
    inset-inline-end: calc(-1 * var(--space-4) + 0.75rem);
    width: auto;
    height: 2px;
  }
  .steps h3 { padding-top: 0; }
}

/* ---------- 13. Reduced motion ----------
   Visitors who turned on "reduce motion" in their system settings get no
   animation or smooth scrolling at all (WCAG / IS 5568). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- 14. Tap targets & small-screen tweaks ----------
   Standalone links (not inside a sentence) get a 44px-tall tap area, the
   recommended minimum for fingers. Links inside running text are left alone:
   enlarging them would distort line spacing, and WCAG exempts them. */
.footer-details a,                 /* phone number in the footer */
.legal-contact a,                  /* phone number in the legal pages' contact box */
.reviews-more a,                   /* "לכל הביקורות בגוגל" */
.legal li > a:only-child {         /* list items that are a single link (privacy opt-out links) */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Very narrow phones (360px and below): slightly smaller text in the hero/CTA
   buttons so "התקשרו עכשיו" stays on one line next to the WhatsApp button. */
@media (max-width: 380px) {
  .cta-pair .btn { font-size: 1rem; gap: 0.4em; }
  .cta-pair .btn .icon { width: 1.2em; height: 1.2em; }
}
