:root {
  --navy: #0b1622;
  --navy-2: #142233;
  --ink: #0f1a26;
  --teal: #14b3b3;
  --teal-bright: #22cccc;
  --teal-dark: #0e9494;
  --muted: #5b6b7a;
  --mist: #f4f7fa;
  --paper: #fbfcfd;
  --line: rgba(15, 26, 38, 0.08);
  --shadow-sm: 0 8px 22px rgba(11, 22, 34, 0.06);
  --shadow-md: 0 20px 45px rgba(11, 22, 34, 0.10);
  --shadow-lg: 0 32px 70px rgba(11, 22, 34, 0.16);
  --radius: 18px;
  --radius-lg: 24px;
  --font-he: "Assistant", "Heebo", "Segoe UI", sans-serif;
  --font-en: "Space Grotesk", "Outfit", "Segoe UI", sans-serif;
  --max: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-he);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body[dir="ltr"] { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(251, 252, 253, 0.82);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 252, 253, 0.96);
  border-bottom-color: var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: none; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: var(--muted); font-weight: 600; font-size: 0.98rem;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 36px; padding: 0 0.7rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}
.lang-switch:hover { border-color: rgba(11, 22, 34, 0.2); }

.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.92rem;
  background: var(--navy); color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta:hover { background: var(--navy-2); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.8rem 1.8rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 12px 30px rgba(11, 22, 34, 0.22);
}
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border-color: rgba(11, 22, 34, 0.14);
}
.btn-ghost:hover { border-color: rgba(11,22,34,0.32); background: #fff; }

/* Hero — logo dominates */
.hero {
  position: relative;
  display: grid; place-items: center;
  padding: 4rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1000px 600px at 80% 15%, rgba(23, 184, 184, 0.08), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(13, 138, 138, 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fa 60%, #ffffff 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 22, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 22, 34, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, black 25%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.28; }
.orb-a { width: 520px; height: 520px; background: #17b8b8; top: -160px; inset-inline-end: -160px; }
.orb-b { width: 420px; height: 420px; background: #0e9494; bottom: -180px; inset-inline-start: -120px; opacity: 0.18; }

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
  text-align: center;
}
.hero-logo {
  width: min(560px, 78%);
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(11, 22, 34, 0.06));
  animation: rise 0.95s ease both;
}

/* Sections */
section { padding: 5.5rem 0; }
.section-title {
  margin: 0 0 2.6rem;
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-title::after {
  content: "";
  display: block;
  width: 46px; height: 3px; margin: 0.9rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

/* Products */
.products {
  background: linear-gradient(180deg, var(--paper), #eef3f6 55%, var(--paper));
}
.products-head {
  text-align: center;
  margin-bottom: 2.4rem;
}
.products-head .section-title { margin-bottom: 0.6rem; }
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
@media (max-width: 980px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
.products-grid .product-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  text-align: center;
  padding: 1.8rem 1.2rem;
  gap: 0.9rem;
}
.products-grid .product-card::before { display: none; }
.products-grid .product-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 20px 20px;
  transition: height 0.25s ease;
}
.products-grid .product-card:hover::after { height: 5px; }
.product-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(11, 22, 34, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--ink);
}
.product-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  transition: width 0.25s ease;
}
body[dir="rtl"] .product-card::before { inset: 0 0 0 auto; }
.product-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 26px 55px rgba(11, 22, 34, 0.14);
}
.product-card:hover::before { width: 6px; }

.product-mark {
  width: 78px; height: 78px;
  border-radius: 20px;
  background: var(--mark-bg, var(--accent-soft));
  padding: 12px;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.product-mark img { width: 100%; height: 100%; object-fit: contain; }
.product-mark.is-wide { padding: 16px 10px; }

.product-body { min-width: 0; }
.product-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.4rem; letter-spacing: -0.01em; color: var(--navy);
  font-weight: 700;
}
.product-tag {
  margin: 0;
  font-size: 0.98rem; color: var(--muted);
}

.product-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(11, 22, 34, 0.05);
  color: var(--navy);
  display: grid; place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.product-card:hover .product-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(-4px);
}
body[dir="rtl"] .product-arrow svg { transform: scaleX(-1); }
body[dir="rtl"] .product-card:hover .product-arrow { transform: translateX(4px); }

/* Back link (on internal pages) */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.back-link:hover { transform: translateY(-1px); border-color: rgba(11, 22, 34, 0.2); }
body[dir="rtl"] .back-link svg { transform: scaleX(-1); }

/* Pages */
.page { padding: 3rem 0 5rem; }
.page-head { max-width: 720px; margin-bottom: 2rem; }
.page-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--navy); letter-spacing: -0.02em;
}
.page-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Contact cards */
.contact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem;
}
.contact-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  align-items: center;
  padding: 1.8rem; background: #fff;
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.contact-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
}
.contact-icon svg { width: 30px; height: 30px; }
.contact-card--wa .contact-icon { background: rgba(37, 211, 102, 0.18); color: #22c55e; }
.contact-card--mail .contact-icon { background: rgba(20, 179, 179, 0.14); color: var(--teal); }

.contact-label {
  margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.contact-value {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.4rem; font-weight: 700; color: var(--navy);
  direction: ltr; unicode-bidi: plaintext;
}
body[dir="rtl"] .contact-value { text-align: right; }
.contact-cta {
  display: inline-block;
  color: var(--teal); font-weight: 700; font-size: 0.95rem;
}

/* Legal pages */
.legal-content {
  max-width: 760px;
  padding: 2.2rem;
  background: #fff;
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.legal-content h2 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.15rem; color: var(--navy);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #f7fafb;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 0.7rem; }
.footer-brand p, .footer-col a { color: var(--muted); }
.footer-col h3 { margin: 0 0 0.8rem; font-size: 0.95rem; color: var(--navy); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 1.2rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 80;
  max-width: 560px; margin-inline-start: auto;
  padding: 1.1rem 1.2rem; border-radius: 16px;
  background: rgba(11, 22, 34, 0.96); color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  display: none;
}
.cookie-banner.is-visible { display: block; animation: rise 0.45s ease both; }
.cookie-banner h2 { margin: 0 0 0.4rem; font-size: 1rem; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.cookie-banner a { color: #9fe3e3; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cookie-actions .btn { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.9rem; }
.cookie-actions .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.cookie-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Accessibility widget */
.accessibility-toggle {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 240;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #22cccc, #14b3b3);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(20, 179, 179, 0.45);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.accessibility-toggle:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20, 179, 179, 0.55); }
.accessibility-toggle:focus-visible { outline: 3px solid rgba(34, 204, 204, 0.6); outline-offset: 3px; }
.accessibility-toggle-icon svg { width: 28px; height: 28px; fill: currentColor; }

.accessibility-panel {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 4.6rem;
  z-index: 245;
  width: min(90vw, 320px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(11, 22, 34, 0.25);
  padding: 1rem 1.1rem 1.2rem;
}
.accessibility-panel[hidden],
body.a11y-widget-hidden .accessibility-toggle,
body.a11y-widget-hidden .accessibility-panel { display: none; }

.accessibility-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.9rem;
}
.accessibility-panel-head h2 { font-size: 1.05rem; margin: 0; color: var(--navy); font-weight: 700; }
.accessibility-panel-head button {
  border: 0; background: transparent; font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}

.accessibility-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.accessibility-actions .a11y-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-family: inherit; font-size: 0.86rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.accessibility-actions .a11y-btn:hover {
  background: var(--mist); border-color: rgba(14, 148, 148, 0.5); color: var(--teal);
}
.accessibility-actions .a11y-btn.is-active {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
.accessibility-actions .a11y-btn.a11y-text { grid-column: span 1; }
.accessibility-actions .a11y-btn.a11y-danger {
  border-color: rgba(200, 52, 31, 0.35); color: #b42318;
}
.accessibility-actions .a11y-btn.a11y-danger:hover {
  background: #fee4e2; border-color: #b42318; color: #b42318;
}
.accessibility-actions a.a11y-btn { grid-column: 1 / -1; }

/* A11y body modes */
body.a11y-highlight-links a {
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}
body.a11y-readable-font, body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}
body.a11y-high-contrast { background: #000 !important; color: #fff !important; }
body.a11y-high-contrast section,
body.a11y-high-contrast .site-header,
body.a11y-high-contrast .site-footer,
body.a11y-high-contrast .products,
body.a11y-high-contrast .hero { background: #000 !important; }
body.a11y-high-contrast .product-card,
body.a11y-high-contrast .contact-card,
body.a11y-high-contrast .legal-content,
body.a11y-high-contrast .accessibility-panel,
body.a11y-high-contrast .back-link {
  background: #111 !important; color: #fff !important; border-color: #ffff00 !important;
}
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast p,
body.a11y-high-contrast .nav a,
body.a11y-high-contrast .footer-col a,
body.a11y-high-contrast .header-cta { color: #fff !important; }
body.a11y-high-contrast .btn-primary,
body.a11y-high-contrast .header-cta { background: #ffff00 !important; color: #000 !important; }
body.a11y-high-contrast .contact-cta,
body.a11y-high-contrast .footer-col a:hover { color: #ffff00 !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.legal-action {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--accent-soft, rgba(13, 110, 253, 0.06));
  border: 1px solid var(--line);
  text-align: center;
}
.legal-action .btn { margin-bottom: 0.5rem; }
.legal-action-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .cookie-banner.is-visible {
    animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero-logo { width: min(440px, 82%); }
  section { padding: 4rem 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .container { width: min(100% - 1.6rem, var(--max)); }

  section { padding: 3rem 0; }
  .section-title { font-size: 1.55rem; }
  .section-title::after { width: 40px; height: 3px; margin-top: 0.7rem; }

  .hero { padding: 2.4rem 0 2.6rem; }
  .hero-logo { width: min(360px, 76%); }
  .orb-a, .orb-b { display: none; }

  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 46%, rgba(23, 184, 184, 0.18) 0, transparent 33%),
      radial-gradient(6px 6px at 16% 20%, rgba(23, 184, 184, 0.55), transparent 65%),
      radial-gradient(4px 4px at 84% 16%, rgba(13, 138, 138, 0.55), transparent 65%),
      radial-gradient(5px 5px at 88% 66%, rgba(23, 184, 184, 0.5), transparent 65%),
      radial-gradient(4px 4px at 12% 78%, rgba(13, 138, 138, 0.5), transparent 65%),
      radial-gradient(3px 3px at 66% 86%, rgba(23, 184, 184, 0.45), transparent 65%),
      radial-gradient(3px 3px at 32% 12%, rgba(13, 138, 138, 0.4), transparent 65%);
    animation: heroPulse 6s ease-in-out infinite;
  }

  .header-inner { min-height: var(--header-h); gap: 0.5rem; }
  .lang-switch { min-width: 38px; height: 34px; padding: 0 0.55rem; font-size: 0.8rem; }
  .header-cta { height: 38px; padding: 0 0.95rem; font-size: 0.88rem; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.4rem; margin-bottom: 1.4rem; }

  .products-head { margin-bottom: 1.6rem; }
  .products-grid { gap: 0.9rem; grid-template-columns: 1fr; }

  .page { padding: 2rem 0 3.5rem; }
  .page-head h1 { font-size: 1.7rem; }
  .page-head p { font-size: 0.98rem; }

  .legal-content { padding: 1.5rem 1.3rem; border-radius: 16px; }

  .contact-card { padding: 1.3rem; gap: 0.9rem; border-radius: 16px; }
  .contact-icon { width: 52px; height: 52px; border-radius: 14px; }
  .contact-icon svg { width: 26px; height: 26px; }
  .contact-value { font-size: 1.15rem; }

  .cookie-banner { inset-inline: 0.7rem; bottom: 0.7rem; padding: 0.95rem 1rem; border-radius: 14px; }
  .cookie-banner p { font-size: 0.85rem; }

  .accessibility-toggle { width: 48px; height: 48px; bottom: 0.85rem; inset-inline-end: 0.85rem; }
  .accessibility-toggle-icon svg { width: 24px; height: 24px; }
  .accessibility-panel { inset-inline-end: 0.7rem; bottom: 4rem; padding: 0.9rem 1rem 1rem; }

  .btn { min-height: 46px; padding: 0.7rem 1.4rem; font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .hero-logo { width: min(300px, 82%); }
  .section-title { font-size: 1.4rem; }
  .product-mark { width: 48px; height: 48px; }
  .product-card h3 { font-size: 1rem; }
  .product-tag { font-size: 0.82rem; }
}
