/* =========================================================
   I2PT – Corporate website
   Mobile-first. Breakpoints: 640px (large phone), 900px (tablet), 1200px (desktop)
   ========================================================= */

:root {
  --navy-900: #01122a;
  --navy-800: #021a3a;
  --navy-700: #04285a;
  --blue-600: #0a4f9e;
  --blue-500: #1466c7;
  --cyan-400: #2cc5f4;
  --cyan-300: #7fdcfa;

  --ink: #0f1d33;
  --ink-soft: #4a5a72;
  --line: #dde4ee;
  --surface: #ffffff;
  --surface-muted: #f3f6fa;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(2, 26, 58, .25);
  --header-h: 68px;
  --gutter: 16px;
}

@media (min-width: 900px) {
  :root { --header-h: 80px; --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1, .hero h2 { font-size: clamp(1.75rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--blue-500); }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: .75em;
}

.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 0;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(20, 102, 199, .6); }
.btn-sm { padding: .6em 1.2em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(2, 26, 58, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(127, 220, 250, .12);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .5); }

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff; min-width: 0;
}
.brand img {
  height: calc(var(--header-h) - 18px);
  width: auto;
  border-radius: 6px;
}
.brand-text {
  display: block;
  font-size: .66rem; line-height: 1.3;
  color: var(--cyan-300);
  border-inline-start: 1px solid rgba(127, 220, 250, .3);
  padding-inline-start: 12px;
}
@media (min-width: 640px) { .brand-text { font-size: .78rem; line-height: 1.35; } }

/* Mobile nav */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.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); }

.site-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(127, 220, 250, .15);
  padding: 8px var(--gutter) 24px;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a:not(.btn) {
  display: block; padding: 14px 0;
  color: #fff; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-nav li a:not(.btn):hover,
.site-nav li a.is-current { color: var(--cyan-300); }
.site-nav .btn { margin-top: 16px; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; background: none; border: 0; padding: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 28px; }
  .site-nav li a:not(.btn) {
    padding: 6px 0; border: 0; font-size: .95rem;
    position: relative; color: rgba(255, 255, 255, .88);
  }
  .site-nav li a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--cyan-400); transform: scaleX(0); transition: transform .2s;
  }
  .site-nav li a:not(.btn):hover::after,
  .site-nav li a.is-current::after { transform: scaleX(1); }
  .site-nav .btn { margin: 0; width: auto; }
}

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(44, 197, 244, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-700) 60%, var(--blue-600) 130%);
  overflow: hidden;
}

.slides {
  display: grid;            /* all slides share one cell -> no height jumps */
  touch-action: pan-y;
}
.slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; }

/* Full-width banner image (the business-field key visual) */
.slide-banner {
  position: relative;
  max-width: 1920px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--navy-900);
}
.slide-banner img {
  width: 100%;
  height: clamp(190px, 26.04vw, 500px); /* 1536x400 ratio, min height on phones */
  object-fit: cover;
  object-position: left center;          /* keeps the title of the key visual in view */
}
.slide-banner::after {                    /* soft transition into the text area */
  content: ""; position: absolute; inset: auto 0 0 0; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--navy-800));
}

.slide-inner {
  display: grid;
  gap: 8px 48px;
  padding-block: 24px 8px;
  align-items: start;
}
.slide-inner .eyebrow { color: var(--cyan-300); }
.slide-inner h1, .slide-inner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .4em; }
.slide-inner p:not(.eyebrow) { color: rgba(255, 255, 255, .82); font-size: 1.02rem; max-width: 60ch; }
.slide-inner .btn { margin-top: .25em; }

@media (min-width: 900px) {
  .slide-inner { grid-template-columns: 1fr 1.2fr; padding-block: 36px 12px; }
}

.slider-controls {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 28px;
}
.slider-btn {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; cursor: pointer;
  transition: background-color .2s;
}
.slider-btn:hover { background: rgba(255, 255, 255, .18); }
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-pause .icon-play { display: none; fill: currentColor; }
.slider-pause[aria-pressed="true"] .icon-play { display: block; }
.slider-pause[aria-pressed="true"] .icon-pause { display: none; }

.slider-dots { display: flex; gap: 8px; flex: 1; justify-content: center; }
.slider-dots button {
  width: 12px; height: 12px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent; cursor: pointer;
  position: relative;
}
.slider-dots button::before { content: ""; position: absolute; inset: -14px; } /* larger touch target */
.slider-dots button[aria-selected="true"] { background: var(--cyan-400); border-color: var(--cyan-400); }
.slider-dots span { display: none; }

@media (min-width: 900px) {
  .slider-dots { justify-content: flex-start; order: -1; flex-wrap: wrap; }
  .slider-dots button {
    width: auto; height: auto;
    padding: 10px 16px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .8);
    font: 500 .85rem/1 var(--font-body);
  }
  .slider-dots button::before { display: none; }
  .slider-dots button[aria-selected="true"] { color: var(--navy-800); background: var(--cyan-300); border-color: var(--cyan-300); }
  .slider-dots span { display: inline; }
}

.slider-progress { height: 3px; background: rgba(255, 255, 255, .1); }
.slider-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan-400), var(--cyan-300));
}

/* ---------- Pillars ---------- */
.pillars { background: var(--navy-900); color: #fff; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 12px;
  padding-block: 28px;
}
.pillar { display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.3; }
.pillar:last-child { grid-column: 1 / -1; justify-content: center; }
.pillar svg {
  flex: none; width: 40px; height: 40px; padding: 8px;
  border-radius: 50%;
  border: 1px solid rgba(127, 220, 250, .45);
  fill: none; stroke: var(--cyan-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 640px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar:last-child { grid-column: auto; justify-content: flex-start; }
}
@media (min-width: 1000px) {
  .pillars-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }

.section-muted { background: var(--surface-muted); }
.section-dark {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-700));
  color: #fff;
}
.section-dark .eyebrow { color: var(--cyan-300); }
.section-dark .lead { color: rgba(255, 255, 255, .78); }

.section-head { margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

/* ---------- Solutions tabs ---------- */
.tab-list {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  scroll-snap-type: x mandatory;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  flex: none;
  scroll-snap-align: start;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 600 .92rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab-list button:hover { border-color: var(--blue-500); }
.tab-list button[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

@media (min-width: 900px) {
  .tab-list { margin-inline: 0; padding-inline: 0; overflow: visible; flex-wrap: wrap; }
}

.tab-panel { padding-top: 24px; animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-intro {
  display: grid; gap: 28px; align-items: center;
  margin-bottom: 32px;
}
.panel-intro h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.vision, .mission { color: var(--ink-soft); }
.vision { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.vision span, .mission span {
  display: block;
  font: 600 .75rem/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 6px;
}
@media (min-width: 900px) {
  .panel-intro { grid-template-columns: 5fr 6fr; gap: 48px; }
}

.field-desc { color: var(--ink-soft); font-size: 1.02rem; }
.benefits-label {
  margin: 18px 0 8px;
  font: 600 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-500);
}
.benefit-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px 20px; }
@media (min-width: 640px) { .benefit-list { grid-template-columns: 1fr 1fr; } }
.benefit-list li { position: relative; padding-inline-start: 26px; font-weight: 500; font-size: .95rem; line-height: 1.4; }
.benefit-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fdcfa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.vm-strip {
  display: grid; gap: 16px 40px;
  margin: -8px 0 28px; padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border-inline-start: 4px solid var(--blue-500);
}
.vm-strip p { margin: 0; }
.vm-strip .vision { font-size: 1.02rem; }
@media (min-width: 900px) { .vm-strip { grid-template-columns: 1fr 1.4fr; } }

/* Overview graphics (open in lightbox) */
.infographic {
  position: relative; display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.infographic img { width: 100%; transition: transform .4s ease; }
.infographic:hover img { transform: scale(1.02); }
.zoom-hint {
  position: absolute; inset-inline-end: 12px; bottom: 12px;
  padding: 7px 12px 7px 32px;
  border-radius: 999px;
  background: rgba(2, 26, 58, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fdcfa' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat 10px center / 16px;
  color: #fff; font-size: .8rem; font-weight: 600;
}

.tech-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .tech-grid.cards-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px) and (max-width: 1099px) { .tech-grid.cards-5 > :last-child { grid-column: 1 / -1; } }

.tech-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-500);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.tech-card .step {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 8px;
}
.tech-card .step em {
  display: block; font-style: normal; text-transform: none; letter-spacing: 0;
  color: var(--ink-soft); font-weight: 500; font-size: .85rem; margin-top: 2px;
}
.tech-card h4 { font-size: 1rem; }

.check-list, .tech-card ul, .product-card ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
  font-size: .92rem; color: var(--ink-soft);
}
.tech-card li, .product-card li { position: relative; padding-inline-start: 18px; }
.tech-card li::before, .product-card li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan-400);
}

/* ---------- Technologies ---------- */
.tech-groups { display: grid; gap: 48px; }

.tech-group h3 {
  color: var(--cyan-300);
  font-size: .85rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(127, 220, 250, .2);
}

.tech-cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .tech-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-cards { grid-template-columns: repeat(4, 1fr); } }

.tech-tile {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(127, 220, 250, .16);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tech-tile:hover { transform: translateY(-4px); border-color: rgba(127, 220, 250, .45); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .6); }
.tech-tile figure { position: relative; margin: 0; overflow: hidden; }
.tech-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.tech-tile:hover img { transform: scale(1.04); }
.tech-tile > div { padding: 18px 20px 22px; }
.tech-tile h4 { font-size: 1.08rem; margin-bottom: .4em; }
.tech-tile p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .74); }

/* ---------- Products ---------- */
.products-head { display: grid; gap: 28px; align-items: center; margin-bottom: 40px; }
.products-head .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .products-head { grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; } }
/* No overview image configured: text uses the full width */
.products-head.no-media, .about-grid.no-media { grid-template-columns: 1fr; }
.about-grid.no-media .about-text { max-width: 860px; }
@media (min-width: 900px) {
  .about-grid.no-media .process { grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
}

.product-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } } /* 7 topics = 2 rows */

.product-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card h3 { font-size: 1.08rem; padding-inline-end: 44px; }
.product-card > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.product-card .num {
  position: absolute; top: 22px; inset-inline-end: 22px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-800); color: var(--cyan-300);
  font: 700 .8rem/1 var(--font-head);
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about-text > p { color: var(--ink-soft); }
/* ---------- Book a Demo ---------- */
.demo-btn { margin-top: 8px; }
.demo-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-500); }

.demo-dialog {
  width: min(94vw, 680px); max-width: none; max-height: 92vh;
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  overflow: visible;
  box-shadow: 0 30px 80px -20px rgba(1, 18, 42, .6);
}
.demo-dialog::backdrop { background: rgba(1, 18, 42, .75); }
.demo-form { position: relative; padding: 28px; max-height: 92vh; overflow-y: auto; display: grid; gap: 14px; }
.demo-form h3 { margin: 0; font-size: 1.5rem; padding-inline-end: 40px; }
.demo-intro { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.demo-solution { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-muted); border-inline-start: 4px solid var(--blue-500); font-size: .95rem; }
.demo-solution span { color: var(--ink-soft); }
.demo-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
.demo-dates { margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; gap: 12px; }
.demo-dates legend { padding: 0 6px; font-size: .82rem; color: var(--ink-soft); }
.demo-form .form-row textarea { min-height: 80px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-form .form-status { margin: 0; }
.demo-form .lightbox-close { top: 12px; right: auto; inset-inline-end: 12px; box-shadow: none; background: var(--surface-muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(96vw, 1400px); max-width: none; max-height: 94vh;
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--navy-900);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(1, 18, 42, .85); }
.lightbox img { width: 100%; max-height: 94vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: -14px; inset-inline-end: -14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .lightbox-close { top: 6px; inset-inline-end: 6px; } }

.process { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.process li { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.process li span {
  flex: none; width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-800); color: var(--cyan-300);
  font: 700 .85rem/1 var(--font-head);
}
.process strong { display: block; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 64px; } }

.company-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border-inline-start: 4px solid var(--blue-500);
  font-style: normal;
}
.company-name { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 14px; }
.company-line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; color: var(--ink-soft); }
.company-line:last-child { margin-bottom: 0; }
.company-line[hidden] { display: none; }
.company-line svg {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  fill: none; stroke: var(--blue-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.company-line { align-items: center; }
.company-line .contact-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800);
}
.company-line .contact-icon svg { width: 18px; height: 18px; margin: 0; stroke: var(--cyan-300); }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 8px; border-radius: 999px;
  background: #25d366; color: #fff !important; font-size: .85rem; font-weight: 600;
}
.wa-btn:hover { background: #1ebe5a; }
.company-line .wa-btn svg { width: 18px; height: 18px; flex: none; margin: 0; fill: currentColor; stroke: none; }
.company-line a { color: var(--ink); text-decoration: none; font-weight: 500; }
.company-line a:hover { color: var(--blue-500); }

.contact-form { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .form-row-full { grid-column: 1 / -1; }
}
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 1rem; /* 16px avoids iOS zoom */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(20, 102, 199, .15);
}
.form-row.has-error input, .form-row.has-error textarea { border-color: #c62828; }
.field-error { color: #c62828; font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.form-status { margin: 12px 0 0; font-weight: 500; }
.form-status.is-ok { color: #1b7a3d; }
.form-status.is-warn { color: #9a5b00; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .75); font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid.no-brand { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .footer-grid.no-legal { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { width: 140px; border-radius: 8px; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--cyan-300); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  padding: 7px 30px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(127, 220, 250, .4);
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fdcfa' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  color: #fff; font: 600 .85rem/1 var(--font-body);
  cursor: pointer;
}
.lang-switch select option { color: var(--ink); background: #fff; }
[dir="rtl"] .lang-switch select { padding: 7px 12px 7px 30px; background-position: left 10px center; }
.header-tools { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) {
  .header-tools { order: 3; }
  .site-nav { order: 2; margin-inline-start: auto; }
}

/* ---------- Right-to-left (Arabic) ---------- */
[lang="ar"] body, [lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
[lang="ar"] .btn, [lang="ar"] input, [lang="ar"] select, [lang="ar"] textarea {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0;
}
[lang="ar"] .eyebrow, [lang="ar"] .benefits-label, [lang="ar"] .vision span, [lang="ar"] .mission span,
[lang="ar"] .tech-card .step, [lang="ar"] .tech-group h3 { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .slider-btn:not(.slider-pause) svg { transform: scaleX(-1); }
[dir="rtl"] .slide-banner img { object-position: left center; } /* keep the English key visual readable */
[dir="rtl"] .site-nav li a:not(.btn)::after { transform-origin: right; }
[dir="rtl"] .tab-list { direction: rtl; }
/* The company name is English in every language: keep it left-to-right */
.brand-text, .company-name, #footerCompany { unicode-bidi: isolate; }
[dir="rtl"] .brand-text { direction: ltr; text-align: right; }

/* ---------- Messages without inline styles (required by the Content Security Policy) ---------- */
.noscript-hint { padding: 24px; text-align: center; }
.config-error {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 24px;
  background: #fff; font: 16px/1.5 Arial, sans-serif;
}
.config-error > div { max-width: 560px; border-inline-start: 5px solid #c62828; padding: 16px 20px; background: #fdecea; }

/* ---------- Spam trap (honeypot): invisible for people, filled in by bots ---------- */
.hp-field { position: absolute !important; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal notice / privacy policy ---------- */
.legal-dialog {
  width: min(94vw, 820px); max-width: none; max-height: 90vh;
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  overflow: visible;
  box-shadow: 0 30px 80px -20px rgba(1, 18, 42, .6);
}
.legal-dialog::backdrop { background: rgba(1, 18, 42, .75); }
.legal-body { position: relative; max-height: 90vh; overflow-y: auto; padding: 32px; }
.legal-body h2 { font-size: 1.6rem; padding-inline-end: 40px; }
.legal-body h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal-body p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 10px; }
.legal-body strong { color: var(--ink); }
.legal-updated { margin-top: 24px !important; font-size: .85rem !important; }
.legal-dialog .lightbox-close { top: 12px; right: auto; inset-inline-end: 12px; box-shadow: none; background: var(--surface-muted); }
@media (min-width: 1000px) { .footer-grid.no-brand.no-legal { grid-template-columns: repeat(2, 1fr); } }

/* Contact section without form: text and contact details side by side */
.contact-grid.no-form { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .contact-grid.no-form > div { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 0 64px; align-items: start; }
  .contact-grid.no-form .company-card { margin-top: 0; grid-column: 2; grid-row: 1 / span 3; }
}

/* Company name in the header is the main heading (H1) of the page – keep its small look */
h1.brand-text { margin: 0; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
@media (max-width: 639px) { h1.brand-text { font-size: .66rem; line-height: 1.3; } }
@media (min-width: 640px) { h1.brand-text { font-size: .78rem; line-height: 1.35; } }
