/* ==========================================================================
   NMD Sarid Tech — Design System & Stylesheet
   RTL, mobile-first, vanilla CSS
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #1F2A37;
  --color-primary-dark: #141C25;
  --color-primary-light: #2D3E50;
  --color-accent: #4FA3A5;
  --color-accent-dark: #3F8285;
  --color-accent-light: #6FBFC1;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-bg-soft: #EEF2F6;
  --color-text: #2D3748;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-whatsapp: #25D366;

  --shadow-sm: 0 2px 8px rgba(31, 42, 55, 0.06);
  --shadow-md: 0 4px 20px rgba(31, 42, 55, 0.08);
  --shadow-lg: 0 10px 40px rgba(31, 42, 55, 0.15);
  --shadow-xl: 0 20px 60px rgba(31, 42, 55, 0.2);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --font-body: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;

  --container-max: 1200px;
  --header-height: 76px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--color-primary); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--color-accent-dark); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section {
  padding-block: 72px;
}
@media (min-width: 768px) { .section { padding-block: 96px; } }

.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .section-header { margin-bottom: 64px; } }

.section-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-eyebrow-light { color: var(--color-accent-light); }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 16px;
}
.section-title-light { color: #fff; }

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text-muted);
  margin: 0;
}
.section-subtitle-light { color: rgba(255,255,255,0.8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 163, 165, 0.35);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 163, 165, 0.45);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 48px; width: auto; }

.main-nav { display: none; flex: 1; }
.nav-list {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 2px;
}
.nav-link:hover { color: var(--color-accent-dark); }
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}
.nav-link:hover::after { transform: scaleX(1); }

.header-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-md);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
@media (max-width: 1023px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: calc(100vh - var(--header-height));
    background: #fff;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    padding: 24px;
    display: block;
    visibility: hidden;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    gap: 4px;
  }
  .nav-link {
    display: block;
    padding: 14px 12px;
    font-size: 17px;
    border-radius: var(--radius-md);
  }
  .nav-link:hover { background: var(--color-bg-alt); }
  .nav-link::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
}
.hero-bg-pattern svg { width: 100%; height: 100%; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(79, 163, 165, 0.25), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(79, 163, 165, 0.15), transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(79, 163, 165, 0.2);
  border: 1px solid rgba(79, 163, 165, 0.4);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-light);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: clamp(17px, 2.4vw, 22px);
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin-bottom: 40px;
  max-width: 660px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-trust li {
  display: flex;
  flex-direction: column;
}
.hero-trust strong {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-accent-light);
  line-height: 1.1;
}
.hero-trust span {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

@media (min-width: 768px) {
  .hero-trust strong { font-size: 36px; }
  .hero-trust span { font-size: 15px; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(79, 163, 165, 0.12);
  color: var(--color-accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}
.service-card:hover .service-icon {
  background: var(--color-accent);
  color: #fff;
}
.service-icon svg { width: 28px; height: 28px; }
.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.service-list {
  flex: 1;
  margin-bottom: 20px;
}
.service-list li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.55;
}
.service-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}
.service-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-accent-dark);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { color: var(--color-accent); gap: 10px; }
.service-link span { transition: transform var(--transition-base); }

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
}
.why-list {
  margin-top: 28px;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}
.why-list li:last-child { border-bottom: none; }
.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}
.why-quote {
  position: relative;
  padding: 40px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border-inline-end: 4px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.quote-mark {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  opacity: 0.5;
  margin-bottom: 12px;
}
.quote-text {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.quote-author {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; }
}
.about-text p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--color-text);
}
.about-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(79, 163, 165, 0.4), transparent 70%);
}
.about-card-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}
.tag {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ---------- Results / Stats ---------- */
.section-dark .section-eyebrow { color: var(--color-accent-light); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.stat-card:hover {
  background: rgba(79, 163, 165, 0.15);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}
.stat-number {
  display: block;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  line-height: 1.4;
}
@media (min-width: 768px) { .stat-label { font-size: 15px; } }

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.value-item {
  padding: 18px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
@media (min-width: 768px) { .value-item { font-size: 15px; padding: 22px; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
}

.contact-lead {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  margin-top: 8px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(79, 163, 165, 0.12);
  color: var(--color-accent-dark);
  display: grid;
  place-items: center;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-details a {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.contact-details a:hover { color: var(--color-accent-dark); }

/* Form */
.contact-form {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
}
@media (min-width: 768px) { .contact-form { padding: 40px; } }
.form-title {
  font-size: 22px;
  margin-bottom: 24px;
}
.form-row {
  margin-bottom: 18px;
}
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.req { color: var(--color-error); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  transition: all var(--transition-fast);
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 163, 165, 0.15);
}
.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-error {
  display: block;
  min-height: 18px;
  font-size: 13px;
  color: var(--color-error);
  margin-top: 4px;
}
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  color: #047857;
  font-weight: 600;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }

.footer-logo {
  height: 56px;
  width: auto;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 15px;
  line-height: 1.65;
  max-width: 380px;
  margin: 0;
}
.footer-title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 8px;
  font-size: 15px;
}
.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.75);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--color-accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---------- WhatsApp Float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 90;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: var(--radius-full);
  height: 60px;
  padding: 0 20px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-slow);
  font-weight: 700;
  font-size: 15px;
}
.wa-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wa-float:hover {
  background: #1FB855;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-label { display: none; }
@media (min-width: 768px) {
  .wa-label { display: inline; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- Body lock when mobile nav is open ---------- */
body.nav-open { overflow: hidden; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 55, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.nav-backdrop.visible { opacity: 1; visibility: visible; }
