/*
 * AMG Medtech 3.1 — modern presentation layer
 * Loaded after the legacy stylesheet so the existing content model remains
 * compatible while layout, responsiveness and accessibility are modernised.
 */

:root {
  --amg-navy-950: #07162f;
  --amg-navy-900: #0b2144;
  --amg-navy-800: #123762;
  --amg-blue-700: #155b91;
  --amg-blue-600: #1574ad;
  --amg-cyan-500: #27a8c6;
  --amg-gold-500: #d8a928;
  --amg-gold-400: #e8c45b;
  --amg-ink: #16243a;
  --amg-muted: #5c6b7d;
  --amg-line: #dce5ed;
  --amg-surface: #f5f8fb;
  --amg-surface-2: #edf3f7;
  --amg-white: #ffffff;
  --amg-radius-sm: 10px;
  --amg-radius: 18px;
  --amg-radius-lg: 28px;
  --amg-shadow-sm: 0 10px 30px rgba(7, 22, 47, 0.08);
  --amg-shadow: 0 22px 60px rgba(7, 22, 47, 0.13);
  --amg-container: 1240px;
  --amg-header-height: 92px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--amg-header-height) + 22px);
}

body,
body p,
body button,
body input,
body textarea,
body select {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

body {
  background: var(--amg-white);
  color: var(--amg-ink);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.amg-menu-open {
  overflow: hidden;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

body img,
body video,
body iframe,
body svg {
  max-width: 100%;
}

body iframe {
  width: 100%;
}

body p {
  color: var(--amg-muted);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  color: var(--amg-navy-900);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

body h1 { font-size: clamp(2.35rem, 5.15vw, 4.75rem); }
body h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
body h3 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); }
body h4 { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
body h5 { font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
body h6 { font-size: 1rem; }

body strong,
body b {
  font-family: inherit;
  font-weight: 750;
}

body a {
  color: var(--amg-blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body a:hover {
  color: var(--amg-navy-900);
}

body :focus-visible {
  outline: 3px solid var(--amg-gold-400) !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

.container {
  width: min(100% - 40px, var(--amg-container));
  max-width: var(--amg-container);
  padding-left: 0;
  padding-right: 0;
}

.amg-site-main {
  min-height: 55vh;
}

.amg-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100000;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--amg-navy-950);
  color: var(--amg-white);
  padding: 10px 15px;
}

.amg-skip-link:focus {
  transform: translateY(0);
  color: var(--amg-white);
}

/* Header */
.amg-site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 9998;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(7, 22, 47, 0.07);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.admin-bar .amg-site-header-wrap { top: 32px; }

.amg-site-header-wrap.is-scrolled {
  box-shadow: 0 12px 36px rgba(7, 22, 47, 0.09);
  background: rgba(255, 255, 255, 0.985);
}

.amg-site-header {
  padding: 0;
  background: transparent;
}

.amg-header-container {
  width: min(100% - 40px, 1380px);
  max-width: 1380px;
}

.amg-header-row {
  display: flex;
  min-height: var(--amg-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.amg-brand {
  flex: 0 0 auto;
  min-width: 0;
}

.amg-brand-link {
  display: inline-flex;
  align-items: center;
}

.amg-brand-logo,
.amg-brand .custom-logo {
  display: block;
  width: auto;
  max-width: min(190px, 25vw);
  max-height: 68px;
  object-fit: contain;
  transition: max-height 180ms ease;
}

.is-scrolled .amg-brand-logo,
.is-scrolled .amg-brand .custom-logo { max-height: 58px; }

.amg-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.amg-primary-nav { min-width: 0; }

.amg-menu {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.amg-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.amg-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 2px;
  color: var(--amg-navy-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.amg-menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 5px;
  background: var(--amg-gold-500);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.amg-menu > li:hover > a::after,
.amg-menu > li.current-menu-item > a::after,
.amg-menu > li.current-menu-ancestor > a::after,
.amg-menu > li > a:focus-visible::after { transform: scaleX(1); }

.amg-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -18px;
  z-index: 30;
  display: grid;
  min-width: 250px;
  max-width: min(340px, 90vw);
  margin: 0;
  padding: 10px;
  visibility: hidden;
  list-style: none;
  border: 1px solid rgba(7, 22, 47, 0.09);
  border-radius: 15px;
  background: var(--amg-white);
  box-shadow: var(--amg-shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.amg-menu .sub-menu .sub-menu {
  top: -10px;
  left: calc(100% + 10px);
}

.amg-menu li:hover > .sub-menu,
.amg-menu li:focus-within > .sub-menu,
.amg-menu li.is-submenu-open > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.amg-menu .sub-menu a {
  display: block;
  border-radius: 10px;
  color: var(--amg-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  padding: 11px 13px;
  text-decoration: none;
}

.amg-menu .sub-menu a:hover,
.amg-menu .sub-menu a:focus-visible {
  background: var(--amg-surface);
  color: var(--amg-blue-700);
}

.amg-submenu-toggle {
  display: none;
}

.amg-header-cta,
.amg-button,
.bookdemobtn,
.btn-style-one,
.btn-style-two,
.vc_btn3,
button.amg-js-cta,
input[type="submit"] {
  display: inline-flex !important;
  min-width: 0 !important;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  cursor: pointer;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  letter-spacing: 0.015em !important;
  line-height: 1.2 !important;
  padding: 14px 22px !important;
  text-align: center;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease !important;
  white-space: normal !important;
}

.amg-header-cta,
.amg-button,
.bookdemobtn,
.btn-style-one,
.vc_btn3,
button.amg-js-cta,
input[type="submit"] {
  background: var(--amg-navy-900) !important;
  color: var(--amg-white) !important;
}

.amg-button--gold,
.btn-style-two {
  background: var(--amg-gold-500) !important;
  color: var(--amg-navy-950) !important;
}

.amg-header-cta:hover,
.amg-button:hover,
.bookdemobtn:hover,
.btn-style-one:hover,
.btn-style-two:hover,
.vc_btn3:hover,
button.amg-js-cta:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(7, 22, 47, 0.16) !important;
}

.amg-header-cta:hover,
.amg-button:not(.amg-button--gold):hover,
.bookdemobtn:hover,
.btn-style-one:hover,
.vc_btn3:hover,
button.amg-js-cta:hover,
input[type="submit"]:hover {
  background: var(--amg-blue-700) !important;
  color: var(--amg-white) !important;
}

.amg-button--gold:hover,
.btn-style-two:hover {
  background: var(--amg-gold-400) !important;
  color: var(--amg-navy-950) !important;
}

.amg-menu-toggle {
  display: none;
}

/* Home top strip and hero */
.punchline {
  padding: 10px 0;
  background: var(--amg-navy-950);
}

.punchline p {
  color: rgba(255,255,255,.88);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.banner {
  isolation: isolate;
  display: flex;
  min-height: clamp(470px, 67vh, 760px);
  align-items: center;
  overflow: hidden;
  padding: clamp(80px, 10vw, 145px) 0;
  background-position: center !important;
  background-size: cover !important;
}

.banner::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(5, 20, 44, .94) 0%, rgba(8, 36, 69, .83) 48%, rgba(13, 72, 105, .45) 100%);
  content: "";
}

.home .banner .col-lg-8 {
  max-width: 980px;
}

.banner h1,
.banner h2,
.banner h3,
.banner h4,
.banner p,
.banner li,
.banner strong {
  color: var(--amg-white) !important;
  text-shadow: none !important;
}

.banner h1,
.banner h2 {
  max-width: 970px;
  margin-right: auto;
  margin-left: auto;
}

.banner p {
  max-width: 900px;
  margin-right: auto;
  margin-bottom: 1.25rem;
  margin-left: auto;
  color: rgba(255,255,255,.86) !important;
  font-family: "Manrope", sans-serif;
  font-weight: 450;
}

.banner .wpb_wrapper > *:last-child,
.banner .vc_column-inner > *:last-child { margin-bottom: 0; }

/* Main sections */
.technology,
.technology.productsec,
.technology.resourcespage,
.technology.productpage {
  margin-top: 0 !important;
  padding: clamp(72px, 8vw, 118px) 0 !important;
  background: var(--amg-surface) !important;
}

.technology:nth-of-type(even) { background: var(--amg-white); }

.technology-top {
  margin-bottom: clamp(40px, 5vw, 72px) !important;
  align-items: center;
}

.technology h2,
.aboutus h2 {
  position: static;
  margin-bottom: 24px;
  background: transparent;
}

.technology h2::before,
.technology h2::after,
.aboutus h2::before,
.aboutus h2::after,
.imageborder::before,
.imageborder2::before {
  display: none !important;
}

.technology p strong,
.technology p b,
.technology p span {
  color: inherit;
  font-family: inherit;
  font-weight: 700;
}

.imageborder,
.imageborder2,
.imageborder-loop {
  position: relative;
  z-index: 0;
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid rgba(7, 22, 47, 0.08);
  border-radius: var(--amg-radius-lg);
  background: var(--amg-white);
  box-shadow: var(--amg-shadow-sm);
}

.imageborder img,
.imageborder2 img {
  display: block;
  width: 100%;
  padding: 0 !important;
  object-fit: cover;
}

.imageborder-loop {
  margin-top: 24px !important;
  padding: 8px;
}

.imageborder-loop iframe {
  display: block;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--amg-radius-lg) - 8px);
}

/* Capabilities / about split */
.aboutus {
  overflow: hidden;
  background: linear-gradient(130deg, var(--amg-navy-950) 0%, var(--amg-navy-800) 100%) !important;
}

.aboutus .container-fluid {
  padding: 0 !important;
}

.aboutus .row { margin: 0; }

.aboutus .col-lg-6:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(65px, 7vw, 110px) max(30px, calc((100vw - var(--amg-container)) / 2 + 20px)) clamp(65px, 7vw, 110px) max(30px, calc((100vw - var(--amg-container)) / 2 + 20px)) !important;
}

.aboutus .col-lg-6:first-child > * { max-width: 650px; }
.aboutus h1,
.aboutus h2,
.aboutus h3,
.aboutus h4,
.aboutus p,
.aboutus li { color: var(--amg-white) !important; }
.aboutus p { color: rgba(255,255,255,.82) !important; }

.aboutus-right {
  min-height: 520px;
  background-position: center !important;
}

/* Product logo presentation */
.productlogo ul,
.partnership-logo ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 !important;
  padding: 0;
}

.productlogo li,
.partnership-logo ul li {
  display: flex !important;
  width: auto !important;
  min-width: 0;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--amg-line);
  border-radius: var(--amg-radius) !important;
  background: var(--amg-white);
  box-shadow: none !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.productlogo li:hover,
.partnership-logo ul li:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 91, 145, .32);
  box-shadow: var(--amg-shadow-sm) !important;
}

.productlogo li img,
.partnership-logo ul li img {
  width: auto;
  max-width: 100% !important;
  max-height: 76px;
  object-fit: contain;
}

.technology.productsec .row.technology-top,
.technology.productsec .row.technology-top .col-lg-6:last-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-right: 15px !important;
  padding-left: 15px !important;
}

.partnership {
  padding: clamp(72px, 8vw, 112px) 0;
  background: var(--amg-white);
}

.partnership-logo h2 {
  margin-bottom: 42px;
}

.partnership-logo ul {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: clamp(60px, 7vw, 90px) !important;
}

.partnership-logo ul li {
  min-height: 105px;
  padding: 18px !important;
}

/* Contact Form 7 */
#contact {
  width: 100%;
  max-width: 900px;
}

#contact::before {
  display: block;
  margin-bottom: 8px;
  color: var(--amg-blue-700);
  content: "LET'S TALK";
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
}

#contact .wpcf7,
.home-contat {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--amg-line);
  border-radius: var(--amg-radius-lg);
  background: linear-gradient(145deg, #fff 0%, #f7fafc 100%) !important;
  box-shadow: var(--amg-shadow-sm);
}

.wpcf7 form,
.wpcf7 form p { margin-bottom: 16px; }

.wpcf7 label {
  display: block;
  color: var(--amg-navy-900);
  font-size: 14px;
  font-weight: 700;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select,
.form-control {
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  border: 1px solid #cfdbe5 !important;
  border-radius: 12px !important;
  background: var(--amg-white) !important;
  color: var(--amg-ink);
  font-size: 16px;
  padding: 12px 14px !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wpcf7 textarea { min-height: 145px; resize: vertical; }

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.form-control:focus {
  border-color: var(--amg-blue-600) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgba(21, 116, 173, .12) !important;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #a52929;
  font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  border-width: 1px;
  border-radius: 12px;
  padding: 12px 14px;
}

/* Default and inner pages */
.default-page {
  padding: clamp(62px, 7vw, 100px) 0;
}

.default-page > .container > .row > .col-md-12,
.technology.productpage > .container {
  min-width: 0;
}

.default-page .wpb_wrapper > h1:first-child,
.default-page .wpb_wrapper > h2:first-child {
  margin-top: 0;
}

.productpage .technology-top > [class*="col-"] {
  min-width: 0;
}

.productpage ul:not(.nav):not(.dropdown-menu),
.default-page ul:not(.nav):not(.dropdown-menu),
.technology ul:not(.nav):not(.dropdown-menu) {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  list-style: none;
}

.productpage ul:not(.nav):not(.dropdown-menu) li,
.default-page ul:not(.nav):not(.dropdown-menu) li,
.technology ul:not(.nav):not(.dropdown-menu) li {
  position: relative;
  margin-bottom: .75rem;
}

.productpage ul:not(.nav):not(.dropdown-menu) li::before,
.default-page ul:not(.nav):not(.dropdown-menu) li::before,
.technology ul:not(.nav):not(.dropdown-menu) li::before {
  position: absolute;
  top: .72em;
  left: -1.2rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amg-gold-500);
  content: "";
}

/* Resource/download cards */
.vision-booklet {
  padding: 20px 0 10px !important;
}

.vision-booklet .row { row-gap: 26px; }

.vision-booklet-box {
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--amg-line);
  border-radius: var(--amg-radius);
  background: var(--amg-white);
  box-shadow: var(--amg-shadow-sm);
  padding: 0 0 30px !important;
  text-align: left;
}

.vision-booklet-box img {
  display: block;
  width: 100%;
  margin: 0 !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.vision-booklet-box p,
.vision-booklet-box h3,
.vision-booklet-box h4,
.vision-booklet-box a {
  margin-right: 24px;
  margin-left: 24px;
}

.vision-booklet-box p { margin-top: 24px; }
.vision-booklet-box a { font-family: "Manrope", sans-serif; font-weight: 750; }

/* Limbus legacy sections: convert fixed/absolute geometry into safe responsive cards */
.full-automation {
  padding: clamp(65px, 7vw, 100px) 0;
  background: var(--amg-white);
}

.full-automation-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 55px;
}

.full-automation-process > [class*="col-"] {
  flex: none;
  width: auto;
  max-width: none;
  padding: 0;
}

.full-automation-process .col-md-4::after { display: none !important; }

.hexagon-main { padding: 30px 0 50px; }
.hexagon-box-frame {
  display: grid;
  height: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hexagon-box,
.hexagon-box:nth-child(n) {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 250px;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(21, 91, 145, .15);
  border-radius: var(--amg-radius);
  background: linear-gradient(145deg, var(--amg-navy-900), var(--amg-blue-700)) !important;
  box-shadow: var(--amg-shadow-sm);
}

.hexagon-box:hover { background: linear-gradient(145deg, var(--amg-blue-700), var(--amg-cyan-500)) !important; }
.hexagon-box-content {
  position: static !important;
  display: flex;
  height: 100%;
  min-height: 250px;
  flex-direction: column;
  justify-content: center;
  transform: none !important;
  padding: 32px !important;
}
.hexagon-box h6,
.hexagon-box p,
.hexagon-box:hover h6,
.hexagon-box:hover p { color: var(--amg-white) !important; }

.limbus-bluebody {
  padding: clamp(65px, 7vw, 100px) 0;
  background: var(--amg-navy-950) !important;
}

.limbus-bluebody .organrisk-imbus {
  width: 100%;
  border-color: rgba(232, 196, 91, .35);
}

.carusol-slider .dropdown-menu.show {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: var(--amg-white);
  box-shadow: var(--amg-shadow);
}

.owl-carousel img { border-radius: var(--amg-radius); }
.owl-nav {
  position: static !important;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px !important;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: var(--amg-white) !important;
  color: var(--amg-navy-900) !important;
}

/* Footer */
.amg-site-footer {
  position: relative;
  overflow: hidden;
  background: var(--amg-navy-950);
  font-family: "Manrope", sans-serif;
}

.amg-footer-main {
  padding: clamp(65px, 7vw, 100px) 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(39, 168, 198, .16), transparent 34%),
    linear-gradient(135deg, #07162f, #0b2144);
}

.amg-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr 1.3fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.amg-footer-grid > * { min-width: 0; }
.amg-footer-logo { width: auto; max-width: 185px; max-height: 78px; object-fit: contain; }
.amg-footer-tagline { max-width: 330px; margin-top: 20px; color: rgba(255,255,255,.66); font-size: 14px; }
.amg-footer-eyebrow { margin: 0 0 16px; color: var(--amg-gold-400); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.amg-footer-contact-link {
  display: block;
  margin-bottom: 18px;
  color: var(--amg-white);
  text-decoration: none;
}
.amg-footer-contact-link span { display: block; margin-bottom: 2px; color: rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; }
.amg-footer-contact-link strong { display: block; overflow-wrap: anywhere; color: var(--amg-white); font-size: 14px; font-weight: 650; }

.amg-footer-nav { margin: 0; padding: 0; list-style: none; }
.amg-footer-nav li { margin-bottom: 9px; }
.amg-footer-nav a { color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; }
.amg-footer-nav a:hover { color: var(--amg-white); }

.amg-footer-cta-title {
  max-width: 370px;
  margin-bottom: 24px;
  color: var(--amg-white);
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -.02em;
}

.amg-footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #061126;
  text-align: center;
}

.amg-footer-bottom p,
.amg-footer-bottom .amg-footer-widget {
  margin: 0;
  color: rgba(255,255,255,.63);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  line-height: 1.7;
}
.amg-footer-bottom a { color: rgba(255,255,255,.82); }

.amg-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: var(--amg-navy-900);
  box-shadow: var(--amg-shadow-sm);
  color: var(--amg-white);
  opacity: 0;
  text-decoration: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease, background-color 160ms ease;
}
.amg-back-to-top.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.amg-back-to-top:hover { background: var(--amg-blue-700); color: var(--amg-white); }

/* Subtle entrance motion */
.amg-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.amg-reveal.is-visible { opacity: 1; transform: none; }

/* WPBakery spacing safety */
.vc_row,
.wpb_row,
.vc_column_container,
.vc_column-inner,
.wpb_wrapper { min-width: 0; }

.wpb_content_element:last-child { margin-bottom: 0; }

/* Wide-screen polish */
@media (min-width: 1200px) {
  .technology .row > .col-lg-5:first-child { padding-right: 42px; }
  .technology .row > .col-lg-7:last-child { padding-left: 42px; }
  .productpage .technology-top > .col-lg-5 { padding-right: 44px; }
  .productpage .technology-top > .col-lg-7 { padding-left: 34px; }
}

@media (max-width: 1199px) {
  :root { --amg-header-height: 82px; }
  .amg-header-actions { gap: 14px; }
  .amg-menu { gap: 8px; }
  .amg-menu > li > a { font-size: 12px; letter-spacing: .045em; }
  .amg-header-cta { padding: 12px 17px !important; }
  .partnership-logo ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .amg-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet and mobile navigation */
@media (max-width: 991px) {
  :root { --amg-header-height: 76px; }
  .admin-bar .amg-site-header-wrap { top: 32px; }
  .amg-header-row { min-height: var(--amg-header-height); gap: 16px; }
  .amg-brand-logo,
  .amg-brand .custom-logo { max-width: 155px; max-height: 58px; }
  .amg-header-actions { gap: 10px; }
  .amg-header-cta { display: none !important; }

  .amg-menu-toggle {
    display: inline-flex;
    min-width: 48px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--amg-line);
    border-radius: 999px;
    background: var(--amg-white);
    color: var(--amg-navy-900);
    cursor: pointer;
    padding: 9px 13px;
  }
  .amg-menu-toggle-label { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
  .amg-menu-toggle-icon { display: grid; width: 18px; gap: 4px; }
  .amg-menu-toggle-icon span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
  .amg-menu-toggle.is-open .amg-menu-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .amg-menu-toggle.is-open .amg-menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .amg-menu-toggle.is-open .amg-menu-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .amg-primary-nav {
    position: fixed;
    top: var(--amg-header-height);
    right: 0;
    bottom: 0;
    z-index: 9997;
    width: min(430px, 100vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--amg-line);
    background: var(--amg-white);
    box-shadow: -24px 28px 60px rgba(7,22,47,.16);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 220ms ease, opacity 180ms ease;
  }
  .admin-bar .amg-primary-nav { top: calc(var(--amg-header-height) + 32px); }
  .amg-primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateX(0); }
  .amg-menu { display: block; padding: 18px 20px 36px; }
  .amg-menu > li { border-bottom: 1px solid var(--amg-line); }
  .amg-menu > li > a { min-height: 54px; padding: 15px 42px 15px 3px; font-size: 14px; letter-spacing: .035em; white-space: normal; }
  .amg-menu > li > a::after { display: none; }
  .amg-menu .sub-menu,
  .amg-menu .sub-menu .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    margin: 0;
    visibility: visible;
    border: 0;
    border-radius: 0;
    background: var(--amg-surface);
    box-shadow: none;
    opacity: 1;
    padding: 7px;
    transform: none;
  }
  .amg-menu li.is-submenu-open > .sub-menu { display: grid; }
  .amg-menu .sub-menu a { padding: 11px 12px; font-size: 14px; }
  .amg-submenu-toggle {
    position: absolute;
    top: 7px;
    right: 0;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--amg-navy-900);
  }
  .amg-submenu-toggle span { position: relative; width: 12px; height: 12px; }
  .amg-submenu-toggle span::before,
  .amg-submenu-toggle span::after { position: absolute; top: 5px; left: 1px; width: 10px; height: 2px; background: currentColor; content: ""; transition: transform 160ms ease; }
  .amg-submenu-toggle span::after { transform: rotate(90deg); }
  .amg-submenu-toggle[aria-expanded="true"] span::after { transform: rotate(0); }

  .banner { min-height: 470px; padding: 78px 0; }
  .technology-top { row-gap: 34px; }
  .technology-top > [class*="col-"] { margin-bottom: 0 !important; }
  .aboutus .col-lg-6:first-child { min-height: 0; padding: 70px max(30px, calc((100vw - 720px) / 2 + 15px)) !important; }
  .aboutus-right { min-height: 400px; }
  .productlogo ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partnership-logo ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .full-automation-process,
  .hexagon-box-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .amg-site-header-wrap { top: 46px; }
  .admin-bar .amg-primary-nav { top: calc(var(--amg-header-height) + 46px); }
}

@media (max-width: 767px) {
  :root { --amg-header-height: 70px; }
  .container,
  .amg-header-container { width: min(100% - 30px, var(--amg-container)); }
  .amg-header-row { min-height: 70px; }
  .amg-brand-logo,
  .amg-brand .custom-logo { max-width: 136px; max-height: 52px; }
  .amg-menu-toggle-label { display: none; }
  .amg-menu-toggle { width: 46px; padding: 9px; }
  .banner { min-height: 430px; padding: 64px 0; }
  .banner::before { background: linear-gradient(100deg, rgba(5,20,44,.94), rgba(8,36,69,.78)); }
  .punchline { padding: 9px 0; }
  .punchline p { font-size: 11px; letter-spacing: .055em; }
  .technology,
  .technology.productsec,
  .technology.resourcespage,
  .technology.productpage { padding: 62px 0 !important; }
  .technology-top { margin-bottom: 35px !important; }
  .aboutus .col-lg-6:first-child { padding: 62px 22px !important; }
  .aboutus-right { min-height: 300px; }
  .productlogo ul,
  .partnership-logo ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .productlogo li,
  .partnership-logo ul li { min-height: 100px; padding: 15px !important; }
  .productlogo li img,
  .partnership-logo ul li img { max-height: 58px; }
  #contact .wpcf7,
  .home-contat { padding: 26px 18px; }
  .full-automation-process,
  .hexagon-box-frame { grid-template-columns: 1fr; }
  .hexagon-box,
  .hexagon-box:nth-child(n),
  .hexagon-box-content { min-height: 0; }
  .hexagon-box-content { padding: 28px 22px !important; }
  .amg-footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .amg-footer-cta-title { max-width: 500px; }
  .amg-footer-main { padding: 60px 0; }
  .amg-back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .imageborder-loop iframe { aspect-ratio: 16 / 10; }
}

@media (max-width: 430px) {
  .container,
  .amg-header-container { width: calc(100% - 26px); }
  body p { font-size: 16px; }
  body h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  body h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .banner { min-height: 400px; padding: 54px 0; }
  .productlogo ul,
  .partnership-logo ul { grid-template-columns: 1fr 1fr; }
  .productlogo li,
  .partnership-logo ul li { min-height: 92px; }
  .amg-footer-bottom { padding-right: 8px; padding-left: 8px; }
}

@media (max-width: 360px) {
  .productlogo ul,
  .partnership-logo ul { grid-template-columns: 1fr; }
  .amg-menu-toggle { width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
}

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

/* Legacy list bullets must never leak into logo/card grids. */
.productlogo li::before,
.partnership-logo li::before,
.amg-footer-nav li::before,
.amg-menu li::before,
.nav li::before,
.dropdown-menu li::before {
  display: none !important;
  content: none !important;
}
