/* Adnani Electric — design system & site stylesheet
   Palette from the logo: navy (lightning bolt), sky blue (roof), amber accent (solar energy). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Tajawal (SIL OFL), Arabic glyphs only: Latin text in Arabic pages keeps Manrope */
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url("../fonts/tajawal-arabic-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --navy-950: #06132b;
  --navy-900: #0a2148;
  --navy-800: #103063;
  --navy-700: #153f79;
  --blue-700: #075f96;
  --blue-600: #0a74b5;
  --blue-500: #29abe2;
  --blue-100: #d6eefa;
  --blue-50:  #edf7fd;
  --copper-700: #7a5200;
  --copper-600: #a56f00;
  --copper-100: #fdf0cf;
  --ink: #0c1b33;
  --text: #435160;
  --muted: #66737f;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --success: #17794a;
  --danger: #b42318;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 33, 72, .06), 0 1px 3px rgba(10, 33, 72, .05);
  --shadow: 0 10px 30px -12px rgba(10, 33, 72, .18);
  --shadow-lg: 0 24px 60px -24px rgba(10, 33, 72, .35);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.25rem; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--blue-100); color: var(--ink); }

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

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: #fff; --btn-border: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.4em;
  font: inherit; font-size: .975rem; font-weight: 700; line-height: 1.2; letter-spacing: -.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-border); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--blue-700); color: var(--btn-fg); box-shadow: 0 8px 20px -10px rgba(10, 111, 194, .7); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line); }
.btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: var(--ink); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-border: #fff; }
.btn-light:hover { --btn-bg: var(--blue-50); --btn-fg: var(--navy-900); --btn-border: var(--blue-50); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.45); }
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-border: #fff; box-shadow: none; }
.btn-sm { min-height: 40px; padding: .5em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; color: var(--blue-600); text-decoration: none;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #c9d4df; font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--blue-500); }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 991px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* The translucent blur lives on a pseudo-element: a backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and collapse it to the header's height */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); }
@supports (backdrop-filter: blur(8px)) { .site-header::before { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,33,54,.5); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 64px; height: 64px; }
@media (max-width: 1060px) { .brand img { width: 54px; height: 54px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.brand-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav > ul a {
  display: block; padding: 9px 12px; border-radius: 999px;
  color: var(--ink); font-size: .93rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
@media (min-width: 1061px) and (max-width: 1240px) {
  .header-inner { gap: 16px; }
  .main-nav > ul a { padding-inline: 9px; font-size: .9rem; }
  .brand-tag { display: none; }
}
.main-nav > ul a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav > ul a[aria-current] { color: var(--blue-600); background: var(--blue-50); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink); text-decoration: none; font-size: .93rem; white-space: nowrap;
}
.header-phone span.icon-circle { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.header-phone svg { width: 17px; height: 17px; }
.header-phone:hover { color: var(--blue-600); }
.header-phone:hover span.icon-circle { background: var(--blue-600); color: #fff; }
.header-phone span.icon-circle { transition: background .2s, color .2s; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 14px;
  background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav-extra { display: none; }

@media (max-width: 1060px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn, .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 32px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul a { padding: 16px 4px; border-radius: 0; font-size: 1.1rem; }
  .main-nav > ul a:hover, .main-nav > ul a[aria-current] { background: none; }
  .mobile-nav-extra { display: grid; gap: 12px; margin-top: 24px; }
  .mobile-nav-extra p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-tag { display: none; } .nav-toggle .label { display: none; } }

/* ---------- Mobile action bar ---------- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(11,33,54,.4);
  gap: 10px;
}
.mobile-cta .btn { flex: 1; min-height: 48px; padding-inline: .8em; }
@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.nav-open .mobile-cta { display: none; }
}

/* ---------- Floating action buttons (GPS left, WhatsApp right) ---------- */
.fab {
  position: fixed; z-index: 44; bottom: calc(24px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; min-width: 56px; padding: 0 16px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
  box-shadow: 0 10px 24px -8px rgba(7, 23, 38, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(7, 23, 38, .55); }
.fab svg { width: 24px; height: 24px; }
.fab-gps { left: 20px; background: var(--navy-800); }
.fab-gps:hover { background: var(--navy-700); }
.fab-whatsapp { right: 20px; background: #1da851; }
.fab-whatsapp:hover { background: #178c43; }
.fab:focus-visible { outline-color: var(--blue-500); outline-offset: 4px; }
@media (max-width: 767px) {
  /* Sit above the mobile call/quote bar, icon only */
  .fab { bottom: calc(82px + env(safe-area-inset-bottom)); width: 52px; height: 52px; min-width: 0; padding: 0; justify-content: center; }
  .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .fab-gps { left: 14px; }
  .fab-whatsapp { right: 14px; }
}
body.nav-open .fab { display: none; }

/* Attention animations: a soft halo pulse + a small icon motion every few seconds */
.fab { isolation: isolate; }
.fab::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: inherit; animation: fab-halo 2.4s ease-out infinite;
}
/* Brand blue halo: the navy button colour would vanish on navy sections */
.fab-gps::before { background: var(--blue-500); animation-delay: 1.2s; }
.fab-whatsapp svg { transform-origin: 50% 60%; animation: fab-ring 4s ease-in-out infinite; }
.fab-gps svg { animation: fab-nudge 4s ease-in-out 1s infinite; }
.fab:hover::before, .fab:hover svg, .fab:focus-visible::before, .fab:focus-visible svg { animation: none; }
@keyframes fab-halo {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.35, 1.6); opacity: 0; }
}
@keyframes fab-ring {
  0%, 76%, 100% { transform: rotate(0); }
  80% { transform: rotate(-14deg); }
  84% { transform: rotate(12deg); }
  88% { transform: rotate(-8deg); }
  92% { transform: rotate(5deg); }
}
@keyframes fab-nudge {
  0%, 78%, 100% { transform: translate(0, 0); }
  84% { transform: translate(3px, -3px); }
  90% { transform: translate(0, 0); }
  94% { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
  .fab::before, .fab svg { animation: none !important; }
  .fab::before { opacity: 0; }
}

/* ---------- Typography helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue-600); margin: 0 0 14px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker-copper { color: var(--copper-600); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); }
.text-center { text-align: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 4rem + 3vw, 104px) 0; }
.section-tight { padding: clamp(40px, 3rem + 1vw, 64px) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-900); color: #c9d4df; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 clamp(32px, 2rem + 1vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 2rem + 1vw, 52px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  padding: clamp(40px, 2rem + 4vw, 96px) 0 clamp(56px, 3rem + 4vw, 112px);
}
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(26,138,224,.12), transparent); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 4vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--blue-600); }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-call { font-size: .95rem; color: var(--muted); margin-bottom: 30px; max-width: 520px; }
.hero-call a { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hero-call a:hover { color: var(--blue-600); text-decoration: underline; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.trust-list li { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.trust-list svg { width: 20px; height: 20px; color: var(--success); }

.hero-media { position: relative; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; max-height: 600px; margin-left: auto; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Editorial duo: the group photo sits top-left, the rooftop photo is offset
   bottom-right and overlaps only its lower edge (legs/ground), so every face
   stays visible. Negative margins in % are width-based: the ratio holds at every size. */
.hero-grid:has(.hero-duo) { grid-template-columns: 1fr 1.05fr; }
.hero-duo { isolation: isolate; padding-bottom: 4%; }
.hero-duo::before {
  content: ""; position: absolute; z-index: -1; right: -3%; top: 9%; width: 64%; bottom: 0;
  border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(26,138,224,.16), rgba(26,138,224,.04));
}
.hero-duo::after {
  content: ""; position: absolute; z-index: -1; left: -4%; bottom: 2%; width: 26%; aspect-ratio: 1;
  background: radial-gradient(var(--blue-500) 1.5px, transparent 1.8px) 0 0 / 14px 14px; opacity: .35;
}
.hero-duo-main, .hero-duo-inset { overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-duo-main { position: relative; z-index: 1; width: 88%; aspect-ratio: 16/10; border-radius: var(--radius-lg); }
.hero-duo-inset {
  position: relative; z-index: 2; width: 46%; aspect-ratio: 4/3; margin-block-start: -13%; margin-inline-start: auto;
  border-radius: var(--radius); border: 6px solid #fff;
}
.hero-duo img { width: 100%; height: 100%; object-fit: cover; }
.hero-duo-inset img { object-position: 50% 45%; }
.hero-photo-2 {
  position: absolute; left: -7%; bottom: -6%; width: 42%;
  border-radius: var(--radius); overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.hero-photo-2 img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; right: -14px; top: 28px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.35; color: var(--text); max-width: 290px;
}
.hero-badge strong { display: block; font-size: .95rem; white-space: nowrap; }
.hero-badge .badge-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.hero-badge svg { width: 22px; height: 22px; }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin: 8px auto 0; width: 100%; }
  /* Single column: photos first, then the headline (visual order only, the HTML order is unchanged) */
  .hero-grid > .hero-media { order: -1; margin: 0 auto; }
  .hero-photo { aspect-ratio: 5/4; margin: 0; }
  .hero-grid:has(.hero-duo) { grid-template-columns: 1fr; }
  .hero-photo-2 { left: auto; right: 6%; bottom: -26px; width: 40%; }
  .hero-badge { right: auto; left: 12px; top: auto; bottom: 16px; }
}
@media (max-width: 575px) {
  .trust-list { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-photo-2 { display: none; }
  .hero-duo-main { width: 92%; }
  .hero-duo-inset { width: 52%; margin-block-start: -12%; border-width: 4px; }
  .hero-duo::after { left: -2%; width: 30%; background-size: 12px 12px; }
  .hero-badge { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

/* ---------- Home hero (v2): navy band, text + photo mosaic, service shortcuts ---------- */
.hero.hero-v2 {
  isolation: isolate; color: #c9d4df;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(26,138,224,.28), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(26,138,224,.14), transparent 70%),
    var(--navy-900);
  padding: clamp(40px, 2rem + 3.5vw, 88px) 0 clamp(28px, 1.5rem + 2vw, 48px);
}
.hero.hero-v2::before { content: none; }
.hero-v2-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-v2 .kicker { color: #8cc8f5; }
.hero-v2 h1 { color: #fff; font-size: clamp(2.05rem, 1.25rem + 2.2vw, 3.15rem); line-height: 1.12; margin-bottom: .45em; }
.hero-v2 h1 .accent { color: #6db8f2; }
.hero-v2 .lead { color: #c9d4df; max-width: 560px; }
.hero-v2 .btn-ghost { --btn-fg: #fff; --btn-border: rgba(255,255,255,.4); }
.hero-v2 .btn-ghost:hover { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-border: #fff; }
.hero-v2 .hero-call { color: #9fb0c1; }
.hero-v2 .hero-call a { color: #fff; }
.hero-v2 .hero-call a:hover { color: #8cc8f5; }
.hero-v2 .trust-list li { color: #e3eaf1; }
.hero-v2 .trust-list svg { color: #4ade80; }

/* Mosaic: one wide photo on top, two below */
.hero-v2-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--navy-800); box-shadow: 0 24px 48px -28px rgba(0,0,0,.7); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile:not(.hero-tile-main) { aspect-ratio: 4/3; }
.hero-tile-main { grid-column: 1 / -1; aspect-ratio: 16/9; border-radius: var(--radius-lg); }
.hero-tile-main img { object-position: 50% 35%; }
.hero-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }

/* Service shortcuts */
.hero-services { margin-top: clamp(28px, 3vw, 48px); padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid rgba(255,255,255,.1); }
.hero-services ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-services a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
  color: #e3eaf1; font-size: .92rem; font-weight: 600; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.hero-services a:hover { background: rgba(26,138,224,.22); border-color: rgba(140,200,245,.5); color: #fff; }
.hero-services svg { width: 18px; height: 18px; color: #8cc8f5; }

@media (max-width: 991px) {
  .hero-v2-grid { grid-template-columns: minmax(0, 1fr); }
  /* Photos first on tablet and mobile (visual order only) */
  .hero-v2-media { order: -1; max-width: 640px; width: 100%; margin: 0 auto; }
  .hero-v2-text { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
  .hero-v2-media { gap: 10px; }
  .hero-tile-main { aspect-ratio: 16/10; }
  .hero-v2 .hero-actions .btn { flex: 1 1 100%; }
  .hero-v2 .trust-list { flex-direction: column; gap: 10px; }
  /* Shortcuts: one swipeable row instead of a tall stack of pills */
  .hero-services { margin-inline: calc(var(--gutter) * -1); }
  .hero-services ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--gutter) 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .hero-services ul::-webkit-scrollbar { display: none; }
  .hero-services li { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--navy-900); color: #d5dee8; overflow: hidden; padding: clamp(40px, 2rem + 3vw, 80px) 0; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; left: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26,138,224,.22), transparent);
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero:not(.has-image) .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); background: var(--navy-800); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-media { aspect-ratio: 16/9; max-width: 640px; }
}
.page-hero h1 { color: #fff; max-width: 820px; margin-bottom: .35em; }
.page-hero .lead { color: #d5dee8; max-width: 640px; margin-bottom: 0; }
.page-hero .kicker, .section-navy .kicker { color: #8cc8f5; }
.page-hero .lead a { color: #fff; font-weight: 700; white-space: nowrap; }
.mt-section { margin-top: clamp(48px, 6vw, 80px); }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.breadcrumb { margin: 0 0 18px; font-size: .86rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: #a9b7c6; }
.breadcrumb li + li::before { content: "/"; color: #6e8297; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 640px) { .breadcrumb li[aria-current] { display: none; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 1rem + .8vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card-tag {
  align-self: flex-start; margin-bottom: 12px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue-700); background: var(--blue-50); padding: 4px 10px; border-radius: 999px;
}
.card-tag.is-copper { color: var(--copper-700); background: var(--copper-100); }
.card-title { font-size: 1.14rem; margin-bottom: 10px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-text { flex: 1; font-size: .96rem; margin-bottom: 18px; }
.card .link-arrow { position: relative; z-index: 2; }
.card:focus-within { box-shadow: 0 0 0 3px var(--blue-500); }
.card:focus-within a:focus-visible { outline: none; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .photo-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.split-media .photo-main img { width: 100%; height: 100%; object-fit: cover; }
.split-media .photo-inset {
  position: absolute; right: -24px; bottom: -32px; width: 42%;
  border-radius: var(--radius); overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 1;
}
.split.reverse .split-media .photo-inset { right: auto; left: -24px; }
.split-media .photo-inset img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media .photo-inset { right: 12px; bottom: -22px; width: 34%; }
  .split.reverse .split-media .photo-inset { left: auto; right: 12px; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 34px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fc2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 575px) { .check-list.cols-2 { grid-template-columns: 1fr; } }
.check-list.is-copper li::before {
  background-color: var(--copper-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2541c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Features (why us) ---------- */
.feature { padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 18px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature p { font-size: .95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .85rem; font-weight: 800; letter-spacing: .1em; color: #8cc8f5; margin-bottom: 14px;
}
.steps h3 { font-size: 1.06rem; margin-bottom: 6px; }
.steps p { font-size: .94rem; margin: 0; color: #b9c6d3; }
@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  font-size: .84rem; font-weight: 600; color: #fff; line-height: 1.35;
  background: linear-gradient(0deg, rgba(7,23,38,.85), rgba(7,23,38,0));
}
.gallery figure[hidden] { display: none; }
@media (max-width: 991px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; } .gallery figure.wide, .gallery figure.tall { grid-column: auto; grid-row: auto; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; transition: all .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---------- Spotlight (case study) ---------- */
.spotlight { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--navy-900); color: #c9d4df; border-radius: var(--radius-lg); overflow: hidden; }
.spotlight-media { min-height: 340px; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.spotlight-body h3 { color: #fff; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
.spotlight-body .kicker { color: #8cc8f5; }
.spotlight-body .btn { align-self: flex-start; }
.tag-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } .spotlight-media { min-height: 0; aspect-ratio: 16/10; } }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.testimonial svg.quote { width: 32px; height: 32px; color: var(--blue-500); margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 20px; font-size: 1.04rem; color: var(--ink); line-height: 1.65; flex: 1; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { font-size: .9rem; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--muted); }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.brands img { height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.brands a:hover img, .brands span:hover img { filter: none; opacity: 1; }
.brands-label { text-align: center; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 26px; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(48px, 3rem + 2vw, 80px) 0; background: var(--bg-soft); }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: clamp(30px, 4vw, 56px); border-radius: var(--radius-lg);
  background: var(--navy-900); color: #c9d4df;
}
.cta-box::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26,138,224,.35), transparent);
}
.cta-box h2 { color: #fff; margin-bottom: .35em; }
.cta-box .kicker { color: #8cc8f5; }
.cta-box p { margin: 0; }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-actions .btn { width: 100%; }
.cta-meta { font-size: .86rem; text-align: center; color: #9fb0c1; margin: 4px 0 0; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } }

/* ---------- Content layout (service/article pages) ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 991px) { .content-layout { grid-template-columns: 1fr; } }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose.center { margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.4em; display: grid; gap: .45em; }
.prose li::marker { color: var(--blue-600); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.prose .intro { font-size: 1.15rem; color: var(--ink); }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.figure-pair img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 480px) { .figure-pair { grid-template-columns: 1fr; } }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 991px) { .sidebar { position: static; } }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.side-card h2, .side-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.side-card p { font-size: .95rem; }
.side-card.is-navy { background: var(--navy-900); border-color: var(--navy-900); color: #c9d4df; }
.side-card.is-navy h2 { color: #fff; }
.side-card .btn { width: 100%; margin-top: 10px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--blue-600); }
.side-nav svg { width: 16px; height: 16px; color: var(--muted); }

.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

table.specs { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .96rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.specs th, table.specs td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
table.specs th { background: var(--bg-soft); width: 40%; color: var(--ink); font-weight: 700; }
table.specs td { overflow-wrap: anywhere; }
@media (max-width: 480px) { table.specs th, table.specs td { display: block; width: 100%; } table.specs th { border-bottom: 0; padding-bottom: 2px; } }

/* ---------- Products ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.product-gallery { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 24px; }
.product-gallery img { margin: 0 auto; }
.product-sku { font-size: .88rem; color: var(--muted); }
.product-card .card-media { aspect-ratio: 1; background: #fff; padding: 18px; }
.product-card .card-media img { object-fit: contain; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 991px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); margin-bottom: .3em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cfd8e1; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435160' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-inline-end: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb0c1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(26,138,224,.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.15); }
.field-error { display: block; min-height: 0; margin-top: 6px; font-size: .86rem; font-weight: 600; color: var(--danger); }
.field-error:empty { display: none; }
.captcha-q { white-space: nowrap; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.captcha-row { display: flex; gap: 10px; max-width: 260px; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-refresh {
  flex-shrink: 0; width: 48px; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.captcha-refresh:hover { background: var(--blue-50); color: var(--blue-600); }
.captcha-refresh svg { width: 20px; height: 20px; }
.field-hint { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.check-field { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field.check-field input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--blue-600); cursor: pointer; }
.field.check-field label { margin: 0; font-weight: 500; line-height: 1.5; cursor: pointer; }
.check-field .field-error { grid-column: 2; margin-top: 0; }
.check-field input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; flex: 1 1 260px; }
.form-status { display: none; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e7f6ee; color: #0f5c37; border: 1px solid #b8e2cb; }
.form-status.is-error { background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bc; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-item .info-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.info-item .info-icon svg { width: 22px; height: 22px; }
.info-item .info-label { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.info-item .info-value { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.info-item a.info-value { text-decoration: none; }
.info-item a.info-value:hover { color: var(--blue-600); text-decoration: underline; }
.map-embed { margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-actions { margin-top: 14px; }

/* ---------- Documents ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: .9rem; transition: border-color .2s, background-color .2s; }
.doc-btn:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); color: #fff; }
.doc-btn svg { width: 22px; height: 22px; color: #8cc8f5; }
.doc-btn .doc-title { display: block; font-weight: 700; }
.doc-btn .doc-sub { display: block; font-size: .78rem; color: #9fb0c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9b7c6; font-size: .94rem; }
.footer-main { padding: clamp(48px, 3rem + 2vw, 80px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
/* The logo's lettering is dark: on the navy footer it sits on a white disc */
.site-footer .brand img { background: #fff; border-radius: 50%; padding: 3px; box-sizing: content-box; }
.site-footer .brand-tag { color: #8796a6; }
.site-footer a { color: #d5dee8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: #8cc8f5; margin-top: 4px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background-color .2s; }
.social-link:hover { background: var(--blue-600); }
.social-link svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 96px; font-size: .85rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }

/* ---------- 404 ---------- */
.not-found { text-align: center; max-width: 560px; margin: 0 auto; }
.not-found .btn-row { justify-content: center; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* ---------- Language switcher (top bar, mobile menu, footer) ---------- */
.lang-switch { list-style: none; margin: 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 34px; min-height: 30px; padding: 0 5px;
  border-radius: 6px; text-decoration: none; transition: background-color .2s;
}
.lang-switch .flag { display: block; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.25); opacity: .75; transition: opacity .2s; }
.lang-switch .flag svg { display: block; width: 100%; height: 100%; }
.lang-switch a:hover .flag, .lang-switch a[aria-current] .flag { opacity: 1; }
.lang-switch a[aria-current] .flag { box-shadow: 0 0 0 2px #fff; }
.topbar .lang-switch a:hover, .footer-bottom .lang-switch a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.mobile-nav-extra .lang-switch { justify-content: center; gap: 10px; margin-top: 4px; }
.mobile-nav-extra .lang-switch a { min-width: 52px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; }
.mobile-nav-extra .lang-switch .flag { width: 28px; height: 19px; opacity: 1; box-shadow: 0 0 0 1px rgba(15,29,43,.15); }
.mobile-nav-extra .lang-switch a[aria-current] { border-color: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-600); }
.mobile-nav-extra .lang-switch a[aria-current] .flag { box-shadow: 0 0 0 1px rgba(15,29,43,.15); }
.footer-bottom .lang-switch { flex-basis: 100%; }
.footer-bottom .credit { flex-basis: 100%; font-size: .8rem; color: #8796a6; }
.footer-bottom .credit a { color: #c9d4df; font-weight: 700; }

/* ---------- Right-to-left (Arabic) ---------- */
html[lang="ar"] { --font: "Tajawal", "Manrope", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; }
html[lang="ar"] body { font-size: 1.06rem; }
/* Letter-spacing breaks the joining of Arabic letters; uppercase has no meaning in Arabic */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
html[lang="ar"] .kicker, html[lang="ar"] .card-tag, html[lang="ar"] .site-footer h2, html[lang="ar"] .info-label, html[lang="ar"] .brands-label { text-transform: none; font-size: .9rem; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .fab-gps { left: auto; right: 20px; }
[dir="rtl"] .fab-whatsapp { right: auto; left: 20px; }
@media (max-width: 767px) {
  [dir="rtl"] .fab-gps { right: 14px; }
  [dir="rtl"] .fab-whatsapp { left: 14px; }
}
[dir="rtl"] .field select { background-position: left 12px center; }
[dir="rtl"] .breadcrumb li + li::before { content: "\\"; }
[dir="rtl"] .hero-duo::before { right: auto; left: -3%; }
[dir="rtl"] .hero-duo::after { left: auto; right: -4%; }
[dir="rtl"] .hero::before { right: auto; left: -10%; }
[dir="rtl"] .split-media .photo-inset { right: auto; left: -24px; }
[dir="rtl"] .split.reverse .split-media .photo-inset { left: auto; right: -24px; }
@media (max-width: 991px) {
  [dir="rtl"] .split-media .photo-inset, [dir="rtl"] .split.reverse .split-media .photo-inset { right: auto; left: 12px; }
}
[dir="rtl"] .cta-box::before { right: auto; left: -120px; }
/* In RTL the scrollable overflow is on the left: park the honeypot on the right instead */
[dir="rtl"] .hp-field { left: auto; right: -9999px; }
/* Phone numbers keep their left-to-right digit groups inside Arabic text */
[dir="rtl"] a[href^="tel:"]:not(.btn):not(.header-phone) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* ---------- FAQ (answers always visible: readable, quotable) ---------- */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.faq-item h3 { font-size: 1.05rem; margin: 0 0 .5em; }
.faq-item p { margin: 0; color: var(--text); }
@media (max-width: 767px) { .faq-list { grid-template-columns: 1fr; } }

/* ---------- Key facts (definition list) ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 24px; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 575px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover .card-media img, .gallery figure:hover img { transform: none; }
}

@media print {
  .topbar, .site-header, .mobile-cta, .cta-band, .site-footer, .sidebar { display: none !important; }
  body { padding: 0; }
}


/* ---------- Adnani Electric additions ---------- */
/* Brand mark (bolt + roof) is not circular: no white disc needed in the header */
.brand img { object-fit: contain; }
.site-footer .brand img { border-radius: 14px; padding: 6px; width: 52px; height: 52px; }

/* Company seal shown over the About photo */
.split-media .photo-inset.is-logo { background: #fff; aspect-ratio: 1; border-radius: 50%; padding: 6px; }
.split-media .photo-inset.is-logo img { object-fit: contain; border-radius: 50%; }

/* Client references */
.ref-band, .ref-grid { list-style: none; margin: 0; padding: 0; }
.ref-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.ref-band li { display: grid; place-items: center; width: 168px; height: 96px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ref-band img { width: 100%; height: 70px; object-fit: contain; }
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ref-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ref-logo { display: grid; place-items: center; height: 170px; padding: 24px 28px; }
.ref-logo img { width: 100%; height: 122px; object-fit: contain; }
.ref-card p { margin: 0; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: .96rem; line-height: 1.4; text-align: center; flex: 1; display: grid; place-items: center; }
.ref-note { margin: 22px 0 0; text-align: center; font-size: .84rem; color: var(--muted); }
@media (max-width: 860px) { .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ref-grid { grid-template-columns: 1fr; } .ref-band li { width: calc(50% - 7px); height: 84px; } .ref-band img { height: 58px; } }

/* Job-site videos */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.video-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--navy-950); }
.video-card.is-landscape video { aspect-ratio: 9 / 16; object-fit: contain; }
.video-card figcaption { padding: 12px 16px; font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
@media (max-width: 991px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Key activities list (About page) */
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-list a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.activity-list a:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.activity-list a > svg:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.activity-list a > svg:last-child { width: 18px; height: 18px; color: var(--muted); margin-inline-start: auto; }
.activity-list a > span { display: flex; flex-direction: column; gap: 2px; font-size: .93rem; line-height: 1.45; }
.activity-list strong { font-size: 1.02rem; }
@media (max-width: 767px) { .activity-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .activity-list a { transition: none; } .activity-list a:hover { transform: none; } }