/* Sample plumber site: "warm editorial" (award-level-websites skill).
   Heebo only; base + ink + one deep-water accent; space and tinted panels instead of borders. */

@font-face {
  font-family: "Heebo";
  src: url("fonts/heebo-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("fonts/heebo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}

:root {
  --base: #f3f3f0;
  --surface: #ffffff;
  --ink: #23262a;
  --ink-soft: #565a5f;
  --accent: #173f5f;
  --accent-deep: #0f2d45;
  --tint: #e2e7e8;
  --line: rgb(35 38 42 / 0.14);

  --font: "Heebo", system-ui, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  --fs-statement: clamp(1.625rem, 1.1rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2.125rem, 1.4rem + 3vw, 4rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4vw, 5.5rem);
  --fs-wordmark: clamp(3.5rem, 13vw, 12.5rem);

  --radius-card: 28px;
  --radius-img: 20px;
  --radius-pill: 999px;
  --gutter: clamp(14px, 3vw, 40px);
  --section: clamp(72px, 9vw, 150px);
  --maxw: 1320px;
  --bar-h: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-block-end: calc(var(--bar-h) + 16px);
}
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--font);
  caret-color: var(--accent);
  text-rendering: optimizeLegibility;
}
::selection { background: rgb(23 63 95 / 0.18); color: var(--ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
bdi { unicode-bidi: isolate; }

h1, h2 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; }
/* Grid and flex children may shrink below their content (200% text, long names) */
.hero-text, .contact > *, .services-sec > *, .faq > *, .urgent-text, .cta-actions > *, .hero-actions > * { min-width: 0; }
h2 { font-size: var(--fs-h2); line-height: 1.05; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { inset-block-start: 12px; }

.demo-strip {
  background: var(--ink); color: #f3f3f0;
  font-size: var(--fs-small); line-height: 1.4; text-align: center;
  padding: 8px var(--gutter);
}

/* Header */
.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  min-height: 76px; padding-block: 10px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em;
}
.logo-drop { width: 18px; height: 24px; fill: var(--accent); flex: none; }
.head-actions { display: flex; align-items: center; gap: 20px; }
.head-phone { display: none; font-weight: 600; color: var(--ink-soft); }

/* Buttons: pill with a round icon chip on the end side */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; padding-block: 6px; padding-inline: 24px 6px;
  border: 0; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: start;
  max-width: 100%; overflow-wrap: anywhere;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.btn > span:not(.chip) { min-width: 0; }
.btn .chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 46px; padding-inline: 18px 5px; font-size: 1rem; gap: 10px; }
.btn-sm .chip { width: 36px; height: 36px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent .chip { background: rgb(255 255 255 / 0.14); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light .chip { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55); }
.btn-ghost .chip { background: rgb(255 255 255 / 0.14); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline .chip { background: var(--accent); color: #fff; }

/* 404 page */
.notfound { padding-block: clamp(48px, 10vw, 140px) var(--section); display: grid; gap: 18px; justify-items: start; }
.notfound-code { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.03em; color: var(--accent); }
.notfound h1 { font-size: var(--fs-h2); line-height: 1.05; }
.notfound p:not(.notfound-code) { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 36ch; }
/* Arrow-type icons point the reading way */
.send .chip svg { transform: scaleX(-1); }
[dir="rtl"] .send .chip svg { transform: none; }

/* Hero */
.hero { padding-block-end: var(--section); }
.hero-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-card);
  min-height: min(calc(100svh - 132px), 760px);
  display: grid; align-items: end;
  background: var(--accent-deep);
  color: #fff;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(10 22 33 / 0.92) 0%, rgb(10 22 33 / 0.7) 42%, rgb(10 22 33 / 0.08) 72%, transparent);
}
.hero-text { padding: clamp(22px, 5vw, 64px); display: grid; gap: 18px; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.04; }
.hero-sub { font-size: var(--fs-lead); line-height: 1.5; max-width: 34ch; color: rgb(255 255 255 / 0.9); }
.hero-actions { display: grid; gap: 10px; margin-block-start: 6px; }
.hero-meta { font-size: var(--fs-small); color: rgb(255 255 255 / 0.78); }

@media (min-width: 900px) {
  .hero-card {
    grid-template-columns: 1.4fr 0.6fr; align-items: stretch;
    min-height: min(calc(100svh - 132px), 720px);
  }
  .hero-card::after { content: none; }
  .hero-text { align-content: end; padding: clamp(36px, 4.5vw, 72px); gap: 22px; }
  .hero-photo { position: relative; inset: auto; z-index: auto; }
  .hero-photo img { position: absolute; inset: 0; object-position: 30% 30%; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .head-phone { display: inline; }
}

/* Intro statement */
.intro { padding-block-end: var(--section); display: grid; gap: clamp(36px, 5vw, 72px); }
.statement { font-size: var(--fs-statement); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; max-width: 26ch; text-wrap: pretty; }
.facts { display: grid; gap: 28px; }
.facts dt { font-weight: 700; font-size: var(--fs-h3); margin-block-end: 6px; }
.facts dd { color: var(--ink-soft); max-width: 32ch; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Services */
.services-sec { padding-block-end: var(--section); display: grid; gap: clamp(28px, 4vw, 56px); }
.services-head { display: grid; gap: 28px; align-content: start; }
.services-photo img { border-radius: var(--radius-img); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.services { display: grid; }
.service { padding-block: 22px; border-block-start: 1px solid var(--line); }
.service:last-child { border-block-end: 1px solid var(--line); }
.service p { color: var(--ink-soft); margin-block-start: 4px; max-width: 46ch; }
@media (min-width: 900px) {
  .services-sec { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .services-head { position: sticky; inset-block-start: 32px; }
  .service { padding-block: 26px; }
}

/* Urgent panel */
.urgent { padding-block-end: var(--section); }
.panel { background: var(--tint); border-radius: var(--radius-card); overflow: hidden; }
.urgent-panel { display: grid; }
.urgent-text { padding: clamp(28px, 5vw, 72px); display: grid; gap: 18px; align-content: center; justify-items: start; }
.urgent-text p { font-size: var(--fs-lead); line-height: 1.5; max-width: 34ch; }
.urgent-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .urgent-panel { grid-template-columns: 1.15fr 0.85fr; min-height: 460px; }
  .urgent-photo img { aspect-ratio: auto; position: relative; }
  .urgent-photo { position: relative; }
  .urgent-photo img { position: absolute; inset: 0; }
}

/* Steps */
.steps-sec { padding-block-end: var(--section); display: grid; gap: clamp(32px, 4vw, 56px); }
.steps-sec h2 { max-width: 16ch; }
.steps { display: grid; gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 800; line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps p { color: var(--ink-soft); max-width: 30ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Work gallery */
.work { padding-block-end: var(--section); display: grid; gap: clamp(28px, 4vw, 48px); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery li { border-radius: var(--radius-img); overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.gallery .g-wide, .gallery .g-tall { grid-column: 1 / -1; }
.gallery .g-wide img, .gallery .g-tall img { aspect-ratio: 3 / 2; }
.note { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; }
  .gallery .g-tall { grid-row: 1 / 3; grid-column: auto; }
  .gallery .g-wide { grid-column: 2 / 4; }
  .gallery img, .gallery .g-wide img, .gallery .g-tall img { aspect-ratio: auto; }
}

/* Reviews: one large quote leads, two follow */
.reviews-sec { padding-block-end: var(--section); display: grid; gap: clamp(32px, 4vw, 56px); }
.reviews { display: grid; gap: 36px; }
.review blockquote { font-size: var(--fs-lead); font-weight: 500; line-height: 1.45; }
.review:first-child blockquote { font-size: var(--fs-statement); line-height: 1.32; letter-spacing: -0.01em; font-weight: 500; max-width: 24ch; }
.review q { quotes: "\201D" "\201C"; }
.who { margin-block-start: 12px; font-size: var(--fs-small); color: var(--ink-soft); font-weight: 600; }
@media (min-width: 900px) {
  .reviews { grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 40px; }
  .review:first-child { grid-column: 1 / -1; }
}

/* Areas */
.areas-sec { padding-block-end: var(--section); display: grid; gap: 24px; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas li {
  background: var(--surface); border-radius: var(--radius-pill);
  padding: 10px 20px; font-size: var(--fs-lead); font-weight: 500; line-height: 1.3;
}

/* FAQ */
.faq { padding-block-end: var(--section); display: grid; gap: clamp(28px, 4vw, 48px); }
.faq-list { border-block-start: 1px solid var(--line); }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px; font-size: var(--fs-h3); font-weight: 700; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.plus { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.plus-v { transition: transform 200ms var(--ease-out); transform-origin: center; }
details[open] .plus-v { transform: scaleY(0); }
.faq details p { padding-block-end: 22px; color: var(--ink-soft); max-width: 60ch; }
@media (min-width: 900px) {
  .faq { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
}

/* Contact */
.contact { padding-block-end: var(--section); display: grid; gap: 16px; }
.contact-cta {
  background: var(--accent); color: #fff; border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; align-content: start;
}
.contact-cta p { font-size: var(--fs-lead); line-height: 1.5; max-width: 32ch; color: rgb(255 255 255 / 0.9); }
.cta-actions { display: grid; gap: 10px; justify-items: stretch; }
.hours { display: grid; gap: 4px; margin-block-start: 12px; padding-block-start: 20px; border-block-start: 1px solid rgb(255 255 255 / 0.2); }
.hours div { display: flex; flex-wrap: wrap; gap: 0 12px; }
.contact-cta > * { min-width: 0; }
.hours dt { min-width: 5.5em; color: rgb(255 255 255 / 0.75); }
/* Times typed plainly ("07:00–13:00, 16:00–20:00") keep their order; physical align because plaintext flips it */
.hours dd { unicode-bidi: plaintext; text-align: right; }
.hours dd { font-weight: 600; }

.contact-form { background: var(--surface); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 56px); display: grid; gap: 18px; align-content: start; }
.form-title { font-size: var(--fs-h3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--base); border: 1.5px solid transparent; border-radius: 14px;
  min-height: 52px; padding: 12px 16px; width: 100%;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: var(--fs-small); font-weight: 600; }
.fine { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.55; }
.send { justify-self: start; }
.form-status:not(:empty) {
  background: var(--tint); border-radius: 14px; padding: 14px 18px; font-weight: 600;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cta-actions { display: flex; flex-wrap: wrap; justify-items: start; }
}

/* Footer with the one big wordmark */
.site-foot { overflow: hidden; padding-block-start: 8px; }
.foot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 24px; border-block-start: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--ink-soft);
}
.legal { display: flex; gap: 20px; }
.legal a { color: var(--ink); padding-block: 8px; }
.wordmark {
  font-size: var(--fs-wordmark); font-weight: 800; line-height: 0.82; letter-spacing: -0.03em;
  color: var(--accent); text-wrap: balance; overflow-wrap: anywhere; text-align: center;
  padding-block-end: calc(var(--bar-h) + 12px);
  margin-block-end: -0.08em;
}
@media (min-width: 900px) { .wordmark { padding-block-end: 0; } }

/* Phone action bar */
.mobile-bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgb(243 243 240 / 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--line);
  transition: transform 220ms var(--ease-out);
}
.mobile-bar button {
  min-height: 48px; border: 0; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.0625rem;
  transition: transform 140ms var(--ease-out);
}
.bar-call { background: var(--accent); color: #fff; }
.bar-wa { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.mobile-bar button:active { transform: scale(0.97); }
.js .mobile-bar.is-hidden { transform: translateY(110%); }
body { padding-block-end: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-block-end: 0; }
}

/* Demo explanation slip */
.slip {
  position: fixed; z-index: 60;
  inset-inline: 12px; inset-block-end: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom, 0px));
  max-width: 440px; margin-inline: auto;
  background: var(--ink); color: #fff;
  border-radius: 22px; padding: 20px 22px 18px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12), 0 18px 40px -12px rgb(0 0 0 / 0.35);
  opacity: 0; transform: translateY(14px);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.slip.on { opacity: 1; transform: none; transition-duration: 180ms, 220ms; }
.slip[hidden] { display: none; }
.slip-title { font-weight: 800; font-size: 1.125rem; margin-block-end: 4px; }
.slip p:not(.slip-title) { color: rgb(255 255 255 / 0.85); }
.slip-close {
  margin-block-start: 14px; min-height: 44px; padding: 0 22px;
  background: #fff; color: var(--ink); border: 0; border-radius: var(--radius-pill); font-weight: 700;
  transition: transform 140ms var(--ease-out);
}
.slip-close:active { transform: scale(0.97); }
@media (min-width: 900px) { .slip { inset-block-end: 24px; } }

/* Document pages (accessibility, privacy) */
.doc { max-width: 760px; padding-block: clamp(32px, 6vw, 80px) var(--section); }
.doc h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1.05; margin-block-end: 18px; }
.doc h2 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: 0; margin-block: 36px 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-block-start: 10px; }
.doc ul { list-style: disc; padding-inline-start: 1.2em; }
.doc li + li { margin-block-start: 4px; }
.doc .fine { margin-block-start: 28px; }

@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover, .bar-call:hover { background: var(--accent-deep); }
  .btn-light:hover { background: #eef1f2; }
  .btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
  .slip-close:hover { background: #e9ecee; }
  .faq summary:hover .q { color: var(--accent); }
  a:hover { text-decoration-thickness: 2px; }
}

/* The one authored motion moment: the footer wordmark rises into view */
.js .wordmark { clip-path: inset(100% 0 0 0); transform: translateY(12%); transition: clip-path 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .wordmark.in { clip-path: inset(0 0 0 0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .mobile-bar button:active, .slip-close:active { transform: none; }
  .slip, .slip.on { transform: none; transition: opacity 120ms ease; }
  .js .mobile-bar.is-hidden { transform: none; opacity: 0; pointer-events: none; }
  .mobile-bar { transition: opacity 120ms ease; }
  .js .wordmark { clip-path: none; transform: none; transition: none; }
}
