/* ============================================================================
   ENDA SECURITY LABELS — SHARED STYLESHEET
   Loaded by every page in addition to its own page-specific inline <style>.
   This file owns:
     - design tokens (CSS variables, mirrored from inline styles for consistency)
     - global header + footer + mobile contact bar
     - placeholder banner
     - utility classes (enda-reveal, enda-btn, enda-img-placeholder)
     - responsive breakpoints
   Page-specific component styles (hero, products matrix, etc.) live in each
   page's inline <style> to preserve original Elementor look.
============================================================================ */

/* ---------- 01. DESIGN TOKENS ------------------------------------------- */
:root {
  --ink: #091b27;
  --ink-2: #122d3d;
  --ink-3: #304959;
  --muted: #667985;
  --muted-2: #8b9aa3;

  --paper: #fcfcfb;
  --surface: #ffffff;
  --soft: #f2f5f4;
  --soft-2: #e8eeec;

  --line: rgba(9, 27, 39, 0.08);
  --line-2: rgba(9, 27, 39, 0.14);

  --blue: #155f89;
  --blue-hover: #104e72;
  --blue-soft: rgba(21, 95, 137, 0.08);
  --aqua: #62cad2;
  --aqua-2: #88d8de;
  --aqua-soft: rgba(98, 202, 210, 0.12);
  --gold: #c89b4a;
  --red: #c0392b;
  --green: #2e8b57;

  --shadow-sm: 0 1px 2px rgba(9, 27, 39, 0.04), 0 2px 6px rgba(9, 27, 39, 0.04);
  --shadow-md: 0 4px 12px rgba(9, 27, 39, 0.06), 0 12px 32px rgba(9, 27, 39, 0.06);
  --shadow-lg: 0 12px 40px rgba(9, 27, 39, 0.08), 0 32px 80px rgba(9, 27, 39, 0.08);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1240px;
  --gutter: 24px;
}

/* ---------- 02. RESET / BASE ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px; /* room for mobile contact bar */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--blue-hover); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

/* ---------- 03. BRAND MARK (used in header + footer) -------------------- */
.enda-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.enda-brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  flex-shrink: 0;
}
.enda-brand__tile { display: block; border-radius: 3px; }
.enda-brand__tile--1 { background: var(--blue); }
.enda-brand__tile--2 { background: var(--aqua); }
.enda-brand__tile--3 { background: var(--gold); }
.enda-brand__tile--4 { background: var(--ink); }
.enda-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.enda-brand__text strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.enda-brand__text small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- 04. HEADER -------------------------------------------------- */
.enda-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 251, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.enda-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.enda-nav { flex: 1; }
.enda-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.enda-nav__item { position: relative; }
.enda-nav__item > a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.enda-nav__item > a:hover { background: var(--soft); color: var(--blue); }
.enda-nav__item--active > a { color: var(--blue); background: var(--blue-soft); }
.enda-nav__caret { font-size: 10px; opacity: 0.6; margin-left: 2px; }

.enda-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.enda-nav__item--has-children:hover > .enda-nav__submenu,
.enda-nav__item--has-children:focus-within > .enda-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.enda-nav__submenu li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.enda-nav__submenu li a:hover { background: var(--soft); color: var(--blue); }

.enda-nav__item--cta { margin-left: 8px; }
.enda-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.enda-btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.enda-btn--primary:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.enda-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.enda-btn--ghost:hover { background: var(--soft); }

/* Mobile nav toggle (hidden on desktop) */
.enda-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.enda-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.enda-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.enda-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.enda-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 05. FOOTER -------------------------------------------------- */
.enda-footer {
  background: var(--ink);
  color: rgba(252, 252, 251, 0.78);
  padding: 64px 0 0;
  margin-top: 80px;
}
.enda-footer a { color: rgba(252, 252, 251, 0.78); }
.enda-footer a:hover { color: var(--aqua); }
.enda-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.enda-footer__col--brand .enda-brand { color: var(--paper); }
.enda-footer__col--brand .enda-brand__text small { color: rgba(252, 252, 251, 0.5); }
.enda-footer__about { font-size: 14px; line-height: 1.6; margin: 20px 0 16px; }
.enda-footer__contact a { font-family: var(--mono); font-size: 13px; }
.enda-footer__heading {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 0 0 20px;
}
.enda-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.enda-footer__list a { font-size: 14px; }

.enda-footer__legal {
  border-top: 1px solid rgba(252, 252, 251, 0.08);
  padding: 24px 0;
  font-size: 12px;
}
.enda-footer__legal-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.enda-footer__legal p { margin: 0; }
.enda-footer__legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

/* ---------- 06. PLACEHOLDER BANNER ------------------------------------- */
.enda-placeholder-banner {
  position: relative;
  background: #fff7d6;
  border-bottom: 1px solid #f0c948;
  color: #5b4500;
  font-size: 13px;
  z-index: 50;
}
.enda-placeholder-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 56px 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.enda-placeholder-banner strong { font-family: var(--display); }
.enda-placeholder-banner code {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}
.enda-placeholder-banner__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  color: #5b4500;
  font-size: 24px;
  line-height: 1;
  border-radius: 6px;
}
.enda-placeholder-banner__close:hover { background: rgba(0, 0, 0, 0.06); }

/* ---------- 07. MOBILE CONTACT BAR ------------------------------------- */
.enda-mobile-contact {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  padding: 10px var(--gutter);
  gap: 10px;
}
.enda-mobile-contact__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.enda-mobile-contact__btn--primary {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 08. IMAGE PLACEHOLDER (CSS-driven) ------------------------- */
.enda-img-placeholder {
  position: relative;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(21, 95, 137, 0.06) 0%, rgba(98, 202, 210, 0.06) 100%),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.enda-img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(21, 95, 137, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(98, 202, 210, 0.10) 0%, transparent 40%);
}
.enda-img-placeholder > * { position: relative; z-index: 1; }
.enda-img-placeholder[data-aspect="16/9"] { aspect-ratio: 16 / 9; }
.enda-img-placeholder[data-aspect="4/3"]  { aspect-ratio: 4 / 3; }
.enda-img-placeholder[data-aspect="1/1"]  { aspect-ratio: 1 / 1; }
.enda-img-placeholder[data-aspect="3/4"]  { aspect-ratio: 3 / 4; }
.enda-img-placeholder[data-aspect="21/9"] { aspect-ratio: 21 / 9; }
.enda-img-placeholder[data-aspect="auto"] { aspect-ratio: auto; min-height: 200px; }

/* ---------- 09. REVEAL ANIMATION --------------------------------------- */
.enda-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.enda-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 10. RESPONSIVE --------------------------------------------- */
@media (max-width: 1024px) {
  .enda-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 880px) {
  .enda-nav__toggle { display: inline-flex; }
  .enda-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .enda-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .enda-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 0;
  }
  .enda-nav__item > a { padding: 12px 16px; width: 100%; }
  .enda-nav__item--has-children > .enda-nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .enda-nav__item--cta { margin: 8px 0 0; }
  .enda-nav__item--cta .enda-btn { width: 100%; justify-content: center; }
  .enda-mobile-contact { display: flex; }
  body { padding-bottom: 88px; }
  .enda-header__inner { padding: 12px var(--gutter); }
}
@media (max-width: 600px) {
  .enda-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .enda-footer__legal-inner { flex-direction: column; align-items: flex-start; }
  .enda-footer__legal ul { flex-wrap: wrap; gap: 12px 20px; }
}

/* ---------- 11. PAGE BODY WRAPPER (sane defaults) ---------------------- */
.enda-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gutter);
}
.enda-section { padding: 64px 0; }
.enda-section__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.enda-section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}
.enda-section__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 720px;
  margin: 0 0 24px;
}
.enda-grid {
  display: grid;
  gap: 24px;
}
.enda-grid--2 { grid-template-columns: repeat(2, 1fr); }
.enda-grid--3 { grid-template-columns: repeat(3, 1fr); }
.enda-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .enda-grid--2, .enda-grid--3, .enda-grid--4 { grid-template-columns: 1fr; }
}
