/*
Theme Name: PowerMova
Theme URI: https://powermova.com/
Author: Key Communication / UAB Power Mova
Description: Mažmenos elektros paslaugos — brandbook v2 (iki 42 kV).
Version: 2.22.0
Requires at least: 6.0
Text Domain: powermova

Image credits: see assets/images/ATTRIBUTION.md (Unsplash License).
Lottie credits: see assets/lottie/ATTRIBUTION.md (Lottie Simple License).
Surfaces: warmed off-white (--pm-surface*) vs strict white — see BRAND note.
Radius: softer UI corners via --pm-radius (cards, buttons, inputs).
Cards: no resting border — soft graphite shadow lift from warm surface.
Display: Outfit (modern) — headings + header brand/nav/CTA; body IBM Plex Sans. Copper: true metal #B87333 (not orange).
*/

/* —— 2. Spalvos / tokens (vienintelis hex šaltinis) —— */
:root {
  --pm-graphite: #1A1D21;
  --pm-graphite-soft: #262A30;
  --pm-steel: #4A525C;
  /* Warmer concrete (was cool grey #E8E9EB) */
  --pm-concrete: #EBE4DC;
  --pm-white: #FFFFFF;
  /* True copper metal (classic) — was orange-leaning #C1621F */
  --pm-copper: #B87333;
  --pm-copper-hover: #A15C38;
  --pm-copper-soft: #F3E6DC;
  /* Lottie EV card metallic accents (JSON-mapped; CSS wash uses soft) */
  --pm-lottie-copper: #B87333;
  --pm-lottie-highlight: #E8B4A0;
  --pm-voltage: #E0B93C;
  --pm-success: #2F7A54;
  --pm-line: #333940;
  --pm-line-light: #D9D0C6;

  /* Softened page surfaces — copper-soft tint, not flood copper (~15% rule) */
  --pm-surface: #FBF7F3;
  --pm-surface-warm: #F8F1EA;
  --pm-surface-card: #FFFCFA;

  /* Softer rounded UI (was 2px brandbook) */
  --pm-radius: 10px;
  /* Graphite-based card lift (rgba of --pm-graphite) */
  --pm-shadow: 0 8px 24px rgba(26, 29, 33, 0.10);
  --pm-shadow-hover: 0 12px 32px rgba(26, 29, 33, 0.16);
  --pm-max: 1240px;
  --pm-gutter: 32px;
  --pm-section: 72px;
  --pm-header-h: 68px;

  --pm-font-display: "Outfit", Inter, system-ui, sans-serif;
  --pm-font-body: "IBM Plex Sans", Inter, system-ui, sans-serif;
  --pm-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (min-width: 768px) {
  :root { --pm-section: 112px; }
}

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

html {
  scroll-padding-top: calc(var(--pm-header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--pm-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-graphite);
  background: var(--pm-surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pm-copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pm-copper-hover); }

h1, h2, h3, h4 {
  font-family: var(--pm-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--pm-graphite);
  margin: 0 0 0.5em;
  text-transform: none;
}

h1 { font-size: 2.5rem; line-height: 1.08; }   /* 40px mobile */
h2 { font-size: 1.875rem; line-height: 1.12; } /* 30px */
h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 600; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

@media (min-width: 768px) {
  h1 { font-size: 4rem; line-height: 1.05; }     /* 64px */
  h2 { font-size: 2.75rem; line-height: 1.1; }   /* 44px */
  h3 { font-size: 1.375rem; }
  h4 { font-size: 1.2rem; }
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - (var(--pm-gutter) * 2), var(--pm-max));
  margin-inline: auto;
}

.narrow { width: min(100% - (var(--pm-gutter) * 2), 720px); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pm-white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--pm-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-steel);
  margin: 0 0 0.75rem;
}

.section-lead {
  color: var(--pm-steel);
  max-width: 42rem;
  margin: 0;
  font-size: 1.05rem;
}

.section-head { margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0.75rem; }

.section {
  padding: var(--pm-section) 0;
  background: var(--pm-surface);
}

.section--concrete { background: var(--pm-surface-warm); }
.section--graphite {
  background: var(--pm-graphite);
  color: var(--pm-concrete);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--pm-copper) 40%, transparent);
}
.section--graphite h2,
.section--graphite h3 { color: var(--pm-white); }
.section--graphite .eyebrow { color: var(--pm-voltage); }
.section--graphite .section-lead { color: var(--pm-concrete); opacity: 0.85; }

.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--pm-copper);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.85;
}
.section-head.is-inview h2::after {
  transform: scaleX(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.section--graphite .section-head h2::after {
  background: var(--pm-voltage);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-family: var(--pm-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--pm-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Header CTA — Outfit, compact (not shouting) */
.site-header .btn-header-cta {
  font-family: var(--pm-font-display);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  letter-spacing: 0.03em;
  min-height: 38px;
  padding: 0.45rem 1rem;
}

.btn-primary {
  background: var(--pm-copper);
  color: var(--pm-white);
  border-color: var(--pm-copper);
}
.btn-primary:hover {
  background: var(--pm-copper-hover);
  border-color: var(--pm-copper-hover);
  color: var(--pm-white);
}

.btn-secondary {
  background: transparent;
  color: var(--pm-copper);
  border-color: var(--pm-copper);
}
.btn-secondary:hover {
  background: var(--pm-copper-soft);
  color: var(--pm-copper-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--pm-white);
  border-color: var(--pm-line);
}
.btn-ghost:hover {
  border-color: var(--pm-copper);
  color: var(--pm-white);
}

.btn--block { width: 100%; }

/* —— Badge —— */
.badge-voltage {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-family: var(--pm-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pm-graphite);
  background: var(--pm-voltage);
  border-radius: var(--pm-radius);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--pm-header-h);
  background: var(--pm-graphite);
  border-bottom: 1px solid var(--pm-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--pm-header-h);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--pm-white);
  flex-shrink: 0;
}
.brand:hover { color: var(--pm-white); }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--pm-radius);
  background:
    linear-gradient(135deg, var(--pm-copper) 0 42%, transparent 42% 58%, var(--pm-voltage) 58% 100%);
  border: 1px solid var(--pm-line);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--pm-font-display);
  font-size: 1.125rem; /* 18px — compact wordmark */
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}
@media (min-width: 1024px) {
  .brand-text strong {
    font-size: 1.25rem; /* 20px desktop */
  }
}
.brand-text span {
  font-family: var(--pm-font-display);
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  color: var(--pm-steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem 1.1rem;
}

.nav a {
  font-family: var(--pm-font-display);
  color: var(--pm-concrete);
  text-decoration: none;
  font-size: 0.875rem; /* 14px mobile menu / base */
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
}
@media (min-width: 1024px) {
  .nav a {
    font-size: 0.9375rem; /* 15px desktop */
  }
}
.nav a:hover { color: var(--pm-white); }

.nav-item {
  position: relative;
}
.nav-item > button {
  background: none;
  border: none;
  font-family: var(--pm-font-display);
  color: var(--pm-concrete);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
@media (min-width: 1024px) {
  .nav-item > button {
    font-size: 0.9375rem;
  }
}
.nav-item > button:hover,
.nav-item > button[aria-expanded="true"] { color: var(--pm-white); }

.nav-item .chev {
  font-size: 9px;
  opacity: 0.7;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  background: var(--pm-graphite-soft);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  padding: 0.4rem;
  z-index: 60;
}
.nav-item.is-open .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--pm-concrete);
  border-radius: var(--pm-radius);
}
.nav-dropdown a:hover {
  background: var(--pm-graphite);
  color: var(--pm-white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--pm-white);
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
}

@media (max-width: 1023px) {
  .header-actions .btn-header-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: var(--pm-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--pm-gutter) 1.25rem;
    background: var(--pm-graphite-soft);
    border-bottom: 1px solid var(--pm-line);
  }
  .nav.is-open { display: flex; }
  .nav a,
  .nav-item > button {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pm-line);
    width: 100%;
    text-align: left;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    display: none;
    border: none;
    background: transparent;
    padding: 0 0 0.5rem 0.75rem;
  }
  .nav-item.is-open .nav-dropdown { display: block; }
  .nav-dropdown a {
    border-bottom: none;
    padding: 0.5rem 0;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--pm-graphite);
  color: var(--pm-white);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(26, 29, 33, 0.72), rgba(26, 29, 33, 0.70)),
    url("assets/images/hero-infrastructure.jpg") center / cover no-repeat;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--pm-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--pm-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  /* Full .container width (not a centered 44rem block); text+CTA left-aligned */
  text-align: left;
}

.hero .eyebrow { color: var(--pm-voltage); }

.hero h1 {
  color: var(--pm-white);
  margin-bottom: 1rem;
  max-width: 48rem;
  letter-spacing: -0.025em;
}

.hero-lead {
  color: var(--pm-concrete);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pm-line);
  font-family: var(--pm-font-mono);
  font-size: 12px;
  color: var(--pm-steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-meta strong {
  color: var(--pm-voltage);
  font-weight: 500;
}

/* —— Category tiles —— */
/* Service groups — uniform card grids with soft headings */
.service-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-group__head {
  margin-bottom: 1.25rem;
  max-width: 40rem;
}
.service-group__title {
  font-family: var(--pm-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--pm-graphite);
  margin: 0 0 0.35rem;
}
.service-group__note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--pm-steel);
  line-height: 1.5;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

.cat-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--pm-surface-card);
  border: none;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.cat-tile:hover {
  color: inherit;
  box-shadow: var(--pm-shadow-hover);
}

/* Same-size highlight — badge + soft copper ring via shadow, never double-width */
.cat-tile--featured {
  box-shadow:
    var(--pm-shadow),
    0 0 0 1px color-mix(in srgb, var(--pm-copper) 40%, transparent);
}
.cat-tile--featured:hover {
  box-shadow:
    var(--pm-shadow-hover),
    0 0 0 1px color-mix(in srgb, var(--pm-copper) 55%, transparent);
}

.cat-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--pm-concrete);
  border-bottom: 1px solid var(--pm-line-light);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.75rem;
  overflow: hidden;
}
.cat-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-tile__media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 29, 33, 0.55), rgba(26, 29, 33, 0.15));
  pointer-events: none;
}

/* Service card Lotties — light copper station (all homepage tiles) */
.cat-tile__media--lottie {
  /* Light warm surface so metallic copper illustration pops (not dark photo wash) */
  background:
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--pm-lottie-highlight) 55%, var(--pm-surface-card)) 0%, transparent 58%),
    linear-gradient(165deg, var(--pm-surface-card) 0%, var(--pm-surface) 55%, var(--pm-copper-soft) 100%);
}
.cat-tile__media--lottie::after {
  /* Minimal lift at footer edge only — keep media area light */
  background: linear-gradient(to top, color-mix(in srgb, var(--pm-graphite) 6%, transparent), transparent 45%);
}
.cat-tile__lottie {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.85rem 1.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  /* Keep Lottie off parent transform/opacity compositing traps (iOS Safari). */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.cat-tile__media--lottie .cat-tile__lottie canvas,
.svc-page__media--lottie .cat-tile__lottie canvas,
.svc-page__media--lottie .service-hero__lottie canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
  object-fit: contain;
}
/* Mobile / touch: once mounted, keep Lottie visible without waiting for hover */
@media (hover: none), (pointer: coarse) {
  .cat-tile__media--lottie.has-lottie .cat-tile__lottie,
  .svc-page__media--lottie.has-lottie .cat-tile__lottie,
  .svc-page__media--lottie.has-lottie .service-hero__lottie {
    opacity: 1;
    transition: none;
  }
}
.cat-tile__lottie svg {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
}
.cat-tile__media--lottie.has-lottie .cat-tile__lottie,
.svc-page__media--lottie.has-lottie .cat-tile__lottie {
  opacity: 1;
}
.cat-tile__media--lottie.has-lottie .cat-tile__fallback,
.svc-page__media--lottie.has-lottie .cat-tile__fallback {
  opacity: 0;
}
/* HTML icon badge covers copper-station Lottie icons — hide once animation mounts */
.cat-tile__media--lottie.has-lottie .cat-tile__icon,
.svc-page__media--lottie.has-lottie .cat-tile__icon {
  opacity: 0;
  pointer-events: none;
}
.cat-tile__fallback {
  transition: opacity 0.25s ease;
}
.cat-tile__fallback--none {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  /* Keep static first frame visible; hide only when no Lottie mounted */
  .cat-tile__media--lottie:not(.has-lottie) .cat-tile__lottie,
  .svc-page__media--lottie:not(.has-lottie) .service-hero__lottie {
    display: none !important;
  }
  .cat-tile__media--lottie.has-lottie .cat-tile__lottie,
  .svc-page__media--lottie.has-lottie .cat-tile__lottie,
  .svc-page__media--lottie.has-lottie .service-hero__lottie {
    opacity: 1 !important;
    display: flex !important;
  }
  .cat-tile__media--lottie:not(.has-lottie) .cat-tile__fallback,
  .svc-page__media--lottie:not(.has-lottie) .cat-tile__fallback {
    opacity: 1 !important;
  }
  .cat-tile__media--lottie.has-lottie .cat-tile__fallback,
  .svc-page__media--lottie.has-lottie .cat-tile__fallback {
    opacity: 0 !important;
  }
  .cat-tile__media--lottie.has-lottie .cat-tile__icon,
  .svc-page__media--lottie.has-lottie .cat-tile__icon {
    opacity: 0 !important;
    pointer-events: none;
  }
}
.cat-tile__media--icon {
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--pm-concrete) 0%, #dfe1e4 100%);
}
.cat-tile__media .badge-voltage { margin-top: auto; position: relative; z-index: 1; }

.cat-tile__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--pm-radius);
  background: rgba(26, 29, 33, 0.72);
  color: var(--pm-copper);
}
.cat-tile__media--icon .cat-tile__icon {
  background: var(--pm-surface-card);
  border: 1px solid var(--pm-line-light);
}
.cat-tile__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-family: var(--pm-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-graphite);
  background: var(--pm-voltage);
  padding: 0.28rem 0.5rem;
  border-radius: var(--pm-radius);
}
.pm-icon { display: block; }

.cat-tile__body {
  padding: 1rem 1.1rem 1.2rem;
}
.cat-tile__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--pm-graphite);
  letter-spacing: -0.015em;
  font-weight: 600;
}
.cat-tile__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pm-steel);
}
.cat-tile--featured .cat-tile__body h3 {
  color: var(--pm-copper);
}

.cat-tile__more {
  display: inline-block;
  margin-top: 0.65rem;
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-copper);
}
.cat-tile:hover .cat-tile__more {
  color: var(--pm-copper-hover);
}
.cat-tile:focus-visible {
  outline: 2px solid var(--pm-copper);
  outline-offset: 3px;
}

/* —— Inner pages (service + kontaktai) —— */
.page-hero {
  padding: calc(var(--pm-header-h) + 2.5rem) 0 2rem;
  background:
    linear-gradient(180deg, var(--pm-surface-warm) 0%, var(--pm-surface) 100%);
  border-bottom: 1px solid var(--pm-line-light);
}
.page-hero__inner h1 {
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  max-width: 40rem;
}
.page-hero__lead {
  max-width: 40rem;
  color: var(--pm-steel);
}
.page-hero__lead p:last-child { margin-bottom: 0; }
.page-hero .eyebrow a {
  color: inherit;
  text-decoration: none;
}
.page-hero .eyebrow a:hover {
  color: var(--pm-copper);
}

.svc-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .svc-page__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
  }
}

.svc-page__media {
  position: relative;
  margin: 0 0 1.5rem;
  border-radius: var(--pm-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--pm-concrete);
  box-shadow: var(--pm-shadow);
}
.svc-page__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-page__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 29, 33, 0.45), transparent 55%);
  pointer-events: none;
}
.svc-page__media--lottie {
  background:
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--pm-lottie-highlight) 55%, var(--pm-surface-card)) 0%, transparent 58%),
    linear-gradient(165deg, var(--pm-surface-card) 0%, var(--pm-surface) 55%, var(--pm-copper-soft) 100%);
}
.svc-page__media--lottie::after {
  background: linear-gradient(to top, color-mix(in srgb, var(--pm-graphite) 8%, transparent), transparent 50%);
}
.svc-page__media .cat-tile__icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
}
.svc-page__media .cat-tile__lottie,
.svc-page__media .service-hero__lottie {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.svc-page__media .cat-tile__lottie svg,
.svc-page__media .service-hero__lottie svg {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
}

.svc-page__icon-wrap {
  margin-bottom: 1.25rem;
}
.svc-page__icon-wrap .cat-tile__icon {
  width: 52px;
  height: 52px;
  background: var(--pm-surface-card);
  border: 1px solid var(--pm-line-light);
  box-shadow: var(--pm-shadow);
}

.page-hero__lede {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  color: var(--pm-steel);
  font-size: 1.05rem;
  line-height: 1.55;
}

.svc-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--pm-surface-card);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
}
@media (min-width: 640px) {
  .svc-facts {
    grid-template-columns: 1fr 1fr;
  }
}
.svc-facts__row {
  display: grid;
  gap: 0.15rem;
}
.svc-facts dt {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pm-copper);
  margin: 0;
}
.svc-facts dd {
  margin: 0;
  color: var(--pm-steel);
  font-size: 0.98rem;
  line-height: 1.45;
}

.svc-page__content {
  color: var(--pm-steel);
  max-width: 42rem;
  margin-top: 1.75rem;
}
.svc-page__content h2 {
  font-size: 1.5rem;
  margin: 0 0 0.85rem;
  color: var(--pm-graphite);
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .svc-page__content h2 { font-size: 1.75rem; }
}
.svc-page__content p { margin-bottom: 1rem; }

.svc-page__block--wide {
  margin-bottom: 1.25rem;
}

.svc-page__related {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--pm-surface-card);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
}
.svc-page__related h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.svc-page__related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-page__related li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--pm-line-light);
  color: var(--pm-steel);
}
.svc-page__related li:last-child { border-bottom: none; }
.svc-page__related a {
  color: var(--pm-graphite);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.svc-page__related a:hover { color: var(--pm-copper); }
.svc-page__related-note { color: var(--pm-steel); }

.svc-page__includes {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  background: var(--pm-surface-card);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
}
.svc-page__includes h2 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.svc-page__includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-page__includes li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  color: var(--pm-steel);
  border-bottom: 1px solid var(--pm-line-light);
}
.svc-page__includes li:last-child { border-bottom: none; }
.svc-page__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 2px;
  background: var(--pm-copper);
}

.svc-page__extras {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .svc-page__extras {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.svc-page__block {
  padding: 1.25rem 1.35rem;
  background: var(--pm-surface-card);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
}
.svc-page__block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.svc-page__block ul,
.svc-page__block ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pm-step;
}
.svc-page__block li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: var(--pm-steel);
  border-bottom: 1px solid var(--pm-line-light);
}
.svc-page__block li:last-child { border-bottom: none; }
.svc-page__block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 2px;
  background: var(--pm-copper);
}
.svc-page__block ol li {
  padding-left: 1.65rem;
  counter-increment: pm-step;
}
.svc-page__block ol li::before {
  content: counter(pm-step);
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-family: var(--pm-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pm-copper);
  line-height: 1.4;
}

.svc-cta-card {
  padding: 1.5rem;
  background: var(--pm-surface-card);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  position: sticky;
  top: calc(var(--pm-header-h) + 1rem);
}
.svc-cta-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.svc-cta-card p {
  color: var(--pm-steel);
  margin-bottom: 1.1rem;
}
.svc-cta-card .btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.65rem;
}
.svc-cta-card .btn:last-child { margin-bottom: 0; }

.btn-outline {
  background: transparent;
  color: var(--pm-graphite);
  border: 1px solid var(--pm-line-light);
}
.btn-outline:hover {
  border-color: var(--pm-copper);
  color: var(--pm-copper);
  background: var(--pm-copper-soft);
}

/* —— Why / reasons —— */
.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .reason-grid { grid-template-columns: repeat(4, 1fr); }
}

.reason-card {
  background: var(--pm-surface-card);
  border: none;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  padding: 1.35rem 1.25rem;
  transition: box-shadow 0.2s ease;
}
.reason-card:hover {
  box-shadow: var(--pm-shadow-hover);
}
.reason-card__num {
  font-family: var(--pm-font-mono);
  font-size: 12px;
  color: var(--pm-copper);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.reason-card h3 {
  font-size: 18px;
  margin-bottom: 0.5rem;
}
.reason-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--pm-steel);
}

/* —— Product cards —— */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--pm-surface-card);
  border: none;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.product-card:hover {
  box-shadow: var(--pm-shadow-hover);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--pm-concrete);
  border-bottom: 1px solid var(--pm-line-light);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__media .badge-voltage {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.15rem;
  gap: 0.5rem;
}
.product-card__body h3 {
  font-size: 16px;
  margin: 0;
}
.product-card__sku {
  font-family: var(--pm-font-mono);
  font-size: 11px;
  color: var(--pm-steel);
  letter-spacing: 0.03em;
}
.product-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pm-steel);
  flex: 1;
}
.product-card .btn { margin-top: 0.5rem; }

/* —— Docs —— */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
}

.doc-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  background: var(--pm-surface-card);
  border: none;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  transition: box-shadow 0.2s ease;
}
.doc-card:hover {
  box-shadow: var(--pm-shadow-hover);
}
.doc-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 48px;
  background: var(--pm-concrete);
  border: 1px solid var(--pm-line-light);
  border-radius: var(--pm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pm-font-mono);
  font-size: 10px;
  color: var(--pm-steel);
}
.doc-card h3 {
  font-size: 16px;
  margin: 0 0 0.25rem;
}
.doc-card p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--pm-steel);
}
.doc-card a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* —— Logos strip —— */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.logo-ph {
  width: min(140px, calc(50% - 0.4rem));
  aspect-ratio: 3 / 1;
  background: var(--pm-graphite-soft);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pm-font-mono);
  font-size: 10px;
  color: var(--pm-steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .logo-ph { width: 140px; }
}

/* —— Terms —— */
.terms-list {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .terms-list { grid-template-columns: repeat(2, 1fr); }
}
.terms-item {
  padding: 1.25rem;
  border: none;
  border-radius: var(--pm-radius);
  background: var(--pm-surface-card);
  box-shadow: var(--pm-shadow);
}
.terms-item h3 {
  font-size: 16px;
  margin-bottom: 0.4rem;
}
.terms-item p {
  margin: 0;
  color: var(--pm-steel);
  font-size: 0.95rem;
}

/* —— Form —— */
.form-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .form-layout { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.contact-aside p { color: var(--pm-steel); }
.contact-aside dl {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}
.contact-aside dt {
  font-family: var(--pm-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-steel);
  margin-bottom: 0.2rem;
}
.contact-aside dd {
  margin: 0;
  font-weight: 500;
}
.contact-aside a { color: var(--pm-graphite); text-decoration: none; }
.contact-aside a:hover { color: var(--pm-copper); }

.pm-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--pm-surface-card);
  border: 1px solid var(--pm-line-light);
  border-radius: var(--pm-radius);
}

.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.pm-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--pm-graphite);
}
.pm-form label span.req { color: var(--pm-copper); }

.pm-form input,
.pm-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 15px;
  color: var(--pm-graphite);
  background: var(--pm-surface);
  border: 1px solid var(--pm-line-light);
  border-radius: var(--pm-radius);
}
.pm-form input:focus,
.pm-form textarea:focus {
  outline: 2px solid var(--pm-copper);
  outline-offset: 1px;
  border-color: var(--pm-copper);
}
.pm-form textarea { min-height: 120px; resize: vertical; }

/* Honeypot — visually hidden, not display:none (some bots skip display:none). */
.pm-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pm-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pm-steel);
}
.form-note.is-ok { color: var(--pm-success); }
.form-note.is-err { color: var(--pm-copper); }

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.5rem;
  max-width: 800px;
}
.faq-list details {
  border: none;
  border-radius: var(--pm-radius);
  background: var(--pm-surface-card);
  box-shadow: var(--pm-shadow);
  padding: 0 1.15rem;
  transition: box-shadow 0.2s ease;
}
.faq-list details:hover,
.faq-list details[open] {
  box-shadow: var(--pm-shadow-hover);
}
.faq-list summary {
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--pm-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: none;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { border-bottom: 1px solid var(--pm-line-light); }
.faq-list details p {
  padding: 1rem 0 1.15rem;
  margin: 0;
  color: var(--pm-steel);
}

/* —— Footer —— */
.site-footer {
  background: var(--pm-graphite);
  color: var(--pm-concrete);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--pm-line);
}
.site-footer a {
  color: var(--pm-concrete);
  text-decoration: none;
}
.site-footer a:hover { color: var(--pm-white); }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-grid h3 {
  color: var(--pm-white);
  font-size: 14px;
  margin-bottom: 1rem;
}
.footer-grid p {
  color: var(--pm-steel);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}
.footer-grid ul { display: grid; gap: 0.45rem; }
.footer-grid li { font-size: 0.9rem; color: var(--pm-steel); }

.brand--footer .brand-text span { color: var(--pm-steel); }

.site-footer .footer-qual {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--pm-steel);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--pm-line);
  font-size: 0.8rem;
  color: var(--pm-steel);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--pm-copper); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--pm-copper-hover); }

/* —— Cookie consent (BDAR) —— */
.pm-cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10050;
  padding: 1rem;
  pointer-events: none;
}
.pm-cookie[hidden] { display: none !important; }
.pm-cookie__inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--pm-graphite);
  color: var(--pm-concrete);
  border-radius: var(--pm-radius);
  box-shadow: 0 -8px 32px rgba(26, 29, 33, 0.35);
  border-top: 3px solid var(--pm-copper);
}
.pm-cookie__title {
  margin: 0 0 0.35rem;
  font-family: var(--pm-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pm-white);
}
.pm-cookie__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--pm-concrete);
}
.pm-cookie__text a {
  color: var(--pm-copper);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pm-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.pm-cookie .btn-ghost {
  border-color: var(--pm-line);
  color: var(--pm-concrete);
}
.pm-cookie .btn-ghost:hover {
  border-color: var(--pm-copper);
  color: var(--pm-white);
}
@media (max-width: 767px) {
  .pm-cookie__actions .btn { width: 100%; }
}

/* —— Page template —— */
.page .section-head h1 { margin-bottom: 1rem; }

/* —— Placeholder media label —— */
.ph-label {
  font-family: var(--pm-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-steel);
  opacity: 0.7;
}
.ph-label--corner {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
}
.cat-tile__media,
.product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* —— Motion: current path + reveals (respect reduced-motion) —— */
.hero-current {
  position: absolute;
  inset: auto 0 12% 0;
  width: min(100%, 920px);
  height: 72px;
  margin-inline: auto;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}
.hero-current__track {
  fill: none;
  stroke: var(--pm-line);
  stroke-width: 1;
  opacity: 0.7;
}
.hero-current__spark {
  fill: none;
  stroke: var(--pm-copper);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 18 220;
  animation: pm-current 3.6s linear infinite;
}
.hero-current__spark--alt {
  stroke: var(--pm-voltage);
  stroke-width: 1.25;
  stroke-dasharray: 10 230;
  animation-duration: 4.4s;
  animation-direction: reverse;
  opacity: 0.85;
}

@keyframes pm-current {
  to { stroke-dashoffset: -238; }
}

.pm-divider-current {
  display: block;
  width: min(100% - 56px, 640px);
  height: 28px;
  margin: -0.5rem auto 0;
  opacity: 0.45;
}
.pm-divider-current path {
  fill: none;
  stroke: var(--pm-copper);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 12 160;
  animation: pm-current 4s linear infinite;
}

.pm-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.pm-reveal.is-inview {
  opacity: 1;
  transform: none;
}
.pm-reveal--delay-1 { transition-delay: 0.06s; }
.pm-reveal--delay-2 { transition-delay: 0.12s; }
.pm-reveal--delay-3 { transition-delay: 0.18s; }

.cat-tile__icon {
  transition: transform 0.25s ease, color 0.25s ease;
}
.cat-tile:hover .cat-tile__icon {
  transform: translateY(-2px);
  color: var(--pm-voltage);
}

@media (prefers-reduced-motion: reduce) {
  .hero-current__spark,
  .hero-current__spark--alt,
  .pm-divider-current path {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.35;
  }
  .pm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .section-head h2::after {
    transform: scaleX(1);
    transition: none;
  }
  .cat-tile__icon { transition: none; }
  .cat-tile:hover .cat-tile__icon { transform: none; }
}
