/* ============================================================
   EV chargers — charger types + installed locations
   ============================================================ */
.ev-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.ev-type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ev-type:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.ev-type__img { position: relative; block-size: 16rem; background: #fff; display: grid; place-items: center; overflow: hidden; }
.ev-type__img img { max-inline-size: 86%; max-block-size: 88%; object-fit: contain; transition: transform .5s var(--ease); }
.ev-type__img--photo img { inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; object-fit: cover; }
.ev-type:hover .ev-type__img img { transform: scale(1.04); }
.ev-type__tag { position: absolute; inset-block-start: .75rem; inset-inline-start: .75rem; padding: .25rem .6rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.ev-type__b { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.ev-type__b h3 { margin: 0 0 .35rem; font-size: var(--fs-lg); }
.ev-type__b p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

.ev-count { display: inline-flex; align-items: baseline; gap: .6rem; margin: 0 0 var(--sp-3); padding: .8rem 1.2rem; border-radius: var(--radius-lg); background: var(--grad-navy); color: #fff; box-shadow: var(--shadow-2); }
.ev-count b { font-size: 2.4rem; line-height: 1; color: var(--amber); font-weight: 800; }
.ev-count span { font-weight: 700; color: var(--text-on-navy); }
.ev-sites { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.ev-site { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); font-weight: 700; transition: border-color .25s, transform .25s var(--ease); }
.ev-site:hover { border-color: var(--navy); transform: translateY(-2px); }
.ev-site__pin { flex: none; position: relative; display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: 50%; background: rgba(40, 73, 144, .08); color: var(--navy); }
.ev-site__pin svg { inline-size: 1.05rem; block-size: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-site__pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.ev-sites.reveal { opacity: 1; transform: none; }
.ev-sites.is-in .ev-site { animation: ev-in .5s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
.ev-sites.is-in .ev-site__pin::after { animation: ev-ping 1.6s ease-out both; animation-delay: calc(var(--i) * 55ms + .3s); }
@keyframes ev-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes ev-ping { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }

@media (max-width: 899px) { .ev-types { grid-template-columns: 1fr; } .ev-type__img { block-size: 14rem; } }
@media (prefers-reduced-motion: reduce) { .ev-sites.is-in .ev-site, .ev-sites.is-in .ev-site__pin::after { animation: none; } }

/* overview photo — full colour (no duotone) */
.ev-photo { margin: 0; align-self: start; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ev-photo img { display: block; inline-size: 100%; block-size: auto; }
.ev-photo figcaption { padding: var(--sp-2) var(--sp-3) var(--sp-3); color: var(--text-muted); font-size: var(--fs-sm); }
.ev-ov { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
@media (max-width: 899px) { .ev-ov { grid-template-columns: 1fr; } }

/* ---------- Circontrol series gallery (real installs) ---------- */
.evg__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; padding: .5rem; margin-block-end: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.evg__tab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border-radius: 12px; transition: background-color .25s, color .25s; }
.evg__tab:hover { background: rgba(40, 73, 144, .06); }
.evg__tab:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.evg__tab-n { align-self: flex-start; font-weight: 800; font-size: var(--fs-lg); }
.evg__tab-c { font-size: var(--fs-xs); color: var(--text-muted); }
.evg__tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.evg__tab[aria-selected="true"] .evg__tab-c { color: #c9d3e8; }
.evg__panel { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: var(--sp-4); align-items: start; animation: evg-in .45s var(--ease) both; }
.evg__panel[hidden] { display: none; }
.no-js .evg__panel[hidden] { display: grid; margin-block-start: var(--sp-4); }
@keyframes evg-in { from { opacity: 0; transform: translateY(10px); } }
.evg__main { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow-3); aspect-ratio: 3 / 4; }
.evg__main img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.evg__main img.is-in { animation: evg-img .5s var(--ease) both; }
@keyframes evg-img { from { opacity: 0; transform: scale(1.03); } }
.evg__main figcaption { position: absolute; inset-block-end: .8rem; inset-inline-start: .8rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(10, 20, 44, .78); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: var(--fs-sm); }
.evg__info { padding-block-start: var(--sp-2); }
.evg__brand { display: inline-block; padding: .25rem .65rem; border-radius: 999px; background: rgba(40, 73, 144, .08); color: var(--navy); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.evg__info h3 { margin: .6rem 0 .5rem; font-size: var(--fs-2xl); }
.evg__info p { margin: 0 0 var(--sp-3); color: var(--text-muted); font-size: var(--fs-lg); max-inline-size: 34rem; }
.evg__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .6rem; max-inline-size: 34rem; }
.evg__thumb { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; border: 3px solid transparent; box-shadow: var(--shadow-1); transition: border-color .2s, transform .2s var(--ease); }
.evg__thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.evg__thumb:hover { transform: translateY(-2px); }
.evg__thumb[aria-pressed="true"] { border-color: var(--amber); }
.evg__thumb:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 899px) {
  .evg__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evg__panel { grid-template-columns: 1fr; }
  .evg__main { max-inline-size: 26rem; }
}
@media (prefers-reduced-motion: reduce) { .evg__panel, .evg__main img.is-in { animation: none; } }

/* ---------- Zamco-logo grey for the series gallery + installed sites ---------- */
.evg, .ev-count, .ev-sites { --zg: #928e8d; --zg-d: #6f6b6a; --zg-t: rgba(146, 142, 141, .14); }
.ev-count { background: linear-gradient(135deg, #a5a1a0 0%, #6f6b6a 100%); }
.ev-count b { color: #fff; }
.ev-count span { color: #fff; }
.ev-site:hover { border-color: var(--zg); }
.ev-site__pin { background: var(--zg-t); color: var(--zg-d); }
.ev-site__pin::after { border-color: var(--zg); }
.evg__tab:hover { background: var(--zg-t); }
.evg__tab[aria-selected="true"] { background: var(--zg-d); }
.evg__tab[aria-selected="true"] .evg__tab-c { color: #ecebea; }
.evg__brand { background: var(--zg-t); color: var(--zg-d); }
.evg__thumb[aria-pressed="true"] { border-color: var(--zg); }

/* ---------- hero: animated Circontrol charging scene ---------- */
.evh { position: relative; flex-direction: column; align-items: center; }
.evh__svg { display: block; inline-size: min(100%, 34rem); block-size: auto; overflow: visible; filter: drop-shadow(0 24px 40px rgba(4, 10, 24, .5)); }
.evh__halo { animation: evh-halo 3.2s ease-in-out infinite; transform-origin: 190px 270px; }
@keyframes evh-halo { 50% { opacity: .55; transform: scale(.94); } }
.evh__led { animation: evh-led 1.6s ease-in-out infinite; }
@keyframes evh-led { 50% { opacity: .35; } }
.evh__scr { transform-box: fill-box; transform-origin: left center; animation: evh-scr 2.4s ease-in-out infinite; }
[dir="rtl"] .evh__scr { transform-origin: left center; }
@keyframes evh-scr { 0% { transform: scaleX(.2); } 100% { transform: scaleX(1); } }
.evh__flow { animation: evh-flow .9s linear infinite; filter: drop-shadow(0 0 4px #2fd27a); }
@keyframes evh-flow { to { stroke-dashoffset: -22; } }
.evh__port { animation: evh-port 1.4s ease-in-out infinite; filter: drop-shadow(0 0 8px #2fd27a); }
@keyframes evh-port { 50% { opacity: .55; } }
.evh__ping { transform-box: fill-box; transform-origin: center; animation: evh-ping 1.8s ease-out infinite; }
@keyframes evh-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.evh__car { animation: evh-car 6s ease-in-out infinite; }
@keyframes evh-car { 50% { transform: translateY(-1.5px); } }
.evh__sparks circle { animation: evh-spark 3s ease-out infinite; opacity: 0; }
.evh__sparks circle:nth-child(2) { animation-delay: .8s; }
.evh__sparks circle:nth-child(3) { animation-delay: 1.6s; }
.evh__sparks circle:nth-child(4) { animation-delay: 2.3s; }
@keyframes evh-spark { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px); } }

.evh__card {
  position: absolute; inset-block-start: 6%; inset-inline-end: 2%; min-inline-size: 11.5rem;
  padding: .8rem 1rem; border-radius: 16px; color: #fff;
  background: rgba(12, 22, 44, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); animation: evh-float 6s ease-in-out infinite;
}
@keyframes evh-float { 50% { transform: translateY(-6px); } }
.evh__row { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); }
.evh__row small { margin-inline-start: auto; color: #b9c3d6; font-size: var(--fs-xs); }
.evh__dot { inline-size: .55rem; block-size: .55rem; border-radius: 50%; background: #2fd27a; box-shadow: 0 0 8px #2fd27a; animation: evh-led 1.2s ease-in-out infinite; }
.evh__pct { margin-block: .25rem .35rem; font: 800 2.2rem/1 var(--font-en); letter-spacing: -.02em; }
.evh__bar { block-size: .45rem; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.evh__bar i { display: block; block-size: 100%; inline-size: 64%; border-radius: inherit; background: linear-gradient(90deg, #1f9d55, #2fd27a); transition: inline-size .3s linear; }
.evh__meta { margin-block-start: .45rem; font-size: var(--fs-xs); color: #b9c3d6; }
.evh__meta b { color: #fff; }
.evh.is-full .evh__dot { animation: none; }
.evh__chip { position: absolute; inset-block-end: 4%; inset-inline-start: 2%; margin: 0; padding: .4rem .8rem; border-radius: 999px; background: rgba(12, 22, 44, .72); border: 1px solid rgba(255, 255, 255, .14); color: #e9eef8; font-size: var(--fs-xs); font-weight: 700; backdrop-filter: blur(8px); }
@media (max-width: 56rem) {
  .evh__svg { inline-size: min(90vw, 26rem); }
  .evh__card { min-inline-size: 9rem; padding: .6rem .75rem; }
  .evh__pct { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .evh *, .evh__card { animation: none !important; }
}
/* the scene is not mirrored in RTL — keep overlays on fixed physical sides */
.evh__card { inset-inline-end: auto; inset-inline-start: auto; right: 2%; }
.evh__chip { inset-inline-start: auto; left: 2%; }
.evh__bar { direction: ltr; }
