:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --mint: #f0fdfa;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 1.25rem;
  --max: 1120px;
  --font: "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
}
body[dir="rtl"] { --font: "Cairo", "Outfit", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand { order: 1; }
.nav { order: 2; display: flex; align-items: center; gap: 1.1rem; margin-inline-start: auto; }
.langs { order: 3; margin-inline-start: 0.75rem; }
.menu-btn { order: 4; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover { color: var(--primary-dark); }
.langs { display: flex; gap: 0.35rem; }
.langs a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.langs a[aria-current="true"] { background: var(--mint); color: var(--primary-dark); border-color: #99f6e4; }
.menu-btn {
  display: none;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.75rem;
  width: 44px;
  height: 44px;
}

.hero { padding: 2.5rem 0 1rem; background: linear-gradient(180deg, var(--mint), #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.kicker {
  display: inline-block;
  background: #fff;
  border: 1px solid #99f6e4;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0.8rem 0; }
h2 { color: var(--ink); font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; margin: 0 0 0.75rem; }
h3 { color: var(--ink); margin: 0 0 0.4rem; }
.lede { font-size: 1.08rem; max-width: 42rem; }
.hero-media { border-radius: 1.75rem; overflow: hidden; aspect-ratio: 1; background: #ccfbf1; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--primary-dark); border: 1px solid #99f6e4; }
.btn-wa { background: #128c7e; color: #fff; width: 100%; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.trust li { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 0.8rem 0.9rem; }
.trust strong { display: block; color: var(--ink); }
.trust span { color: var(--muted); font-size: 0.88rem; }

section { padding: 3.5rem 0; }
.section-soft { background: var(--soft); }
.center { text-align: center; }
.center .lede, .intro { margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.card, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card:hover { border-color: #99f6e4; transform: translateY(-2px); }
.card img, .product-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--mint);
  border-radius: 1rem;
}
.card p, .muted { color: var(--muted); }
.price-note { font-size: 0.92rem; color: var(--primary-dark); font-weight: 700; }

.certs { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; padding: 0; list-style: none; }
.certs img { height: 64px; width: auto; object-fit: contain; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 0.9rem 1rem; margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.note { font-size: 0.92rem; color: var(--muted); }

.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.product-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: start; }
.buy {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
label { display: block; font-weight: 700; color: var(--ink); font-size: 0.9rem; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem 0.8rem;
  font: inherit;
  margin-bottom: 0.8rem;
  background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.prose h2 { margin-top: 1.6rem; }
.prose ul { padding-inline-start: 1.2rem; }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.related a { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 1rem; padding: 0.7rem; background: #fff; }
.related img { aspect-ratio: 1; object-fit: contain; background: var(--mint); border-radius: 0.7rem; }

.site-footer { background: var(--ink); color: #cbd5e1; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.legal-line { border-top: 1px solid #1e293b; margin-top: 1.5rem; padding-top: 1rem; font-size: 0.85rem; }

/* Motion: hide animated targets until Motion is ready or reduced-motion is on */
html:not(.motion-ready) .hero .kicker,
html:not(.motion-ready) .hero h1,
html:not(.motion-ready) .hero .lede,
html:not(.motion-ready) .hero .actions,
html:not(.motion-ready) .hero .trust li,
html:not(.motion-ready) .hero .crumbs,
html:not(.motion-ready) .hero-media,
html:not(.motion-ready) .product-photo,
html:not(.motion-ready) .buy {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-ready) .hero .kicker,
  html:not(.motion-ready) .hero h1,
  html:not(.motion-ready) .hero .lede,
  html:not(.motion-ready) .hero .actions,
  html:not(.motion-ready) .hero .trust li,
  html:not(.motion-ready) .hero .crumbs,
  html:not(.motion-ready) .hero-media,
  html:not(.motion-ready) .product-photo,
  html:not(.motion-ready) .buy {
    opacity: 1;
  }
}

.btn, .card, .related a {
  transform-origin: center;
  will-change: transform;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-inline-start: 0.4rem; }
  .langs { order: 2; margin-inline-start: auto; }
  .menu-btn { order: 3; }
  .nav { order: 4; margin-inline-start: 0; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 72px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    gap: 0.7rem;
  }
  .nav.open { display: flex; }
  .hero-grid, .grid-3, .grid-2, .product-layout, .foot-grid, .related { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .buy { position: static; }
  .hero-media { max-height: 280px; aspect-ratio: 16/10; }
}
