/* ==========================================================================
   Hameed Automation: site styles
   Palette is taken from the HA logo (indigo "H", cyan "A", steel gear, navy wordmark)
   ========================================================================== */

:root {
  --indigo: #3f5ba9;
  --indigo-600: #344d93;
  --cyan: #0096cc;
  --cyan-300: #5cc6ec;
  --steel: #9ea3ad;
  --navy: #1e2a55;
  --ink: #0d1530;
  --ink-2: #131d3f;

  --text: #1b2340;
  --muted: #5a6382;
  --line: #e3e7f0;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #eef2f9;

  --se: #009530;       /* Schneider green, text-safe */
  --se-bright: #3dcd58;
  --hioki: #1f56a5;
  --wm: #c06f00;       /* Weidmüller orange, text-safe */
  --wm-bright: #eb8c00;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(13 21 48 / .06), 0 1px 3px rgb(13 21 48 / .08);
  --shadow: 0 10px 30px -12px rgb(13 21 48 / .18), 0 4px 10px -6px rgb(13 21 48 / .10);
  --shadow-lg: 0 30px 60px -20px rgb(13 21 48 / .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::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.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); letter-spacing: -.02em; font-weight: 750; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--surface-2); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.section-head p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--indigo); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-weight: 650; font-size: .98rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgb(63 91 169 / .7); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--cyan { --btn-bg: var(--cyan); }
.btn--cyan:hover { box-shadow: 0 10px 24px -10px rgb(0 150 204 / .8); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--indigo); --btn-fg: var(--indigo); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .35); }
.btn--outline-light:hover { --btn-bd: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgb(13 21 48 / .4); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand img { width: 58px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand__tag { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__menu > summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--text);
  cursor: pointer; list-style: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__link:hover, .nav__menu > summary:hover { background: var(--surface-3); color: var(--indigo); }
.nav__link[aria-current="page"] { color: var(--indigo); background: rgb(63 91 169 / .08); }
.nav__menu { position: relative; }
.nav__menu > summary svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav__menu[open] > summary svg { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 290px;
  padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nav__dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.nav__dropdown a:hover { background: var(--surface-2); }
.nav__dropdown strong { display: block; font-size: .93rem; }
.nav__dropdown small { color: var(--muted); font-size: .78rem; }
.file-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgb(0 150 204 / .1); color: var(--cyan); }
.file-icon svg { width: 20px; height: 20px; }
.nav__cta { margin-left: 8px; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link, .nav__menu > summary { padding: 14px 12px; border-radius: 12px; font-size: 1.02rem; justify-content: space-between; }
  .nav__dropdown { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
  .nav__cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #e7ecf8;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(0 150 204 / .35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgb(63 91 169 / .45), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #18245a 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__gear {
  position: absolute; z-index: -1; right: -120px; top: 50%; width: 620px; height: 620px;
  translate: 0 -50%; color: rgb(255 255 255 / .05);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(56px, 9vw, 112px) clamp(72px, 10vw, 128px);
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan-300), #8fa6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b9c3dc; max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .eyebrow { color: var(--cyan-300); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12);
  font-size: .85rem; color: #d6ddef;
}
.badge-pill b { background: var(--cyan); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }

.hero__visual { position: relative; min-height: 560px; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; color: var(--text);
  animation: float 7s ease-in-out infinite;
}
.float-card img { width: 100%; height: 150px; object-fit: contain; }
.float-card__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.float-card__label i { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.float-card--1 { width: 230px; left: 0; top: 0; }
.float-card--2 { width: 240px; right: 0; top: 130px; animation-delay: -2.3s; z-index: 1; }
.float-card--3 { width: 230px; left: 8%; bottom: 0; animation-delay: -4.6s; z-index: 2; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.tag--se { background: rgb(61 205 88 / .15); color: var(--se); }
.tag--hioki { background: rgb(31 86 165 / .12); color: var(--hioki); }
.tag--wm { background: rgb(235 140 0 / .15); color: var(--wm); }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { min-height: 560px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__gear { width: 420px; height: 420px; right: -160px; top: 20%; }
}
@media (max-width: 560px) {
  .hero__visual { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .float-card { position: static; width: auto !important; animation: none; padding: 12px; border-radius: var(--radius); }
  .float-card img { height: 96px; }
  .float-card--3 { grid-column: 1 / -1; }
  .float-card--3 img { height: 110px; }
}

/* ---------- Stats ---------- */
.stats {
  position: relative; z-index: 2; margin-top: -56px;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 26px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.stat__value span { color: var(--cyan); }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 820px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Brand cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card {
  --accent: var(--indigo);
  position: relative; display: flex; flex-direction: column;
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.brand-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.brand-card--schneider { --accent: var(--se-bright); }
.brand-card--hioki { --accent: var(--hioki); }
.brand-card--weidmuller { --accent: var(--wm-bright); }
.brand-card__logo { height: 52px; display: flex; align-items: center; margin-bottom: 18px; }
.brand-card__logo img { max-height: 44px; width: auto; }
.brand-card__role {
  align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.brand-card--schneider .brand-card__role { background: rgb(61 205 88 / .13); color: var(--se); }
.brand-card--hioki .brand-card__role { background: rgb(31 86 165 / .1); color: var(--hioki); }
.brand-card--weidmuller .brand-card__role { background: rgb(235 140 0 / .13); color: var(--wm); }
.brand-card p { color: var(--muted); font-size: .96rem; }
.brand-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 24px; }
.brand-card li { font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); }
.brand-card .link-arrow { margin-top: auto; color: var(--ink); }
.brand-card .link-arrow:hover { color: var(--indigo); }
@media (max-width: 960px) { .brand-grid { grid-template-columns: 1fr; } }

/* ---------- Dealer marquee ---------- */
.dealers { border-block: 1px solid var(--line); background: #fff; }
.dealers__inner { display: flex; align-items: center; gap: 32px; padding-block: 22px; }
.dealers__label { flex: none; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.marquee { position: relative; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: #a3aac0; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .dealers__inner { flex-direction: column; align-items: flex-start; gap: 12px; } .marquee { width: 100%; } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { border-color: rgb(63 91 169 / .35); box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgb(63 91 169 / .12), rgb(0 150 204 / .12)); color: var(--indigo);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Split / about teaser ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }

.award-card {
  position: relative; padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); color: #e7ecf8; overflow: hidden;
  background: radial-gradient(500px 300px at 100% 0%, rgb(0 150 204 / .35), transparent 60%), linear-gradient(150deg, var(--ink), #1b2a64);
}
.award-card h3 { color: #fff; font-size: 1.5rem; }
.award-card p { color: #b9c3dc; }
.award-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.award-card__item { padding: 16px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.award-card__item b { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.award-card__item span { font-size: .85rem; color: #b9c3dc; }
.award-card__trophy { position: absolute; right: 24px; top: 24px; width: 44px; height: 44px; color: #f5c451; }

/* ---------- Downloads ---------- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.download {
  display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.download:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.download__thumb {
  flex: none; width: 64px; height: 80px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--indigo), var(--cyan)); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .06em;
  box-shadow: 0 10px 20px -10px rgb(63 91 169 / .8);
}
.download h3 { font-size: 1.1rem; margin-bottom: 4px; }
.download p { margin: 0; color: var(--muted); font-size: .9rem; }
.download__go { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--indigo); transition: background-color .2s ease, color .2s ease; }
.download:hover .download__go { background: var(--indigo); color: #fff; }
.download__go svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .download-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .download { gap: 14px; padding: 18px; } .download__thumb { width: 52px; height: 66px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  color: #e7ecf8;
  background: radial-gradient(600px 300px at 100% 100%, rgb(0 150 204 / .45), transparent 60%), linear-gradient(135deg, var(--indigo-600), var(--ink));
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #c3cce3; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
}
.office__tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); background: rgb(0 150 204 / .1); padding: 4px 10px; border-radius: 999px; }
.office h3 { font-size: 1.2rem; margin: 4px 0 0; }
.office address { font-style: normal; color: var(--muted); }
.office__lines { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.office__lines a, .office__lines span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 550; font-size: .95rem; }
.office__lines a:hover { color: var(--indigo); }
.office__lines svg { width: 18px; height: 18px; color: var(--indigo); flex: none; }
.office .link-arrow { margin-top: auto; padding-top: 10px; font-size: .92rem; }
@media (max-width: 960px) { .office-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.05rem; margin: 0; }
.faq__item summary svg { width: 18px; height: 18px; flex: none; color: var(--indigo); transition: transform .2s ease; }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item summary:hover h3 { color: var(--indigo); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq__item p a { color: var(--indigo); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #e7ecf8;
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 80px);
  background: radial-gradient(700px 400px at 90% 0%, rgb(0 150 204 / .35), transparent 60%), linear-gradient(160deg, var(--ink), #18245a);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; max-width: 820px; }
.page-hero .lead { color: #b9c3dc; max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: var(--cyan-300); }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: #93a0c3; margin-bottom: 18px; }
.breadcrumb a { color: #c9d2ea; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Catalogue ---------- */
.catalog-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.catalog-bar__inner { display: flex; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand-tabs { display: flex; min-width: 0; gap: 6px; padding: 5px; background: var(--surface-3); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.brand-tabs::-webkit-scrollbar { display: none; }
.brand-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-weight: 650; font-size: .92rem; color: var(--muted);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.brand-tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.brand-tab[data-brand="schneider"]::before { background: var(--se-bright); }
.brand-tab[data-brand="hioki"]::before { background: var(--hioki); }
.brand-tab[data-brand="weidmuller"]::before { background: var(--wm-bright); }
.brand-tab[data-brand="all"]::before { background: linear-gradient(135deg, var(--indigo), var(--cyan)); }
.brand-tab:hover { color: var(--ink); }
.brand-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.search { position: relative; margin-left: auto; flex: 0 1 320px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(0 150 204 / .15); }
@media (max-width: 760px) { .search { flex: 1 1 100%; margin-left: 0; } .catalog-bar { position: static; } }

.catalog { padding-block: 32px clamp(64px, 9vw, 112px); }
.brand-intro { display: none; align-items: center; gap: 24px; padding: 24px 28px; margin-bottom: 24px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); }
.brand-intro.is-active { display: flex; }
.brand-intro img { flex: none; height: 40px; width: auto; }
.brand-intro p { margin: 0; color: var(--muted); font-size: .95rem; }
.brand-intro a { flex: none; margin-left: auto; font-size: .9rem; }
@media (max-width: 760px) { .brand-intro { flex-direction: column; align-items: flex-start; gap: 12px; } .brand-intro a { margin-left: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: .86rem; font-weight: 600; color: var(--text);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__count { font-size: .74rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.chip[aria-pressed="true"] .chip__count { background: rgb(255 255 255 / .18); color: #fff; }
.chip[hidden] { display: none; }
.chips-hint { font-size: .88rem; color: var(--muted); margin: -4px 0 20px; }
.chips-hint[hidden] { display: none; }

.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--muted); font-size: .9rem; }

.product-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product[hidden] { display: none; }
.product__media { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.product__media img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; transition: transform .35s ease; }
.product:hover .product__media img { transform: scale(1.05); }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.product__brand { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.product__brand--schneider { color: var(--se); }
.product__brand--hioki { color: var(--hioki); }
.product__brand--weidmuller { color: var(--wm); }
.product__name { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.product__cat { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.product__cta { margin-top: auto; font-size: .88rem; font-weight: 650; display: inline-flex; gap: 6px; }
.product__cta span { transition: transform .2s ease; }
.product__cta:hover span { transform: translateX(3px); }

.empty-state { display: none; text-align: center; padding: 64px 16px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty-state.is-visible { display: block; }
.empty-state h3 { font-size: 1.2rem; }

/* ---------- About ---------- */
.prose p { color: var(--muted); font-size: 1.04rem; }
.prose strong { color: var(--ink); font-weight: 700; }

.timeline { list-style: none; position: relative; display: grid; gap: 28px; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--indigo), var(--cyan)); border-radius: 2px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); }
.timeline b { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.timeline h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 24px; justify-content: center; }
.team-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #0b0b0b; }
.team-card__body { padding: 20px 22px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.team-card p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.vm-card h3 { font-size: 1.3rem; }
.vm-card p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.vm-card .feature__icon { margin-bottom: 16px; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: 1fr; } }

.portfolio { display: grid; gap: 20px; }
.portfolio__item { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.portfolio__item img { max-height: 48px; width: auto; }
.portfolio__item p { margin: 0; color: var(--muted); }
.portfolio__item h3 { font-size: 1.05rem; margin-bottom: 6px; }
@media (max-width: 700px) { .portfolio__item { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 650; margin-bottom: 6px; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(0 150 204 / .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d14343; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-status.is-success { display: block; background: rgb(0 149 48 / .1); color: #0a6b2a; }
.form-status.is-error { display: block; background: rgb(209 67 67 / .1); color: #a32c2c; }

.quick-contact { display: grid; gap: 14px; }
.quick {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.quick:hover { color: var(--text); border-color: var(--indigo); transform: translateY(-2px); }
.quick__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--indigo); }
.quick__icon svg { width: 22px; height: 22px; }
.quick--wa .quick__icon { background: rgb(37 211 102 / .14); color: #128c4a; }
.quick small { display: block; color: var(--muted); font-size: .82rem; }
.quick strong { font-size: 1.02rem; overflow-wrap: anywhere; }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab4cf; padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__tag { color: #8792b3; }
.footer-brand .brand img { background: #fff; border-radius: 12px; padding: 6px; width: 64px; }
.footer-brand p { margin: 18px 0 20px; font-size: .94rem; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #aab4cf; font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .07); color: #d6ddef; transition: background-color .2s ease; }
.socials a:hover { background: var(--cyan); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .85rem; color: #7b86a8; }
.footer-bottom a { color: #aab4cf; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- WhatsApp FAB ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px;
  border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 14px 30px -10px rgb(18 140 74 / .7);
  transition: transform .2s ease;
}
.fab:hover { color: #fff; transform: translateY(-2px) scale(1.02); }
.fab svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .fab { padding: 0; width: 56px; justify-content: center; } .fab span { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Catalogue: phones ---------- */
@media (max-width: 560px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product__media img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .product__body { padding: 12px 14px 14px; }
  .product__name { font-size: .9rem; }
  .product__cat { font-size: .78rem; margin-bottom: 10px; }
  .product__cta { font-size: .8rem; }
}

/* ---------- Header: small phones ---------- */
@media (max-width: 400px) {
  .site-header__inner { gap: 12px; }
  .brand img { width: 46px; }
  .brand__tag { display: none; }
}

/* ---------- Narrow-screen overflow guards ---------- */
.marquee { min-width: 0; }
.office, .footer-grid > * { min-width: 0; }
.office__lines a, .footer-links a, .quick strong { overflow-wrap: anywhere; }

/* ---------- Live catalogue ---------- */
.catalog-source { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: .82rem; color: var(--muted); }
.catalog-source:empty { display: none; }
.catalog-source::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.catalog-source.is-live::before { background: #1fb35a; box-shadow: 0 0 0 3px rgb(31 179 90 / .18); }
.product__media { position: relative; }
.product__media--empty { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .85rem; }
.product__badge { position: absolute; top: 10px; left: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; background: #fdecec; color: #a32c2c; }
.product__price { font-weight: 750; color: var(--ink); margin: -8px 0 14px; font-size: .98rem; }
.product__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product__cta--buy { margin-top: 0; padding: 8px 14px; border-radius: 999px; background: var(--indigo); color: #fff; }
.product__cta--buy:hover { background: var(--cyan); color: #fff; }
.product__quote { font-size: .82rem; font-weight: 600; color: var(--muted); }
.product__quote:hover { color: var(--indigo); }
.load-more { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 560px) {
  .product__actions { flex-direction: column; align-items: stretch; }
  .product__cta--buy { justify-content: center; }
  .product__quote { text-align: center; }
  .result-meta { flex-direction: column; align-items: flex-start; }
  .catalog-source { margin-left: 0; }
}

/* ---------- Brand & category pages ---------- */
.brand-intro__name { flex: none; font-size: 1.2rem; color: var(--ink); }
.brand-intro.is-active { margin-bottom: clamp(32px, 5vw, 48px); }
.cat-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-tile:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-tile__media { position: relative; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.cat-tile__media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.cat-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.cat-tile__body strong { font-size: .98rem; line-height: 1.3; color: var(--ink); }
.cat-tile__body small { color: var(--muted); font-size: .84rem; }

.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.directory__brand { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.directory__brand h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
.directory__brand h3 a { color: var(--ink); }
.directory__brand h3 a:hover { color: var(--indigo); }
.directory__brand h3 small { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.directory__list { list-style: none; display: grid; gap: 2px; }
.directory__list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--surface-3); font-size: .92rem; }
.directory__list li:first-child { border-top: 0; }
.directory__list a { color: var(--text); }
.directory__list a:hover { color: var(--indigo); }
.directory__list span { color: var(--muted); font-size: .82rem; }

.related__title { font-size: 1.2rem; margin-bottom: 16px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related .chip { text-decoration: none; }
