/* ==========================================================================
   Secured by web — components.css
   Buttons · Header · Heroes · Hero tabs · Section head · Statement · Stats
   Split · Features · Steps · Sectors · Partners · Panel · Buy · Chips · Solution index · Console
   Feature panel · Case · Logo wall · Gallery · Next solutions · CTA panel
   Contact form · Footer · Responsive
   ========================================================================== */

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .25s;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { height: 44px; padding: 0 18px; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--green-600); }
.btn--dark { background: var(--navy-900); color: var(--on-dark); }
.btn--dark:hover { background: #16264A; }
.btn--outline-light { color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1px var(--on-dark); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent-text); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header -------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--on-dark);
  padding: var(--frame) var(--frame) 0;   /* sits inside the framed hero until scrolled */
  transition: background .35s, color .35s, box-shadow .35s, padding .35s;
}
.site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 84px; transition: height .35s var(--ease); }
.site-header__logo { justify-self: start; }
.site-header__logo img { height: 34px; width: auto; filter: brightness(0) invert(1); transition: filter .35s; }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.site-header .btn--primary { background: var(--accent); color: var(--ink); }

.site-header.is-solid, .site-header.is-open {
  padding: 0; color: var(--ink); background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .site-header__bar { height: 68px; }
.site-header.is-solid .site-header__logo img, .site-header.is-open .site-header__logo img { filter: none; }
.site-header.is-solid .btn--primary, .site-header.is-open .btn--primary { background: var(--accent); color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 40px;
  opacity: .86; transition: color .2s, opacity .2s, text-shadow .2s;
}
.site-nav__link:hover, .site-nav__link:focus-visible, .site-nav__link[aria-expanded="true"] {
  opacity: 1; color: var(--green); text-shadow: .45px 0 0 currentColor, -.45px 0 0 currentColor;
}
.site-header.is-solid .site-nav__link:hover, .site-header.is-solid .site-nav__link[aria-expanded="true"] { color: var(--accent-text); }
.site-nav__link.is-current { opacity: 1; text-shadow: .45px 0 0 currentColor, -.45px 0 0 currentColor; }
.site-nav__link.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--green);
}
.site-nav__link svg { transition: transform .25s var(--ease); }
.site-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__group { position: relative; }
.site-nav__menu {
  position: absolute; top: 100%; left: 50%; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.site-nav__group.is-open .site-nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Solutions menu: product list with photos + live preview */
.menu {
  display: grid; grid-template-columns: 1fr 280px; gap: 8px; width: 720px; padding: 8px;
  border-radius: 20px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(11, 20, 36, .06), 0 30px 60px -20px rgba(11, 20, 36, .35);
}
.menu__list { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.menu__item { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; transition: background .2s; }
.menu__item:hover, .menu__item:focus-visible { background: var(--bg); }
.menu__thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.menu__item b { display: block; font-size: 15px; font-weight: 500; transition: color .2s; }
.menu__item:hover b { color: var(--accent-text); }
.menu__item small { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.menu__divider { height: 1px; margin: 6px 8px; background: var(--line); }
.menu__preview { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--navy-900); color: var(--on-dark); }
.menu__preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .25s; }
.menu__preview p { padding: 16px 18px 0; font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
.menu__cta { display: block; margin-top: auto; padding: 16px 18px 18px; font-size: var(--fs-xs); color: var(--on-dark-3); }
.menu__cta b { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--green); }
.site-nav__mobile-cta { display: none; }

.site-header__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); position: relative; }
.site-header__toggle span:not(.visually-hidden) {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.site-header__toggle span:nth-child(1) { top: 17px; }
.site-header__toggle span:nth-child(2) { top: 25px; }
.site-header.is-open .site-header__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-header.is-open .site-header__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Home hero (framed photo) ------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--frame); border-radius: var(--r-lg);
  min-height: calc(100vh - 2 * var(--frame));
  min-height: calc(100svh - 2 * var(--frame));
  display: flex; align-items: flex-end;
  color: var(--on-dark); background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
@media (min-width: 1001px) {   /* widen the photo so the mast sits clear of the headline */
  .hero .hero__media img { width: 124%; max-width: none; object-position: 70% 30%; }
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: hero-zoom 2.6s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }
.hero::before {   /* darken behind the text only; keep the right of the photo bright */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(9, 18, 36, .9) 0%, rgba(9, 18, 36, .6) 40%, rgba(9, 18, 36, 0) 75%),
    linear-gradient(0deg, rgba(9, 18, 36, .7) 0%, rgba(9, 18, 36, 0) 30%),
    linear-gradient(180deg, rgba(9, 18, 36, .45) 0%, rgba(9, 18, 36, 0) 18%);
}
.hero__inner { width: 100%; padding-top: 140px; padding-bottom: 40px; }
.hero__content > * { animation: fade-up .9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
.hero__title { font-size: clamp(44px, 5.6vw, 86px); letter-spacing: -.05em; line-height: .98; }
.hero__title span { color: var(--green); }
.hero__text { max-width: 54ch; margin: 28px 0 40px; font-size: var(--fs-lead); color: var(--on-dark-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; align-items: center; gap: 40px; margin-top: 80px; animation: fade-up .9s .45s var(--ease) both; }
.hero__trust-label { flex: none; font-size: var(--fs-small); color: var(--on-dark-3); }
.hero__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.hero__logos img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .78; }
.hero__logos img[alt="Bestseller"] { height: 16px; }

/* Page hero (subpages: navy panel, text + image) -------------------------- */
.page-hero {
  margin: var(--frame); border-radius: var(--r-lg); overflow: hidden;
  padding: 132px 0 72px; background: var(--navy-900); color: var(--on-dark);
}
.page-hero__top { margin-bottom: 40px; }
.page-hero__inner { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.page-hero--text .page-hero__inner { grid-template-columns: 1fr; }
.page-hero__inner > div:first-child { min-width: 0; }
.page-hero__title { max-width: var(--measure-title); }
.page-hero__text { max-width: var(--measure); margin: 24px 0 40px; font-size: var(--fs-lead); color: var(--on-dark-2); }
.page-hero__media { aspect-ratio: 5 / 4; border-radius: var(--r-md); overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; gap: 8px; font-size: var(--fs-small); color: var(--on-dark-3); }
.breadcrumb a:hover { color: var(--on-dark); }

/* Section head ------------------------------------------------------------ */
.section-head { margin-bottom: 48px; }
.section-head__title span { color: var(--accent-text); }
.section-head__intro { max-width: 80ch; margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-2); }
.section-head--on-dark .section-head__title span { color: var(--green); }
.section-head--on-dark .section-head__intro { color: var(--on-dark-2); }

/* Statement (large intro text) ------------------------------------------- */
.statement { max-width: 46ch; font-size: clamp(28px, 3.1vw, 46px); font-weight: 400; line-height: 1.2; letter-spacing: -.028em; }
.statement span { color: var(--accent-text); }

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 88px; }
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__value, .stat__logo { display: flex; align-items: flex-end; height: 52px; }
.stat__value { gap: 6px; font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1; color: var(--navy); }
.stat__logo img { height: 40px; width: auto; }
.stat__text { font-size: 15px; color: var(--ink-2); }

/* Split (media + text) ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { aspect-ratio: 5 / 4; border-radius: var(--r-md); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__title { margin-bottom: 24px; }
.split__title span { color: var(--accent-text); }
.split__body .case__list { margin-top: 28px; padding-top: 0; }
.split__body p { font-size: 18px; color: var(--ink-2); max-width: var(--measure); }
.split__body p + p { margin-top: 16px; }
.split__body strong { color: var(--ink); font-weight: 500; }

/* Features (icon-led open columns) ----------------------------------------- */
.features { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 48px 56px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 4px 20px; align-content: start; }
.feature__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-tint); color: var(--green-700); }
.feature h3 { padding-top: 2px; margin-bottom: 6px; font-size: 20px; }
.feature p { font-size: 16px; color: var(--ink-2); }
.feature p strong { color: var(--ink); font-weight: 500; }
.features--cards { gap: var(--gap); }
.features--cards .feature {
  display: flex; flex-direction: column; gap: 0; padding: 32px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: 0 1px 2px rgba(11, 20, 36, .04), 0 18px 40px -28px rgba(11, 20, 36, .25);
}
.features--cards .feature__icon { margin-bottom: 28px; }
.features--cards .feature h3 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.025em; }
.features--cards .feature p { font-size: 16.5px; line-height: 1.6; }

/* Timeline (connected process on navy) ------------------------------------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 64px; border-radius: var(--r-lg); background: var(--navy-900); color: var(--on-dark); }
.timeline::before { content: ""; position: absolute; top: 86px; left: 64px; right: 64px; height: 1px; background: linear-gradient(90deg, var(--green), rgba(255, 255, 255, .15)); }
.timeline__dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--green); font-size: var(--fs-xs); font-weight: 500; color: var(--green); }
.timeline__step h3 { margin: 28px 0 10px; font-size: 32px; letter-spacing: -.04em; }
.timeline__step p { color: var(--on-dark-2); }

/* Sector list (index rows) -------------------------------------------------- */
.sector-list { border-top: 1px solid var(--line); }
.sector {
  display: grid; grid-template-columns: 64px 1.1fr 1fr 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease);
}
.sector:hover { padding-left: 12px; }
.sector__num { font-size: var(--fs-xs); font-weight: 500; color: var(--accent-text); }
.sector h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.035em; transition: color .25s; }
.sector:hover h3 { color: var(--accent-text); }
.sector p { color: var(--ink-2); }
.sector__clients { font-size: var(--fs-small); color: var(--ink-3); }

/* Partners ------------------------------------------------------------------ */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.partner img { height: 34px; width: auto; margin-bottom: 28px; }
.partner h3 { margin-bottom: 10px; }
.partner p { font-size: 16px; color: var(--ink-2); }
.note { margin-top: 48px; font-size: 15px; color: var(--ink-3); }
.note b { font-weight: 500; color: var(--ink-2); }

/* Delivery panel (checklist + how you buy + tags) --------------------------- */
.delivery { display: grid; grid-template-columns: 1.7fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.delivery__main { display: flex; flex-direction: column; gap: 40px; padding: 56px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.checklist strong { color: var(--ink); font-weight: 500; }
.checklist__icon { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(125, 179, 67, .16); color: #4E7F22; }
.delivery__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); }
.delivery__tags b { margin-right: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.delivery__tags span { padding: 7px 14px; border-radius: 999px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.delivery__buy { padding: 56px 48px; background: var(--navy-900); color: var(--on-dark); }
.delivery__label { margin-bottom: 32px; font-size: 22px; letter-spacing: -.025em; }
.buy-steps { position: relative; display: grid; gap: 32px; counter-reset: buy; }
.buy-steps::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 28px; width: 1px; background: rgba(255, 255, 255, .18); }
.buy-steps li { position: relative; padding-left: 48px; counter-increment: buy; }
.buy-steps li::before {
  content: "0" counter(buy); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--green);
  font-size: 11px; font-weight: 500; color: var(--green);
}
.buy-steps b { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.buy-steps p { font-size: 15px; color: var(--on-dark-2); }

/* Solution index (home) --------------------------------------------------- */
.solution-index { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.solution-index__list { border-top: 1px solid var(--line); }
.solution-index__item {
  position: relative; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center;
  width: 100%; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); transition: color .3s;
}
.solution-index__item:hover { color: var(--ink-2); }
.solution-index__item.is-active { color: var(--ink); }
.solution-index__item h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.035em; }
.solution-index__num { font-size: var(--fs-xs); }
.solution-index__item.is-active .solution-index__num { color: var(--accent-text); font-weight: 500; }
.solution-index__arrow { opacity: 0; transform: translateX(-8px); transition: .35s var(--ease); color: var(--accent-text); }
.solution-index__item.is-active .solution-index__arrow { opacity: 1; transform: none; }
.solution-index__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.solution-index__item.is-active .solution-index__bar { animation: progress 7s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.solution-index__view { position: sticky; top: 112px; }
.solution-panel { display: none; }
.solution-panel.is-active { display: block; animation: fade-up .6s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.solution-panel__media { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; }
.solution-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.solution-panel__body { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.solution-panel__body p { max-width: 60ch; font-size: 18px; color: var(--ink); }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.check-row li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.solution-panel__body .text-link { font-size: 15px; }

/* Console (Meldweb UI illustration) ---------------------------------------- */
.console {
  display: grid; grid-template-columns: 190px 1fr 290px; gap: 12px;
  padding: 16px; border-radius: var(--r-md); background: #07122A;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); font-size: 13px; color: #B7C0D3;
}
.console__nav { display: flex; flex-direction: column; gap: 2px; }
.console__nav b { margin: 6px 10px 18px; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.console__nav span { padding: 8px 10px; border-radius: 8px; color: #7F8AA3; }
.console__nav span.is-active { background: rgba(255, 255, 255, .06); color: var(--on-dark); }
.console__cams { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 118px; gap: 6px; }
.console__cam { position: relative; border-radius: 6px; background: #16203A center / cover; filter: grayscale(1) brightness(.78); }
.console__cam--main { grid-column: span 2; grid-row: span 2; filter: grayscale(.3) brightness(.9); box-shadow: inset 0 0 0 2px var(--alert); }
.console__cam span { position: absolute; left: 8px; bottom: 7px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .55); font-size: 11px; color: var(--on-dark); }
.console__events { display: flex; flex-direction: column; gap: 6px; }
.console__head { display: flex; justify-content: space-between; padding: 6px 4px 8px; color: #7F8AA3; }
.console__event { display: grid; grid-template-columns: 1fr auto; gap: 2px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.console__event small { color: #7F8AA3; }
.console__event.is-alert { background: rgba(229, 83, 75, .12); box-shadow: inset 2px 0 0 var(--alert); color: var(--on-dark); }
.console__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.console__buttons span { padding: 10px; border-radius: 8px; text-align: center; background: rgba(255, 255, 255, .06); color: var(--on-dark); }
.console__buttons span:first-child { background: var(--accent); color: var(--ink); }

/* Feature panel (navy block with heading + console) ------------------------ */
.feature-panel { padding: 72px 64px 64px; border-radius: var(--r-lg); background: var(--navy-900); color: var(--on-dark); }
.feature-panel .section-head { margin-bottom: 40px; }
.feature-panel + .features { margin-top: 56px; }
.text-link--light { color: var(--green); }

/* Case (media + white card) ---------------------------------------------- */
.case { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); }
.case__media { min-height: 560px; border-radius: var(--r-md); overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
.case__body { display: flex; flex-direction: column; padding: 48px; border-radius: var(--r-md); background: var(--surface); }
.case__badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--ns-yellow); font-size: var(--fs-small); font-weight: 500; color: #06155A; }
.case__badge img { height: 16px; width: auto; }
.case__title { margin: 40px 0 18px; font-size: clamp(30px, 2.8vw, 42px); }
.case__body > p { color: var(--ink-2); }
.case__list { margin-top: auto; padding-top: 32px; }
.case__list li { display: grid; grid-template-columns: 40px 1fr; padding: 10px 0; font-size: 15px; }
.case__list span { font-size: var(--fs-xs); font-weight: 500; color: var(--accent-text); padding-top: 2px; }

/* Logo wall --------------------------------------------------------------- */
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.logo-tile { display: grid; place-items: center; height: 152px; padding: 28px; border-radius: var(--r-md); background: var(--surface); }
.logo-tile { transition: transform .35s var(--ease), box-shadow .35s; }
.logo-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(11, 20, 36, .35); }
.logo-tile img { max-height: 40px; max-width: min(150px, 100%); width: auto; }
.logo-tile--text { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--navy); }

/* Gallery ----------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.gallery figure:nth-child(1) { grid-column: span 7; }
.gallery figure:nth-child(2) { grid-column: span 5; }
.gallery figure:nth-child(3) { grid-column: span 4; }
.gallery figure:nth-child(4) { grid-column: span 8; }
.gallery__media { height: 420px; border-radius: var(--r-md); overflow: hidden; }
.gallery__media img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-3); }

/* Next solutions ------------------------------------------------------------ */
.next-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.next-card { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.next-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.next-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next-card:hover img { transform: scale(1.04); }
.next-card__body { position: relative; padding: 24px 64px 28px 28px; }
.next-card__body p { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.next-card__arrow { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); color: var(--accent-text); }

/* CTA panel (navy by default; --accent is the green booking panel) ------- */
.cta-panel {
  display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: end;
  padding: 80px 72px; border-radius: var(--r-lg); background: var(--navy-900); color: var(--on-dark);
}
.cta-panel__title { max-width: var(--measure-title); }
.cta-panel__title span { color: var(--green); }
.cta-panel__text { max-width: var(--measure); margin: 20px 0 36px; color: var(--on-dark-2); }
.cta-panel__contact { padding: 8px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); }
.cta-panel__contact a, .cta-panel__contact div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-sm); transition: background .2s; }
.cta-panel__contact a:hover { background: rgba(255, 255, 255, .08); }
.cta-panel__contact small { font-size: var(--fs-xs); color: var(--on-dark-3); }
.cta-panel--accent { background: var(--green); color: var(--ink); }
.cta-panel--accent .cta-panel__text { color: #1F2A3A; }   /* 5.9:1 on the green panel */
.cta-panel--accent .cta-panel__contact { background: rgba(255, 255, 255, .28); }
.cta-panel--accent .cta-panel__contact a:hover { background: rgba(255, 255, 255, .3); }
.cta-panel--accent .cta-panel__contact small { color: #2E3A2A; }

/* Contact ----------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.contact__info { position: sticky; top: 100px; padding: 40px; border-radius: var(--r-md); background: var(--navy-900); color: var(--on-dark); }
.contact__info h2 { font-size: 26px; letter-spacing: -.03em; }
.contact__steps { margin: 24px 0 32px; counter-reset: step; }
.contact__steps li { display: grid; grid-template-columns: 36px 1fr; padding: 10px 0; font-size: 15px; color: var(--on-dark-2); counter-increment: step; }
.contact__steps li::before { content: "0" counter(step); font-size: var(--fs-xs); font-weight: 500; color: var(--green); padding-top: 2px; }
.contact__details { display: grid; gap: 4px; padding: 8px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); }
.contact__details a, .contact__details div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; font-size: 16px; transition: background .2s; }
.contact__details a:hover { background: rgba(255, 255, 255, .08); }
.contact__details small { font-size: var(--fs-xs); color: var(--on-dark-3); }

.form { padding: 48px; border-radius: var(--r-md); background: var(--surface); }
.form__group { border: 0; padding: 0; margin: 0 0 36px; }
.form__legend { display: block; margin-bottom: 18px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.form__legend small { font-size: var(--fs-small); font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row + .form__row { margin-top: 16px; }
.field { display: grid; gap: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.field__label { display: block; }
.field__req { color: var(--accent-text); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-sm); outline: none;
  background: var(--bg); font-size: 16px; font-weight: 400; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #A8ADB8; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(11, 20, 36, .18); }
.field input:focus, .field textarea:focus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px rgba(31, 63, 115, .1); }
.field textarea { height: 120px; resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.choice span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #B9BEC8;
  background: center / 10px no-repeat; transition: background-color .2s, box-shadow .2s;
}
.choice input[type="checkbox"] + span::before { border-radius: 5px; }
.choice:hover span { box-shadow: inset 0 0 0 1px rgba(11, 20, 36, .2); }
.choice input:checked + span { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.choice input:checked + span::before {
  background-color: var(--green); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E");
}
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.form__note { max-width: 46ch; font-size: var(--fs-small); color: var(--ink-3); }
.form__note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form__success { display: none; padding: 56px 48px; border-radius: var(--r-md); background: var(--surface); text-align: center; }
.form__success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%; background: var(--green); color: var(--on-dark); }
.form__success h3 { font-size: 28px; letter-spacing: -.03em; }
.form__success p { max-width: 52ch; margin: 12px auto 0; color: var(--ink-2); }
.contact.is-sent .form { display: none; }
.contact.is-sent .form__success { display: block; }
/* Without JavaScript, contact.php redirects back to #sent or #send-error */
.contact:has(.form__success:target) .form { display: none; }
.form__success:target { display: block; }
.form__error { display: none; margin-top: 20px; padding: 14px 18px; border-radius: var(--r-sm); background: #FBEAEA; color: #8A1C1C; font-size: var(--fs-small); }
.form__error.is-visible, .form__error:target { display: block; }
.form__error a { text-decoration: underline; text-underline-offset: 3px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form [disabled] { opacity: .6; cursor: progress; }

/* Legal pages ------------------------------------------------------------------ */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 72px; align-items: start; }
.legal__aside { position: sticky; top: 100px; }
.legal__aside ol { display: grid; gap: 4px; counter-reset: toc; }
.legal__aside li { counter-increment: toc; }
.legal__aside a { display: block; padding: 6px 0; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.legal__aside a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--accent-text); font-size: var(--fs-xs); }
.legal__aside a:hover { color: var(--ink); }
.legal__meta { margin-top: 24px; font-size: var(--fs-small); color: var(--ink-3); }
.prose { max-width: 72ch; }
.prose__section + .prose__section { margin-top: 56px; }
.prose h2 { margin-bottom: 18px; font-size: 28px; letter-spacing: -.03em; }
.prose p, .prose li { font-size: 17px; color: var(--ink-2); }
.prose p + p, .prose ul, .prose ul + p { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose__section { scroll-margin-top: 100px; }
.pdf-frame { overflow: hidden; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pdf-frame iframe { display: block; width: 100%; height: 80vh; border: 0; }

/* Footer ------------------------------------------------------------------ */
.site-footer { padding: 32px 0 40px; font-size: 15px; color: var(--ink-2); }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.site-footer__brand .site-footer__cert { display: block; height: 36px; margin: 28px 0 0; opacity: .85; }
.social-link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 6px 18px 6px 6px;
  border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 20px -14px rgba(11, 20, 36, .4);
  font-size: 14px; font-weight: 500; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s;
}
.social-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 14px 28px -14px rgba(11, 20, 36, .45); }
.social-link__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0A66C2; color: #fff; }
.social-link > svg:last-child { color: var(--accent-text); transition: transform .3s var(--ease); }
.social-link:hover > svg:last-child { transform: translateX(3px); }
.site-footer__title { margin-bottom: 14px; font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--ink-3); }
.site-footer li + li { margin-top: 8px; }
.site-footer a:hover { color: var(--ink); }
.site-footer__tagline { margin: 80px 0 32px; font-size: clamp(28px, 4.2vw, 64px); font-weight: 500; letter-spacing: -.055em; line-height: 1; color: var(--navy); }
.site-footer__tagline span { color: var(--accent-text); }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a:hover { color: var(--ink); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-xs); color: var(--ink-3); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-nav { gap: 24px; }
}

@media (max-width: 1000px) {
  .legal { grid-template-columns: 1fr; gap: 40px; }
  .legal__aside { position: static; }
  .sector { grid-template-columns: 40px 1fr; }
  .sector p, .sector__clients { grid-column: 2; }
  .menu { display: block; }
  .menu__preview, .menu__divider { display: none; }
  .menu__thumb { width: 44px; height: 44px; }
  /* Mobile navigation */
  .site-header__toggle { display: block; }
  .site-header__actions .btn { display: none; }
  .site-header__bar { grid-template-columns: 1fr auto; }
  /* backdrop-filter would make the header the containing block of the fixed menu below */
  .site-header.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; pointer-events: auto;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 96px var(--gutter) 32px; background: var(--bg); color: var(--ink);
    font-size: 28px; letter-spacing: -.025em;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav__link { height: auto; padding: 6px 0; background: none !important; }
  .site-nav__link.is-current::after { display: none; }
  .site-nav__mobile-cta { display: inline-flex; margin-top: 24px; font-size: 16px; letter-spacing: 0; }

  .page-hero { padding-top: 120px; }
  .contact__info { position: static; order: 1; }
  .hero__text { max-width: 40ch; }   /* keep the intro clear of the mast */   /* form first on small screens */
  .cta-panel { grid-template-columns: 1fr; gap: 40px; }
  .page-hero__inner, .section-head, .split, .solution-index, .case, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .solution-index__view { position: static; }
  .next-cards { grid-template-columns: 1fr; }
  .stats, .logo-wall, .features, .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-list, .delivery, .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline, .delivery__main, .delivery__buy { padding: 40px 28px; }
  .feature-panel, .cta-panel { padding: 56px 28px; }
  .site-nav__menu { position: static; opacity: 1; visibility: visible; transform: none; }
  .menu { width: auto; padding: 0 0 8px; background: none; box-shadow: none; }
  .menu__item { padding: 8px 0; }
  .site-nav__group [data-dropdown-toggle] { display: none; }
  .console { grid-template-columns: 1fr; }
  .console__nav { display: none; }
  .gallery figure { grid-column: 1 / -1 !important; }
  .case__media { min-height: 360px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 48px; }
  .hero__logos { gap: 20px 32px; }
  .hero__logos img { height: 20px; }
  .hero__logos img:nth-child(n+4) { display: none; }   /* three logos fit one row on phones */
  .hero__inner { padding-bottom: 40px; }
  .hero__media img { object-position: 64% 30%; }
  .hero::before { background: linear-gradient(0deg, rgba(9, 18, 36, .9) 0%, rgba(9, 18, 36, .55) 55%, rgba(9, 18, 36, .15) 100%); }
  .stats, .features, .partners { grid-template-columns: 1fr; }
  .logo-tile { height: 112px; padding: 20px; }
  .solution-panel__body, .form__row, .checklist { grid-template-columns: 1fr; }
  .form__footer { flex-direction: column; align-items: flex-start; }
  .console__cams { grid-auto-rows: 84px; }
  .case__body, .contact__info, .form, .form__success { padding: 32px 24px; }
  .gallery__media { height: 280px; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__top { gap: 40px 24px; }
  .site-footer__brand, .site-footer__top > :last-child { grid-column: 1 / -1; }
  .pdf-frame { display: none; }   /* phones open the PDF via the hero button instead */
  .sector { gap: 6px 0; padding: 24px 0; }
}
