/* =========================================================
   شركة التكامل الجديد — Al-Takamol Al-Jadeed
   Main stylesheet (shared by all pages)
   ---------------------------------------------------------
   Brand colors were sampled from the logo:
   blue  #1A75BA   green #00A551
   ========================================================= */

:root {
  /* Brand */
  --blue: #1A75BA;
  --blue-700: #125C94;
  --blue-50: #EAF2FA;
  --green: #00A551;
  --green-700: #007F3E;
  --green-50: #E6F6EE;

  /* Neutrals (tinted toward the brand blue) */
  --ink: #0C2236;
  --ink-2: #143552;
  --mist: #F2F6FA;
  --line: #DDE6EF;
  --slate: #55677A;
  --text: #11273B;
  --white: #FFFFFF;
  --danger: #C93A3A;

  --grad: linear-gradient(110deg, var(--blue) 0%, var(--green) 100%);

  /* Type */
  --font-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 74px;
  --header-top: clamp(10px, 1.6vw, 18px);
  --section-pad: clamp(104px, 13vh, 168px);

  /* Shape — radius grows with the size of the surface */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;

  --shadow-sm: 0 6px 18px -8px rgba(12, 34, 54, .18);
  --shadow: 0 24px 60px -24px rgba(12, 34, 54, .28);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* =========================================================
   Base + horizontal-overflow guard
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-top) + 16px);
  overflow-x: clip;               /* no sideways scrolling on phones */
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

html:lang(en) body { line-height: 1.7; }

/* Hide the page for a split second while switching to English on load */
.i18n-pending body { visibility: hidden; }

[hidden] { display: none !important; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Long emails/URLs never push the layout wider than the screen */
p, li, a, span, h1, h2, h3, h4 { overflow-wrap: break-word; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Every content section fills the screen and breathes */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--section-pad);
  overflow: clip;
}

.section--mist { background: var(--mist); }

/* Section heading */
.sec-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 56px;
}
.sec-head--split > div { max-width: 680px; }

/* Brand device: two linked nodes, taken from the logo */
.mark {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}
.mark::before,
.mark::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
}
.mark::after { background: var(--green); }
.mark i {
  display: block;
  width: 34px;
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--green));
}
[dir="rtl"] .mark i { background: linear-gradient(to left, var(--blue), var(--green)); }

.h2 {
  font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3.1rem);
  line-height: 1.25;
}
html:lang(en) .h2 { letter-spacing: -.015em; }

.lead {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--slate);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.05em; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }

.btn-wa { background: var(--green-700); color: #fff; }
.btn-wa:hover { background: #006A34; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-50); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-block { width: 100%; }

/* Arrow icons point "forward" in both directions */
[dir="ltr"] .flip-ltr { transform: scaleX(-1); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* =========================================================
   Header — floating capsule
   ========================================================= */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.header-bar {
  position: relative;
  pointer-events: auto;
  width: min(var(--container), 100% - 2 * clamp(12px, 3vw, 32px));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(14px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: 0 14px 40px -16px rgba(6, 22, 38, .45);
  transition: height .3s var(--ease), background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled .header-bar {
  height: calc(var(--header-h) - 8px);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px -14px rgba(6, 22, 38, .35);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
/* Logo sized by height so it stays large and never shrinks; width follows the logo's own ratio */
.brand img {
  display: block;
  width: auto;
  height: 44px;
  max-width: none;
  object-fit: contain;
}
.site-header.is-scrolled .brand img { height: 40px; }
.brand-text {
  display: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--blue);
  white-space: nowrap;
}
.brand.img-missing img { display: none; }
.brand.img-missing .brand-text { display: inline; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}
.nav a {
  position: relative;
  padding-block: 6px;
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .nav-cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language switch — two round flags */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
}
.lang-btn {
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: .45;
  filter: grayscale(.7);
  transition: opacity .2s, filter .2s, background-color .2s, box-shadow .2s;
}
.lang-btn span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.lang-btn svg { width: 100%; height: 100%; }
.lang-btn:hover { opacity: .85; filter: none; }
.lang-btn[aria-pressed="true"] {
  opacity: 1;
  filter: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 34, 54, .16);
}

.header-cta {
  min-height: 46px;
  padding: 8px 22px;
  border-radius: 999px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.1rem;
  place-items: center;
}
.menu-btn .fa-xmark { display: none; }
.site-header.menu-open .menu-btn .fa-bars { display: none; }
.site-header.menu-open .menu-btn .fa-xmark { display: block; }

/* =========================================================
   Hero (home) — separate images for desktop and mobile
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + var(--header-top) + 56px);
  padding-bottom: clamp(150px, 20vh, 200px);
  overflow: clip;
  color: #fff;
  /* Shown if the photo is missing */
  background:
    radial-gradient(60% 70% at 20% 30%, rgba(26, 117, 186, .55), transparent 65%),
    radial-gradient(50% 60% at 80% 85%, rgba(0, 165, 81, .32), transparent 65%),
    var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media.img-missing img { display: none; }

/* English (LTR): text moves to the left, so mirror the photo to keep
   the products on the opposite side. The photo has no text/logos, so it is safe. */
[dir="ltr"] .hero-media img { transform: scaleX(-1); }
@media (max-width: 767px) {
  /* Mobile: text is centered over the lower half, so no mirroring;
     pin the photo to the top so products stay above the copy */
  [dir="ltr"] .hero-media img { transform: none; }
  .hero-media img { object-position: 50% 0; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 34, 54, .9) 0%, rgba(12, 34, 54, 0) 34%),
    linear-gradient(to left, rgba(12, 34, 54, .94) 0%, rgba(12, 34, 54, .78) 38%, rgba(12, 34, 54, .25) 78%, rgba(12, 34, 54, .1) 100%);
}
[dir="ltr"] .hero::before {
  background:
    linear-gradient(to top, rgba(12, 34, 54, .9) 0%, rgba(12, 34, 54, 0) 34%),
    linear-gradient(to right, rgba(12, 34, 54, .94) 0%, rgba(12, 34, 54, .78) 38%, rgba(12, 34, 54, .25) 78%, rgba(12, 34, 54, .1) 100%);
}

.hero-content { max-width: 700px; }

/* The one orchestrated moment: two nodes get linked, then the copy arrives */
.hero-link {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.hero-link .node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(26, 117, 186, .25);
}
.hero-link .node--g {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 165, 81, .25);
}
.hero-link .wire {
  width: 84px;
  height: 2px;
  background: linear-gradient(-90deg, var(--blue), var(--green));
}
[dir="ltr"] .hero-link .wire { background: linear-gradient(90deg, var(--blue), var(--green)); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 1.15rem + 4.2vw, 4.4rem);
  line-height: 1.22;
  font-weight: 600;
}
html:lang(en) .hero h1 {
  font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.75rem);
  letter-spacing: -.02em;
  line-height: 1.12;
}
html:lang(en) .hero-content { max-width: 900px; }

.hero-lead {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(1.05rem, .98rem + .42vw, 1.25rem);
  color: rgba(255, 255, 255, .8);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-foot {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-foot-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: 96px;
  padding-block: 20px;
}
.hero-foot-label {
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
}
.hero-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(22px, 3.4vw, 48px);
}
.hero-brands a {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem);
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  transition: color .2s;
}
.hero-brands a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 6px; }

.scroll-cue {
  margin-inline-start: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  transition: background-color .2s, border-color .2s;
}
.scroll-cue:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* Load sequence */
@keyframes wire-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes node-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-link .node--b { animation: node-in .4s var(--ease) .15s both; }
.hero-link .wire { animation: wire-in .7s var(--ease) .45s both; transform-origin: right; }
[dir="ltr"] .hero-link .wire { transform-origin: left; }
.hero-link .node--g { animation: node-in .4s var(--ease) 1.05s both; }
.hero h1 { animation: rise-in .9s var(--ease) .55s both; }
.hero-lead { animation: rise-in .9s var(--ease) .75s both; }
.hero-actions { animation: rise-in .9s var(--ease) .95s both; }
.hero-foot { animation: rise-in .9s var(--ease) 1.2s both; }

/* =========================================================
   Inner page banner
   ========================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 62vh;
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + var(--header-top) + 64px);
  padding-bottom: clamp(56px, 9vh, 96px);
  overflow: clip;
  color: #fff;
  background:
    radial-gradient(55% 80% at 85% 20%, rgba(26, 117, 186, .5), transparent 65%),
    radial-gradient(45% 70% at 10% 100%, rgba(0, 165, 81, .3), transparent 65%),
    var(--ink);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem);
  line-height: 1.15;
}
.page-hero p {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  color: rgba(255, 255, 255, .78);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
}
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

/* Decorative loop (the logo's infinity link) */
.loop {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}
.loop path {
  fill: none;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
.loop .loop-b { stroke: rgba(26, 117, 186, .55); }
.loop .loop-g { stroke: rgba(0, 165, 81, .5); }
.loop .dot-b { fill: var(--blue); }
.loop .dot-g { fill: var(--green); }

.page-hero .loop {
  width: min(760px, 90%);
  inset-inline-end: -4%;
  top: 50%;
  transform: translateY(-40%);
  opacity: .7;
}

/* =========================================================
   About (home + about page)
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
}

.about-media {
  position: relative;
  padding-inline-end: clamp(16px, 2.4vw, 28px);
  padding-block-end: clamp(16px, 2.4vw, 28px);
}
.about-media::before {
  content: "";
  position: absolute;
  inset-block: clamp(16px, 2.4vw, 28px) 0;
  inset-inline: clamp(16px, 2.4vw, 28px) 0;
  background: var(--grad);
  border-radius: var(--r-lg);
  border-start-start-radius: 140px;
}
.media-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  border-start-start-radius: 140px;
  background:
    radial-gradient(70% 60% at 30% 30%, rgba(26, 117, 186, .5), transparent 70%),
    var(--ink-2);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame.img-missing img { display: none; }

.about-badge {
  position: absolute;
  inset-inline-end: 0;
  bottom: clamp(40px, 6vw, 72px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 14px 20px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink);
}
.about-badge i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
}

.about-text p + p { margin-top: 18px; }
.about-text .lead + p { margin-top: 18px; }
.about-text > p:not(.lead) { color: var(--slate); }

.checks {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}
.checks i {
  flex-shrink: 0;
  margin-top: 2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .7rem;
}
.about-text .btn { margin-top: 40px; }

/* =========================================================
   Categories (home) — one lead tile, three supporting tiles
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(14px, 1.8vw, 24px);
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.cat h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); }
.cat p { color: var(--slate); font-size: 1rem; line-height: 1.75; }
.cat-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 1.4rem;
}
.cat:nth-child(3) .cat-icon,
.more-item:nth-child(even) .cat-icon { background: var(--green-50); color: var(--green-700); }

.cat--lead {
  grid-row: span 2;
  overflow: hidden;
  isolation: isolate;
  justify-content: flex-end;
  min-height: 440px;
  padding: clamp(30px, 3.6vw, 52px);
  border: 0;
  border-radius: var(--r-lg);
  color: #C9D6E3;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(26, 117, 186, .65), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(0, 165, 81, .35), transparent 70%),
    var(--ink);
}
.cat--lead h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.cat--lead p { color: rgba(255, 255, 255, .75); font-size: 1.05rem; max-width: 42ch; }
.cat--lead .cat-icon { background: var(--grad); color: #fff; }
.cat--lead .loop {
  width: 120%;
  top: -6%;
  inset-inline-start: -10%;
  opacity: .55;
}
.cat--wide { grid-column: span 2; }

.brand-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  color: #fff;
  transition: background-color .2s, border-color .2s, color .2s;
}
.brand-chips a:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  isolation: isolate;
  text-align: center;
  color: #C9D6E3;
  background:
    radial-gradient(50% 60% at 15% 20%, rgba(26, 117, 186, .45), transparent 70%),
    radial-gradient(45% 55% at 85% 85%, rgba(0, 165, 81, .3), transparent 70%),
    var(--ink);
}
.cta .loop {
  width: min(1300px, 150%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: .5;
}
.cta-inner { max-width: 860px; }
.cta h2 {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.9rem);
  line-height: 1.22;
}
html:lang(en) .cta h2 { letter-spacing: -.02em; line-height: 1.12; }
.cta p {
  margin: 26px auto 0;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: rgba(255, 255, 255, .75);
}
.cta-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.info-list { margin-top: 44px; }
.info-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 1.15rem;
}
.info-list li:nth-child(2) .info-icon { background: var(--green-50); color: var(--green-700); }
.info-list div { min-width: 0; }
.info-label {
  display: block;
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.5;
}
.info-value {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  transition: color .2s;
}
a.info-value:hover { color: var(--blue); }
.info-values { display: block; }
.info-values .info-value { display: block; width: fit-content; }
.info-values .info-value + .info-value { margin-top: 6px; }

.form-panel {
  position: relative;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--grad);
}
.form-panel h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); }
.form-panel > p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 1rem;
}

.contact-form {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.field .req { color: var(--danger); }
.field .opt { color: var(--slate); font-weight: 400; font-size: .88rem; }

.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--mist);
  font-size: 1rem;              /* 16px — stops iOS from zooming on focus */
  line-height: 1.6;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8C9AA9; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 117, 186, .14);
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.field.has-error input,
.field.has-error textarea { border-color: var(--danger); background: #FFF7F7; }
.field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: .88rem;
  color: var(--danger);
  line-height: 1.5;
}
.field-error:empty { display: none; }

/* Honeypot — hidden without any offset (offsets cause sideways scroll in RTL) */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.form-submit { grid-column: 1 / -1; margin-top: 6px; }
.form-submit .btn { width: 100%; min-height: 58px; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-weight: 500;
  line-height: 1.6;
}
.form-status:empty { display: none; }
.form-status.is-success { background: var(--green-50); color: #05622F; border: 1px solid #BDE6CF; }
.form-status.is-error { background: #FDF1F1; color: #9B2C2C; border: 1px solid #F3CACA; }
.form-status i { margin-top: 4px; }

/* Map (contact page) */
.map-section {
  position: relative;
  height: 70vh;
  height: 70svh;
  min-height: 420px;
  background: var(--mist);
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.85);
}
.map-card {
  position: absolute;
  inset-inline-start: max(var(--gutter), calc((100% - var(--container)) / 2));
  bottom: clamp(20px, 4vw, 48px);
  max-width: min(360px, calc(100% - 2 * var(--gutter)));
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow);
}
.map-card h3 { font-size: 1.15rem; }
.map-card p { margin-top: 4px; color: var(--slate); font-size: .98rem; }
.map-card a {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--blue);
}

/* =========================================================
   Products page
   ========================================================= */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px 6px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
[dir="rtl"] .filter-btn { padding: 6px 20px 6px 12px; }
.filter-btn:hover { border-color: var(--blue); }
.filter-btn .count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mist);
  font-size: .82rem;
  color: var(--slate);
}
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-btn[aria-pressed="true"] .count { background: rgba(255, 255, 255, .16); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.product:hover { border-color: rgba(26, 117, 186, .35); box-shadow: var(--shadow); }
.product.pop { animation: pop .45s var(--ease) both; }
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.4vw, 30px);
  background: radial-gradient(circle at 50% 58%, #fff 0%, var(--mist) 72%);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.product:hover .product-media img { transform: scale(1.04); }

/* Drawn placeholder phone, shown until the real photo is uploaded */
.product-fallback {
  display: none;
  width: 38%;
  aspect-ratio: 9 / 19;
  border: 3px solid var(--ink-2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 8%, var(--ink-2) 0 5%, transparent 5.5%),
    linear-gradient(160deg, var(--blue) 0%, var(--green) 100%);
  box-shadow: var(--shadow-sm);
}
.product-media.img-missing img { display: none; }
.product-media.img-missing .product-fallback { display: block; }

.product-brand {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 500;
  color: var(--slate);
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}
.product-name {
  font-size: clamp(1rem, .92rem + .35vw, 1.15rem);
  line-height: 1.4;
}
.product-tag { font-size: .9rem; color: var(--slate); }
.product-cta {
  margin-top: auto;
  padding-top: 14px;
}
.product-cta a {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--green-50);
  border-radius: var(--r-xs);
  background: var(--green-50);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--green-700);
  text-align: center;
  line-height: 1.3;
  transition: background-color .2s, color .2s, border-color .2s;
}
.product-cta a:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.catalog-note {
  margin-top: 34px;
  font-size: .95rem;
  color: var(--slate);
}

/* "Beyond smartphones" */
.more-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
}
.more-grid .btn { margin-top: 36px; }
.more-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.more-item {
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.more-item h3 { font-size: 1.2rem; margin-top: 6px; }
.more-item p { margin-top: 8px; color: var(--slate); font-size: 1rem; line-height: 1.75; }

/* =========================================================
   About page
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(36px, 6vw, 96px);
}
.why-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  padding-block: clamp(28px, 3.4vw, 42px);
  border-top: 1px solid var(--line);
}
.why-item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.why-item .cat-icon { margin: 0; }
.why-item h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); }
.why-item p { margin-top: 8px; color: var(--slate); }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.vm-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 4vw, 56px);
  border-radius: var(--r-lg);
}
.vm-card .cat-icon { margin-bottom: auto; }
.vm-card h3 { margin-top: 40px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.vm-card p { margin-top: 14px; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); max-width: 44ch; }
.vm-card--ink {
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(70% 60% at 90% 0%, rgba(26, 117, 186, .6), transparent 70%),
    var(--ink);
}
.vm-card--ink h3 { color: #fff; }
.vm-card--ink .cat-icon { background: var(--grad); color: #fff; }
.vm-card--soft { background: var(--blue-50); color: var(--slate); }
.vm-card--soft .cat-icon { background: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding-top: clamp(72px, 9vw, 112px);
  background: var(--ink);
  color: #A9B9C9;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 44px clamp(24px, 4vw, 64px);
}
.footer-logo {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: #fff;
}
.footer-logo img { height: 46px; width: auto; }
.footer-logo .brand-text { color: var(--blue); }
.footer-logo.img-missing img { display: none; }
.footer-logo.img-missing .brand-text { display: inline; }
.footer-brand p { margin-top: 22px; max-width: 36ch; line-height: 1.8; }
.site-footer h4 { margin-bottom: 18px; font-size: 1.05rem; color: #fff; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact li + li { margin-top: 14px; }
.footer-contact i { margin-top: 6px; color: var(--green); width: 16px; text-align: center; }
.footer-phones { display: block; }
.footer-phones a { display: block; width: fit-content; }
.footer-phones a + a { margin-top: 8px; }
.footer-bottom {
  margin-top: clamp(56px, 7vw, 88px);
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .92rem;
  color: #7F93A8;
}

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.wa-float {
  position: fixed;
  z-index: 90;
  bottom: max(20px, env(safe-area-inset-bottom));
  inset-inline-end: 20px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 12px 28px -8px rgba(18, 140, 78, .6);
  transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { transform: translateY(-3px); background: #1EBE5A; }

/* =========================================================
   Reveal on scroll (subtle, vertical only — never sideways)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Header on tablets and phones (below 1280px): logo centered,
   menu button on the start side, language flags on the end side.
   RTL: menu on the right, flags on the left. LTR: the mirror image. */
@media (max-width: 1279px) {
  :root { --header-h: 70px; }
  .header-bar {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    gap: 8px;
    padding-inline: 12px;
  }
  .header-actions { display: contents; }
  .menu-btn { display: inline-grid; grid-column: 1; grid-row: 1; justify-self: start; }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; width: 100%; justify-content: center; }
  .lang-switch { grid-column: 3; grid-row: 1; justify-self: end; padding: 2px; }
  .lang-btn { width: 30px; height: 30px; padding: 2px; }
  .header-cta { display: none; }
  .brand img,
  .site-header.is-scrolled .brand img {
    width: 100%;
    height: auto;
    max-width: 340px;
    max-height: calc(var(--header-h) - 16px);
  }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 50px -20px rgba(6, 22, 38, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s;
  }
  .nav a { padding: 14px 18px; border-radius: 16px; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { background: var(--blue-50); }
  .nav .nav-cta { display: flex; margin-top: 8px; color: #fff; background: var(--blue); border-radius: var(--r-sm); }
  .nav .nav-cta:hover { color: #fff; background: var(--blue-700); }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }

  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }

  /* Nav becomes a drop-down card under the capsule */
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 50px -20px rgba(6, 22, 38, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s;
  }
  .nav a {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 1.05rem;
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { background: var(--blue-50); }
  .nav .nav-cta {
    display: flex;
    margin-top: 8px;
    color: #fff;
    background: var(--blue);
    border-radius: var(--r-sm);
  }
  .nav .nav-cta:hover { color: #fff; background: var(--blue-700); }

  .about-grid,
  .contact-grid,
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 560px; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat--lead { grid-row: auto; grid-column: 1 / -1; min-height: 380px; }
  .cat--wide { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root {
    --section-pad: clamp(88px, 12vh, 112px);
  }

  .btn { width: 100%; }
  .hero-actions,
  .cta-actions { flex-direction: column; }

  /* Mobile hero: its own photo, copy sits low over a bottom-up gradient */
  .hero {
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + var(--header-top) + 40px);
    padding-bottom: 32px;
  }
  .hero::before,
  [dir="ltr"] .hero::before {
    background: linear-gradient(to top,
      rgba(12, 34, 54, .98) 0%,
      rgba(12, 34, 54, .94) 46%,
      rgba(12, 34, 54, .78) 62%,
      rgba(12, 34, 54, .22) 80%,
      rgba(12, 34, 54, .3) 100%);
  }
  .hero-link { margin-bottom: 20px; }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 30px; gap: 12px; }
  .hero-foot {
    position: static;
    margin-top: 32px;
    border-top: 0;
  }
  .hero-foot-inner {
    width: auto;
    margin-inline: var(--gutter);
    min-height: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  .hero-foot-label { width: 100%; font-size: .88rem; }
  .hero-brands { padding-inline-end: 64px; }   /* keep clear of the WhatsApp button */
  .scroll-cue { display: none; }

  .page-hero { min-height: 52svh; }

  .media-frame { aspect-ratio: 1 / 1.08; }
  .media-frame img { object-position: 50% 62%; }
  .about-media::before,
  .media-frame { border-start-start-radius: 90px; }

  .checks { grid-template-columns: minmax(0, 1fr); }

  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .cat--lead { min-height: 0; padding-top: 140px; }

  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .info-value { font-size: 1.05rem; }

  .filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-btn,
  [dir="rtl"] .filter-btn { justify-content: center; padding: 6px 12px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-body { padding: 12px 12px 14px; }
  .product-brand { top: 8px; inset-inline-start: 8px; font-size: .72rem; padding: 2px 10px; }
  .product-tag { font-size: .82rem; }
  .product-cta a { font-size: .86rem; min-height: 42px; padding: 6px 8px; }

  .more-list,
  .why-grid,
  .vm-grid { grid-template-columns: minmax(0, 1fr); }
  .why-item:nth-last-child(2) { border-bottom: 0; }
  .vm-card { min-height: 300px; }

  .map-section { height: auto; min-height: 0; padding-bottom: 48px; }
  .map-section iframe { height: 60vh; height: 60svh; min-height: 320px; }
  .map-card { position: relative; inset: auto; max-width: none; margin: -56px var(--gutter) 0; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .wa-float { width: 54px; height: 54px; font-size: 1.7rem; inset-inline-end: 16px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .lang-btn { width: 30px; height: 30px; padding: 2px; }
  .menu-btn { width: 40px; height: 40px; }
  .header-actions { gap: 6px; }
  .product-grid { gap: 10px; }
}

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