/* ==============================================
   DESCO Israel — clean rebuild
   Editorial, minimalist, Italian-restraint
   ============================================== */

/* === TOKENS === */
:root {
  --red: #CF0000;
  --dark: #1A1A1A;
  --text: #212121;
  --muted: #979797;
  --bg: #FFFFFF;
  --border: #ebebeb;
  --border-soft: #f4f4f4;

  --serif: 'Raleway', 'Assistant', sans-serif;
  --sans: 'Raleway', 'Assistant', sans-serif;

  --header-h: 96px;
  --track-wide: 0.15em;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }

/* === BASE === */
html {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }
body[dir="rtl"] { direction: rtl; text-align: right; }

.skip-link {
  position: absolute; top: -100px; inset-inline-start: 8px;
  background: #000; color: #fff; padding: 8px 12px; z-index: 100; font-size: 14px;
  transition: top 200ms;
}
.skip-link:focus { top: 8px; }

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: none;
}
h2, .h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.25;
  color: var(--text);
  letter-spacing: 0.1em;
}
h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  text-transform: uppercase;
}
.lead {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
}
.body-text {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 24px;
  max-width: 46ch;
  text-align: center;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 150ms ease-in-out, color 150ms ease-in-out, box-shadow 150ms ease-in-out;
  cursor: pointer;
  border-radius: 0;
  margin-top: 32px;
}
.btn:hover, .btn:focus-visible {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  outline: none;
}
.btn--light {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.btn--light:hover, .btn--light:focus-visible {
  background: #fff;
  color: #000;
}

/* === HEADER === */
.site-header {
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  z-index: 50;
  padding: 20px 32px;
  color: #fff;
  transition: background 300ms ease, color 300ms ease, box-shadow 300ms ease;
  background: transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}
.site-header .logo-white { display: block; }
.site-header .logo-dark { display: none; }
.site-header.scrolled .logo-white,
.site-header.solid .logo-white { display: none; }
.site-header.scrolled .logo-dark,
.site-header.solid .logo-dark { display: block; }

.navbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; }
.logo img { width: 250px; height: auto; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  justify-self: end;
}
body[dir="rtl"] .header-right { align-items: flex-end; }

.header-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}
.header-info a {
  transition: color 150ms;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-info a:hover { color: var(--red); }
.header-info .sep { opacity: 0.4; }

.lang-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-inline-start: 12px;
}
.lang-switch a {
  width: 22px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.6;
  transition: opacity 150ms;
  overflow: hidden;
}
.lang-switch a:hover, .lang-switch a.active { opacity: 1; }
.lang-switch img { width: 100%; height: 100%; object-fit: cover; }

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.nav-links a { padding: 4px 0; transition: color 150ms; }
.nav-links a:hover { color: var(--red); }
.nav-links a.is-active { color: var(--red); }

/* Hamburger */
.hamburger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  justify-self: end;
  z-index: 60;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform 200ms, opacity 200ms;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  color: var(--text);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 55;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 150ms;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu__close {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
}
.mobile-menu__info {
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
.mobile-menu__info a { color: var(--text); }

@media (max-width: 1280px) {
  .header-right { display: none; }
  .hamburger { display: inline-flex; }
  .navbar { grid-template-columns: 1fr auto; }
  .logo img { width: 160px; }
  .site-header { padding: 16px 20px; }
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero__media,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media { background-size: cover; background-position: center; }
.hero__video { display: none; }
.hero.playing .hero__video { display: block; }
.hero.playing .hero__media { display: none; }
.hero.playing .hero__play { display: none; }

.hero__overlay { display: none; }

.hero__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  color: #fff;
  width: 100px; height: 100px;
  cursor: pointer;
  transition: transform 300ms ease;
}
.hero__play:hover { transform: translate(-50%, -50%) scale(1.05); }
.hero__play svg { width: 100px; height: 100px; fill: #fff; margin: 0; }

/* === PAGE HEADER (secondary pages) === */
.page-header {
  padding: calc(var(--header-h) + 80px) 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.page-header .breadcrumb {
  font-size: 0.75rem;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.page-header .breadcrumb a { transition: color 150ms; }
.page-header .breadcrumb a:hover { color: var(--red); }
.page-header .breadcrumb .sep { margin: 0 10px; opacity: 0.5; }
.page-header h1 { margin-bottom: 16px; }

/* === SPLIT SECTION === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #fff;
}
.split__media {
  background-size: cover;
  background-position: center;
  min-height: 60vh;
}
.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px clamp(16px, 8vw, 128px);
  text-align: center;
}
.split__text h1,
.split__text h2 { text-align: center; }
.split--reverse .split__media { order: 2; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split__media { min-height: 50vh; order: -1; }
  .split--reverse .split__media { order: -1; }
  .split__text { padding: 64px 24px; }
}

/* === STATS === */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
  width: 100%;
  max-width: none;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--sans);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--red);
  line-height: 1.1;
  display: inline-block;
}
.stat__unit {
  color: var(--red);
  font-size: 1rem;
  font-weight: 500;
  margin-inline-start: 4px;
}
.stat__label {
  color: var(--text);
  font-size: 1rem;
  margin-top: 10px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* === ABOUT PAGE (text blocks) === */
.text-blocks {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.text-block { margin-bottom: 72px; text-align: center; }
.text-block:last-child { margin-bottom: 0; }
.text-block h2 { margin-bottom: 24px; }
.text-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 60ch;
  margin: 0 auto;
}

/* === PRODUCTS PAGE === */
.intro-block {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  text-align: center;
}
.intro-block h1 { margin-bottom: 20px; }
.intro-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-top: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-soft);
  border-inline-start: 1px solid var(--border-soft);
}
.product-card {
  border-inline-end: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 340px;
  transition: background 200ms;
}
.product-card:hover { background: #fafafa; }
.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 24px;
  transition: transform 300ms ease;
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 60px 24px 0;
  margin: 0;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.cta-block {
  padding: 100px 24px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.cta-block h2 { margin-bottom: 8px; }

/* === TRACEABILITY === */
.section-block {
  padding: 80px clamp(24px, 6vw, 100px);
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.section-block h2 { margin-bottom: 24px; }
.section-block p {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 auto 16px;
}
.section-block h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
}
.bullet-list {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: start;
}
.bullet-list li {
  padding-block: 14px;
  padding-inline-start: 24px;
  padding-inline-end: 0;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.6;
  font-size: 0.95rem;
  position: relative;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 24px;
  width: 8px; height: 1px;
  background: var(--red);
}
.bullet-list li:last-child { border-bottom: 0; }

.cert-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}
.cert-badge {
  min-width: 140px;
  height: 100px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
  text-align: center;
  transition: border-color 200ms, color 200ms;
  background: #fff;
}
.cert-badge:hover { border-color: var(--red); color: var(--red); }
.cert-badge img { max-height: 72px; width: auto; object-fit: contain; }

/* === CONTACT === */
.contact-hero {
  padding: calc(var(--header-h) + 80px) 24px 24px;
  text-align: center;
}
.contact-hero h1 { margin-bottom: 8px; }

.contact-info {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  text-align: center;
  line-height: 2;
  font-size: 1rem;
}
.contact-info .label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  display: block;
  margin-top: 20px;
}
.contact-info a { transition: color 150ms; }
.contact-info a:hover { color: var(--red); }
.contact-info .maplink {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--text);
}
.contact-info .maplink:hover { color: var(--red); border-color: var(--red); }

.contact-israel {
  background: #fafafa;
  padding: 64px 24px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.contact-israel h2 { margin-bottom: 20px; }
.contact-israel p { margin: 4px 0; font-size: 1rem; }
.contact-israel a:hover { color: var(--red); }

.map-embed {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

/* === PRIVACY (minimal) === */
.privacy-page {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}
.privacy-page .container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.privacy-page h1 { text-align: center; margin-bottom: 40px; }
.privacy-page h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--text);
}
.privacy-page p, .privacy-page li {
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 8px 0;
}
.privacy-page ul { padding-inline-start: 20px; margin: 12px 0; }
.privacy-page ul li { list-style: disc; }
.privacy-page a { color: var(--red); text-decoration: underline; }

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.9;
}
.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 150ms;
}
.footer a:hover { color: var(--red); }
.footer .line { display: block; }
.footer .sep { opacity: 0.5; margin: 0 6px; }

/* === UTILS === */
.no-scroll { overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
