/* Barmageyat site — design system
   Palette: harbor navy, brand teal (from the logo), quay white, steel slate.
   Type: Archivo variable. Condensed width for headlines (port signage), normal width for reading. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-display: swap;
}

:root {
  --navy: #071b3b;
  --navy-2: #0c2a55;
  --navy-line: #1d3a66;
  --ink: #0e2240;
  --slate: #4b5b73;
  --slate-on-navy: #a9b8cf;
  --teal: #069caa;
  --teal-dark: #057885;
  --teal-on-navy: #3cc4cf;
  --quay: #f3f6f9;
  --line: #dce3ec;
  --white: #ffffff;
  --danger: #b4232f;
  --ok: #157347;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-frame: 0 30px 60px -30px rgba(3, 14, 33, .55);
  --header-h: 72px;

  /* Type scale (major third from 17px) */
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.45rem);
  --fs-2xl: clamp(2.2rem, 1.3rem + 3vw, 3.4rem);
  --fs-3xl: clamp(2.6rem, 1.2rem + 4.8vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.08;
  font-weight: 750;
  font-stretch: 72%;
  letter-spacing: -.005em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-md); font-stretch: 85%; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--slate); max-width: 62ch; }
.measure { max-width: 66ch; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-sm); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-navy .btn-ghost { color: var(--white); }
.on-navy .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { font-weight: 650; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--navy); }
.on-navy .text-link { color: var(--teal-on-navy); }
.on-navy .text-link:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  border-bottom: 1px solid var(--navy-line);
}
.verify-bar { background: #04132b; font-size: .8125rem; color: var(--slate-on-navy); }
.verify-bar .wrap { display: flex; justify-content: flex-end; gap: 18px; padding-block: 6px; }
.verify-bar a { color: var(--slate-on-navy); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.verify-bar a:hover { color: var(--white); }
@media (max-width: 600px) { .verify-bar .wrap { justify-content: flex-start; } .verify-bar a + a { display: none; } }
.verify-bar svg { width: 14px; height: 14px; color: var(--teal-on-navy); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 8px; }
.brand span { font-weight: 750; font-stretch: 75%; font-size: 1.45rem; letter-spacing: .02em; }
.brand small { display: block; font-size: .72rem; font-weight: 500; font-stretch: 100%; color: var(--slate-on-navy); letter-spacing: .01em; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button.nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: #dbe4f1; text-decoration: none; font: inherit; font-size: .95rem; font-weight: 550;
  background: none; border: 0; cursor: pointer; border-radius: var(--r-sm);
}
.nav a:hover, .nav button.nav-toggle-sub:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal-on-navy); border-radius: 0; background: none; }
.nav .has-sub { position: relative; }
.nav .has-sub svg { width: 12px; height: 12px; transition: transform .15s; }
.nav .has-sub.open svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 6px); left: -12px; min-width: 330px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--white); color: var(--ink); border-radius: var(--r-md);
  box-shadow: 0 24px 50px -20px rgba(3,14,33,.45); display: none;
}
.has-sub.open .subnav { display: block; }
.subnav a { display: block; color: var(--ink); padding: 10px 12px; min-height: 0; border-radius: var(--r-sm); }
.subnav a:hover { background: var(--quay); color: var(--ink); }
.subnav a strong { display: block; font-weight: 700; font-size: .98rem; }
.subnav a span { display: block; font-size: .85rem; color: var(--slate); font-weight: 400; }
.nav a.btn { margin-left: 10px; min-height: 42px; padding: 0 18px; background: var(--teal); color: var(--white); border-radius: var(--r-sm); box-shadow: none; }
.nav a.btn:hover { background: var(--teal-dark); color: var(--white); }
.menu-button { display: none; }

@media (max-width: 1080px) {
  .menu-button {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--white); border: 1.5px solid var(--navy-line); border-radius: var(--r-sm);
    font: inherit; font-weight: 600; cursor: pointer;
  }
  .nav { position: fixed; inset: calc(var(--header-h) + 30px) 0 0 0; background: var(--navy); display: none;
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button.nav-toggle-sub { font-size: 1.15rem; min-height: 52px; width: 100%; justify-content: space-between; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal-on-navy); }
  .subnav { position: static; box-shadow: none; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .subnav a { color: #dbe4f1; }
  .subnav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
  .subnav a span { color: var(--slate-on-navy); }
  .nav a.btn { margin: 16px 0 0; justify-content: center; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-quay { background: var(--quay); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .lead, .on-navy .lead { color: var(--slate-on-navy); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--slate); font-size: var(--fs-md); line-height: 1.6; }
.section-navy .section-head p { color: var(--slate-on-navy); }
.kicker { display: block; font-weight: 650; font-size: .95rem; color: var(--teal-dark); margin-bottom: 12px; }
.on-navy .kicker, .section-navy .kicker { color: var(--teal-on-navy); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.split > .text { grid-column: span 6; }
.split > .media { grid-column: span 6; }
.split.wide-media > .text { grid-column: span 5; }
.split.wide-media > .media { grid-column: span 7; }
.split.reverse > .text { order: 2; }
@media (max-width: 900px) {
  .split > .text, .split > .media, .split.wide-media > .text, .split.wide-media > .media { grid-column: 1 / -1; }
  .split.reverse > .text { order: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero h1 { font-size: var(--fs-3xl); font-stretch: 66%; font-weight: 780; line-height: .98; letter-spacing: -.01em; max-width: 14ch; }
.hero.product h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4rem); max-width: 18ch; }
.hero .lead { color: #c3d0e2; }
.hero .owner { font-weight: 600; color: var(--teal-on-navy); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero .owner img { height: 30px; width: auto; background: var(--white); border-radius: 4px; padding: 3px 6px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.feature-tags li { border: 1px solid var(--navy-line); color: #c3d0e2; border-radius: 999px; padding: 5px 13px; font-size: .88rem; }

/* Frame with ISO-container corner castings: the one recurring visual device */
.frame { position: relative; border-radius: var(--r-md); background: var(--navy-2); box-shadow: var(--shadow-frame); }
.frame img { border-radius: var(--r-md); width: 100%; }
.frame.cornered::before, .frame.cornered::after,
.frame.cornered > .c1, .frame.cornered > .c2 {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 3px solid var(--teal-on-navy);
}
.frame.cornered::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.frame.cornered::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.frame.cornered > .c1 { top: -10px; right: -10px; border-left: 0; border-bottom: 0; }
.frame.cornered > .c2 { bottom: -10px; left: -10px; border-right: 0; border-top: 0; }
.frame.light { background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(7,27,59,.35); }
.frame.light.cornered::before, .frame.light.cornered::after, .frame.light.cornered > .c1, .frame.light.cornered > .c2 { border-color: var(--teal); }
.frame.phone { max-width: 300px; border-radius: 28px; padding: 8px; background: #0a1730; }
.frame.phone img { border-radius: 22px; }
.phones { display: flex; gap: 24px; justify-content: center; }
.phones .frame.phone { flex: 1 1 0; }

/* Hero entrance — the single orchestrated load moment */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] { animation: enter .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero [data-enter="2"] { animation-delay: .08s; }
  .hero [data-enter="3"] { animation-delay: .16s; }
  .hero [data-enter="4"] { animation-delay: .24s; }
  .hero .media[data-enter] { animation: enter-frame .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes enter-frame { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
}

/* ---------- Domain strip ---------- */
.domains { border-top: 1px solid var(--navy-line); margin-top: clamp(48px, 6vw, 80px); padding-top: 28px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.domains div { color: var(--slate-on-navy); font-size: .95rem; line-height: 1.4; }
.domains strong { display: block; color: var(--white); font-weight: 700; font-stretch: 80%; font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 900px) { .domains { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product index (home + solutions) ---------- */
.product-index { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.product-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.product-list li { border-bottom: 1px solid var(--line); }
.product-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 4px; text-decoration: none; color: var(--ink); }
.product-list a strong { font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); font-weight: 750; font-stretch: 70%; line-height: 1.1; }
.product-list a span { grid-column: 1; color: var(--slate); font-size: .98rem; line-height: 1.5; }
.product-list a svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 22px; height: 22px; color: var(--slate); transition: transform .15s, color .15s; }
.product-list a:hover strong, .product-list a.active strong { color: var(--teal-dark); }
.product-list a:hover svg, .product-list a.active svg { color: var(--teal-dark); transform: translateX(4px); }
.product-list a.active { box-shadow: inset 3px 0 0 var(--teal); padding-left: 16px; }
.product-list .thumb { display: none; }
.product-preview { position: sticky; top: calc(var(--header-h) + 60px); }
.product-preview figure { margin: 0; display: none; }
.product-preview figure.active { display: block; }
@media (prefers-reduced-motion: no-preference) { .product-preview figure.active { animation: swap .35s ease both; } @keyframes swap { from { opacity: .3; } to { opacity: 1; } } }
@media (max-width: 900px) {
  .product-index { grid-template-columns: 1fr; }
  .product-preview { display: none; }
  .product-list .thumb { display: block; grid-column: 1 / -1; margin-top: 12px; border-radius: var(--r-sm); }
  .product-list a.active { box-shadow: none; padding-left: 4px; }
}

/* ---------- Content blocks ---------- */
.ruled-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 48px); }
.ruled-grid.two { grid-template-columns: repeat(2, 1fr); }
.ruled-grid.four { grid-template-columns: repeat(4, 1fr); }
.ruled-grid > div { border-top: 2px solid var(--navy); padding-top: 18px; }
.section-navy .ruled-grid > div { border-top-color: var(--teal-on-navy); }
.ruled-grid p { color: var(--slate); margin: 0; }
.section-navy .ruled-grid p { color: var(--slate-on-navy); }
.ruled-grid .note { display: block; margin-top: 10px; font-size: .88rem; color: var(--slate); font-style: italic; }
.ruled-grid .link { margin-top: 14px; display: inline-block; }
@media (max-width: 900px) { .ruled-grid, .ruled-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ruled-grid, .ruled-grid.two, .ruled-grid.four { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; line-height: 1.55; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.2l3 3 6-6.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checklist.cols { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
@media (max-width: 700px) { .checklist.cols { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center;
  border: 2px solid var(--teal); color: var(--teal-dark); border-radius: 50%; font-weight: 750; font-stretch: 75%; font-size: 1.15rem; background: var(--white);
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 48px; right: -16px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--slate); margin: 0; }
.section-quay .steps li::before { background: var(--quay); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 60px; min-height: 64px; }
  .steps li::after { top: 46px; bottom: 6px; left: 19px; right: auto; width: 2px; height: auto; }
}

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tag-list li { border: 1.5px solid var(--line); background: var(--white); border-radius: var(--r-sm); padding: 10px 16px; font-weight: 600; }

.callout { border-left: 4px solid var(--teal); background: var(--quay); padding: 18px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.section-quay .callout { background: var(--white); }

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--teal-dark); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* Pairing diagram (ManpowerIQ ↔ AttendanceIQ) */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.pair > div { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 24px; background: var(--white); }
.pair > div .role { display: block; font-size: .9rem; color: var(--teal-dark); font-weight: 650; margin-bottom: 6px; }
.pair .link-line { display: grid; place-items: center; color: var(--teal); }
.pair .link-line svg { width: 40px; height: 40px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .pair .link-line svg { transform: rotate(90deg); } }

/* Gallery of product screens */
.screens { display: grid; gap: clamp(48px, 7vw, 96px); }

/* Value rows */
.value { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.value .text { grid-column: span 6; }
.value .media { grid-column: span 6; }
.value:nth-child(even) .text { order: 2; }
.value blockquote { margin: 22px 0 0; font-size: var(--fs-lg); font-weight: 700; font-stretch: 72%; color: var(--teal-dark); line-height: 1.2; }
.values { display: grid; gap: clamp(64px, 9vw, 112px); }
@media (max-width: 900px) { .value .text, .value .media { grid-column: 1 / -1; } .value:nth-child(even) .text { order: 0; } }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(48px, 6vw, 72px); }
.cta-band h2 { font-size: var(--fs-xl); margin: 0 0 8px; max-width: 24ch; }
.cta-band p { color: var(--slate-on-navy); margin: 0; max-width: 56ch; }
.cta-band .btn-row { margin: 0; }

/* Legal text */
.prose { max-width: 75ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.6em; }
.prose p, .prose li { color: #2c3d57; }
.prose ul { padding-left: 1.2em; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 650; margin-bottom: 7px; }
.field .hint { font-size: .88rem; color: var(--slate); margin: 6px 0 0; }
.field .err { font-size: .88rem; color: var(--danger); margin: 6px 0 0; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field input[type="password"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #b9c6d6; border-radius: var(--r-sm);
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(6,156,170,.2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed #b9c6d6; border-radius: var(--r-sm); background: var(--quay); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.5; font-weight: 400 !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--r-sm); margin: 0 0 20px; }
.alert-ok { background: #e4f5ec; color: #0f5132; border: 1px solid #b6e0c8; }
.alert-err { background: #fdecee; color: #8a1526; border: 1px solid #f3c0c6; }

/* ---------- Careers ---------- */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jobs > li { border-bottom: 1px solid var(--line); }
.jobs details summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 22px 4px; }
.jobs details summary::-webkit-details-marker { display: none; }
.jobs summary strong { font-size: 1.3rem; font-stretch: 78%; font-weight: 750; }
.jobs summary .meta { grid-column: 1; color: var(--slate); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.jobs summary .toggle { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--teal-dark); font-weight: 650; }
.jobs details[open] .toggle .closed, .jobs details:not([open]) .toggle .opened { display: none; }
.jobs .job-body { padding: 0 4px 26px; max-width: 75ch; }
.jobs .job-body h4 { font-size: 1.05rem; font-stretch: 90%; margin: 18px 0 8px; }
.jobs .job-body ul { margin: 0; padding-left: 1.2em; color: #2c3d57; }

/* ---------- Footer ---------- */
.site-footer { background: #04132b; color: var(--slate-on-navy); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-grid h2 { font-size: 1rem; font-stretch: 100%; font-weight: 700; color: var(--white); margin: 0 0 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--slate-on-navy); text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-grid address { font-style: normal; line-height: 1.7; }
.footer-brand img { width: 120px; border-radius: 8px; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-legal { border-top: 1px solid #13284a; }
.footer-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: .88rem; }
.footer-legal a { color: var(--slate-on-navy); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #1d3a66; border-radius: var(--r-sm); }
.social a:hover { background: var(--navy-2); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page header for simple pages */
.page-head { background: var(--navy); color: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: var(--fs-2xl); font-stretch: 68%; max-width: 20ch; margin-bottom: 14px; }
.page-head p { color: #c3d0e2; font-size: var(--fs-md); max-width: 60ch; margin: 0; }

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

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* CCTV-IQ event center: camera still with a live event list docked over it */
.event-center { overflow: visible; }
.event-center > img { border-radius: var(--r-md); }
.event-list {
  position: absolute; right: -18px; bottom: -36px; width: min(330px, 70%);
  background: rgba(4, 19, 43, .94); border: 1px solid var(--navy-line); border-radius: var(--r-md);
  padding: 14px 14px 8px; color: var(--white); box-shadow: var(--shadow-frame); backdrop-filter: blur(6px);
}
.event-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin: 0 0 8px; font-size: .95rem; }
.event-title .live { font-weight: 600; font-size: .78rem; color: var(--teal-on-navy); display: inline-flex; align-items: center; gap: 6px; }
.event-title .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-on-navy); }
@media (prefers-reduced-motion: no-preference) { .event-title .live::before { animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .25; } } }
.event-list ul { list-style: none; margin: 0; padding: 0; }
.event-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #13284a; font-size: .86rem; line-height: 1.3; }
.event-list b { font-size: .7rem; font-weight: 700; text-align: center; border: 1px solid var(--navy-line); border-radius: 4px; padding: 4px 0; color: #c3d0e2; }
.event-list small { display: block; color: var(--slate-on-navy); font-size: .76rem; }
.event-list em { font-style: normal; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.event-list em.review { background: #3b2f0a; color: #ffd36b; }
.event-list em.alert { background: #3d1218; color: #ff9aa6; }
.event-list em.clear { background: #0d3324; color: #7fe0b0; }
@media (max-width: 900px) { .event-list { position: static; width: auto; margin-top: 16px; } }
