/* ============================================================
   ANAF COATINGS — Premium Hebrew RTL Site
   Industrial protection, polyurea, anti-corrosion
   Dark premium aesthetic · Mint/cyan accent · Glass morphism
   ============================================================ */

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

:root {
  /* Surfaces */
  --bg: #02070a;
  --bg-soft: #061318;
  --bg-elev: #0a1f25;

  /* Text */
  --fg: #eafff9;
  --fg-dim: rgba(234, 255, 249, 0.68);
  --fg-faint: rgba(234, 255, 249, 0.42);
  --fg-ghost: rgba(234, 255, 249, 0.18);

  /* Accent — mint/cyan reads as protection + water + durability */
  --accent: #20ffd2;
  --accent-deep: #14d0aa;
  --accent-cyan: #81f7ff;
  --accent-soft: rgba(32, 255, 210, 0.08);
  --accent-ghost: rgba(32, 255, 210, 0.04);

  /* Lines */
  --line: rgba(45, 255, 213, 0.16);
  --line-soft: rgba(234, 255, 249, 0.06);
  --line-strong: rgba(45, 255, 213, 0.32);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-top: rgba(255, 255, 255, 0.14);

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-pad: clamp(40px, 4.5vw, 72px);

  /* Type — Hebrew-friendly faces */
  --font-sans: "Heebo", "Assistant", -apple-system, system-ui, sans-serif;
  --font-display: "Assistant", "Heebo", sans-serif;
  --font-serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-latin: "Space Grotesk", "Inter", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
}

html { scroll-behavior: smooth; }
html[dir="rtl"] body { text-align: right; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* ============ Atmospheric background ============ */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(circle at 22% 18%, rgba(32, 255, 210, 0.18), transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(129, 247, 255, 0.10), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(32, 255, 210, 0.03), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

/* ============ Curve watermark behind everything ============ */
.bg-watermark {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}
.bg-watermark svg { width: 100%; height: 100%; display: block; opacity: 0.55; }
.bg-watermark .wm-far  { filter: blur(2.6px); opacity: 0.55; }
.bg-watermark .wm-mid  { filter: blur(1.0px); opacity: 0.85; }
.bg-watermark .wm-near { filter: blur(0.3px); opacity: 1; }

/* ============ Noise overlay ============ */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  box-shadow: 0 0 12px var(--accent);
  z-index: 200;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============ Type utilities ============ */
.kicker, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.kicker::before, .section-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 86px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 18px;
  text-wrap: balance;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

.section-intro {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  max-width: 60ch;
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 16px;
  inset-inline-start: clamp(16px, 3vw, 44px);
  inset-inline-end: clamp(16px, 3vw, 44px);
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 7, 10, 0.65);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  padding-inline: 24px 8px;
  transition: top 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.scrolled {
  top: 12px;
  background: rgba(2, 7, 10, 0.85);
  border-color: var(--line-strong);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: brandPulse 2.4s ease-in-out infinite;
}

.nav-brand .brand-mark {
  font-family: var(--font-serif);
  color: var(--accent);
  font-weight: 600;
}

@keyframes brandPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 26px;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.nav-menu a:hover, .nav-menu a.active { color: var(--fg); }
.nav-menu a.active::after, .nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: var(--accent); }

/* Submenu */
.has-sub > a::before {
  content: "▾";
  font-size: 9px;
  margin-inline-end: 4px;
  color: var(--fg-faint);
}
.nav-sub {
  position: absolute;
  top: calc(100% + 16px);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: rgba(6, 19, 24, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
html[dir="rtl"] .nav-sub { transform: translateX(50%) translateY(-6px); }
html[dir="rtl"] .has-sub:hover > .nav-sub,
html[dir="rtl"] .has-sub:focus-within > .nav-sub { transform: translateX(50%) translateY(0); }
.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-sub li a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--fg-dim);
  white-space: normal;
}
.nav-sub li a::after { display: none; }
.nav-sub li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* "צור קשר" now styled like a normal nav-link — no pill background */
.nav-cta {
  background: transparent;
  color: var(--fg-dim);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  padding: 4px 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.nav-cta::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-cta:hover {
  color: var(--accent);
  transform: none;
  box-shadow: none;
}
.nav-cta:hover::after { width: 100%; }
.nav-cta svg { width: 14px; height: 14px; }
html[dir="rtl"] .nav-cta svg { transform: scaleX(-1); }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  position: relative;
  transition: transform 0.3s var(--ease);
}
.nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger.open span { transform: rotate(45deg); }
.nav-burger.open span::before { transform: rotate(-90deg) translateX(6px); }
.nav-burger.open span::after { opacity: 0; }

@media (max-width: 1100px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav { padding-inline: 20px 8px; height: 56px; }
}

/* ============ Mobile menu ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(2, 7, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 90px var(--gutter) 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 600;
  color: var(--fg);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .mm-sub {
  list-style: none;
  padding-inline-start: 18px;
  padding-block: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .mm-sub a {
  font-size: 16px;
  font-weight: 400;
  padding: 6px 0;
  color: var(--fg-dim);
  border: none;
}
.mobile-menu-cta {
  margin-top: 28px;
  background: var(--accent);
  color: var(--bg);
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  align-self: stretch;
}

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(var(--container), 100%) 1fr;
  align-items: center;
  overflow: hidden;
}
.hero-content {
  grid-column: 2;
  position: relative;
  z-index: 3;
  padding: 130px var(--gutter) 80px;
  max-width: 760px;
  width: 100%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(1.05) contrast(1.08) saturate(1.12);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgba(2, 7, 10, 0.85) 0%, rgba(2, 7, 10, 0.55) 38%, rgba(2, 7, 10, 0.18) 65%, rgba(2, 7, 10, 0.42) 100%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.4) 0%, rgba(2, 7, 10, 0) 30%, rgba(2, 7, 10, 0) 65%, rgba(2, 7, 10, 0.92) 100%);
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { grid-column: 1; max-width: 100%; }
  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(2,7,10,0.45) 0%, rgba(2,7,10,0.35) 30%, rgba(2,7,10,0.92) 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.hero-eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: brandPulse 1.8s ease-in-out infinite;
  margin-inline-start: 4px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 116px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.92em;
}
.hero-lead {
  color: var(--fg-dim);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 700px;
}
.hero-meta-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-item strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 24px;
  min-height: 56px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(32, 255, 210, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ Live indicator ============ */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(32, 255, 210, 0.32);
  border-radius: 999px;
  background: rgba(32, 255, 210, 0.06);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-inline-start: 12px;
  position: relative;
  overflow: hidden;
}
.live-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(32, 255, 210, 0.18);
  animation: liveDot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(32, 255, 210, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(32, 255, 210, 0); }
}
@media (max-width: 700px) {
  .live-indicator { margin: 8px 0 0; font-size: 10.5px; }
}

/* ============ Marquee strip ============ */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 22px 0;
}
.strip-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: stripScroll 28s linear infinite;
  width: max-content;
}
@keyframes stripScroll {
  to { transform: translateX(calc(-50% - 32px)); }
}
html[dir="rtl"] .strip-track {
  animation: stripScrollRtl 28s linear infinite;
}
@keyframes stripScrollRtl {
  to { transform: translateX(calc(50% + 32px)); }
}
.strip-item {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.strip-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.8em;
  display: inline-block;
  margin-inline-start: 64px;
}

/* ============ Logos bar ============ */
.logos {
  padding: 60px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .logos { grid-template-columns: 1fr; gap: 18px; }
}
.logos-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  justify-content: flex-start;
}
.logos-row span {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.logos-row span:hover { opacity: 1; color: var(--accent); }

/* ============ Section heads ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

.section-head-block { display: flex; flex-direction: column; }

/* ============ Services / Bento ============ */
.services {
  padding-block: var(--section-pad);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 360px at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.bento-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
  transform: translateY(-4px);
}
.bento-card:hover::before { opacity: 1; }

.bento-card.feature { grid-column: span 2; grid-row: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }
@media (max-width: 1000px) {
  .bento-card.feature, .bento-card.wide, .bento-card.normal-wide { grid-column: span 2; }
  .bento-card.feature, .bento-card.tall { grid-row: span 2; }
}
@media (max-width: 640px) {
  .bento-card.feature, .bento-card.wide, .bento-card.normal-wide, .bento-card.tall {
    grid-column: auto; grid-row: auto;
  }
  .bento-card { min-height: 280px; }
}

.bento-num {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--fg-faint);
}
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.bento-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.bento-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  margin: 8px 0 12px;
  letter-spacing: -0.01em;
}
.bento-card.feature .bento-title { font-size: clamp(26px, 3vw, 38px); }
.bento-desc {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.bento-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
}

/* ============ Process ============ */
.process {
  padding-block: var(--section-pad);
  border-block: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } }

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.process-step {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.process-step:first-child { border-top: 1px solid var(--line); }
.process-step:hover { border-color: var(--accent); }
.process-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: baseline;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  align-self: baseline;
}
.process-list { counter-reset: step; }
.process-step h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}
.process-duration {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  justify-self: end;
}
.process-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.process-toggle::before, .process-toggle::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--fg);
  transform: translate(-50%, -50%);
}
.process-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.process-step.open .process-toggle { border-color: var(--accent); transform: rotate(180deg); }
.process-step.open .process-toggle::after { opacity: 0; }
.process-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding-top 0.5s var(--ease);
  color: var(--fg-dim);
}
.process-body p {
  padding-top: 16px;
  padding-inline-start: 38px;
  font-size: 15px;
  line-height: 1.6;
}
.process-step.open .process-body { max-height: 220px; }
@media (max-width: 700px) {
  .process-row {
    grid-template-columns: auto 1fr auto;
  }
  .process-duration {
    grid-column: 2 / 4;
    justify-self: start;
    margin-top: 6px;
  }
  .process-toggle {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ============ Stats ============ */
.stats {
  padding-block: var(--section-pad);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}
.stat-num em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}
.stat-label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* ============ Inspire marquee ============ */
.inspire {
  padding-block: var(--section-pad);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.inspire-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: 56px;
}
@media (max-width: 900px) { .inspire-head { grid-template-columns: 1fr; } }
.inspire-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.inspire-head h2 em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}
.inspire-head p { color: var(--fg-dim); font-size: 16px; line-height: 1.7; }

.inspire-viewport {
  cursor: grab;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.inspire-viewport.grabbing { cursor: grabbing; }
.inspire-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  padding-inline: var(--gutter);
}
.inspire-card {
  width: clamp(280px, 28vw, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-soft);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease);
}
.inspire-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}
.inspire-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.5s var(--ease-out);
}
.inspire-card:hover .inspire-media { transform: scale(1.06); }
.inspire-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,7,10,0) 0%, rgba(2,7,10,0.2) 40%, rgba(2,7,10,0.95) 100%);
}
.inspire-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(32,255,210,0.06) 40%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.inspire-card:hover .inspire-scan { opacity: 1; }
.inspire-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 22px;
  z-index: 2;
}
.inspire-cat {
  font-family: var(--font-latin);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 6px;
}
.inspire-metric {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(32,255,210,0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  margin-bottom: 10px;
}
.inspire-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.inspire-desc {
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.inspire-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.inspire-link svg { width: 12px; height: 12px; }
html[dir="rtl"] .inspire-link svg { transform: scaleX(-1); }

.inspire-foot {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.inspire-hint { display: inline-flex; align-items: center; gap: 8px; }
.inspire-hint svg { width: 14px; height: 14px; }
.inspire-counter em {
  font-family: var(--font-serif);
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

/* ============ Testimonials ============ */
.testimonials {
  padding-block: var(--section-pad);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.testimonials .kicker { justify-content: center; margin: 0 auto; }
.testi-card {
  max-width: 880px;
  margin: 40px auto 28px;
}
.testi-quote {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.35;
  color: var(--fg);
  text-wrap: balance;
}
.testi-quote em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}
.testi-info { text-align: start; }
.testi-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.testi-role { color: var(--fg-faint); font-size: 13px; margin-top: 2px; }
.testi-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.testi-dot {
  width: 28px;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease);
}
.testi-dot.active { background: var(--accent); }

/* ============ Pages hint ============ */
.pages-hint {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}
.pages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 1000px) { .pages-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pages-grid { grid-template-columns: repeat(2, 1fr); } }
.page-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.page-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-elev);
}
.page-card-icon {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
}
.page-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.page-card-meta {
  font-family: var(--font-latin);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ============ FAQ ============ */
.faq {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after,
.faq-item:hover .faq-icon::after,
.faq-item:focus-within .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.7;
  transition: max-height 0.5s var(--ease), padding-top 0.5s var(--ease);
}
.faq-content em { color: var(--accent); font-style: normal; font-weight: 500; }
.faq-item.open .faq-content,
.faq-item:hover .faq-content,
.faq-item:focus-within .faq-content { max-height: 500px; padding-top: 16px; }

/* ============ Final CTA ============ */
.final-cta {
  padding-block: var(--section-pad);
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  border-top: 1px solid var(--line);
}
.final-cta .kicker { justify-content: center; margin: 0 auto; }
.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 24px auto 28px;
  text-wrap: balance;
  max-width: 18ch;
}
.final-cta-title em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}
.final-cta-sub {
  color: var(--fg-dim);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 56ch;
  margin: 0 auto 38px;
  line-height: 1.6;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.final-cta-meta {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--fg-faint);
  flex-wrap: wrap;
}
.final-cta-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.final-cta-meta-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ============ Footer ============ */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter) 32px;
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand-block { grid-column: 1 / -1; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.footer-tagline {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 38ch;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--fg-dim);
  font-size: 14px;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg-faint);
}
.footer-legal {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-legal a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.footer-copy {
  font-size: 12.5px;
  color: var(--fg-faint);
}

/* ============ Sticky CTA + WhatsApp dock ============ */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(2, 7, 10, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease);
}
html[dir="rtl"] .sticky-cta { padding: 10px 22px 10px 12px; }
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta-text { display: flex; flex-direction: column; }
.sticky-cta-text strong { font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.sticky-cta-text span { font-size: 11.5px; color: var(--fg-faint); }
.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sticky-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32,255,210,0.4); }
.sticky-cta-btn svg { width: 14px; height: 14px; }
html[dir="rtl"] .sticky-cta-btn svg { transform: scaleX(-1); }
@media (max-width: 700px) {
  .sticky-cta { bottom: 80px; inset-inline-end: 12px; padding: 8px 8px 8px 16px; }
  html[dir="rtl"] .sticky-cta { padding: 8px 16px 8px 8px; }
  .sticky-cta-text strong { font-size: 12px; }
  .sticky-cta-text span { display: none; }
}

.wa-dock {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #0bad57;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(11, 173, 87, 0.4);
  transition: transform 0.3s var(--ease);
}
.wa-dock:hover { transform: scale(1.08); }
.wa-dock svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 700px) {
  .wa-dock { width: 50px; height: 50px; inset-inline-start: 12px; bottom: 12px; }
  .wa-dock svg { width: 26px; height: 26px; }
}

/* ============ Page hero (sub-pages) ============ */
.page-hero {
  position: relative;
  padding: 180px var(--gutter) 80px;
  max-width: var(--container);
  margin: 0 auto;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.page-hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 22ch;
  text-wrap: balance;
}
.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}
.page-hero p {
  color: var(--fg-dim);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  max-width: 56ch;
  margin-top: 24px;
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--fg-faint);
  margin-bottom: 18px;
}
.crumbs a { color: var(--fg-faint); transition: color 0.25s var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }

/* ============ Article / content ============ */
.article {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px var(--gutter) 80px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--fg-dim);
}
.article h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 48px 0 18px;
  line-height: 1.2;
}
.article h2:first-child { margin-top: 0; }
.article h2 em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}
.article h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--fg);
  margin: 32px 0 12px;
}
.article p { margin-bottom: 18px; }
.article p em { color: var(--accent); font-style: normal; font-weight: 500; }
.article ul, .article ol {
  padding-inline-start: 22px;
  margin-bottom: 22px;
}
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }
.article blockquote {
  border-inline-start: 3px solid var(--accent);
  padding: 6px 22px;
  margin: 28px 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--fg);
  line-height: 1.5;
  background: var(--accent-ghost);
}
.article-img {
  border-radius: 18px;
  border: 1px solid var(--line);
  margin: 32px 0;
  overflow: hidden;
}

/* ============ Feature grid (services list page) ============ */
.feature-list {
  padding-block: var(--section-pad);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature-row:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-elev);
}
.feature-num {
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.feature-row h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.feature-row p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}
.feature-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-row:hover .feature-arrow {
  background: var(--accent);
  color: var(--bg);
  transform: rotate(-45deg);
}
html[dir="rtl"] .feature-arrow svg { transform: scaleX(-1); }
@media (max-width: 700px) {
  .feature-row { grid-template-columns: auto 1fr; gap: 20px; padding: 24px; }
  .feature-arrow { grid-column: 1 / 3; justify-self: end; }
}

/* ============ Contact form ============ */
.contact-section {
  padding-block: var(--section-pad);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
@media (max-width: 900px) { .contact-section { grid-template-columns: 1fr; } }

.contact-info-block { display: flex; flex-direction: column; gap: 28px; }
.contact-info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.contact-info-card p, .contact-info-card a {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  display: block;
}
.contact-info-card a:hover { color: var(--accent); }

.contact-form {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.form-row input, .form-row textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(32,255,210,0.04);
}
.form-row textarea { min-height: 120px; resize: vertical; font-family: var(--font-sans); }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row.two-col { grid-template-columns: 1fr; } }
.form-msg {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}
.form-msg.show { display: block; }

/* ============ Gallery grid ============ */
.gallery-grid {
  padding-block: var(--section-pad);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gallery-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease);
}
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.gallery-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.85);
  transition: filter 0.4s var(--ease), transform 1.2s var(--ease-out);
}
.gallery-card:hover .gallery-bg { transform: scale(1.06); filter: brightness(0.6); }
.gallery-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,7,10,0.2) 0%, rgba(2,7,10,0.85) 100%);
}
.gallery-card-content {
  position: relative;
  z-index: 1;
}
.gallery-cat {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}
.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}
.gallery-card.span-4 { grid-column: span 4; }
.gallery-card.span-5 { grid-column: span 5; }
.gallery-card.span-6 { grid-column: span 6; }
.gallery-card.span-7 { grid-column: span 7; }
.gallery-card.span-8 { grid-column: span 8; }
.gallery-card.span-12 { grid-column: span 12; }
.gallery-card.tall { min-height: 460px; }
@media (max-width: 1000px) {
  .gallery-card { grid-column: span 6 !important; }
}
@media (max-width: 600px) {
  .gallery-card { grid-column: span 12 !important; min-height: 240px; }
}

/* Procedural backgrounds for gallery cards (no images required) */
.gallery-bg[data-kind="polyurea"] {
  background:
    radial-gradient(circle at 25% 35%, rgba(32,255,210,0.45), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(129,247,255,0.32), transparent 50%),
    linear-gradient(135deg, #03161d 0%, #02070a 100%);
}
.gallery-bg[data-kind="water"] {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(129,247,255,0.35), transparent 60%),
    linear-gradient(180deg, #021c24 0%, #02070a 100%);
}
.gallery-bg[data-kind="pool"] {
  background:
    radial-gradient(circle at 30% 50%, rgba(20,208,170,0.45), transparent 50%),
    linear-gradient(135deg, #04282f 0%, #021116 100%);
}
.gallery-bg[data-kind="parking"] {
  background:
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(32,255,210,0.06) 28px 30px),
    linear-gradient(180deg, #0a1418 0%, #02070a 100%);
}
.gallery-bg[data-kind="vehicle"] {
  background:
    radial-gradient(circle at 75% 25%, rgba(32,255,210,0.32), transparent 45%),
    linear-gradient(135deg, #02161d 0%, #02070a 100%);
}
.gallery-bg[data-kind="corrosion"] {
  background:
    radial-gradient(circle at 20% 80%, rgba(255,140,80,0.18), transparent 45%),
    linear-gradient(135deg, #0a1418 0%, #02070a 100%);
}
.gallery-bg[data-kind="industrial"] {
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(129,247,255,0.05) 38px 40px),
    linear-gradient(180deg, #06121a 0%, #02070a 100%);
}
.gallery-bg[data-kind="concrete"] {
  background:
    radial-gradient(circle at 50% 40%, rgba(180,200,210,0.15), transparent 55%),
    linear-gradient(135deg, #0b1318 0%, #02070a 100%);
}
.gallery-bg[data-kind="epoxy"] {
  background:
    radial-gradient(circle at 70% 30%, rgba(32,255,210,0.4), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(20,208,170,0.25), transparent 50%),
    linear-gradient(135deg, #04222a 0%, #02070a 100%);
}
.gallery-bg[data-kind="asbestos"] {
  background:
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(129,247,255,0.06) 16px 18px),
    linear-gradient(180deg, #061218 0%, #02070a 100%);
}

/* hero-illustration / page hero ornament */
.page-hero-ornament {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.page-hero-ornament::before {
  content: "";
  position: absolute;
  top: 30%;
  inset-inline-end: -10%;
  width: 60vw;
  height: 60vw;
  background:
    radial-gradient(circle at 50% 50%, rgba(32,255,210,0.18), transparent 55%);
  filter: blur(40px);
}

/* Pricing/tier styling reused for service cards */
.tier {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  padding: 32px;
  position: relative;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.tier:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-elev);
}
.tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tier-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 14px 0 14px;
  line-height: 1.2;
}
.tier-tag {
  font-size: 13px;
  color: var(--fg-faint);
  margin-bottom: 16px;
}
.tier-divider { height: 1px; background: var(--line); margin: 22px 0; }
.tier-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.tier-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.tier-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tier-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent);
}
.tier-cta svg { width: 14px; height: 14px; }
html[dir="rtl"] .tier-cta svg { transform: scaleX(-1); }

/* Article wrap with sidebar */
.with-aside {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(40px, 5vw, 64px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px var(--gutter) 80px;
}
@media (max-width: 1000px) {
  .with-aside { grid-template-columns: 1fr; }
}
.aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aside-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  padding: 24px;
}
.aside-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--accent);
}
.aside-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aside-card ul a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease);
}
.aside-card ul a:hover { color: var(--accent); }
.aside-card.cta {
  background: linear-gradient(140deg, rgba(32,255,210,0.16), rgba(32,255,210,0.04));
  border-color: var(--accent);
}
.aside-card.cta p {
  font-size: 14.5px;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.55;
}
.aside-card.cta .btn { width: 100%; min-height: 48px; font-size: 13px; }

/* ============ Patches: missing utility classes ============ */

/* section-tight — slimmer vertical padding */
.section.section-tight {
  padding-top: clamp(36px, 4vw, 64px);
  padding-bottom: clamp(36px, 4vw, 64px);
}

/* Centered article variant */
.article.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.article.center h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* Aside stack — used in .with-aside sticky sidebar */
.aside-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
  align-self: start;
}

/* Section head — centered variant */
.section-head.center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* Contact cards (in contact-section info column) */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.contact-card:hover {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card-lbl {
  display: block;
  font-size: 12px;
  color: var(--fg-faint);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-card-val {
  display: block;
  font-size: 15px;
  color: var(--fg);
  font-weight: 600;
}

/* Form bits */
.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 22px;
}
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
}
.form-success.show { display: block; }
.form-submit { width: 100%; margin-top: 8px; }
.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--fg-faint);
  line-height: 1.6;
}
.form-note a {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* Gallery overlay (was missing) */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
  background: linear-gradient(0deg, rgba(2,7,10,0.85) 0%, rgba(2,7,10,0) 60%);
  z-index: 2;
  transition: background 0.4s var(--ease);
}
.gallery-card:hover .gallery-overlay {
  background: linear-gradient(0deg, rgba(2,7,10,0.92) 0%, rgba(2,7,10,0.18) 100%);
}
.gallery-cat {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.gallery-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 6px;
}
.gallery-client {
  display: block;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}

/* Page entrance */
body { opacity: 0; transition: opacity 0.5s var(--ease); }
body.page-ready { opacity: 1; }

/* Responsive: with-aside collapses on mobile */
@media (max-width: 880px) {
  .with-aside {
    grid-template-columns: 1fr;
  }
  .aside-card-stack {
    position: static;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FIX PATCH — align CSS to actual HTML class names
   ============================================================ */

/* ---- Brand (HTML uses .brand, not .nav-brand) ---- */
.brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: brandPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.brand-name { white-space: nowrap; }
.brand-name em {
  font-family: var(--font-serif);
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ---- Nav inner wrapper ---- */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

/* ---- Nav-menu uses flex (no <li>); items styled as direct <a> ---- */
/* Note: dir="rtl" on <html> automatically reverses flex flow,
   so the first HTML item appears rightmost — exactly what we want for Hebrew. */
.nav-menu {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---- Nav-item (wraps has-sub dropdown items) ---- */
.nav-item {
  position: relative;
  display: inline-block;
}

/* Caret arrow on has-sub items */
.has-sub > .nav-link::before {
  content: "▾";
  font-size: 9px;
  margin-inline-end: 6px;
  color: var(--fg-faint);
  display: inline-block;
  vertical-align: middle;
}

/* ---- Nav-sub dropdown: HTML has direct <a> children (no <li>) ---- */
.nav-sub > a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--fg-dim);
  text-decoration: none;
  white-space: normal;
  line-height: 1.4;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-sub > a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Nav-toggle (HTML uses .nav-toggle, not .nav-burger) ---- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Show toggle, hide nav-menu on small screens ---- */
@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- MOBILE MENU (HTML uses .mm not .mobile-menu) ---- */
.mm {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(2, 7, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 100px var(--gutter) 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
}
.mm.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.mm-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 600px;
  margin: 0 auto;
}
.mm-link,
.mm-item > .mm-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 600;
  color: var(--fg);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  background: transparent;
  border-top: none;
  border-inline: none;
  cursor: pointer;
  width: 100%;
  text-align: start;
  font-family: var(--font-display);
}
.mm-link:hover, .mm-sub-toggle:hover { color: var(--accent); }
.mm-sub-toggle span {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.mm-item.open .mm-sub-toggle span {
  transform: rotate(45deg);
}
.mm-sub {
  display: none;
  flex-direction: column;
  padding-inline-start: 18px;
  padding-block: 8px 14px;
  gap: 4px;
}
.mm-item.open .mm-sub {
  display: flex;
}
.mm-sub a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--fg-dim);
  padding: 6px 0;
  text-decoration: none;
  border: none;
}
.mm-sub a:hover { color: var(--accent); }
.mm-cta {
  margin-top: 24px;
  background: var(--accent);
  color: var(--bg);
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  align-self: stretch;
}

/* ---- SECTION HEAD — proper RTL alignment ---- */
/* My HTML structure is .kicker + .section-title (sometimes + .section-lead).
   For RTL: stack vertically, right-aligned, with optional lead below. */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto clamp(40px, 5vw, 64px);
  padding: 0 var(--gutter);
  text-align: start;
  grid-template-columns: none;
}
.section-head.center {
  align-items: center;
  text-align: center;
}
.section-head .kicker { order: 1; }
.section-head .section-title { order: 2; max-width: 880px; }
.section-head .section-lead { order: 3; max-width: 680px; }

/* Override the old grid rule for safety */
@media (min-width: 901px) {
  .section-head { grid-template-columns: none; }
}

/* ---- HERO META — make sure no overflow ---- */
.hero-meta { flex-wrap: wrap; }

/* ---- Make sure .nav doesn't overflow due to .nav-inner ---- */
.nav { overflow: visible; }

/* Hide stray .mm content on desktop in case .mm.open is forgotten */
@media (min-width: 1101px) {
  .mm, .mm-inner, .mm-item, .mm-sub, .mm-link, .mm-cta, .mm-sub-toggle {
    display: none !important;
  }
}

/* Lock body scroll when mobile menu open (JS adds .open) */
body:has(.mm.open) { overflow: hidden; }

/* ============================================================
   LOGO PATCH — replace brand text with image, move to LEFT side
   ============================================================ */

/* The .brand <a> now contains an <img>. Strip the previous text-based
   styling (font/letter-spacing/gap) so the image renders cleanly. */
.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  gap: 0;
  font-size: 0;          /* kill stray text from old structure */
  letter-spacing: 0;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 38px;           /* desktop nav height */
  width: auto;
  object-fit: contain;
  border-radius: 4px;     /* soften the dark logo background edge */
}

/* Move brand to the LEFT side of the nav (end of inline order).
   In RTL, the flex item with the highest `order` lands at inline-end = LEFT. */
.nav-inner > .brand { order: 9; }
.nav-inner > .nav-menu { order: 1; }
.nav-inner > .nav-toggle { order: 2; }

/* Footer logo — slightly larger, normal flow */
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-logo {
  height: 56px;
  border-radius: 6px;
}

/* Bigger logo on small mobile so it remains legible */
@media (max-width: 640px) {
  .brand-logo { height: 34px; }
}

/* Hard guarantee: hamburger is hidden on desktop (>= 1101px) */
@media (min-width: 1101px) {
  .nav-toggle { display: none !important; }
}

/* ============================================================
   LOGO PATCH — image logo on LEFT of nav in RTL
   ============================================================ */

/* The logo image */
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.nav .brand-logo { height: 42px; }
.footer .brand-logo { height: 44px; }

/* Brand link, hover */
.brand:hover { opacity: 0.85; }

/* Slightly tighter padding now that logo takes the LEFT side */
html[dir="rtl"] .nav {
  padding-inline: 8px 20px;
}

/* Footer brand: keep on the right (RTL default) — no row-reverse needed */
.footer .brand { display: inline-block; }

/* ============================================================
   PARTNERS MARQUEE — infinite loop of partner logos
   ============================================================ */
.partners-marquee {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 40px 0;
  overflow: hidden;
}

/* Fade edges so logos elegantly emerge / disappear */
.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.partners-marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.partners-marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
html[dir="rtl"] .partners-marquee::before {
  background: linear-gradient(to left, var(--bg), transparent);
}
html[dir="rtl"] .partners-marquee::after {
  background: linear-gradient(to right, var(--bg), transparent);
}

.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: 90px;
  width: max-content;
  animation: partnersScroll 32s linear infinite;
}

.partner-logo {
  height: 68px;
  width: auto;
  opacity: 0.78;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.02));
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  flex-shrink: 0;
}
.partner-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Animation: with 12 logos (4 copies of 3 partners) we shift -75%
   which is exactly 3 copies' worth, so the visible state is seamless. */
@keyframes partnersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-75%); }
}

/* Pause on hover for UX */
.partners-marquee:hover .partners-marquee-track {
  animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .partners-marquee-track {
    animation: none;
  }
}

/* Smaller on mobile */
@media (max-width: 700px) {
  .partner-logo { height: 50px; }
  .partners-marquee-track { gap: 60px; }
  .partners-marquee { padding: 30px 0; }
}

/* ============================================================
   CLIENTS MARQUEE — "בין לקוחותינו" infinite loop
   ============================================================ */
.clients-marquee {
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.clients-label::before,
.clients-label::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.clients-label::after {
  background: linear-gradient(90deg, var(--line), transparent);
}
.clients-label span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

/* Track + viewport */
.clients-track-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: clientsScroll 50s linear infinite;
}

/* Individual white badge card for each logo */
.client-card {
  flex-shrink: 0;
  height: 84px;
  min-width: 150px;
  padding: 14px 24px;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.client-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(32, 255, 210, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.client-card img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Pause on hover */
.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

@keyframes clientsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

@media (max-width: 700px) {
  .client-card { height: 64px; min-width: 110px; padding: 10px 16px; }
  .clients-track { gap: 18px; animation-duration: 40s; }
  .clients-marquee { padding: 40px 0 48px; }
}

/* ============================================================
   MARQUEE LOOP FIX — force LTR layout on BOTH wrap and track.
   An RTL wrap anchors overflowing children to the RIGHT edge,
   which puts the duplicates off-screen LEFT and breaks the loop.
   With LTR forced on the wraps, duplicates sit off-screen RIGHT
   and slide in naturally as the animation moves the track LEFT.
   The surrounding page stays RTL — only the marquee containers
   are flipped internally.
   ============================================================ */
.clients-track-wrap,
.clients-track,
.partners-marquee,
.partners-marquee-track {
  direction: ltr;
}

/* Now that the partners section is LTR internally, neutralize
   the earlier RTL gradient flip so the fade edges stay correct. */
html[dir="rtl"] .partners-marquee::before {
  background: linear-gradient(to right, var(--bg), transparent);
}
html[dir="rtl"] .partners-marquee::after {
  background: linear-gradient(to left, var(--bg), transparent);
}

/* ============================================================
   ABOUT PAGE — video hero variant + founder block
   ============================================================ */

/* Slightly tighter hero on the about page (it's a sub-page) */
.hero-about {
  min-height: 100vh;
}
.hero-about .hero-content {
  padding-block: clamp(40px, 6vw, 80px);
  max-width: 880px;
}
/* Smaller, calmer title — the home page title is a dramatic shout;
   the about title should fit the page rhythm and the available column. */
.hero-about .hero-title {
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero-about .hero-lead {
  max-width: 580px;
}

/* Breadcrumbs sitting on top of the video hero */
.crumbs-on-hero {
  margin-bottom: 28px;
  color: var(--fg-dim);
  font-size: 13px;
  font-family: var(--font-latin);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumbs-on-hero a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.crumbs-on-hero a:hover { color: var(--accent); }
.crumbs-on-hero .crumb-sep {
  color: var(--fg-faint);
  opacity: 0.6;
}

/* Founder block — photo and bio side-by-side */
.founder-block {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

/* In RTL, photo lands on the left because grid columns
   are placed in inline-start order — which means first column
   (photo) goes to the right. Force it to the left explicitly. */
html[dir="rtl"] .founder-block > .founder-photo {
  order: 2;
}
html[dir="rtl"] .founder-block > .founder-text {
  order: 1;
}

.founder-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(32, 255, 210, 0.08), rgba(2, 7, 10, 0.6));
  border: 1px solid var(--line);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(32, 255, 210, 0.1) inset;
  z-index: 2;
}
.founder-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.founder-photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(32, 255, 210, 0.18), transparent 65%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Founder text column */
.founder-text { max-width: 620px; }
.founder-text .kicker { margin-bottom: 16px; }
.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--fg);
}
.founder-name em {
  font-style: normal;
  font-family: var(--font-serif);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.65em;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-top: 4px;
}
.founder-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.founder-text p strong {
  color: var(--accent);
  font-weight: 600;
}

.founder-creds {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
}
.founder-creds li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.cred-badge {
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cred-text {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.45;
}

.founder-cta {
  margin-top: 8px;
}

/* Mobile: stack vertically, photo on top */
@media (max-width: 880px) {
  .founder-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  html[dir="rtl"] .founder-block > .founder-photo,
  html[dir="rtl"] .founder-block > .founder-text {
    order: initial;
  }
  .founder-photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Moderate overlay on the about hero — strong enough to keep the
   title readable on the right side, but lets the video breathe. */
.hero-about .hero-overlay {
  background:
    linear-gradient(270deg, rgba(2, 7, 10, 0.62) 0%, rgba(2, 7, 10, 0.32) 55%, rgba(2, 7, 10, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.22) 0%, rgba(2, 7, 10, 0) 30%, rgba(2, 7, 10, 0.1) 70%, rgba(2, 7, 10, 0.5) 100%);
}
/* Gentle desaturation only — keep the video bright and visible */
.hero-about .hero-video {
  filter: saturate(0.9) brightness(0.82);
}

/* ============================================================
   BENTO VIDEO CARD — full-bleed video with hover-reveal text
   Default state: video plays, no text
   Hover (desktop): dark overlay + text + CTA fade in, video zooms slightly
   Click: navigates (whole card is an <a>)
   Touch devices: text always visible since there's no hover state
   ============================================================ */

.bento-card.bento-video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  /* The card was already a grid item with proper sizing — we just
     restructure its inner layout to be a positioned canvas. */
}

/* The looping mp4 sits absolutely behind everything */
.bento-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transition:
    transform 0.7s cubic-bezier(.2, .7, .2, 1),
    filter 0.45s ease;
  /* Slightly desaturate so it stays inside the site palette */
  filter: saturate(0.95) brightness(0.95);
}

/* Dark gradient that fades in on hover so text reads cleanly */
.bento-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 10, 0.25) 0%, rgba(2, 7, 10, 0.92) 90%),
    linear-gradient(270deg, rgba(2, 7, 10, 0.45), rgba(2, 7, 10, 0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Content sits above the video and overlay */
.bento-video .bento-content {
  position: relative;
  z-index: 2;
  padding: 36px 36px 32px;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

/* In the same .bento-content, override existing margin defaults
   on the inner elements (the prior layout had margins between blocks) */
.bento-video .bento-num,
.bento-video .bento-title,
.bento-video .bento-text,
.bento-video .bento-cta {
  margin: 0;
}

/* === Hover-capable devices: hide content, reveal on hover === */
@media (hover: hover) {
  .bento-video .bento-content > * {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.4s ease,
      transform 0.5s cubic-bezier(.2, .7, .2, 1);
  }

  .bento-video:hover .bento-video-overlay {
    opacity: 1;
  }
  .bento-video:hover .bento-video-bg {
    transform: scale(1.05);
    filter: saturate(0.8) brightness(0.55);
  }
  .bento-video:hover .bento-content > * {
    opacity: 1;
    transform: translateY(0);
  }
  /* Staggered reveal — feels intentional, not all-at-once */
  .bento-video:hover .bento-content > *:nth-child(1) { transition-delay: 0.05s; }
  .bento-video:hover .bento-content > *:nth-child(2) { transition-delay: 0.12s; }
  .bento-video:hover .bento-content > *:nth-child(3) { transition-delay: 0.19s; }
  .bento-video:hover .bento-content > *:nth-child(4) { transition-delay: 0.26s; }

  /* Keyboard accessibility — same reveal on focus-within */
  .bento-video:focus-visible .bento-video-overlay,
  .bento-video:focus-within .bento-video-overlay {
    opacity: 1;
  }
  .bento-video:focus-visible .bento-content > *,
  .bento-video:focus-within .bento-content > * {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Touch devices: no hover, so always show content with overlay === */
@media (hover: none) {
  .bento-video .bento-video-overlay {
    opacity: 1;
  }
  .bento-video .bento-video-bg {
    filter: saturate(0.8) brightness(0.55);
  }
}

/* Respect reduced-motion: still works, just no scale/translate */
@media (prefers-reduced-motion: reduce) {
  .bento-video-bg,
  .bento-video .bento-content > * {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

/* ============================================================
   HERO SOUND TOGGLE — small pill button to unmute the hero video
   ============================================================ */
.hero-sound-toggle {
  position: absolute;
  bottom: clamp(24px, 4vh, 44px);
  inset-inline-end: clamp(24px, 4vw, 44px);  /* LEFT side in RTL */
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: rgba(2, 7, 10, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-sound-toggle:hover {
  background: rgba(2, 7, 10, 0.78);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.hero-sound-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hero-sound-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.hero-sound-icon svg { display: block; }
/* Icon swap based on state */
.hero-sound-toggle .icon-unmuted { display: none; }
.hero-sound-toggle[data-state="unmuted"] .icon-muted { display: none; }
.hero-sound-toggle[data-state="unmuted"] .icon-unmuted { display: block; }
.hero-sound-toggle[data-state="unmuted"] {
  background: rgba(32, 255, 210, 0.12);
  border-color: var(--line-strong);
}
.hero-sound-text {
  white-space: nowrap;
  line-height: 1;
}

/* ============================================================
   INFOGRAPHIC CARDS — 4 tilted cards with 360° hover spin
   Cards sit close together with inward-pointing corners.
   On hover: full rotation back to same tilt + scale + glow.
   ============================================================ */
.info-section {
  padding-top: clamp(64px, 7vw, 100px);
  padding-bottom: clamp(80px, 9vw, 120px);
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  /* Padding ensures rotated corners aren't clipped by overflow */
  padding: 48px 24px;
}

.info-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-decoration: none;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 0.85s cubic-bezier(.22, .61, .36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.info-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Per-card initial tilt — inner corners reach toward the cluster center
   so they almost touch their neighbors' inner corners. */
.info-card--1 { transform: rotate(3deg); }
.info-card--2 { transform: rotate(-3deg); }
.info-card--3 { transform: rotate(-3deg); }
.info-card--4 { transform: rotate(3deg); }

/* Hover: full 360° spin back to the same final angle + scale + lift */
.info-card:hover,
.info-card:focus-visible {
  z-index: 5;
  border-color: var(--line-strong);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--accent-soft),
    0 0 40px rgba(32, 255, 210, 0.15);
}
.info-card--1:hover,
.info-card--1:focus-visible { transform: rotate(363deg) scale(1.04); }
.info-card--2:hover,
.info-card--2:focus-visible { transform: rotate(-363deg) scale(1.04); }
.info-card--3:hover,
.info-card--3:focus-visible { transform: rotate(-363deg) scale(1.04); }
.info-card--4:hover,
.info-card--4:focus-visible { transform: rotate(363deg) scale(1.04); }

/* Mobile: stack vertically without tilt (looks awkward stacked) */
@media (max-width: 720px) {
  .info-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
    max-width: 440px;
  }
  .info-card--1,
  .info-card--2,
  .info-card--3,
  .info-card--4 { transform: rotate(0deg); }

  .info-card--1:hover,
  .info-card--2:hover,
  .info-card--3:hover,
  .info-card--4:hover { transform: rotate(360deg) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .info-card { transition: box-shadow 0.3s ease; }
  .info-card:hover,
  .info-card:focus-visible { transform: scale(1.02) !important; }
}

/* ============================================================
   LEGAL PAGES — terms / privacy / accessibility
   Narrower reading column + softer typography for long-form text
   ============================================================ */
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.legal-article {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-dim);
}
.legal-article h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--fg);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.legal-article h2:first-child { margin-top: 0; }
.legal-article h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin: 28px 0 10px;
}
.legal-article p { margin-bottom: 16px; }
.legal-article ul,
.legal-article ol {
  margin: 0 0 18px;
  padding-inline-start: 24px;
}
.legal-article li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-article strong { color: var(--fg); font-weight: 600; }
.legal-article a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.legal-article a:hover { text-decoration-color: var(--accent); }

/* Placeholder note while the page is still a draft */
.legal-placeholder {
  background: rgba(255, 200, 60, 0.08);
  border: 1px dashed rgba(255, 200, 60, 0.4);
  border-radius: 12px;
  padding: 20px 24px;
  color: var(--fg);
  font-size: 14.5px;
  line-height: 1.6;
}
.legal-placeholder strong { color: rgb(255, 200, 60); }
.legal-meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--fg-faint);
}
.legal-meta-top {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 28px;
}

/* ============================================================
   INSPIRE / PROJECT PREVIEW — convert from drag-carousel to
   auto-scrolling marquee loop, same pattern as clients/partners
   ============================================================ */

/* Disable the old drag cursor */
.inspire-viewport {
  cursor: default;
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  /* Edge fade so cards emerge/exit gracefully */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  /* Force LTR layout so the marquee duplicates sit off-screen RIGHT
     (where they slide in from) instead of off-screen LEFT in RTL */
  direction: ltr;
}

.inspire-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  padding-inline: 22px;
  direction: ltr;
  animation: inspireScroll 60s linear infinite;
}

/* Pause on hover so users can read */
.inspire-viewport:hover .inspire-track {
  animation-play-state: paused;
}

@keyframes inspireScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .inspire-track { animation: none; }
}

/* Card styling for each project preview */
.inspire-item {
  position: relative;
  display: block;
  width: clamp(260px, 22vw, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.inspire-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

/* The procedural gradient background for each project category */
.inspire-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 1.2s var(--ease-out);
}
.inspire-item:hover .inspire-bg { transform: scale(1.06); }

.inspire-bg[data-kind="polyurea"]    { background: linear-gradient(135deg, #0c3344 0%, #1a5d6e 50%, #0a2730 100%); }
.inspire-bg[data-kind="water"]       { background: linear-gradient(135deg, #0d3a52 0%, #1d6589 55%, #0a2540 100%); }
.inspire-bg[data-kind="pool"]        { background: linear-gradient(135deg, #0d4e5e 0%, #2b9bb5 55%, #0a3140 100%); }
.inspire-bg[data-kind="parking"]     { background: linear-gradient(135deg, #1a1a1f 0%, #2c2f3a 55%, #0a0a0e 100%); }
.inspire-bg[data-kind="corrosion"]   { background: linear-gradient(135deg, #2a1810 0%, #5c3220 55%, #1a0e08 100%); }
.inspire-bg[data-kind="vehicle"]     { background: linear-gradient(135deg, #1d2630 0%, #3a4856 55%, #0e1218 100%); }
.inspire-bg[data-kind="industrial"]  { background: linear-gradient(135deg, #1e2530 0%, #38505e 55%, #0c1118 100%); }
.inspire-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,7,10,0.05) 0%, rgba(2,7,10,0.78) 100%);
}

/* Text overlay at the bottom of each card */
.inspire-meta {
  position: absolute;
  inset-inline-start: 22px;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 2;
  direction: rtl; /* text inside cards stays RTL even though track is LTR */
}
.inspire-cat {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 12px;
}
.inspire-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--fg);
  line-height: 1.25;
  margin: 0;
}

@media (max-width: 640px) {
  .inspire-item { width: 220px; }
  .inspire-track { gap: 16px; animation-duration: 48s; }
}

/* ============================================================
   POLYUREA PAGE HERO — text + video-player two-column layout
   ============================================================ */
.page-hero-with-video {
  padding-block: clamp(60px, 7vw, 100px) clamp(56px, 6vw, 80px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.65fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
  margin-top: 32px;
}

.page-hero-text .kicker { margin-bottom: 14px; }
.page-hero-text .page-hero-title { margin-bottom: 22px; }
.page-hero-text .page-hero-lead { margin-bottom: 26px; max-width: 520px; }

/* Status pill (lecture · location) */
.hero-video-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.hero-video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: brandPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* The video player itself — framed, with subtle mint outer glow */
.page-hero-player {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(32, 255, 210, 0.08),
    0 0 80px rgba(32, 255, 210, 0.06);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.page-hero-player:hover {
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(32, 255, 210, 0.18),
    0 0 100px rgba(32, 255, 210, 0.12);
}
.page-hero-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Mobile: stack vertically, video first (more visual interest at top) */
@media (max-width: 880px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* On mobile, put the video at the top, text below */
  .page-hero-grid > .page-hero-player { order: -1; }
}

/* ============================================================
   TESTIMONIALS GRID — each recommendation in its own card
   with 5-star rating on top
   ============================================================ */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.t-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition:
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.t-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(32, 255, 210, 0.08);
}

/* Five-star rating row */
.t-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}
.t-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(32, 255, 210, 0.35));
}

/* Decorative big quote mark — sits subtly behind the text */
.t-quote-mark {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.35;
  margin: 0 0 -8px;
  font-weight: 500;
}

.t-card .t-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0;
  flex: 1; /* pushes the author block to the bottom regardless of text length */
}

/* Author block */
.t-card .t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.t-card .t-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), rgba(32, 255, 210, 0.04));
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.t-card .t-author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.3;
}
.t-card .t-author-role {
  font-size: 12.5px;
  color: var(--fg-faint);
  margin-top: 2px;
}

/* Responsive: 2-up on tablet, 1-up on mobile */
@media (max-width: 1024px) {
  .t-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .t-grid { grid-template-columns: 1fr; gap: 20px; }
  .t-card { padding: 26px 24px 24px; }
}

/* ============================================================
   INSPIRE TEXT-ONLY STRIP — overrides the card-based version
   above. Each item becomes inline text (category + title)
   separated by mint dots, scrolling continuously.
   ============================================================ */
.inspire-track {
  align-items: baseline;
  gap: 0;
  padding-block: 20px;
}

/* Strip the card styling — make items inline text instead */
.inspire-item {
  width: auto !important;
  aspect-ratio: auto !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: baseline;
  gap: 14px;
  padding: 0;
  position: relative;
  isolation: auto;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}
.inspire-item:hover {
  transform: none;
  opacity: 0.65;
  border: 0 !important;
  box-shadow: none !important;
}
.inspire-item:hover .inspire-bg { transform: none; }

/* Hide the procedural gradient backgrounds — pure text now */
.inspire-bg { display: none !important; }

/* Meta wraps category + title side by side as inline text */
.inspire-meta {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  z-index: 0;
  direction: rtl;
}
.inspire-cat {
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  margin: 0;
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.inspire-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--fg);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Mint dot separator after each item — creates continuous flow */
.inspire-item::after {
  content: "·";
  margin: 0 28px;
  color: var(--accent);
  font-size: clamp(28px, 3vw, 40px);
  opacity: 0.55;
  line-height: 1;
  font-weight: 400;
}

@media (max-width: 640px) {
  .inspire-item { gap: 10px; }
  .inspire-item::after { margin: 0 18px; }
}

/* ============================================================
   GALLERY MASONRY — CSS-columns layout that preserves the
   natural aspect ratio of each project photo.
   ============================================================ */
.g-masonry {
  column-count: 3;
  column-gap: 14px;
  margin-top: 8px;
}
@media (max-width: 1024px) { .g-masonry { column-count: 2; } }
@media (max-width: 560px)  { .g-masonry { column-count: 1; column-gap: 12px; } }

.g-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
  isolation: isolate;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.g-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease-out), filter 0.4s var(--ease);
}
.g-item:hover {
  border-color: var(--accent-soft);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(32, 255, 210, 0.15);
}
.g-item:hover img {
  transform: scale(1.04);
}
/* Subtle mint scan overlay on hover (matches site language) */
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(32, 255, 210, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.g-item:hover::after { opacity: 1; }

/* ============================================================
   LIGHTBOX — pop-up image viewer for the gallery
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 7, 10, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
          backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vh, 80px) clamp(20px, 6vw, 100px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.85);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.lightbox.is-open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg-faint);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Buttons — circular glass pills */
.lightbox button {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(2, 7, 10, 0.75);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
  z-index: 1;
}
.lightbox button:hover {
  background: rgba(2, 7, 10, 0.95);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.06);
}
.lightbox button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lightbox-close {
  top: clamp(16px, 3vh, 30px);
  inset-inline-end: clamp(16px, 3vw, 30px);
  width: 48px;
  height: 48px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lightbox-prev { inset-inline-start: clamp(12px, 2vw, 30px); }
.lightbox-next { inset-inline-end:   clamp(12px, 2vw, 30px); }
.lightbox-prev:hover,
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* Lock body scroll when lightbox open */
body.lb-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next { width: 42px; height: 42px; }
  .lightbox-img { max-height: calc(100vh - 140px); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-img { transition-duration: 0.01ms !important; }
  .lightbox-img { transform: none !important; }
}

/* ============================================================
   FAQ — redesign: centered single column, no button background,
   minimal typography, hover-reveal answers
   ============================================================ */
/* Cancel the double-padding from the legacy .faq rule
   (the parent .section already provides section-pad) */
#faq .faq {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 0;
  border-top: 0;
  display: block;
}

#faq .faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.35s var(--ease);
}
#faq .faq-item:first-child {
  border-top: 1px solid var(--line-soft);
}
#faq .faq-item:hover {
  border-bottom-color: var(--accent-soft);
}
#faq .faq-item:hover + .faq-item,
#faq .faq-item:focus-within + .faq-item {
  border-top-color: var(--accent-soft); /* visual continuity for adjacent item */
}

/* RESET the button — no white background, no border, no padding from UA */
#faq .faq-q {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent !important;
  border: 0;
  padding: 22px 4px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  justify-content: center;       /* center the question + icon group */
  align-items: center;
  gap: 16px;
  text-align: center;             /* center the actual text */
  transition: color 0.3s var(--ease);
}
#faq .faq-q > span:first-child {
  flex: 0 1 auto;                  /* don't stretch the text; keep it tight */
}
#faq .faq-item:hover .faq-q,
#faq .faq-item:focus-within .faq-q {
  color: var(--accent);
}

#faq .faq-toggle {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}
#faq .faq-toggle::before,
#faq .faq-toggle::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
#faq .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
#faq .faq-item.open .faq-toggle::after,
#faq .faq-item:hover .faq-toggle::after,
#faq .faq-item:focus-within .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }

#faq .faq-content {
  max-height: 0;
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.75;
  text-align: center;             /* center the answer text too */
  padding: 0 8px;
  transition: max-height 0.55s var(--ease), padding 0.55s var(--ease);
}
#faq .faq-content p { max-width: 600px; margin: 0 auto; }
#faq .faq-content em { color: var(--accent); font-style: normal; font-weight: 500; }
#faq .faq-item.open .faq-content,
#faq .faq-item:hover .faq-content,
#faq .faq-item:focus-within .faq-content {
  max-height: 500px;
  padding: 0 8px 24px;
}

/* Tighten the gap between section-head and the FAQ list */
#faq .section-head { margin-bottom: 8px; }

/* ============================================================
   ACCESSIBILITY PAGE — extra elements
   ============================================================ */
/* Highlighted coordinator block — legally required to be prominent */
.legal-coordinator {
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-inline-start: 3px solid var(--accent);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
}
.legal-coordinator-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px !important;
}
.legal-coordinator ul {
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
}
.legal-coordinator li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(32, 255, 210, 0.06);
}
.legal-coordinator li:last-child { border-bottom: 0; }

/* Keyboard key chip — used in the accessibility shortcuts list */
.legal-article kbd {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 2px 8px;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--accent);
  vertical-align: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* ============================================================
   PARKING SECTION (polyurea page) — text right, video left
   Same RTL natural flow as the page hero
   ============================================================ */
.parking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.parking-text .kicker { margin-bottom: 14px; }
.parking-text .section-title { margin-bottom: 24px; }
.parking-text p { margin-bottom: 16px; line-height: 1.75; color: var(--fg-dim); }
.parking-text strong { color: var(--fg); font-weight: 600; }
.parking-text ul {
  margin: 22px 0 0;
  padding-inline-start: 0;
  list-style: none;
}
.parking-text li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--fg-dim);
}
.parking-text li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

.parking-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(32, 255, 210, 0.08),
    0 0 80px rgba(32, 255, 210, 0.05);
}
.parking-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: stack vertically, video on top (more visual interest first) */
@media (max-width: 880px) {
  .parking-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .parking-grid > .parking-video { order: -1; }
}

/* ============================================================
   UHP HERO (water-pressure page) — same sub-page video hero
   treatment as the about hero
   ============================================================ */
.hero-uhp {
  min-height: 100vh;
}
.hero-uhp .hero-content {
  padding-block: clamp(40px, 6vw, 80px);
  max-width: 880px;
}
.hero-uhp .hero-title {
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero-uhp .hero-lead { max-width: 580px; }

/* Stronger overlay on right side to keep text readable over the water spray footage */
.hero-uhp .hero-overlay {
  background:
    linear-gradient(270deg, rgba(2, 7, 10, 0.72) 0%, rgba(2, 7, 10, 0.42) 55%, rgba(2, 7, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.25) 0%, rgba(2, 7, 10, 0) 30%, rgba(2, 7, 10, 0.15) 70%, rgba(2, 7, 10, 0.55) 100%);
}
.hero-uhp .hero-video {
  filter: saturate(0.95) brightness(0.85);
}

/* ============================================================
   LOGO — visible 3D side-to-side rotation with depth tilt
   ============================================================ */
.brand-logo {
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: logo3D 4.5s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
  backface-visibility: visible;
}

@keyframes logo3D {
  0%, 100% {
    transform: perspective(500px) rotateY(-28deg) rotateX(4deg);
  }
  50% {
    transform: perspective(500px) rotateY(28deg) rotateX(-4deg);
  }
}

.brand:hover .brand-logo {
  animation-play-state: paused;
  transform: perspective(500px) rotateY(0deg) rotateX(0deg);
  transition: transform 0.45s var(--ease);
}

/* ============================================================
   NAV SOCIAL ICON (YouTube) — circular icon-only link
   ============================================================ */
.nav-social {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #FF0033;                          /* YouTube brand red */
  border: 1px solid rgba(255, 0, 51, 0.35);
  background: rgba(255, 0, 51, 0.06);
  text-decoration: none;
  flex-shrink: 0;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.nav-social:hover {
  color: #FFFFFF;
  border-color: #FF0033;
  background: #FF0033;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(255, 0, 51, 0.55);
}
.nav-social svg { display: block; }

/* Hide social icon in the mobile menu drawer (nav-toggle handles small viewports) */
@media (max-width: 1100px) {
  .nav-social { display: none; }
}

/* ============================================================
   SUPERVISION + LECTURES (about page) — align all text to the
   right edge so kicker, title and article line up vertically
   ============================================================ */
#supervision .section-head,
#lectures .section-head {
  display: block;            /* not 2-col grid */
  text-align: right;
  max-width: 880px;          /* match .article width */
  margin: 0 auto;
  padding-inline: var(--gutter);
}
#supervision .section-head .kicker,
#lectures .section-head .kicker {
  display: inline-flex;
  margin-bottom: 18px;
}
#supervision .section-head .section-title,
#lectures .section-head .section-title {
  margin: 0;
}
#supervision .article,
#lectures .article {
  text-align: right;
  padding-top: 28px;         /* tighter — was 60px */
  padding-bottom: 0;
}

/* ============================================================
   LANGUAGE TOGGLE (HE / EN) — in nav + mobile menu
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { border-color: var(--line-strong); }
.lang-toggle .lang-current { color: var(--accent); }
.lang-toggle .lang-sep    { color: var(--fg-faint); opacity: 0.6; }
.lang-toggle .lang-link {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lang-toggle .lang-link:hover,
.lang-toggle .lang-link:focus-visible { color: var(--fg); outline: none; }

/* Mobile menu English/Hebrew link */
.mm-lang {
  color: var(--accent) !important;
  font-weight: 600;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
  padding-top: 18px !important;
}

/* Hide desktop toggle when mobile menu kicks in */
@media (max-width: 1100px) {
  .nav .lang-toggle { display: none; }
}

/* ============================================================
   LTR MODE (English site) — direction + a few visual flips
   The site uses logical properties throughout, so most layout
   flips automatically. These are the few hand-tuned overrides.
   ============================================================ */
html[dir="ltr"] body {
  font-family: var(--font-sans);
  text-align: left;
}

/* Brand stays on the LEFT in both directions.
   In RTL: order:9 pushes it to inline-end (= visual left).
   In LTR: reset to natural order so it stays at inline-start (= visual left). */
html[dir="ltr"] .nav-inner > .brand { order: 0; }
html[dir="ltr"] .nav-inner > .nav-menu { order: 1; }
html[dir="ltr"] .nav-inner > .nav-toggle { order: 2; }

/* Logo serif accents — use Latin-friendly weight in EN */
html[dir="ltr"] .brand-logo { /* same logo image works for both */ }

/* Article + legal pages — re-justify text for LTR readability */
html[dir="ltr"] .article,
html[dir="ltr"] .legal-article {
  text-align: left;
}
html[dir="ltr"] #supervision .section-head,
html[dir="ltr"] #supervision .article,
html[dir="ltr"] .lectures-text {
  text-align: left;
}

/* Crumbs — flip the arrow direction visually */
html[dir="ltr"] .crumb-sep { /* still a slash, no flip needed */ }

/* Final CTA, hero text — ensure they sit on the natural inline-start side
   The existing rules use logical properties; nothing to override here. */

/* WhatsApp dock + sticky CTA stay bottom-right in both directions
   (they use right: positioning, which is direction-agnostic per spec).
   If we ever want them to flip, switch to inset-inline-end. */
.wa-dock, .sticky-cta {
  /* explicit override to keep them on the right in LTR too */
  inset-inline-end: auto;
}
html[dir="ltr"] .wa-dock,
html[dir="ltr"] .sticky-cta { right: 20px; left: auto; }

/* ============================================================
   LTR TYPOGRAPHY — Latin text is wider per word than Hebrew,
   so we scale large display sizes down across the board.
   ============================================================ */
html[dir="ltr"] .hero-title {
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 22ch;
}
html[dir="ltr"] .hero-title em { font-size: 0.95em; }

html[dir="ltr"] .page-hero h1 {
  font-size: clamp(34px, 4.8vw, 64px);
  max-width: 28ch;
}

html[dir="ltr"] .section-title {
  font-size: clamp(32px, 4.4vw, 60px);
}

html[dir="ltr"] .final-cta-title {
  font-size: clamp(34px, 5vw, 68px);
  max-width: 24ch;
}

html[dir="ltr"] .hero-lead { max-width: 640px; }

/* ============================================================
   PAGE HERO — IMMERSIVE WATER VARIANT
   Used on service-water-reservoirs.html. Full-bleed photo
   background with slow Ken Burns zoom + mouse parallax.
   ============================================================ */
.page-hero.page-hero-water {
  max-width: none;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 65vh, 620px);
  isolation: isolate;
}

.page-hero-water .page-hero-bg-parallax {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.page-hero-water .page-hero-bg {
  position: absolute;
  inset: -7%;                /* slight overflow so zoom never reveals edges */
  background-image: url('water-hero.jpg');
  background-size: cover;
  background-position: 30% center;
  background-repeat: no-repeat;
  animation: hero-water-zoom 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-water-zoom {
  0%   { transform: scale(1.0)  translate3d( 0%,  0%, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1.5%, 0); }
}

.page-hero-water .page-hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      rgba(7, 18, 26, 0.60) 0%,
      rgba(7, 18, 26, 0.22) 45%,
      rgba(7, 18, 26, 0.78) 100%),
    linear-gradient(to bottom,
      transparent 50%,
      rgba(7, 18, 26, 0.92) 100%);
}

/* Bring back container padding inside the now-unconstrained section */
.page-hero-water > .container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 180px var(--gutter) 100px;
}

/* Text legibility against the busy image */
.page-hero-water .page-hero-lead { color: rgba(255, 255, 255, 0.92); }
.page-hero-water .crumbs        { color: rgba(255, 255, 255, 0.62); }
.page-hero-water .crumbs a      { color: rgba(255, 255, 255, 0.88); }
.page-hero-water .crumb-sep     { color: rgba(255, 255, 255, 0.35); }
.page-hero-water .page-hero-title em {
  /* faint mint glow so the brand color reads against the blue/orange */
  text-shadow: 0 0 28px rgba(108, 222, 197, 0.25);
}

/* Mobile: drop parallax + tighter spacing */
@media (max-width: 768px) {
  .page-hero.page-hero-water { min-height: 380px; }
  .page-hero-water > .container {
    padding: 130px var(--gutter) 70px;
  }
  .page-hero-water .page-hero-bg-parallax {
    transform: none !important;
    transition: none !important;
  }
  .page-hero-water .page-hero-bg {
    background-position: 45% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-water .page-hero-bg          { animation: none; }
  .page-hero-water .page-hero-bg-parallax { transform: none !important; transition: none !important; }
}

/* ============================================================
   CUSTOM CURSOR — dot follows pointer, ring chases with lag
   Desktop / pointer-fine devices only. Disabled on touch and
   for users who prefer reduced motion.
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }
  /* But keep native cursors on form inputs and resize handles for usability */
  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select {
    cursor: text !important;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate3d(-50%, -50%, 0);
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s var(--ease);
  }
  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    opacity: 0.85;
    transition:
      width 0.25s var(--ease),
      height 0.25s var(--ease),
      border-color 0.25s var(--ease),
      background 0.25s var(--ease),
      opacity 0.25s var(--ease);
  }
  /* On hover over interactive elements, ring grows and fills slightly */
  .cursor-ring.is-hovering {
    width: 52px;
    height: 52px;
    background: rgba(108, 222, 197, 0.10);
  }
  .cursor-dot.is-hovering {
    width: 4px;
    height: 4px;
  }
  /* On mousedown, both shrink briefly */
  .cursor-ring.is-pressing {
    width: 28px;
    height: 28px;
    opacity: 1;
  }
  /* Hide while waiting for first mouse event */
  .cursor-dot:not(.is-active),
  .cursor-ring:not(.is-active) {
    opacity: 0;
  }
}

/* Reduced motion: no custom cursor — fall back to native */
@media (prefers-reduced-motion: reduce) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: auto !important;
  }
  .cursor-dot, .cursor-ring { display: none !important; }
}
