/* EMS Global Power Solutions — site styles */

@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #111814;
  --ink-2: #39443d;
  --ink-3: #66706a;
  --paper: #ffffff;
  --stone: #f2f2ee;
  --stone-2: #e6e7e1;
  --rule: #d9dcd5;
  --night: #0f1712;
  --night-2: #18231c;
  --forest: #173d27;
  --green: #45a55a;          /* logo green: accents only */
  --green-600: #287a3b;      /* buttons & links on white (AA) */
  --green-700: #1f6530;
  --green-tint: #e8f3ea;

  --f-head: "Archivo", "Plex Arabic", "Arial Narrow", Arial, sans-serif;
  --f-body: "Public Sans", "Plex Arabic", "Segoe UI", Arial, sans-serif;

  /* Direction helpers, flipped for right-to-left pages */
  --start: left;
  --flip: 1;
  --fade-dir: 90deg;

  --container: 1792px;
  --gutter: clamp(20px, 3.4vw, 64px);
  --section: clamp(64px, 7vw, 108px);
  --header-h: 92px;
  --gutter-wide: var(--gutter);
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  font-stretch: 90%;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.025em; line-height: 1; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 1rem;
}
.eyebrow--light { color: #9fd4a9; }
.eyebrow--dot { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.eyebrow--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.eyebrow--dot.eyebrow--light { color: #fff; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }

/* ── Buttons & links ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1rem;
  font-stretch: 95%;
  line-height: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--sm { padding: .72rem 1.1rem; font-size: .9375rem; }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--stone); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-stretch: 95%;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--green);
  padding-bottom: 3px;
}
.link-arrow::after, .card-case__link::after {
  content: "";
  display: inline-block;
  width: .95em;
  height: .7em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Cpath d='M0 7h17M11 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Cpath d='M0 7h17M11 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scaleX(var(--flip));
  transition: transform .2s var(--ease);
}
.link-arrow:hover { color: var(--green-700); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #b8e6c1; }
.link-arrow:hover::after { transform: translateX(calc(4px * var(--flip))) scaleX(var(--flip)); }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header[data-scrolled] { border-bottom-color: var(--rule); }
.site-header--overlay { margin-bottom: calc(-1 * var(--header-h)); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.brand__light { display: none; }
.js .site-header--overlay:not([data-solid]) { background: transparent; border-bottom-color: transparent; }
.js .site-header--overlay:not([data-solid]) .brand__dark { display: none; }
.js .site-header--overlay:not([data-solid]) .brand__light { display: block; }
.js .site-header--overlay:not([data-solid]) .nav__link,
.js .site-header--overlay:not([data-solid]) .header-phone { color: #fff; }
.js .site-header--overlay:not([data-solid]) .nav__toggle { color: rgba(255, 255, 255, .8); }
.js .site-header--overlay:not([data-solid]) .burger { border-color: rgba(255, 255, 255, .4); }
.js .site-header--overlay:not([data-solid]) .burger__lines,
.js .site-header--overlay:not([data-solid]) .burger__lines::before,
.js .site-header--overlay:not([data-solid]) .burger__lines::after { background: #fff; }
.site-header__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 2rem; height: var(--header-h); }
.brand { justify-self: start; display: block; }
.brand img { height: 56px; width: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  padding: .6rem .9rem;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .25rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: var(--start);
  transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__item--mega .nav__link { padding-inline-end: .3rem; }
.nav__item--mega .nav__link::after { inset-inline-end: .3rem; }
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
  margin-inline-end: .4rem;
}
.nav__toggle svg { transition: transform .2s; }
.nav__item--mega[data-open] .nav__toggle svg { transform: rotate(180deg); }

.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 40px -24px rgba(17, 24, 20, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s;
}
.nav__item--mega[data-open] .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s, transform .18s;
}
.mega { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mega__inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem 1.25rem; padding-top: 1.75rem; padding-bottom: 1.5rem; }
.mega__group { grid-column: span var(--n, 1); }
.mega__group ul { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 1.25rem; }
.mega__heading {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}
.mega__item { display: block; text-decoration: none; }
.mega__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  margin-bottom: .7rem;
  background: var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background-color .2s;
}
.mega__thumb img { width: 88%; height: 88%; object-fit: contain; transition: transform .4s var(--ease); }
.mega__item strong { display: block; font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.25; transition: color .2s; }
.mega__item small { display: block; color: var(--ink-3); font-size: .8125rem; line-height: 1.35; margin-top: .1rem; }
.mega__item:hover .mega__thumb { background: var(--stone-2); }
.mega__item:hover .mega__thumb img { transform: scale(1.05); }
.mega__item:hover strong { color: var(--green-600); }
.mega__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1.4rem;
  position: relative;
  font-size: .9375rem;
  color: var(--ink-3);
}

.mega__foot::before { content: ""; position: absolute; top: 0; left: var(--gutter-wide); right: var(--gutter-wide); height: 1px; background: var(--rule); }

/* Solutions menu: one row of photo cards */
.mega--solutions .mega__inner { grid-template-columns: minmax(0, 1fr); }
.mega--solutions .mega__thumb { aspect-ratio: 16 / 10; background: var(--stone-2); }
.mega--solutions .mega__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega--solutions .mega__item:hover .mega__thumb img { transform: scale(1.06); }

.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; justify-self: end; }
.header-phone {
  font-family: var(--f-head);
  font-weight: 600;
  font-stretch: 95%;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--green-600); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color .2s, color .2s, background-color .2s;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }
.lang-switch svg { flex: none; }
.lang-switch__short { display: none; }
.js .site-header--overlay:not([data-solid]) .lang-switch { color: #fff; border-color: rgba(255, 255, 255, .4); }
.js .site-header--overlay:not([data-solid]) .lang-switch:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  position: relative;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.6px;
  margin-left: -9px;
  background: var(--ink);
  transition: transform .2s, top .2s, opacity .2s;
}
.burger__lines { top: 50%; }
.burger__lines::before, .burger__lines::after { content: ""; left: 0; margin-left: 0; }
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: .5rem 0 2rem;
}
.mobile-nav__products summary, .mobile-nav__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  list-style: none;
}
.mobile-nav__products summary::-webkit-details-marker { display: none; }
.mobile-nav__products summary::after { content: "+"; font-weight: 400; color: var(--ink-3); }
.mobile-nav__products[open] summary::after { content: "–"; }
.mobile-nav__products { padding-bottom: 0; }
.mobile-nav__products[open] { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.mobile-nav__products[open] summary { border-bottom-color: transparent; }
.mobile-nav__heading {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 1rem 0 .25rem;
}
.mobile-nav__products li a { display: block; padding: .45rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav__products li small { color: var(--ink-3); font-weight: 400; margin-inline-start: .35rem; }
.mobile-nav__products .link-arrow { margin-top: 1rem; }
.mobile-nav__cta { display: grid; gap: .75rem; margin-top: 1.75rem; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  --slide-time: 7s;
  position: relative;
  min-height: 100vh;
  min-height: clamp(660px, 100svh, 1040px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--night);
  isolation: isolate;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -1; }
.hero__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 12, .6) 0%, rgba(10, 16, 12, 0) 20%),
    linear-gradient(var(--fade-dir), rgba(10, 16, 12, .88) 0%, rgba(10, 16, 12, .68) 32%, rgba(10, 16, 12, .2) 52%, rgba(10, 16, 12, 0) 66%),
    linear-gradient(0deg, rgba(10, 16, 12, .85) 0%, rgba(10, 16, 12, .35) 24%, rgba(10, 16, 12, 0) 48%);
  pointer-events: none;
}
.hero__slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform-origin: var(--pos, 50% 50%); }
.hero__slide.is-active img { animation: hero-zoom calc(var(--slide-time) + 1.4s) linear both; }

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: end;
  gap: 3rem;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.1rem, 7.6vw, 7rem);
  font-weight: 650;
  font-stretch: 84%;
  line-height: .94;
  letter-spacing: -.035em;
  word-spacing: .08em;
  color: #fff;
  margin-bottom: 1.75rem;
}
.hero__title em { font-style: normal; color: #86d394; }
.hero__line { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.hero__line > span { display: block; animation: hero-rise 1s var(--ease) both; }
.hero__line:nth-child(2) > span { animation-delay: .09s; }
.hero__line:nth-child(3) > span { animation-delay: .18s; }
.hero__eyebrow { animation: hero-fade .8s var(--ease) .05s both; }
.hero__lede { max-width: 35rem; font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, .86); margin-bottom: 2.25rem; animation: hero-fade .9s var(--ease) .35s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; animation: hero-fade .9s var(--ease) .45s both; }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--glass:hover { color: var(--ink); background: #fff; border-color: #fff; }

.hero__bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 16, 12, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hero-fade .9s var(--ease) .6s both;
}
.hero__bar-inner { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0 2rem; }
.hero__panel { display: grid; animation: hero-fade .9s var(--ease) .55s both; }
.hero__card {
  grid-area: 1 / 1;
  padding: 1.25rem 1.35rem 1.4rem;
  background: rgba(12, 19, 15, .52);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.hero__card.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .3s, transform .6s var(--ease) .3s; }
.hero__card-label { display: flex; gap: .6rem; font-family: var(--f-head); font-weight: 600; font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin: 0 0 .5rem; }
.hero__card-label span { color: #86d394; }
.hero__card-media { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: .75rem; background: radial-gradient(ellipse 60% 55% at 50% 62%, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0) 100%); }
.hero__card-media img { width: 88%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.hero__card-name { font-family: var(--f-head); font-weight: 650; font-stretch: 90%; font-size: 1.6rem; line-height: 1.1; color: #fff; margin: 0 0 .3rem; }
.hero__card-type { font-size: .875rem; line-height: 1.45; color: rgba(255, 255, 255, .72); margin: 0 0 .9rem; }
.hero__card-specs { margin: 0 0 1.1rem; font-size: .875rem; }
.hero__card-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__card-specs dt { color: rgba(255, 255, 255, .62); }
.hero__card-specs dd { margin: 0; color: #fff; font-weight: 600; text-align: end; }
.hero__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem 0 1.25rem;
  font: inherit;
  color: #fff;
  text-align: start;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: .62;
  transition: opacity .3s;
}
.hero__tab:hover, .hero__tab.is-active { opacity: 1; }
.hero__progress { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .0); }
.hero__progress span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: var(--start); }
.hero__tab.is-active .hero__progress span { animation: hero-progress var(--slide-time) linear both; }
.hero__tab img { flex: none; width: 84px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); transition: transform .3s var(--ease); }
.hero__tab:hover img { transform: translateY(-2px); }
.hero__tab-text { min-width: 0; }
.hero__tab small { display: block; font-family: var(--f-head); font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tab strong { display: block; font-family: var(--f-head); font-weight: 600; font-stretch: 92%; font-size: 1.2rem; line-height: 1.25; }
.hero__pause {
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: #fff;
  background: none;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.hero__pause[hidden] { display: none; }
.hero__pause:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.hero__icon-play, .hero[data-paused] .hero__icon-pause { display: none; }
.hero[data-paused] .hero__icon-play { display: block; }
.hero[data-paused] .hero__slide img,
.hero[data-paused] .hero__progress span,
.hero__bar:hover .hero__progress span,
.hero__bar:has(:focus-visible) .hero__progress span { animation-play-state: paused; }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hero-rise { from { transform: translateY(105%); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: var(--section) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--night); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38rem);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin: 0; max-width: 14ch; }
.section-head > p { margin: 0; }

/* CTA */
.cta { padding: var(--section) 0; background: var(--paper); overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(3rem, 6vw, 7rem); align-items: center; }
.cta h2 { font-size: clamp(2.6rem, 5vw, 4.75rem); max-width: 11ch; text-wrap: balance; margin-bottom: 1.5rem; }
.cta__lede { margin: 0 0 2.25rem; max-width: 34rem; font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.cta__call { margin: 0; color: var(--ink-3); }
.cta__call a { font-family: var(--f-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-inline-start: .3rem; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cta__call a:hover { color: var(--green-600); }
.cta__note { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: 34rem; font-size: .9375rem; color: var(--ink-3); }
.cta__figure { margin: 0; margin-inline-end: calc(-1 * var(--gutter)); }
.cta__figure img { width: 100%; height: auto; aspect-ratio: 1250 / 719; object-fit: cover; }
.cta__figure figcaption { margin-top: .85rem; max-width: 30rem; font-size: .875rem; color: var(--ink-3); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .66); font-size: .9375rem; padding-top: clamp(3.5rem, 6vw, 5rem); }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: clamp(300px, 23vw, 420px); height: auto; margin-bottom: 1.75rem; }
.site-footer__brand p { max-width: 34rem; margin: 0; font-size: 1rem; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; justify-self: end; }
.site-footer__label {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 1rem;
}
.site-footer__contact .site-footer__label { margin-bottom: .5rem; }
.site-footer__phone { font-family: var(--f-head); font-weight: 600; font-size: 2rem; color: #fff !important; line-height: 1.2; }
.site-footer__hours { margin: .35rem 0 0; font-size: .875rem; color: rgba(255, 255, 255, .5); }
.site-footer__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.5rem; padding: 3.5rem 0; font-size: 1rem; }
.site-footer__cols li + li { margin-top: .55rem; }
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem;
  color: rgba(255, 255, 255, .5);
}
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 1.5rem; }
.site-footer__legal a { color: rgba(255, 255, 255, .6); }

/* ── Right-to-left (Arabic) ────────────────────────────────────────────── */
[dir="rtl"] { --start: right; --flip: -1; --fade-dir: 270deg; }
:lang(ar) body { line-height: 1.8; }
:lang(ar) :is(h1, h2, h3, h4) { line-height: 1.35; }
:lang(ar) :is(h1, h2, h3, h4, .eyebrow, .mega__heading, .hero__title, .site-footer__label, .hero__tab small, .hero__card-label, .mobile-nav__heading, .lang-switch) { letter-spacing: 0; }
:lang(ar) .hero__title { font-size: clamp(2.8rem, 6.4vw, 6rem); font-weight: 700; line-height: 1.22; }
:lang(ar) .hero__line { padding-bottom: .16em; margin-bottom: -.16em; }
:lang(ar) .lead, :lang(ar) .hero__lede { line-height: 1.8; }
:lang(ar) .eyebrow { font-size: .875rem; }

/* ── Motion ────────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Closing band ─────────────────────────────────────────────────────── */
.sol-cta { padding: clamp(64px, 7vw, 112px) 0; background: var(--night) url("../img/site-imbase-construction-960.webp") center / cover no-repeat; position: relative; z-index: 0; color: rgba(255,255,255,.8); }
.sol-cta::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(var(--fade-dir), rgba(8,16,11,.94) 0%, rgba(8,16,11,.82) 100%); content: ""; }
.sol-cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 5vw, 80px); }
.sol-cta .sol-cta__grid h2 { max-width: none; margin: 0; color: #fff; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem); line-height: 1.04; letter-spacing: -.025em; }
.sol-cta .sol-cta__grid h2 em { color: #9fd4a9; font-style: normal; }
:lang(ar) .sol-cta .sol-cta__grid h2 { line-height: 1.3; letter-spacing: 0; }
.sol-cta__action > p { max-width: 440px; margin: 0 0 1.5rem; }
.sol-cta__action > div { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .sol-cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .sol-cta__action .btn { width: 100%; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (min-width: 1600px) {
  .brand img { height: 62px; }
}
@media (max-width: 1280px) {
  .brand img { height: 48px; }
  .site-header__bar { gap: 1.25rem; }
  .nav__link { padding: .6rem .7rem; }
}
@media (max-width: 1180px) {
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .nav, .header-phone { display: none; }
  .burger { display: inline-block; }
  .site-header__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { display: none; }
  .hero__tab img { display: none; }
}
@media (max-width: 900px) {
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__figure { margin-inline: calc(-1 * var(--gutter)); }
  .cta__figure figcaption { padding-inline: var(--gutter); }
  .section-head, .site-footer__top { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .site-footer__contact { justify-self: start; }
  .hero__bar-inner { gap: 0 1.25rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header__actions .btn { display: none; }
  :root { --header-h: 76px; }
  .lang-switch { padding: .5rem .7rem; }
  .lang-switch__long { display: none; }
  .lang-switch__short { display: inline; }
  .brand img { height: 40px; }
  .site-footer__logo img { width: 280px; }
  .hero { min-height: 0; justify-content: flex-start; }
  .hero__slides { position: relative; inset: auto; z-index: 0; order: -2; height: min(112vw, 520px); }
  .hero__slides::after { background: linear-gradient(180deg, rgba(10, 16, 12, .6) 0%, rgba(10, 16, 12, 0) 28%), linear-gradient(0deg, var(--night) 0%, rgba(15, 23, 18, .4) 22%, rgba(15, 23, 18, 0) 45%); }
  .hero__bar { order: -1; z-index: 1; margin-top: -3.4rem; background: none; border-top: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__bar-inner { gap: 0 .9rem; }
  .hero__tab { padding: .85rem 0 .7rem; }
  .hero__progress { background: rgba(255, 255, 255, .28); }
  .hero__tab small { display: none; }
  .hero__tab strong { font-size: 1rem; }
  .hero__pause { width: 34px; height: 34px; }
  .hero__body { padding-top: 1.5rem; padding-bottom: 3rem; }
  .hero__title { font-size: clamp(2.75rem, 13.5vw, 3.75rem); margin-bottom: 1.25rem; }
  .hero__lede { font-size: 1.0625rem; margin-bottom: 1.75rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__lede { font-size: 1.0625rem; margin-bottom: 1.75rem; }
  .cta__note { margin-top: 2rem; }
}

/* ── Laptop screens (1101–1599px) ─────────────────────────────────────── */
@media (min-width: 1101px) and (max-width: 1599px) {
  :root {
    --header-h: 80px;
    --gutter: clamp(40px, 5vw, 80px);
    --section: clamp(64px, 6vw, 92px);
  }
  .brand img { height: 48px; }
  .nav__link { font-size: 1rem; padding: .6rem .75rem; }
  .site-header__actions { gap: 1.1rem; }

  .hero { min-height: max(600px, 100svh); }
  .hero__body { gap: 2.5rem; padding-top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3.5rem)); padding-bottom: clamp(1.75rem, 4.5vh, 3rem); grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); }
  .hero__title { font-size: clamp(3rem, min(6.2vw, 10.5vh), 5.75rem); margin-bottom: clamp(1rem, 2.6vh, 1.5rem); }
  :lang(ar) .hero__title { font-size: clamp(2.6rem, min(5.4vw, 9.2vh), 5rem); }
  .hero__eyebrow { margin-bottom: clamp(.6rem, 1.6vh, 1rem); }
  .hero__lede { font-size: 1.0625rem; max-width: 32rem; margin-bottom: clamp(1.25rem, 3.4vh, 2rem); }
  .hero__card { padding: 1rem 1.15rem 1.15rem; }
  .hero__card-media { aspect-ratio: 2 / 1; margin-bottom: .5rem; }
  .hero__card-name { font-size: 1.4rem; }
  .hero__card-type { font-size: .8125rem; margin-bottom: .6rem; }
  .hero__card-specs { font-size: .8125rem; margin-bottom: .8rem; }
  .hero__card-specs div { padding: .35rem 0; }
  .hero__tab { padding: .8rem 0 .9rem; gap: .8rem; }
  .hero__tab img { width: 64px; height: 46px; }
  .hero__tab strong { font-size: 1.05rem; }
  .hero__pause { width: 38px; height: 38px; }

  .section-head { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
  .cta__figure { margin-inline-end: 0; }
  .cta__figure img { border-radius: var(--radius); }
  .site-footer__logo img { width: 300px; }
}

/* ── Product cards (home EV charging, product pages) ──────────────────── */
.h-ev__rule { border-block: 1px solid var(--rule); }
.h-ev__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-ev__item { display: flex; flex-direction: column; padding: clamp(1.75rem, 2.4vw, 2.5rem) clamp(1.5rem, 2.4vw, 2.75rem); }
.h-ev__item:first-child { padding-inline-start: 0; }
.h-ev__item:last-child { padding-inline-end: 0; }
.h-ev__item + .h-ev__item { border-inline-start: 1px solid var(--rule); }
.h-ev__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; }
.h-ev__top h3 { margin: 0; max-width: 13rem; font-size: .9375rem; font-weight: 600; font-stretch: 100%; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; }
.h-ev__top h3 span { display: block; margin-top: .3rem; font-size: .9375rem; letter-spacing: 0; text-transform: none; color: var(--green-600); }
.h-ev__specs { margin: 0; flex: none; text-align: end; font-size: .9375rem; line-height: 1.55; }
.h-ev__specs dt { display: inline; font-family: var(--f-head); font-weight: 600; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.h-ev__specs dd { display: inline; margin: 0; color: var(--ink-2); }
.h-ev__media { flex: 1; display: grid; place-items: center; padding: clamp(2rem, 4vw, 3.75rem) 0; }
.h-ev__media img { width: min(100%, 27rem); aspect-ratio: 604 / 475; object-fit: contain; transition: transform .5s var(--ease); }
.h-ev__item:hover .h-ev__media img { transform: scale(1.03); }
.h-ev__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.h-ev__bottom p { margin: 0; max-width: 22rem; font-size: .9688rem; line-height: 1.55; color: var(--ink-2); }
.h-ev__go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; background: var(--green-600); color: #fff; border-radius: 2px; transition: background-color .2s; }
.h-ev__go svg { transform: scaleX(var(--flip)); transition: transform .2s var(--ease); }
.h-ev__go:hover, .h-ev__item:hover .h-ev__go { background: var(--green-700); color: #fff; }
.h-ev__item:hover .h-ev__go svg { transform: translateX(calc(2px * var(--flip))) scaleX(var(--flip)); }
@media (max-width: 1100px) {
  .h-ev__top { flex-direction: column; gap: .75rem; }
  .h-ev__specs { text-align: start; }
}
@media (max-width: 900px) {
  .h-ev__grid { grid-template-columns: minmax(0, 1fr); }
  .h-ev__item, .h-ev__item:first-child, .h-ev__item:last-child { padding-inline: 0; }
  .h-ev__item + .h-ev__item { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .h-ev__media { padding: 1.75rem 0; }
  .h-ev__media img { width: min(80%, 22rem); }
  .h-ev__top { flex-direction: row; gap: 1.25rem; }
  .h-ev__specs { text-align: end; }
}
@media (max-width: 640px) {
  .h-ev__top { flex-direction: column; gap: .75rem; }
  .h-ev__specs { text-align: start; }
}
