/* Palette sampled from the PowerX logo */
:root {
  --navy-700: #0b2463;
  --navy-500: #1e3a8a;
  --blue-500: #0a6fd6;
  --blue-300: #2ea3f2;
  --green-500: #1f9a3a;
  --yellow-500: #f5b400;
  --orange-500: #f26a0f;
  --red-500: #e2421b;
  --ink: #1c2333;
  --muted: #5b6475;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --header-h: 90px;
  --shadow: 0 10px 30px rgba(11, 36, 99, 0.10);
  --brand-gradient: linear-gradient(90deg, var(--navy-500), var(--blue-500), var(--green-500), var(--yellow-500), var(--orange-500));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--navy-700); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(1180px, 92%); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: 0.8em;
}
.eyebrow-light { color: var(--yellow-500); }

.gradient-text {
  background: linear-gradient(90deg, var(--blue-500), var(--green-500), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.energy-bar { height: 6px; background: var(--brand-gradient); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  background: linear-gradient(90deg, var(--navy-500), var(--blue-500));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 111, 214, 0.3); }
.btn-outline { background: transparent; color: var(--navy-500); border-color: var(--navy-500); }
.btn-outline:hover { background: var(--navy-500); color: #fff; }
.btn-light { background: #fff; color: var(--navy-700); }
.btn-sm { padding: 0.55em 1.2em; font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; font-weight: 500; }
.nav a:not(.btn) { position: relative; color: var(--navy-700); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 3px;
  background: var(--brand-gradient);
  transition: width 0.25s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-item { position: relative; }
.caret { font-size: 0.7em; margin-left: 0.15rem; }
.sub-menu {
  position: absolute; top: calc(100% + 14px); left: -1rem;
  min-width: 250px; padding: 0.5rem;
  background: #fff; border-radius: 12px;
  border-top: 3px solid var(--blue-500);
  box-shadow: 0 18px 40px rgba(11, 36, 99, 0.16);
  display: grid;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* invisible bridge so the menu stays open while the pointer moves down to it */
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.92rem; }
.nav .sub-menu a::after { display: none; }
.nav .sub-menu a:hover { background: var(--bg-alt); color: var(--blue-500); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy-700); border-radius: 2px; }

/* Hero: full-width photo with navy overlay */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  background: var(--navy-700);
}
.hero-media {
  position: absolute; inset: 0;
  background: url("../assets/gallery/substation-switchyard.jpg") center / cover no-repeat;
  animation: hero-zoom 14s ease-in-out infinite alternate;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.15) translateX(-2%); } }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11, 36, 99, 0.92) 0%, rgba(11, 36, 99, 0.8) 40%, rgba(11, 36, 99, 0.3) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center;
  padding: 5rem 0;
}
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); color: #fff; }
.hero .gradient-text { background-image: linear-gradient(90deg, #5cc8ff, #7ee08a, #ffb347); }
.hero p { color: rgba(255, 255, 255, 0.85); }
.hero strong { color: #fff; }
.lead { font-size: 1.1rem; max-width: 600px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn:not(.btn-outline) { background: linear-gradient(90deg, var(--blue-500), var(--green-500)); }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy-700); }
.hero .energy-bar { position: relative; z-index: 2; }
.hero-badge {
  position: absolute; right: 0; bottom: 6rem;
  padding: 0.9rem 1.2rem 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border-left: 5px solid var(--green-500);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}
.hero-badge strong { display: block; color: var(--navy-700); font-size: 0.95rem; }
.hero-badge span { font-size: 0.8rem; color: var(--muted); }

/* Sections */
.section { padding: 3rem 0 4rem; }
/* menu links land flush under the sticky header, and each section fills one screen */
section[id] { scroll-margin-top: var(--header-h); }
.section[id] {
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-start;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(135deg, var(--navy-700), var(--navy-500) 60%, var(--blue-500)); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.82); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
#services .section-head { max-width: 760px; }

/* About */
.about-grid { display: block; }
.about-grid > div:first-child {
  max-width: 1040px;
  margin: 0 auto 2.5rem;
}
.about-grid > div:first-child > p:not(.eyebrow) {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.values { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.values > li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; border-radius: var(--radius); background: var(--bg-alt);
}
.values > li { height: 100%; }
.values > li > div { flex: 1; min-width: 0; }
.values h3 { margin-bottom: 0.65rem; font-size: 1.05rem; }
.values p { margin: 0; }
.values ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.values > li li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.values > li li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 0.35em; }
.dot-blue { background: var(--blue-500); }
.dot-green { background: var(--green-500); }
.dot-orange { background: var(--orange-500); }

/* Services tabs */
.svc-tabs { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; }
.svc-list { display: grid; gap: 0.7rem; position: sticky; top: 110px; }
.svc-tab {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; padding: 0.9rem 1rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--navy-700);
  background: #fff; border: 1px solid #e1e7ef; border-left: 4px solid transparent; border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.svc-tab:hover { transform: translateX(4px); border-left-color: var(--accent); }
.svc-tab[aria-selected="true"] { border-left-color: var(--accent); box-shadow: var(--shadow); }
.svc-tab strong { display: block; font-size: 0.95rem; }
.svc-tab small { display: block; color: var(--muted); font-size: 0.8rem; }
.svc-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, white);
  transition: background 0.2s ease;
}
.svc-icon svg { width: 26px; height: 26px; fill: var(--accent); stroke: var(--accent); }
.svc-tab[aria-selected="true"] .svc-icon { background: var(--accent); }
.svc-tab[aria-selected="true"] .svc-icon svg { fill: #fff; stroke: #fff; }

.svc-panel {
  display: grid; grid-template-columns: 1fr 1.1fr;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--accent);
  animation: panel-in 0.4s ease;
}
.svc-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.svc-visual { position: relative; min-height: 100%; }
.svc-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 36, 99, 0.6), transparent 50%);
}
.svc-tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: #fff; color: var(--navy-700); font-size: 0.8rem; font-weight: 700;
}
.svc-body { padding: 2rem 2.2rem; }
.svc-count { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; color: var(--accent); }
.svc-body h3 { font-size: 1.5rem; margin: 0.3rem 0 0.6rem; }
.svc-body ul { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.svc-body li { position: relative; padding-left: 1.4rem; font-size: 0.93rem; color: var(--muted); line-height: 1.5; }
.svc-body li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* Clients & partners */
.client-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.client-groups h3 { margin-bottom: 1rem; white-space: nowrap; font-size: 1.1rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chips li {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid #dde4ee;
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.9rem;
}
.chips-alt li { background: #fff; border-color: var(--green-500); color: var(--green-500); }
.brand-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.brand-grid-suppliers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-tile {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid #dde4ee;
  border-radius: 10px;
  color: var(--navy-700);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 5px 16px rgba(11, 36, 99, 0.06);
}
.brand-tile.logo-only {
  min-height: 112px;
  justify-content: center;
}
.brand-tile.logo-only > img {
  display: block;
  width: min(180px, 100%);
  height: 72px;
  object-fit: contain;
}
.brand-mark {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-mark-wide { background: var(--blue-500); }
.brand-mark-cg { background: var(--orange-500); font-size: 1rem; }
.brand-mark-poly { background: var(--green-500); font-size: 1.4rem; }
.brand-logo {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e1e7ef;
}
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.project-banner {
  height: 170px;
  background: linear-gradient(135deg, var(--from), var(--to));
  display: grid; place-items: center;
  position: relative;
}
.project-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 22px);
}
.project-banner span {
  font-size: 2.4rem; font-weight: 800; color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.project-body { padding: 1.5rem 1.6rem 1.8rem; }
.project-meta { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--blue-500); }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.checklist li {
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-500), var(--yellow-500));
  color: var(--navy-700); font-weight: 800; font-size: 0.85rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; color: var(--muted); }
.contact-info strong { color: var(--navy-700); }
.contact-form {
  display: grid; gap: 1rem;
  background: var(--bg-alt);
  padding: 2rem; border-radius: var(--radius);
  border-top: 5px solid transparent;
  border-image: var(--brand-gradient) 1;
}
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--navy-700); }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-weight: 400;
  padding: 0.75em 0.9em;
  border: 1px solid #d5dbe5; border-radius: 10px; background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--blue-300); border-color: transparent; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--green-500); }
.form-status.err { color: var(--red-500); }

/* Footer */
.site-footer { background: #0a1a45; color: rgba(255, 255, 255, 0.75); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem 0; }
.footer-logo { height: 52px; width: auto; background: #fff; padding: 6px 12px; border-radius: 10px; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a:hover { color: var(--yellow-500); }
.site-footer p { margin: 0; color: inherit; font-size: 0.9rem; }

/* WhatsApp widget */
.wa-widget { position: fixed; right: 24px; bottom: 24px; z-index: 100; }
.wa-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }
.wa-panel {
  position: absolute; right: 0; bottom: 76px;
  width: min(340px, calc(100vw - 48px));
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.wa-panel[hidden] { display: none; }
.wa-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; background: #075e54; color: #fff; }
.wa-head img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; }
.wa-head strong { display: block; font-size: 0.95rem; }
.wa-head span { font-size: 0.75rem; opacity: 0.85; }
.wa-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wa-body { padding: 1rem; background: #ece5dd; max-height: 300px; overflow-y: auto; }
.wa-bubble { background: #fff; color: var(--ink); padding: 0.7rem 0.9rem; border-radius: 0 12px 12px 12px; font-size: 0.9rem; margin: 0 0 0.8rem; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.wa-options { display: grid; gap: 0.5rem; }
.wa-options[hidden] { display: none; }
.wa-options button {
  font: inherit; font-size: 0.85rem; text-align: left; cursor: pointer;
  padding: 0.55rem 0.8rem; border-radius: 10px;
  border: 1px solid #25d366; background: #fff; color: #075e54;
}
.wa-options button:hover { background: #dcf8c6; }
.wa-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  padding: 0.55rem 0.7rem; border-top: 1px solid #e7ece9; background: #fff;
}
.wa-footer a {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0.35rem 0.45rem; border-radius: 8px;
  color: #075e54; font-size: 0.78rem; font-weight: 600; text-align: center;
}
.wa-footer a:hover { background: #f0f7f2; }
.wa-footer a:focus-visible { outline: 2px solid #25d366; outline-offset: 1px; }

/* Gallery */
.g-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2rem; }
.g-filter {
  font: inherit; font-weight: 600; font-size: 0.9rem;
  padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer;
  border: 1px solid #d5dbe5; background: #fff; color: var(--navy-700);
  transition: background 0.2s ease, color 0.2s ease;
}
.g-filter:hover { border-color: var(--blue-500); }
.g-filter[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.g-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 14px;
}
.g-item {
  position: relative; overflow: hidden;
  padding: 0; border: 0; border-radius: 14px; cursor: zoom-in;
  background: var(--navy-700);
  box-shadow: 0 8px 20px rgba(11, 36, 99, 0.12);
}
.g-item[hidden] { display: none; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; }
.g-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 1rem 1.1rem; text-align: left;
  background: linear-gradient(to top, rgba(11, 36, 99, 0.88), rgba(11, 36, 99, 0) 55%);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.g-overlay em {
  font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy-700); background: var(--yellow-500);
  padding: 0.2rem 0.55rem; border-radius: 4px; margin-bottom: 0.4rem;
}
.g-overlay strong { color: #fff; font-size: 1rem; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.08); }
.g-item:hover .g-overlay, .g-item:focus-visible .g-overlay { opacity: 1; transform: none; }
.g-item:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }

.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5, 15, 40, 0.92); }
.lightbox figure { margin: 0; max-width: min(1100px, 86vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { color: #fff; margin-top: 1rem; font-weight: 600; }
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.12); border-radius: 50%;
  width: 52px; height: 52px; font-size: 2rem; line-height: 1;
  transition: background 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc-panel { animation: none; }
  .hero-media { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero::before { background: rgba(11, 36, 99, 0.82); }
  .hero-inner { text-align: center; justify-content: center; padding-bottom: 7rem; }
  .hero-text, .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-badge { right: 50%; transform: translateX(50%); bottom: 1.5rem; white-space: nowrap; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-list { position: static; display: flex; overflow-x: auto; padding-bottom: 0.4rem; }
  .svc-tab { flex: 0 0 auto; width: auto; }
  .svc-tab:hover { transform: none; }
  .svc-tab small { display: none; }
  .svc-panel { grid-template-columns: 1fr; }
  .svc-visual { min-height: 220px; }
  .client-groups { grid-template-columns: 1fr; gap: 2rem; }
  .g-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 1.2rem;
    padding: 1.5rem; background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .nav.open { display: flex; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0; border-left: 3px solid var(--blue-500);
    border-radius: 0; min-width: 0; margin-top: 0.6rem; padding: 0 0 0 0.6rem;
  }
  .sub-menu::before, .caret { display: none; }
  .brand img { height: 60px; }
  :root { --header-h: 76px; }
  .nav-wrap { height: var(--header-h); }
  .nav { top: var(--header-h); }
}

@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; }
  .svc-body { padding: 1.5rem; }
  .values { grid-template-columns: 1fr; }
  .client-groups h3 { white-space: normal; }
  .brand-grid, .brand-grid-suppliers { grid-template-columns: 1fr; }
  .values > li li { font-size: 0.95rem; line-height: 1.55; }
  .values ul { gap: 0.75rem; }
  .section { padding: 2.5rem 0 3rem; }
  .footer-grid { flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; flex-wrap: wrap; }
  .g-grid { grid-auto-rows: 140px; gap: 10px; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
}

/* touch screens have no hover, so always show captions */
@media (hover: none) {
  .g-overlay { opacity: 1; transform: none; }
}
