/* ==========================================================================
   ElectroTechnix Landing Pages — shared styles
   Mobile-first, dependency-free. Industrial B2B aesthetic.
   ========================================================================== */

:root {
  --navy: #0b2f5e;
  --navy-700: #0a274d;
  --blue: #1663c7;
  --blue-600: #1257ad;
  --ink: #16202e;
  --muted: #55637a;
  --line: #e2e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-softer: #eef3f9;
  --amber: #f5a417;
  --call: #1663c7;
  --wa: #25d366;
  --wa-700: #1da851;
  --ok: #1f9d57;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(11, 47, 94, .08), 0 1px 2px rgba(11, 47, 94, .06);
  --shadow: 0 6px 24px rgba(11, 47, 94, .10);
  --shadow-lg: 0 18px 48px rgba(11, 47, 94, .16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--blue); margin: 0 0 .6rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Site header + nav ---------------------------------------------- */
.topbar { background: var(--navy); color: #fff; font-size: .92rem; position: relative; }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.topbar__brand { display: flex; align-items: center; text-decoration: none; white-space: nowrap; }
.topbar__brand img { height: 34px; width: auto; display: block; }
.footer__brand { height: 40px; width: auto; margin-bottom: 12px; }
.topnav { display: flex; align-items: center; gap: 20px; margin-left: 14px; }
.topnav a { color: #dfe9f7; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; }
.topbar__phone { margin-left: auto; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar__phone:hover { color: var(--amber); }
/* Mobile hamburger (details/summary — no JS). No margin-left:auto here —
   only .topbar__phone carries it, so phone + hamburger right-align as a group. */
.navmenu { display: none; }
.navmenu > summary { list-style: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #fff; padding: 6px 8px; }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu__panel { position: absolute; top: 58px; left: 0; right: 0; background: var(--navy-700); display: flex; flex-direction: column; padding: 6px 20px 14px; box-shadow: var(--shadow); z-index: 70; }
.navmenu__panel a { color: #eaf1fb; text-decoration: none; font-weight: 600; padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.navmenu__panel a:last-child { border-bottom: 0; }
/* legacy contact bar (kept for any page still using it) */
.topbar__contact { display: flex; align-items: center; gap: 18px; }
.topbar__contact a { color: #dfe9f7; text-decoration: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px){
  .topnav { display: none; }
  .navmenu { display: block; }
  .topbar__phone { margin-left: auto; margin-right: 6px; font-size: .95rem; }
}
@media (max-width: 380px){ .topbar__phone { display: none; } }

/* ---------- Hero ----------------------------------------------------------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; background: #e7f0fc; color: var(--blue-600); font-weight: 700; font-size: .82rem; padding: 6px 13px; border-radius: 999px; margin-bottom: 1rem; }
.hero__title { margin-bottom: .6rem; }
.hero__sub { font-size: 1.14rem; color: var(--muted); margin-bottom: 1.4rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #fff; }
.hero__badge { position: absolute; bottom: -14px; left: -10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 15px; font-weight: 700; font-size: .9rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px){ .hero__grid { grid-template-columns: 1fr; } .hero__media { order: -1; } .hero__badge { display: none; } }

/* ---------- Buttons -------------------------------------------------------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1.02rem; padding: 14px 22px; border-radius: 11px; text-decoration: none; border: 0; cursor: pointer; transition: transform .06s ease, box-shadow .15s ease, background .15s ease; min-height: 52px; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--call { background: var(--call); color: #fff; box-shadow: 0 6px 16px rgba(22, 99, 199, .3); }
.btn--call:hover { background: var(--blue-600); }
.btn--wa { background: var(--wa); color: #073b1e; box-shadow: 0 6px 16px rgba(37, 211, 102, .32); }
.btn--wa:hover { background: var(--wa-700); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { font-size: 1.08rem; padding: 16px 26px; min-height: 56px; }
.btn--block { width: 100%; }

/* ---------- Trust strip ---------------------------------------------------- */
.trust { background: var(--navy); color: #eaf1fb; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 20px 0; }
.trust__item { display: flex; align-items: center; gap: 11px; padding: 10px 14px; font-weight: 600; font-size: .96rem; }
.trust__item svg { width: 26px; height: 26px; color: var(--amber); flex: none; }
@media (max-width: 820px){ .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .trust__grid { grid-template-columns: 1fr; } }

/* ---------- Video ---------------------------------------------------------- */
.video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #0a1a30; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { cursor: pointer; background-size: cover; background-position: center; }
.video-facade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,48,.15), rgba(10,26,48,.45)); }
.video-facade__play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .12s ease, background .12s ease; }
.video-facade:hover .video-facade__play { transform: scale(1.06); background: #fff; }
.video-facade__play::after { content: ""; border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent var(--blue); margin-left: 6px; }
.video-facade__label { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; font-weight: 700; font-size: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); z-index: 1; }

/* ---------- Product cards -------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px){ .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px){ .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card__media { background: var(--bg-softer); height: 210px; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 6px; }
.card h3 { margin-bottom: .4rem; }
.card ul { margin: .3rem 0 1rem; padding-left: 0; list-style: none; }
.card li { position: relative; padding: 3px 0 3px 24px; font-size: .96rem; color: var(--ink); }
.card li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.card .btn { margin-top: auto; }

/* ---------- Image placeholder (until real photo supplied) ------------------ */
.ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #eef3f9, #e2eaf5); color: var(--muted); text-align: center; padding: 22px; border-radius: inherit; }
.ph svg { width: 46px; height: 46px; color: #a9bcd6; }
.ph__name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.ph__note { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: #93a5c1; }
.hero__media .ph { aspect-ratio: 3 / 2; box-shadow: var(--shadow-lg); }

/* ---------- Spec table ----------------------------------------------------- */
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 420px; }
table.spec caption { text-align: left; font-weight: 700; color: var(--navy); padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
table.spec th, table.spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 42%; color: var(--muted); font-weight: 600; background: #fbfcfe; }
table.spec td { font-weight: 600; color: var(--ink); }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

/* ---------- Comparison table ----------------------------------------------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .97rem; }
table.cmp th, table.cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--bg-soft); font-size: .9rem; color: var(--muted); font-weight: 700; }
table.cmp thead th.us { background: var(--navy); color: #fff; }
table.cmp tbody th { font-weight: 600; color: var(--muted); width: 30%; }
table.cmp td.us { background: #f2f8f2; font-weight: 600; color: var(--ink); }
table.cmp td.them { color: var(--muted); }
table.cmp td.us::before { content: "\2713 "; color: var(--ok); font-weight: 800; }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ------------------------------------------------------------ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__a { padding: 14px 20px 18px; color: var(--muted); }

/* ---------- Lead form ------------------------------------------------------ */
.leadform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 34px); max-width: 560px; margin: 0 auto; }
.leadform h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--ink); }
.field input, .field select { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,99,199,.14); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-success { display: none; text-align: center; padding: 18px; background: #eafaf0; border: 1px solid #bfe8cf; border-radius: 12px; color: #15683c; font-weight: 600; }

/* ---------- Split CTA / contact block -------------------------------------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px){ .contact-split { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile CTA bar ------------------------------------------ */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,47,94,.10); }
.sticky-cta .btn { flex: 1; min-height: 50px; font-size: 1rem; padding: 12px; }
@media (max-width: 860px){ .sticky-cta { display: flex; } body { padding-bottom: 76px; } }

/* ---------- Floating WhatsApp --------------------------------------------- */
.fab-wa { position: fixed; right: 18px; bottom: 88px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); box-shadow: 0 8px 22px rgba(37,211,102,.45); display: flex; align-items: center; justify-content: center; }
.fab-wa svg { width: 32px; height: 32px; }
@media (min-width: 861px){ .fab-wa { bottom: 24px; } }

/* ---------- Footer --------------------------------------------------------- */
.footer { background: var(--navy-700); color: #c7d6ec; padding: 40px 0 30px; font-size: .95rem; }
.footer a { color: #e3edfb; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .85rem; color: #8ba4c6; }
@media (max-width: 720px){ .footer__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Breadcrumb ----------------------------------------------------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Utility -------------------------------------------------------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Home: product category cards ----------------------------------- */
.cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .1s ease, box-shadow .15s ease; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat__media { height: 190px; background: var(--bg-softer); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cat__media img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat__body { padding: 18px 20px 22px; }
.cat__body h3 { margin-bottom: .35rem; }
.cat__body p { color: var(--muted); font-size: .96rem; margin: 0 0 .8rem; }
.cat__more { font-weight: 700; color: var(--blue); font-size: .95rem; }
.cat:hover .cat__more { text-decoration: underline; }

/* ---------- Brand partners strip ------------------------------------------- */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); }
.brands__item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.brands__item img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; }
.brands__item .flag { font-size: 1.4rem; }

/* ---------- Contact page --------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px){ .contact-cards { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.05rem; margin-bottom: .4rem; display: flex; align-items: center; gap: 8px; }
.info-card p, .info-card a { color: var(--muted); font-size: .98rem; margin: 2px 0; display: block; text-decoration: none; }
.info-card a:hover { color: var(--blue); }
.map-frame { position: relative; padding-top: 42%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Checklist (feature lists outside cards) ------------------------ */
.checklist { list-style: none; margin: .6rem 0 0; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 30px; font-size: 1rem; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 13px; height: 8px; border-left: 2.6px solid var(--ok); border-bottom: 2.6px solid var(--ok); transform: rotate(-45deg); }
