/* ==========================================================================
   sawaid.co.il — site styles
   The whole palette lives in the tokens below; change it in one place.
   ========================================================================== */

:root {
  /* palette */
  --ground: #FAF7F1;          /* page background (warm off-white) */
  --surface: #FFFFFF;         /* cards, form */
  --surface-tint: #F3EEE3;    /* alternate section background, image slots */
  --text: #0F1E33;            /* near-black navy */
  --muted: #55627A;           /* secondary text (5.7:1 on ground) */
  --border: #E3DCCD;
  --primary: #1B365D;         /* deep navy */
  --primary-strong: #12284A;
  --primary-deep: #0C1A30;    /* footer */
  --accent: #C9A24B;          /* warm gold: accents only, never body text on light */
  --accent-strong: #B58C33;
  --accent-soft: #F4EAD0;

  /* derived */
  --on-primary: #FFFFFF;
  --on-primary-muted: #C9D3E3;
  --field-border: #7C8698;
  --focus: #1B365D;
  --whatsapp: #1B7A4B;
  --whatsapp-strong: #145E39;
  --danger: #A32A2A;
  --danger-soft: #FBECEC;
  --success: #1D6A44;
  --success-soft: #E8F4EC;
  --notice-soft: #FBF3DC;

  /* shape and rhythm */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 51, .05), 0 8px 24px rgba(15, 30, 51, .06);
  --container: 1180px;
  --gutter: clamp(16px, 4.5vw, 32px);
  --section-space: clamp(64px, 9vw, 120px);
  --header-h: 64px;
  --bar-h: 0px;

  --font: "Heebo", "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --lh: 1.7;
  --lh-heading: 1.15;
}

html[lang="ar"] {
  --font: "Cairo", "Heebo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --lh: 1.9;
  --lh-heading: 1.35;
}

.on-dark { --focus: #F3D88E; }

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: var(--lh);
  color: var(--text);
  background: var(--ground);
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: var(--lh-heading);
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.3rem + 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
html[lang="ar"] h3 { line-height: 1.55; }

p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }

a { color: var(--primary); text-underline-offset: .2em; }
a:hover { color: var(--primary-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-primary); }

/* A value the owner still has to supply, e.g. [מספר רישיון] */
.ph {
  border-bottom: 1px dashed currentColor;
  font-weight: 500;
  opacity: .95;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--large { min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-strong); color: var(--on-primary); }

.btn--accent { background: var(--accent); color: var(--text); }
.btn--accent:hover { background: var(--accent-strong); color: var(--text); }

.btn--ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: var(--on-primary); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-strong); color: #fff; }

.btn--whatsapp-outline { background: var(--surface); border-color: var(--whatsapp); color: var(--whatsapp-strong); }
.btn--whatsapp-outline:hover { background: var(--whatsapp); color: #fff; }

.btn[disabled] { opacity: .65; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px rgba(15, 30, 51, .06); }

.site-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-inline-end: auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
}
.brand:hover { color: var(--primary); }
.brand__logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand__logo--empty {
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--field-border);
  border-radius: 8px;
  background: var(--surface-tint);
  color: var(--muted);
  font-size: .625rem;
  font-weight: 500;
  line-height: 1;
  overflow: hidden;
}
.brand__name { white-space: nowrap; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.lang-switch:hover { border-color: var(--primary); background: var(--surface); color: var(--primary); }
.lang-switch .icon { display: none; color: var(--accent-strong); }
html[lang="he"] .lang-switch { font-family: "Cairo", "Heebo", system-ui, sans-serif; }
html[lang="ar"] .lang-switch { font-family: "Heebo", "Cairo", system-ui, sans-serif; }

.btn--phone { min-height: 44px; padding: 8px 12px; }
.btn--phone__num { display: none; font-weight: 800; letter-spacing: .01em; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.js .menu-toggle { display: grid; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* Mobile navigation: without JS it is a plain wrapped row; with JS a dropdown panel. */
.site-nav { order: 3; flex-basis: 100%; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0 4px; padding-bottom: 8px; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--primary); background: rgba(27, 54, 93, .06); }

.js .site-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--ground);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 28px rgba(15, 30, 51, .10);
}
.js .site-nav.is-open { display: block; }
.js .site-nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
.js .site-nav a { min-height: 52px; padding-inline: 12px; font-size: 1.125rem; font-weight: 700; border-bottom: 1px solid var(--border); border-radius: 0; }
.js .site-nav li:last-child a { border-bottom: 0; }

@media (min-width: 480px) {
  .btn--phone { padding-inline: 16px; }
  .btn--phone__num { display: inline; }
  .lang-switch .icon { display: block; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .site-header__inner { flex-wrap: nowrap; gap: 20px; }
  .brand { margin-inline-end: 0; font-size: 1.25rem; }
  .menu-toggle, .js .menu-toggle { display: none; }
  .site-nav, .js .site-nav {
    display: block;
    position: static;
    order: 0;
    flex: 1 1 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav__list, .js .site-nav__list { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 4px; padding: 0; }
  .site-nav a, .js .site-nav a { min-height: 44px; padding: 6px 12px; font-size: 1rem; font-weight: 500; border: 0; border-radius: 8px; white-space: nowrap; }
}

/* ---------- shared section pieces ---------- */

.section { padding-block: var(--section-space); }
.section--tint { background: var(--surface-tint); }
.section--dark { background: var(--primary-strong); color: var(--on-primary); }
.section--dark h2, .section--dark h3 { color: var(--on-primary); }

.section__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__intro { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 32px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.section--dark .eyebrow { color: var(--accent); }

.lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- image slots ---------- */

.slot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--surface-tint);
  border-radius: var(--radius-sm);
}
.slot--3x2 { aspect-ratio: 3 / 2; }
.slot--4x3 { aspect-ratio: 4 / 3; }
.slot--2x3 { aspect-ratio: 2 / 3; }
.slot--hero { aspect-ratio: 4 / 3; border-radius: var(--radius); }

.slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.slot--zoom { cursor: zoom-in; }
.slot--zoom:hover img { transform: scale(1.04); }

.slot--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px dashed #C9BEA6;
  background-color: #F1EBDD;
  background-image: repeating-linear-gradient(135deg, rgba(27, 54, 93, .05) 0 1px, transparent 1px 14px);
  color: var(--muted);
  text-align: center;
}
.slot__icon { width: 28px; height: 28px; color: var(--primary); opacity: .55; }
.slot__label { max-width: 22ch; font-size: .8125rem; font-weight: 500; line-height: 1.45; }
.slot--hero .slot__icon { width: 44px; height: 44px; }
.slot--hero .slot__label { font-size: 1rem; max-width: 26ch; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 20px; max-width: 34rem; }
.hero .btn-row { margin-top: 32px; }
.hero .btn--ghost .icon { transition: transform .2s ease; }
.hero .btn--ghost:hover .icon { transform: translateX(-4px); }

.hero__media { position: relative; padding: 0 0 14px 14px; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 14px 14px 0 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}
.hero__media .slot { position: relative; box-shadow: var(--shadow); }

@media (max-width: 479px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .slot--hero { aspect-ratio: 4 / 5; max-height: 640px; }
  .hero__media { padding: 0 0 20px 20px; }
  .hero__media::before { inset: 20px 20px 0 0; }
}

/* ---------- trust bar ---------- */

.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 12px 20px 8px;
  min-width: 0;
}
.trust__item:nth-child(odd) { padding-inline-start: 0; }
.trust__item:nth-child(n + 3) { border-top: 1px solid var(--border); }
.trust__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
}
.trust__icon .icon { width: 22px; height: 22px; }
.trust__text { display: flex; flex-direction: column; min-width: 0; }
.trust__label { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.trust__value { font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust__item { padding: 28px 24px; }
  .trust__item:nth-child(n + 3) { border-top: 0; }
  .trust__item + .trust__item { border-inline-start: 1px solid var(--border); }
  .trust__item:first-child { padding-inline-start: 0; }
  .trust__label { font-size: .875rem; }
  .trust__value { font-size: 1.0625rem; }
}

/* ---------- services ---------- */

.services { display: grid; gap: 20px; }
.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.service:hover { box-shadow: var(--shadow); border-color: #D6CDB9; }
.service .slot { border-radius: 0; }
.service .slot--empty { border-width: 0 0 1.5px; }
.service__body { position: relative; padding: 30px 20px 22px; }
.service__icon {
  position: absolute;
  top: -22px;
  inset-inline-start: 20px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--surface);
}
.service__icon .icon { width: 22px; height: 22px; }
.service p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

.services__other {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 24px;
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 500;
}
.services__other a { font-weight: 700; white-space: nowrap; }

/* Phones: compact horizontal cards so eight services stay scannable. */
@media (max-width: 559px) {
  .services { gap: 12px; }
  .service { flex-direction: row; align-items: stretch; }
  .service .slot { flex: none; width: 112px; aspect-ratio: auto; min-height: 112px; }
  .service .slot--empty { border-width: 0; border-inline-end-width: 1.5px; padding: 8px; gap: 6px; }
  .service .slot__icon { width: 22px; height: 22px; }
  .service .slot__label { font-size: .6875rem; line-height: 1.35; }
  .service__body { flex: 1; min-width: 0; padding: 14px 16px 16px; }
  .service__icon { position: static; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 8px; box-shadow: none; }
  .service__icon .icon { width: 19px; height: 19px; }
  .service p { font-size: .9375rem; line-height: 1.55; }
}
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

/* ---------- projects ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
html:not(.js) .filters { display: none; }
.filter {
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid var(--field-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.projects { display: grid; gap: 20px; }
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.project .slot { border-radius: 0; }
.project .slot--empty { border-width: 0 0 1.5px; }
.project__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--surface); }
.project__half { position: relative; min-width: 0; }
.project__pair .project__half + .project__half .slot--empty { border-inline-start-width: 1.5px; }
.chip--onimage {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--primary);
  color: var(--on-primary);
  pointer-events: none;
}
.chip--onimage.chip--accent { background: var(--accent); color: var(--text); }
.project__body { padding: 18px 20px 22px; }
.project__body h3 { margin-top: 10px; }
.project__location { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.project__location .icon { width: 18px; height: 18px; color: var(--accent-strong); }
.projects__empty { padding: 32px 0; color: var(--muted); text-align: center; }

@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ---------- process ---------- */

.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 48px; height: 3px;
  background: var(--accent);
}
.step__num {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  font-family: "Heebo", "Cairo", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--on-primary-muted); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; }
  .step { padding: 36px 0 0; }
  .step__num { font-size: 3.5rem; margin-bottom: 20px; }
}

/* ---------- testimonials ---------- */

.testimonials { display: grid; gap: 20px; }
.testimonial {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.testimonial--empty { border-style: dashed; border-color: #C9BEA6; background: transparent; }
.testimonial figure { display: flex; flex-direction: column; height: 100%; }
.testimonial__mark { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.testimonial blockquote { flex: 1; font-size: 1.0625rem; }
.testimonial--empty blockquote { color: var(--muted); min-height: 5.5em; }
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial__name { font-weight: 700; }
.testimonial__meta { color: var(--muted); font-size: .9375rem; }

@media (min-width: 800px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ---------- contact ---------- */

.contact { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__list { display: grid; gap: 4px; margin-top: 28px; }
.contact__list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact__list li:last-child { border-bottom: 0; }
.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
}
.contact__text { display: flex; flex-direction: column; min-width: 0; }
.contact__label { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.contact__value { font-weight: 700; font-size: 1.125rem; line-height: 1.5; overflow-wrap: anywhere; }
a.contact__value { display: inline-flex; align-items: center; min-height: 32px; }

.contact__form {
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact__form-title { margin-bottom: 20px; font-size: 1.375rem; font-weight: 800; }

@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* ---------- form ---------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .9375rem; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px: prevents zoom-on-focus on iOS */
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B365D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: left 12px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, .28);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.input--ltr { direction: ltr; text-align: right; }

.field__hint { color: var(--muted); font-size: .875rem; }
.field__error { color: var(--danger); font-size: .875rem; font-weight: 700; }

.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form__actions .btn { flex: 1 1 200px; }
.form__or { color: var(--muted); font-size: .9375rem; }
.form__note { color: var(--muted); font-size: .9375rem; }

.form__status {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  border-inline-start-width: 4px;
  background: var(--surface-tint);
  font-weight: 500;
}
.form__status.is-sent { border-color: var(--success); background: var(--success-soft); }
.form__status.is-stored { border-color: var(--accent-strong); background: var(--notice-soft); }
.form__status.is-invalid, .form__status.is-error, .form__status.is-rateLimited { border-color: var(--danger); background: var(--danger-soft); }
.form__status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- result + error pages ---------- */

.result__inner { max-width: 720px; display: grid; gap: 24px; }
.result__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); }

.errorpage { min-height: 60vh; display: grid; align-items: center; text-align: center; }
.errorpage__inner { display: grid; gap: 16px; justify-items: center; }
.errorpage__code { color: var(--accent-strong); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; font-family: "Heebo", system-ui, sans-serif; }
.errorpage .btn-row { margin-top: 16px; }

/* ---------- footer ---------- */

.site-footer { background: var(--primary-deep); color: var(--on-primary-muted); }
.site-footer a { color: var(--on-primary); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-primary); }
.site-footer__inner { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 64px) 32px; }
.site-footer__name { color: var(--on-primary); font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.site-footer__tag { margin-top: 4px; color: var(--accent); font-weight: 500; }
.site-footer__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.site-footer__facts dt { font-size: .8125rem; line-height: 1.4; }
.site-footer__facts dd { color: var(--on-primary); font-weight: 700; overflow-wrap: anywhere; }
.site-footer__facts dd a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer__bottom { padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }

@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .site-footer__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- floating WhatsApp + mobile bar ---------- */

.wa-float {
  position: fixed;
  z-index: 90;
  bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 16px;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 30, 51, .28);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { background: var(--whatsapp-strong); color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 30px; height: 30px; }

.mobile-bar { display: none; }

@media (max-width: 767px) {
  :root { --bar-h: 56px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    position: fixed;
    z-index: 95;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--primary);
    box-shadow: 0 -4px 16px rgba(15, 30, 51, .16);
  }
  .mobile-bar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--bar-h);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-bar__item:hover { color: #fff; }
  .mobile-bar__item--call { background: var(--primary); }
  .mobile-bar__item--wa { background: var(--whatsapp); }
  .mobile-bar :focus-visible { outline-color: #F3D88E; outline-offset: -4px; }
}

@media (min-width: 768px) {
  .wa-float { bottom: 24px; inset-inline-end: 24px; width: 60px; height: 60px; }
}

/* ---------- lightbox ---------- */

.lightbox {
  max-width: min(96vw, 1280px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 16, 30, .88); }
.lightbox__img { max-width: 100%; max-height: 94vh; width: auto; height: auto; margin: auto; border-radius: 8px; object-fit: contain; }
.lightbox__close {
  position: fixed;
  top: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  --focus: #F3D88E;
}
.lightbox__close .icon { width: 24px; height: 24px; }

/* ---------- motion ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .slot--zoom:hover img, .wa-float:hover { transform: none; }
}

@media print {
  .site-header, .wa-float, .mobile-bar, .filters { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* small-screen touch-ups */
html[lang="ar"] .brand__logo--empty { font-size: .5rem; }
@media (max-width: 767px) { .site-footer__bottom { padding-inline-end: 84px; } }
