/* ============================================
   SEYMOUR AG INSTRUMENTS — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Green palette (from Seymour logo) */
  --green-900: #0B3D2E;
  --green-800: #0F5738;
  --green-700: #14713E;
  --green-600: #189448;
  --green-500: #1B9E4A;
  --green-400: #5BBB3A;
  --green-300: #7FD15E;
  --green-200: #A8E08A;
  --green-100: #E8F5E9;
  --green-50: #F1F8F2;

  /* Neutrals */
  --neutral-900: #1A1A2E;
  --neutral-800: #2D2D3F;
  --neutral-700: #3F3F52;
  --neutral-600: #4A4A5A;
  --neutral-500: #6B6B7B;
  --neutral-400: #9090A0;
  --neutral-300: #B8B8C8;
  --neutral-200: #E0E0E8;
  --neutral-100: #F0F0F4;
  --neutral-50: #F8F8FA;
  --white: #FFFFFF;

  /* Accent */
  --accent-gold: #F9BC05;
  --accent-gold-dark: #D9A304;

  /* Functional */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-400);
  --bg-primary: var(--white);
  --bg-secondary: var(--green-50);
  --bg-dark: var(--green-900);
  --border-color: var(--neutral-200);

  /* Typography */
  --font-sans: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.15);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--green-500); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--neutral-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); line-height: 1.7; }
.text-gradient {
  background: linear-gradient(135deg, var(--green-700), var(--green-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl); }
.section { padding: var(--space-4xl) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-3xl); }
.section-header p { margin-top: var(--space-md); font-size: 1.1rem; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--green-100);
  border-radius: var(--radius-full);
}
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(27, 158, 74, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(27, 158, 74, 0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--green-700);
  border: 2px solid var(--green-200);
}
.btn-secondary:hover {
  border-color: var(--green-500);
  background: var(--green-50);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--neutral-900);
  font-weight: 700;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,188,5,0.4); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-base);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: var(--space-sm); }
.nav-logo svg { height: 36px; width: auto; }
.nav-logo span { font-size: 1.1rem; font-weight: 700; color: var(--green-900); }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-700);
  position: relative;
  padding: var(--space-xs) 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: width var(--transition-base);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--green-700); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-toggle::after { content: '▾'; font-size: 0.7em; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  margin-top: var(--space-sm);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
}
.nav-dropdown-menu a:hover { background: var(--green-50); }
.nav-cta .btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.nav-lang {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-600);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem !important;
}
.nav-lang::after { display: none !important; }
.nav-lang:hover { color: var(--green-700); border-color: var(--green-300); background: var(--green-50); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--neutral-700); transition: all var(--transition-fast); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--green-900) 0%, #0D4A33 50%, var(--green-800) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: var(--space-lg); font-size: clamp(2.5rem, 5.5vw, 3.8rem); }
.hero h1 .highlight { color: var(--green-300); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.2rem; margin-bottom: var(--space-2xl); max-width: 550px; }
.hero-buttons { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  opacity: 0.15;
}
.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-400), transparent 70%);
  opacity: 0.15;
  right: 10%;
  top: 30%;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.15); opacity: 0.22; }
}

/* Hero — page variants */
.hero-sm {
  min-height: auto;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
}
.hero-sm h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* Homepage hero — real background image with a dark green overlay for legibility */
#hero {
  background: linear-gradient(135deg, rgba(11,61,46,0.72) 0%, rgba(13,74,51,0.48) 45%, rgba(11,61,46,0.68) 100%), url("../assets/images/hero-bg.jpg") center/cover no-repeat;
}
#hero .hero-visual,
#hero .hero-glow { display: none; }
#hero .hero-content h1,
#hero .hero-content p { text-shadow: 0 2px 14px rgba(0,0,0,0.40); }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--green-600);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: var(--space-sm); }
.card p { font-size: 0.95rem; }

/* Product card */
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.product-card-image {
  height: 220px;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: var(--space-xl); }
.product-card-body h3 { margin-bottom: var(--space-sm); }
.product-card-body p { font-size: 0.9rem; margin-bottom: var(--space-lg); }
.product-card-body .btn { width: 100%; justify-content: center; }

/* --- Stats / Counters --- */
.stats-section { background: var(--bg-dark); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); text-align: center; }
.stat-item h3 { font-size: clamp(2rem, 4vw, 3rem); color: var(--green-300); margin-bottom: var(--space-xs); }
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; }

/* --- Logo Strip (Trusted By) --- */
.logo-strip { padding: var(--space-3xl) 0; background: var(--neutral-50); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}
.logo-strip-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-300);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}
.logo-strip-item:hover { opacity: 1; }
.logo-strip-item img { max-height: 58px; max-width: 160px; width: auto; height: auto; object-fit: contain; display: block; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--green-400);
  opacity: 0.08;
}
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-2xl); font-size: 1.1rem; }

/* --- Team Grid --- */
.team-card { text-align: center; }
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-200), var(--green-100));
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--green-600);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.team-card h4 { margin-bottom: var(--space-xs); }
.team-card .role { color: var(--green-600); font-weight: 500; font-size: 0.9rem; }
.team-card p { font-size: 0.85rem; margin-top: var(--space-sm); }

/* --- Spec Table --- */
.spec-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; }
.spec-table th, .spec-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.spec-table th { background: var(--green-50); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-800); }
.spec-table td { font-size: 0.95rem; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--green-50); }

/* --- Feature list --- */
.feature-list { display: grid; gap: var(--space-lg); }
.feature-item { display: flex; gap: var(--space-lg); align-items: flex-start; }
.feature-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
}
.feature-item h4 { margin-bottom: var(--space-xs); }
.feature-item p { font-size: 0.9rem; }

/* --- Steps / How it works --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl); }
.step { text-align: center; position: relative; }
.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}
.step h3 { margin-bottom: var(--space-sm); }

/* --- Contact Form --- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: var(--space-lg); }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-sm); color: var(--neutral-800); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green-500); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-card { padding: var(--space-2xl); background: var(--green-50); border-radius: var(--radius-lg); }
.contact-info-item { display: flex; gap: var(--space-md); align-items: flex-start; margin-bottom: var(--space-lg); }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon { color: var(--green-600); flex-shrink: 0; margin-top: 2px; }
.contact-info-item h4 { margin-bottom: var(--space-xs); font-size: 0.9rem; }
.contact-info-item p { font-size: 0.9rem; }

/* --- Footer --- */
.footer { background: var(--green-900); color: rgba(255,255,255,0.8); padding: var(--space-4xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.footer h4 { color: var(--white); margin-bottom: var(--space-lg); font-size: 0.95rem; }
.footer p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.7); }
.footer-links a { display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem; padding: var(--space-xs) 0; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--green-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-xl); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-social { display: flex; gap: var(--space-md); }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}
.footer-social a:hover { background: var(--green-600); border-color: var(--green-600); color: var(--white); }

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: var(--space-md);
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-visual { display: none; }
  .hero-buttons { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .section { padding: var(--space-3xl) 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RTL SUPPORT (Hebrew — default direction)
   Overrides directional rules for [dir="rtl"].
   ============================================ */
[dir="rtl"] {
  text-align: right;
}

/* Hebrew reads better without the tight Latin letter-spacing */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 { letter-spacing: normal; }
[dir="rtl"] .section-label,
[dir="rtl"] .logo-strip p { letter-spacing: 0.02em; }

/* Navbar dropdown flips to the right edge */
[dir="rtl"] .nav-dropdown-menu { left: auto; right: -16px; }

/* Hero decorative visuals flip to the left side */
[dir="rtl"] .hero-visual { right: auto; left: -5%; }
[dir="rtl"] .hero-glow { right: auto; left: 10%; }
[dir="rtl"] .cta-banner::before { right: auto; left: -20%; }

/* Tables align to the right in Hebrew */
[dir="rtl"] .spec-table th,
[dir="rtl"] .spec-table td { text-align: right; }

/* Center-aligned blocks should stay centered, not right */
[dir="rtl"] .section-header,
[dir="rtl"] .stat-item,
[dir="rtl"] .team-card,
[dir="rtl"] .step,
[dir="rtl"] .cta-banner,
[dir="rtl"] .logo-strip p,
[dir="rtl"] .btn { text-align: center; }

/* Mobile dropdown indent flips side */
@media (max-width: 768px) {
  [dir="rtl"] .nav-dropdown-menu { padding-left: 0; padding-right: var(--space-md); }
}

/* ============================================
   ACCESSIBILITY (נגישות) — IS 5568 / WCAG 2.0 AA
   Self-contained widget + user-toggle states.
   ============================================ */

/* Visible keyboard focus for everyone */
*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip-to-content link */
.skip-link {
  position: fixed;
  top: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: 3000;
  background: var(--green-800);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Floating accessibility button */
.acc-fab {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 2100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid #fff;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.acc-fab:hover { background: var(--green-600); transform: scale(1.05); }
.acc-fab svg { width: 30px; height: 30px; }

/* Panel */
.acc-panel {
  position: fixed;
  bottom: 86px;
  inset-inline-start: 20px;
  z-index: 2100;
  width: 300px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: #fff;
  color: var(--neutral-900);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  display: none;
}
.acc-panel[data-open="true"] { display: block; }
.acc-panel h2 { font-size: 1.1rem; margin-bottom: var(--space-md); display: flex; align-items: center; justify-content: space-between; }
.acc-panel .acc-close { background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--neutral-500); padding: 4px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.acc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--neutral-50);
  color: var(--neutral-800);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.acc-btn svg { width: 22px; height: 22px; }
.acc-btn:hover { border-color: var(--green-400); background: var(--green-50); }
.acc-btn[aria-pressed="true"] { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.acc-reset {
  grid-column: 1 / -1;
  background: var(--neutral-100);
  color: var(--neutral-700);
}
.acc-statement-link {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- User-toggle states (applied to <html>) --- */
html.acc-grayscale { filter: grayscale(100%); }
html.acc-invert { filter: invert(100%) hue-rotate(180deg); }
/* Keep real media (photos) intact under invert */
html.acc-invert img,
html.acc-invert video,
html.acc-invert iframe { filter: invert(100%) hue-rotate(180deg); }
/* Keep the accessibility widget readable under filters */
html.acc-invert .acc-fab,
html.acc-invert .acc-panel { filter: invert(100%) hue-rotate(180deg); }

/* Stop animations / motion */
html.acc-no-motion *,
html.acc-no-motion *::before,
html.acc-no-motion *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
  scroll-behavior: auto !important;
}
html.acc-no-motion .fade-up { opacity: 1 !important; transform: none !important; }

/* Highlight links */
html.acc-links a:not(.btn) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}

/* Readable font */
html.acc-readable body,
html.acc-readable body * {
  font-family: Arial, 'Heebo', sans-serif !important;
  letter-spacing: normal !important;
}
html.acc-readable p,
html.acc-readable li,
html.acc-readable td { line-height: 1.9 !important; }

/* Big cursor */
html.acc-cursor,
html.acc-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 L4 21 L9 16 L12 23 L15 22 L12 15 L20 15 Z' fill='black' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto;
}

/* High contrast (black background, white text, yellow links) */
html.acc-contrast body { background: #000 !important; }
html.acc-contrast section,
html.acc-contrast .navbar,
html.acc-contrast .footer,
html.acc-contrast .hero,
html.acc-contrast .hero-sm,
html.acc-contrast .cta-banner,
html.acc-contrast .stats-section,
html.acc-contrast .logo-strip,
html.acc-contrast .card,
html.acc-contrast .product-card,
html.acc-contrast .product-card-image,
html.acc-contrast .contact-info-card,
html.acc-contrast .card-icon,
html.acc-contrast .step-number,
html.acc-contrast .spec-table th,
html.acc-contrast .spec-table td,
html.acc-contrast [style*="background"] {
  background: #000 !important;
  background-image: none !important;
  border-color: #fff !important;
}
html.acc-contrast :is(h1,h2,h3,h4,h5,h6,p,span,li,td,th,label,div,strong,.section-label) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html.acc-contrast a:not(.btn):not(.acc-statement-link) { color: #ff0 !important; -webkit-text-fill-color: #ff0 !important; }
html.acc-contrast .btn {
  background: #000 !important;
  color: #ff0 !important;
  -webkit-text-fill-color: #ff0 !important;
  border: 2px solid #ff0 !important;
  box-shadow: none !important;
}
/* Keep the accessibility widget itself readable in high-contrast mode */
html.acc-contrast #acc-panel { background: #fff !important; }
html.acc-contrast #acc-panel,
html.acc-contrast #acc-panel * {
  color: var(--neutral-900) !important;
  -webkit-text-fill-color: var(--neutral-900) !important;
}
html.acc-contrast #acc-panel .acc-btn { background: var(--neutral-50) !important; border-color: var(--border-color) !important; }
html.acc-contrast #acc-panel .acc-btn[aria-pressed="true"] { background: var(--green-600) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
html.acc-contrast .acc-fab { background: var(--green-700) !important; }

@media (max-width: 480px) {
  .acc-panel { inset-inline-start: 10px; bottom: 80px; }
  .acc-fab { inset-inline-start: 12px; bottom: 12px; }
}
