/* =========================================================
   AquaVolt — design tokens
   Palette:
     --ink        #0a1937  deep field-night navy (brand base)
     --steel      #1f3a63  mid steel-blue
     --olive      #4b5940  trailer olive drab
     --olive-dark #333d2c
     --ice        #6fd2f7  cold-water cyan (brand accent)
     --frost      #eaf6fb  pale frost background
     --sand       #f6f4ee  warm paper background
     --signal     #ffb703  amber warning / CTA
     --ink-70     rgba(10,25,55,.7)
   Type:
     Display  — "Space Grotesk" (EN/FR headings), "Rubik" (HE + shared brand mark)
     Body     — "Inter" (EN/FR), "Rubik" (HE)
     Readout  — "IBM Plex Mono" (specs / temperature tags — signature element)
   ========================================================= */

:root{
  --ink:#0a1937;
  --steel:#1f3a63;
  --olive:#4b5940;
  --olive-dark:#2e3625;
  --ice:#6fd2f7;
  --ice-deep:#2fb4e0;
  --frost:#eaf6fb;
  --sand:#f6f4ee;
  --signal:#ffb703;
  --paper:#fffdf9;
  --line: rgba(10,25,55,.12);
  --shadow: 0 20px 50px -20px rgba(10,25,55,.35);
  --radius: 4px;
  --maxw: 1180px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth; overflow-x:hidden;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}

body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:"Inter",system-ui,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

html[lang="he"] body{
  font-family:"Rubik","Inter",system-ui,sans-serif;
}

img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3,h4{
  font-family:"Space Grotesk","Rubik",system-ui,sans-serif;
  margin:0 0 .4em;
  letter-spacing:-0.01em;
  line-height:1.08;
  font-weight:700;
}
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] h4{
  font-family:"Rubik",system-ui,sans-serif;
  letter-spacing:0;
}
p{margin:0 0 1em}
.container{max-width:var(--maxw); margin:0 auto; padding:0 28px}

/* readout / spec tag — signature element, evokes the unit's control-panel gauges */
.readout{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ice-deep);
}
html[lang="he"] .readout{ letter-spacing:.02em; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ice-deep);
  margin-bottom:.9em;
}
html[lang="he"] .eyebrow{letter-spacing:.02em}
.eyebrow::before{
  content:"";
  width:22px;height:2px;
  background:var(--signal);
  display:inline-block;
}
html[lang="he"] .eyebrow::before{order:2}

/* ---------- Skip link / focus ---------- */
.skip-link{
  position:absolute;
  width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); clip-path:inset(50%);
  white-space:nowrap;
  background:var(--ink); color:#fff; padding:10px 16px; z-index:200;
  border-radius:var(--radius);
}
.skip-link:focus{
  width:auto; height:auto; overflow:visible;
  clip:auto; clip-path:none;
  inset-inline-start:16px; top:16px;
}
a:focus-visible, button:focus-visible, .lang-pill:focus-visible{
  outline:3px solid var(--signal);
  outline-offset:2px;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,25,55,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 28px;
  max-width:var(--maxw); margin:0 auto;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand img{height:34px; width:auto;}
.brand-name{
  font-family:"Space Grotesk","Rubik",sans-serif;
  font-weight:700; font-size:1.05rem; color:#fff; letter-spacing:.01em;
}

.main-nav{display:flex; align-items:center; gap:26px;}
.main-nav a{
  color:#dce9f5; text-decoration:none; font-size:.92rem; font-weight:500;
  padding:6px 2px; border-bottom:2px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
.main-nav a:hover{ color:#fff; border-color:var(--ice); }

.lang-switch{display:flex; gap:6px;}
.lang-pill{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.72rem; letter-spacing:.06em;
  color:#cfe0ee; text-decoration:none;
  border:1px solid rgba(255,255,255,.25);
  padding:5px 9px; border-radius:999px;
  transition:all .15s ease;
}
.lang-pill:hover{ border-color:var(--ice); color:#fff; }
.lang-pill.is-active{ background:var(--ice); color:var(--ink); border-color:var(--ice); font-weight:700;}

.nav-toggle{
  display:none; background:none; border:1px solid rgba(255,255,255,.3);
  border-radius:var(--radius); color:#fff; width:40px; height:36px; cursor:pointer;
}
.nav-toggle svg{width:18px; height:18px;}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:86vh;
  display:flex; align-items:flex-end;
  color:#fff;
  overflow:hidden;
  background:var(--ink);
}
.hero-media{
  position:absolute; inset:0;
  background-size:cover; background-position:center 62%;
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(6,14,32,.96) 0%, rgba(6,14,32,.55) 46%, rgba(6,14,32,.25) 100%),
    linear-gradient(100deg, rgba(6,14,32,.55) 0%, rgba(6,14,32,0) 55%);
}
.hero-content{
  position:relative; z-index:2;
  max-width:var(--maxw); margin:0 auto; width:100%;
  padding:0 28px 64px;
}
.hero-kicker{
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px;
}
.hero-kicker .readout{
  border:1px solid rgba(255,255,255,.3);
  padding:4px 10px; border-radius:999px; color:#fff;
}
.hero h1{
  font-size:clamp(2.4rem, 5.4vw, 4.6rem);
  color:#fff;
  max-width:16ch;
}
.hero .lede{
  font-size:clamp(1.05rem,1.7vw,1.3rem);
  color:#dce9f5; max-width:52ch; margin-bottom:30px;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:14px; align-items:center;}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:"Space Grotesk","Rubik",sans-serif;
  font-weight:700; font-size:.95rem;
  padding:14px 26px; border-radius:var(--radius);
  text-decoration:none; cursor:pointer; border:2px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--ice); color:var(--ink); }
.btn-primary:hover{ background:#fff; }
.btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.45); }
.btn-ghost:hover{ border-color:#fff; }

.hero-strip{
  position:relative; z-index:2;
  border-top:1px solid rgba(255,255,255,.18);
  background:rgba(6,14,32,.55);
}
.hero-strip .container{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:0;
}
.hero-stat{ padding:18px 0; border-inline-start:1px solid rgba(255,255,255,.15); padding-inline-start:20px;}
.hero-strip .hero-stat:first-child{ border-inline-start:none; padding-inline-start:0; }
.hero-stat .num{ font-family:"IBM Plex Mono",monospace; font-size:1.3rem; color:var(--ice); font-weight:700; direction:ltr; unicode-bidi:isolate; }
.hero-stat .label{ font-size:.78rem; color:#bcd0e2; text-transform:uppercase; letter-spacing:.06em;}

/* ---------- Section shells ---------- */
section{ padding:88px 0; }
.section-sand{ background:var(--sand); }
.section-frost{ background:var(--frost); }
.section-ink{ background:var(--ink); color:#fff; }
.section-ink .eyebrow, .section-ink .readout{ color:var(--ice); }
.section-head{ max-width:62ch; margin-bottom:48px; }
.section-head h2{ font-size:clamp(1.9rem,3.4vw,2.7rem); }
.section-head p{ font-size:1.08rem; color:var(--ink-70,#3c4a63); }

/* ---------- About / how it works ---------- */
.about-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center;
}
.about-figure{ position:relative; }
.about-figure img{ border-radius:var(--radius); box-shadow:var(--shadow); }
.about-figure .tag{
  position:absolute; bottom:-18px; inset-inline-start:-18px;
  background:var(--ink); color:#fff;
  padding:14px 18px; border-radius:var(--radius);
  box-shadow:var(--shadow);
  max-width:230px;
}
.about-figure .tag .num{ font-family:"IBM Plex Mono",monospace; color:var(--ice); font-size:1.4rem; font-weight:700; direction:ltr; unicode-bidi:isolate;}
.about-figure .tag .cap{ font-size:.78rem; color:#cfe0ee; }

.spec-list{ list-style:none; margin:28px 0 0; padding:0; display:grid; gap:0; border-top:1px solid var(--line);}
.spec-list li{
  display:grid; grid-template-columns:1fr auto; gap:20px;
  padding:16px 0; border-bottom:1px solid var(--line);
  align-items:baseline;
}
.spec-list .k{ font-weight:600; }
.spec-list .v{ font-family:"IBM Plex Mono",monospace; font-size:.88rem; color:var(--steel); text-align:end; direction:ltr; unicode-bidi:isolate;}

/* ---------- Use-case catalog ---------- */
.catalog{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.catalog-item{
  background:var(--paper); padding:30px 26px; min-height:230px;
  display:flex; flex-direction:column; gap:10px;
}
.catalog-item .idx{ font-family:"IBM Plex Mono",monospace; color:var(--ice-deep); font-size:.8rem; }
.catalog-item h3{ font-size:1.12rem; }
.catalog-item p{ font-size:.92rem; color:#4b5568; margin:0; }

/* ---------- Gallery ---------- */
.gallery{ display:grid; grid-template-columns:1.3fr 1fr; gap:16px; }
.gallery img{ width:100%; height:100%; object-fit:cover; border-radius:var(--radius); }
.gallery .col{ display:grid; gap:16px; }

/* ---------- Video ---------- */
.video-wrap{
  position:relative; width:100%; padding-top:56.25%;
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  background:#000;
}
.video-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ---------- Benefits ---------- */
.benefits{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:16px 40px;}
.benefits li{
  display:flex; gap:14px; align-items:flex-start;
  padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,.14);
  font-size:1rem;
}
.benefits li::before{
  content:"";
  min-width:10px; height:10px; margin-top:7px;
  background:var(--ice); border-radius:1px;
  transform:rotate(45deg);
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start;}
.contact-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; box-shadow:var(--shadow);
}
.contact-card .role{ color:#4b5568; font-size:.92rem; margin-bottom:18px; }
.contact-card .name{ font-size:1.3rem; font-weight:700; margin-bottom:4px; }
.contact-line{
  display:flex; align-items:center; gap:10px;
  padding:10px 0; border-top:1px solid var(--line);
  text-decoration:none; color:var(--ink); font-weight:600;
  direction:ltr; unicode-bidi:isolate; justify-content:flex-start;
}
html[dir="rtl"] .contact-line{ justify-content:flex-end; }
.contact-line svg{ width:18px; height:18px; color:var(--ice-deep); flex:none;}
.legal-box{
  font-family:"IBM Plex Mono",monospace; font-size:.78rem; color:#5a6478;
  line-height:1.9; border:1px dashed var(--line); padding:18px 20px; border-radius:var(--radius);
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--olive-dark); color:#e5e8dd; padding:52px 0 30px; }
.footer-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:36px; margin-bottom:34px;}
.footer-brand img{ height:30px; margin-bottom:14px; }
.footer-brand p{ max-width:36ch; color:#c4c9b6; font-size:.92rem; }
.footer-links{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h4{ font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:#9fa88c; margin-bottom:14px; font-family:"IBM Plex Mono",monospace; font-weight:600;}
.footer-col a{ display:block; color:#e5e8dd; text-decoration:none; font-size:.94rem; margin-bottom:10px; opacity:.9;}
.footer-col a:hover{ opacity:1; text-decoration:underline; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.14); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.8rem; color:#a7ac98;
}

/* ---------- RTL specific ---------- */
html[dir="rtl"] .eyebrow::before{ order:1; }
html[dir="rtl"] .catalog-item{ text-align:right; }
/* these elements are LTR-isolated for correct number/email rendering,
   so logical start/end resolves against their OWN ltr direction (=left) —
   force physical right alignment to match the RTL page instead */
html[dir="rtl"] .spec-list .v,
html[dir="rtl"] .hero-stat .num,
html[dir="rtl"] .hero-stat .label,
html[dir="rtl"] .about-figure .tag .num,
html[dir="rtl"] .about-figure .tag .cap{
  text-align:right;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .about-grid{ grid-template-columns:1fr; gap:40px;}
  .catalog{ grid-template-columns:repeat(2,1fr); }
  .gallery{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; gap:32px;}
  .benefits{ grid-template-columns:1fr; }
  .hero-strip .container{ grid-template-columns:repeat(2,1fr); row-gap:14px;}
}
@media (max-width: 560px){
  .hero-strip .container{ grid-template-columns:1fr 1fr; }
  .hero-stat{ padding:14px 0; }
  .hero-stat .num{ font-size:1.05rem; }
}
@media (max-width: 760px){
  .main-nav{
    position:fixed; inset:64px 0 0 0; background:var(--ink);
    flex-direction:column; align-items:flex-start; padding:26px 28px; gap:20px;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
  }
  .main-nav.is-open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .catalog{ grid-template-columns:1fr; }
  section{ padding:60px 0; }
  .header-inner{ padding:12px 20px; }
}

/* ---------- Language chooser (root index) ---------- */
.chooser{
  min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:var(--ink); color:#fff; text-align:center; padding:40px 20px;
  background-image:
    linear-gradient(0deg, rgba(6,14,32,.92), rgba(6,14,32,.8)),
    url("../img/unit-towed-dusk.jpg");
  background-size:cover; background-position:center;
}
.chooser img.mark{ height:52px; margin-bottom:34px; }
.chooser-langs{ display:flex; gap:18px; flex-wrap:wrap; justify-content:center; margin-top:30px;}
.chooser-lang{
  display:flex; flex-direction:column; gap:6px; align-items:center;
  border:1px solid rgba(255,255,255,.3); border-radius:var(--radius);
  padding:22px 34px; text-decoration:none; color:#fff; min-width:150px;
  transition:all .15s ease;
}
.chooser-lang:hover{ border-color:var(--ice); background:rgba(255,255,255,.06); transform:translateY(-3px);}
.chooser-lang .big{ font-family:"Space Grotesk",sans-serif; font-size:1.3rem; font-weight:700;}
.chooser-lang .small{ font-family:"IBM Plex Mono",monospace; font-size:.72rem; color:#9fb6cc; letter-spacing:.08em;}
