/* =========================================================
   Liverani Greece · Electronaval — shared stylesheet
   ========================================================= */

:root {
  --navy-900: #04142a;
  --navy-800: #061d3b;
  --navy-700: #0a2b55;
  --blue-600: #1b5fc1;
  --blue-500: #2a74e0;
  --blue-400: #4f9bff;
  --blue-100: #e6f0fd;
  --red-500: #e2231a;
  --ink: #0d1b2e;
  --ink-soft: #4a5a70;
  --line: #dde5f0;
  --bg: #f5f8fc;
  --white: #fff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(6, 29, 59, .06);
  --shadow: 0 12px 32px rgba(6, 29, 59, .10);
  --shadow-lg: 0 24px 60px rgba(6, 29, 59, .18);

  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--white); color: var(--navy-800); padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--blue-400); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: .9rem 0 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.075rem; }
.on-dark .section-head p { color: #b8c7dc; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-500); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .975rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42, 116, 224, .35); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { --btn-bg: var(--blue-600); }
.btn-ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--navy-800); border-color: #fff; box-shadow: none; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { --btn-bg: var(--navy-800); --btn-fg: #fff; border-color: var(--navy-800); box-shadow: none; }
.btn-white { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn-white:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(4, 20, 42, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 30px rgba(0, 0, 0, .25);
}
.site-header.scrolled { --header-h: 66px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; transition: height .3s; }
.brand .brand-ev { height: 44px; border-radius: 50%; background: #fff; }
.brand-sep { width: 1px; height: 30px; background: rgba(255, 255, 255, .25); }
.scrolled .brand img { height: 32px; }
.scrolled .brand .brand-ev { height: 38px; }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  position: relative; display: block; padding: .55rem .85rem; border-radius: 999px;
  color: #d6e2f3; text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--blue-400);
}
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.lang-switch a, .lang-switch span {
  min-width: 40px; padding: .3rem .6rem; border-radius: 999px; text-align: center;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; text-decoration: none; color: #b9c8dd;
}
.lang-switch span[aria-current] { background: #fff; color: var(--navy-800); }
.lang-switch a:hover { color: #fff; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); cursor: pointer; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.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-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy-900);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
/* Original look: blueprint photo clearly visible with a soft dark veil */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .45));
}
.hero-content { max-width: 900px; margin-inline: auto; text-align: center; }
.hero-content .hero-lead { margin-inline: auto; max-width: 720px; color: #eef3fa; }
.hero-cta { justify-content: center; }
.hero h1, .hero-lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .85rem; font-weight: 600; color: #dbe6f5; margin-bottom: 1.6rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #009246 0 33%, #fff 33% 66%, #ce2b37 66%); box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); margin-bottom: 1.4rem; letter-spacing: -.03em; }
.hero h1 .accent { color: #9fd0ff; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: #c3d2e6; max-width: 580px; margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(3rem, 2rem + 4vw, 5rem) auto 0;
  border-top: 1px solid rgba(255, 255, 255, .25); max-width: 780px;
}
.hero-stats div { padding: 1.3rem 1.2rem 0 0; }
.hero-stats div + div { padding-left: 1.2rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-stats strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { display: block; font-size: .85rem; color: #dbe6f5; line-height: 1.4; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollCue 1.8s infinite; }

/* ---------- Sectors ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sector-card {
  position: relative; padding: 2.2rem 2rem; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.sector-card::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 116, 224, .12), transparent 70%); transition: transform .5s var(--ease);
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.sector-card:hover::before { transform: scale(1.4); }
.sector-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); color: #fff; box-shadow: 0 10px 24px rgba(27, 95, 193, .3);
}
.sector-icon svg { width: 30px; height: 30px; }
.sector-card h3 { margin-bottom: .6rem; font-size: 1.3rem; }
.sector-card p { color: var(--ink-soft); }
.sector-card ul { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.sector-card li { font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); }

/* ---------- About / why ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 2rem + 4vw, 5rem); align-items: center; }
.about-visual { position: relative; }
.about-visual .frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-lg);
  background: var(--navy-800);
}
.about-visual .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.about-visual .float-card {
  position: absolute; right: -1.2rem; bottom: -1.8rem; display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); max-width: 300px;
}
.float-card img { width: 58px; height: 58px; border-radius: 50%; flex: none; }
.float-card strong { display: block; font-size: .98rem; line-height: 1.3; }
.float-card span { font-size: .82rem; color: var(--ink-soft); }
.about-copy h2 { margin: .9rem 0 1.2rem; }
.about-copy > p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 1rem; }
.about-copy a { color: var(--blue-600); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; margin: 2rem 0 2.2rem; }
.feature { display: flex; gap: .85rem; }
.feature .tick { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); }
.feature .tick svg { width: 18px; height: 18px; }
.feature strong { display: block; font-size: .98rem; margin-bottom: .1rem; }
.feature span { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Products ---------- */
.products-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.search {
  position: relative; flex: 1 1 280px; max-width: 380px;
}
.search svg { position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; min-height: 48px; padding: .7rem 1rem .7rem 2.8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(42, 116, 224, .15); }
.products-count { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card[hidden] { display: none; }
.product-media {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: #bfe0ea;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media .zoom {
  position: absolute; right: .9rem; top: .9rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--navy-800); box-shadow: var(--shadow-sm);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease);
}
.product-media .zoom svg { width: 18px; height: 18px; }
.product-card:hover .zoom, .product-media:focus-visible .zoom { opacity: 1; transform: none; }
.product-tag {
  position: absolute; left: .9rem; top: .9rem; padding: .3rem .7rem; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  background: var(--navy-800); color: #fff;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.product-body h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.product-body p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; flex: 1; }
.product-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.product-actions .btn { flex: 1 1 auto; }
.no-results { display: none; text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.no-results.show { display: block; }

/* ---------- Product dialog ---------- */
.product-dialog {
  width: min(920px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.product-dialog::backdrop { background: rgba(4, 20, 42, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.product-dialog[open] { animation: dialogIn .35s var(--ease); }
.dialog-inner { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100dvh - 2rem); overflow: auto; }
.dialog-media { background: #bfe0ea; display: grid; place-items: center; min-height: 280px; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.dialog-body h3 { font-size: 1.8rem; }
.dialog-body p { color: var(--ink-soft); }
.dialog-body .product-actions { margin-top: auto; padding-top: 1rem; }
.dialog-close {
  position: absolute; right: 1rem; top: 1rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--navy-800); display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.dialog-close:hover { transform: rotate(90deg); }
.dialog-close svg { width: 20px; height: 20px; }

/* ---------- Downloads ---------- */
.downloads {
  position: relative; color: #fff; background: var(--navy-800); overflow: hidden; isolation: isolate;
}
.downloads::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image:
    linear-gradient(rgba(79, 155, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 155, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.downloads::after {
  content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; top: -250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 116, 224, .35), transparent 65%);
}
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.download-card {
  display: flex; align-items: center; gap: 1.4rem; padding: 1.6rem; border-radius: var(--radius-lg); text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.download-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); border-color: rgba(79, 155, 255, .5); }
.file-icon {
  position: relative; flex: none; width: 64px; height: 76px; border-radius: 10px; background: #fff; color: var(--red-500);
  display: grid; place-items: end center; padding-bottom: 12px; font-family: var(--mono); font-weight: 700; font-size: .8rem;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.file-icon::before { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 22%; background: #c9d6e8; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.file-icon::after { content: ""; position: absolute; left: 14px; right: 14px; top: 22px; height: 18px; background: repeating-linear-gradient(#dde5f0 0 3px, transparent 3px 7px); }
.download-meta { flex: 1; min-width: 0; }
.download-meta strong { display: block; font-size: 1.12rem; margin-bottom: .2rem; }
.download-meta span { display: block; font-size: .9rem; color: #a9bbd3; }
.download-meta small { display: inline-block; margin-top: .5rem; font-family: var(--mono); font-size: .75rem; color: var(--blue-400); }
.download-go {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-500);
  transition: transform .3s var(--ease), background-color .3s;
}
.download-go svg { width: 20px; height: 20px; }
.download-card:hover .download-go { background: #fff; color: var(--navy-800); transform: translateY(2px); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; cursor: pointer;
  font-weight: 700; font-size: 1.04rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-100); transition: background-color .3s, transform .3s var(--ease);
}
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--blue-600); border-radius: 2px; transition: transform .3s var(--ease);
}
.faq-item summary .plus::after { transform: rotate(90deg); }
.faq-item[open] .plus { background: var(--blue-500); transform: rotate(180deg); }
.faq-item[open] .plus::before, .faq-item[open] .plus::after { background: #fff; }
.faq-item[open] .plus::after { transform: rotate(0); }
.faq-answer { padding: 0 1.4rem 1.35rem; color: var(--ink-soft); }
.faq-answer a { color: var(--blue-600); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: stretch; }
.contact-info {
  position: relative; display: flex; flex-direction: column; gap: 1.6rem; padding: clamp(1.8rem, 1rem + 2.5vw, 2.8rem); border-radius: var(--radius-lg);
  color: #fff; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); overflow: hidden; isolation: isolate;
}
.contact-info::after {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%;
  border: 50px solid rgba(79, 155, 255, .08);
}
.contact-info h3 { font-size: 1.6rem; }
.contact-info > p { color: #b8c7dc; margin-top: -.8rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--blue-400);
}
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8aa0bd; }
.contact-list a, .contact-list address { color: #fff; font-style: normal; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blue-400); }
.map {
  margin-top: auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.map-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: .6rem; padding: 1rem; cursor: pointer;
  border: 0; background: transparent; color: #cfdcee;
}
.map-placeholder span { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 700; font-size: .9rem; }
.map-placeholder svg { width: 18px; height: 18px; }

.contact-form {
  padding: clamp(1.8rem, 1rem + 2.5vw, 2.8rem); border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line);
}
.contact-form h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.contact-form > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; }
.field label .req { color: var(--red-500); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(42, 116, 224, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red-500); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form-foot small { color: var(--ink-soft); flex: 1 1 220px; font-size: .82rem; }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--blue-600); min-height: 1.5em; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.8rem, 1rem + 3vw, 3rem); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-500) 55%, #3f8cff);
  box-shadow: 0 20px 50px rgba(27, 95, 193, .35);
}
.cta-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.cta-band p { color: #dbe8fb; margin-top: .4rem; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb3cd; padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { color: #9fb3cd; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: .85rem; }

/* ---------- Floating actions ---------- */
.fab-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: #25d366; color: #fff; position: relative; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.4s infinite; }
.fab-top { width: 46px; height: 46px; background: var(--white); color: var(--navy-800); opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab-top svg { width: 20px; height: 20px; }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes heroZoom { to { transform: scale(1); } }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 999;
    flex-direction: column; align-items: stretch; gap: .3rem; padding: 1.5rem 1.25rem 2rem;
    background: rgba(4, 20, 42, .98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-900); }
  .nav-links { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-900); }
  .nav-links a { padding: 1rem 1.1rem; font-size: 1.15rem; border-radius: 14px; }
  .nav-links a.active { background: rgba(255, 255, 255, .06); }
  .nav-links a.active::after { left: auto; right: 1.2rem; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .nav-links .mobile-cta { margin-top: 1rem; }
  .nav-links .mobile-cta a { display: flex; justify-content: center; color: #fff; }
  .nav-actions .btn-quote { display: none; }

  .sectors-grid { grid-template-columns: 1fr; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .about-visual { margin: 0 .5rem 1.5rem; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-media { min-height: 0; aspect-ratio: 3 / 2; }
  .dialog-body { padding: 1.8rem 1.5rem; }
}

@media (min-width: 961px) { .nav-links .mobile-cta { display: none; } }

@media (max-width: 700px) {
  body { font-size: .98rem; }
  .brand img { height: 30px; }
  .brand .brand-ev { height: 36px; }
  .brand-sep { height: 24px; }
  .scrolled .brand img { height: 28px; }
  .scrolled .brand .brand-ev { height: 34px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 4rem; }
  .hero::before { background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .55)); }
  .hero-bg img { object-position: 40% center; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div { padding: 1.1rem .8rem 1.1rem 0 !important; border-left: 0 !important; }
  .hero-stats div:nth-child(even) { padding-left: 1rem !important; border-left: 1px solid rgba(255, 255, 255, .1) !important; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .scroll-cue { display: none; }

  .product-grid, .download-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .about-visual .float-card { right: .5rem; left: .5rem; bottom: -1.5rem; max-width: none; }
  .download-card { padding: 1.2rem; gap: 1rem; }
  .file-icon { width: 52px; height: 62px; }
  .file-icon::after { left: 11px; right: 11px; top: 18px; }
  .cta-band .btns, .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .fab-stack { right: 1rem; bottom: 1rem; }
  .fab { width: 52px; height: 52px; }
  .fab-top { width: 42px; height: 42px; }
  .lang-switch a, .lang-switch span { min-width: 34px; padding: .3rem .45rem; }
}

@media (max-width: 380px) {
  .brand-sep, .brand .brand-ev { display: none; }
}

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

@media print {
  .site-header, .fab-stack, .scroll-cue, .map, .contact-form, .hero-bg { display: none !important; }
  .hero, .downloads, .contact-info, .site-footer { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
