/*!
Theme Name: AMG
Theme URI: https://amg-medtech.com/
Description: Custom WordPress theme for AMG Medtech, rebuilt for stable responsive behavior and modern WordPress compatibility.
Author: Faisal
Author URI: https://wa.me/message/MPEB6DOFVBBPM1
Version: 3.6.0
Stable tag: 3.6.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v3 or later.
Text Domain: amg
*/

/* Small legacy compatibility rules retained from the original root stylesheet. */
.wpcf7 .ajax-loader { display: block !important; margin: 15px auto 0 !important; }
#last::after { display: none !important; }

/*
 * AMG Medtech 3.6 Stable Responsive Layer
 * Keeps the original theme/assets/functionality intact and applies only
 * additive visual/responsive overrides.
 */

:root {
  --amg-navy: #071b33;
  --amg-navy-2: #0d2d4f;
  --amg-blue: #0b6f9f;
  --amg-blue-dark: #07577d;
  --amg-gold: #e7af00;
  --amg-gold-dark: #c99300;
  --amg-teal: #1a9ca6;
  --amg-ink: #17324d;
  --amg-muted: #5f7285;
  --amg-line: #dce5ed;
  --amg-surface: #f4f8fb;
  --amg-white: #fff;
  --amg-radius: 18px;
  --amg-shadow: 0 16px 44px rgba(7, 27, 51, .12);
  --amg-section: clamp(52px, 6vw, 92px);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; color: var(--amg-ink); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
*, *::before, *::after { box-sizing: border-box; }

/* Restore visible keyboard focus without changing mouse interaction. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(231, 175, 0, .8) !important;
  outline-offset: 3px;
}

/* ---------------- Header / navigation ---------------- */
.logo img { max-height: 68px; width: auto; }
#cssmenu > ul > li > a {
  color: var(--amg-navy) !important;
  font-size: 14px;
  letter-spacing: .03em;
  padding: 18px 15px;
  transition: color .2s ease, background-color .2s ease;
}
#cssmenu > ul > li:hover > a,
#cssmenu > ul > li.current-menu-item > a,
#cssmenu > ul > li.current-menu-ancestor > a { color: var(--amg-blue) !important; }
#cssmenu ul ul { border-top-color: var(--amg-gold); box-shadow: var(--amg-shadow); }
#cssmenu ul ul li a { color: var(--amg-ink); }
#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover { background: var(--amg-blue); color: #fff; }

.amg-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3,16,30,.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 998;
}
body.amg-menu-active .amg-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------------- Global legacy sections ---------------- */
.container { width: 100%; }
.banner {
  min-height: clamp(350px, 45vw, 560px);
  padding: clamp(72px, 8vw, 120px) 0;
  display: flex;
  align-items: center;
  margin-bottom: clamp(48px, 5vw, 82px);
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,27,51,.82), rgba(11,111,159,.40));
  z-index: -1;
}
.banner h1,
.banner h2,
.banner h3,
.banner p { color: #fff; }
.banner h1 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.05; }
.banner p { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; }
.banner .col-lg-8,
.banner .col-lg-7 { max-width: 900px; }

.technology,
.aboutus,
.partnership,
.full-automation,
.limbus-bluebody,
.vision-booklet,
.resourcespage { scroll-margin-top: 110px; }

/* Remove the old negative pull-up that breaks product pages. */
.technology.productpage,
.technology.resourcespage {
  margin-top: 0 !important;
  padding: 0 0 var(--amg-section) !important;
}
.technology.productpage .technology-top,
.technology.resourcespage .technology-top {
  margin-top: 0 !important;
  margin-bottom: clamp(34px, 5vw, 72px) !important;
  align-items: flex-start;
}
.technology.productpage .technology-top > [class*="col-"],
.technology.resourcespage .technology-top > [class*="col-"] {
  padding-top: 0 !important;
  min-width: 0;
}
.technology.productpage .col-lg-5,
.technology.productpage .col-lg-6,
.technology.productpage .col-lg-7 {
  font-size: 18px;
  line-height: 1.72;
}
.technology.productpage h1,
.technology.productpage h2,
.technology.productpage h3,
.technology.productpage h4 { margin-top: 0; margin-bottom: 18px; }
.technology.productpage p { margin-bottom: 20px; }
.technology.productpage ul,
.technology.productpage ol { padding-left: 22px; margin-bottom: 24px; }
.technology.productpage li { margin-bottom: 8px; }
.imageborder,
.imageborder2,
.imageborder-loop,
.screen-image2,
.screen-image3 {
  max-width: 100%;
  border-radius: var(--amg-radius);
  overflow: hidden;
}
.imageborder img,
.imageborder2 img,
.imageborder-loop img,
.screen-image2 img,
.screen-image3 img { width: 100%; height: auto; display: block; }
.imageborder-loop iframe {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  display: block;
  border: 0;
}

/* ---------------- Buttons / CTAs ---------------- */
.btn-style-one,
.btn-style-two,
.bookdemobtn,
.amg-button,
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  min-width: 0 !important;
  max-width: 100%;
  padding: 13px 24px !important;
  border-radius: 12px !important;
  border: 2px solid transparent !important;
  font-family: 'ProductSansBold', Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.2;
  letter-spacing: .035em !important;
  text-align: center;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: 0 10px 24px rgba(7,27,51,.17) !important;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease !important;
}
.btn-style-two,
.amg-button,
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  background: var(--amg-blue-dark) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}
.btn-style-one,
.bookdemobtn,
.amg-button--gold {
  background: var(--amg-gold) !important;
  color: var(--amg-navy) !important;
  border-color: var(--amg-gold) !important;
}
.amg-button--outline {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.72) !important;
  box-shadow: none !important;
}
.btn-style-one:hover,
.btn-style-two:hover,
.bookdemobtn:hover,
.amg-button:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(7,27,51,.22) !important;
}
.btn-style-two:hover,
.amg-button:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover { background: var(--amg-navy) !important; color: #fff !important; }
.btn-style-one:hover,
.bookdemobtn:hover,
.amg-button--gold:hover { background: #f3c531 !important; color: var(--amg-navy) !important; }
.banner .btn-style-two,
.banner .amg-button,
.banner .bookdemobtn {
  box-shadow: 0 12px 30px rgba(0,0,0,.28) !important;
}

/* ---------------- Homepage / Marc content ---------------- */
.amg-home-hero,
.amg-consultancy-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #071b33 0%, #0b5376 72%, #0d7890 100%);
  color: #fff;
}
.amg-home-hero { min-height: 700px; padding: clamp(84px, 9vw, 136px) 0; }
.amg-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--amg-hero-image);
  background-size: cover;
  background-position: center;
  opacity: .13;
  z-index: -2;
}
.amg-home-hero__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(231,175,0,.15), transparent 30%);
  z-index: -1;
}
.amg-home-hero__grid,
.amg-consultancy-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.amg-home-brandline,
.amg-kicker {
  margin: 0 0 14px;
  color: var(--amg-gold);
  text-transform: uppercase;
  font-family: 'ProductSansBold', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .16em;
}
.amg-home-hero h1,
.amg-consultancy-hero h1 {
  color: #fff;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 28px;
  text-shadow: none;
}
.amg-home-hero__support,
.amg-consultancy-hero__lead {
  max-width: 760px;
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.62;
  margin-bottom: 15px;
}
.amg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.amg-home-hero__visual { display: grid; gap: 12px; }
.amg-orbit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.amg-orbit-card > span { color: var(--amg-gold); font-family: 'ProductSansBold', Arial, sans-serif; }
.amg-orbit-card--primary { padding: 24px; display: block; background: rgba(255,255,255,.13); }
.amg-orbit-card__eyebrow { display: block; margin-bottom: 7px; }

.amg-section { padding: var(--amg-section) 0; }
.amg-section--surface { background: var(--amg-surface); }
.amg-section--capabilities { background: var(--amg-navy); color: #fff; }
.amg-section-heading { max-width: 850px; margin-bottom: clamp(30px, 4vw, 52px); }
.amg-section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
}
.amg-section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.amg-section-heading h2,
.amg-growth-section h2,
.amg-consultancy-cta h2 {
  color: var(--amg-navy);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  margin: 0;
}
.amg-section-heading p,
.amg-section p { line-height: 1.68; }
.amg-section-heading--light h2,
.amg-section-heading--light p,
.amg-section--capabilities h3,
.amg-section--capabilities p { color: #fff; }

.amg-division-grid,
.amg-regulatory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.amg-division-card,
.amg-regulatory-card {
  min-width: 0;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--amg-line);
  border-radius: var(--amg-radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(7,27,51,.06);
}
.amg-division-card h3,
.amg-regulatory-card h3,
.amg-services-list h3 { color: var(--amg-navy); line-height: 1.2; margin: 12px 0 14px; }
.amg-division-card__index,
.amg-regulatory-card__label { color: var(--amg-blue); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.amg-division-card__icon {
  width: 48px;
  height: 48px;
  margin-top: 18px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e9f4f8;
  color: var(--amg-blue-dark);
  font-family: 'ProductSansBold', Arial, sans-serif;
}
.amg-text-link { display: inline-flex; gap: 7px; align-items: center; color: var(--amg-blue-dark); font-family: 'ProductSansBold', Arial, sans-serif; text-decoration: none; }
.amg-text-link--light { color: #fff; }

.amg-capability-list { border-top: 1px solid rgba(255,255,255,.18); }
.amg-capability-row {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.amg-capability-row__number { color: var(--amg-gold); font-family: 'ProductSansBold', Arial, sans-serif; }
.amg-capability-row h3 { margin-top: 0; font-size: clamp(23px, 2.3vw, 32px); }

.amg-product-categories { display: grid; gap: 14px; margin-bottom: 36px; }
.amg-product-category { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--amg-line); }
.amg-product-category > span { font-family: 'ProductSansBold', Arial, sans-serif; color: var(--amg-navy); }
.amg-chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.amg-chip-list a { padding: 8px 12px; border: 1px solid var(--amg-line); border-radius: 999px; color: var(--amg-ink); background: #fff; text-decoration: none; }
.amg-logo-grid { list-style: none !important; margin: 28px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.amg-logo-grid li { min-width: 0; margin: 0 !important; padding: 20px; min-height: 118px; display: grid; place-items: center; border: 1px solid var(--amg-line); border-radius: 16px; background: #fff; }
.amg-logo-grid img { max-width: 100%; max-height: 80px; object-fit: contain; }

/* ---------------- Contact form ---------------- */
.amg-contact-section { background: #eef5f8; }
.amg-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
}
.amg-contact-copy h2 { color: var(--amg-navy); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.amg-contact-facts { display: grid; gap: 12px; margin-top: 28px; }
.amg-contact-facts a { display: flex; flex-direction: column; padding: 15px 18px; border: 1px solid var(--amg-line); border-radius: 12px; background: #fff; text-decoration: none; }
.amg-contact-facts span { color: var(--amg-muted); font-size: 13px; }
.amg-contact-facts strong { color: var(--amg-navy); }
.amg-contact-form-card,
#contact .home-contat {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px) !important;
  border: 1px solid var(--amg-line);
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: var(--amg-shadow);
  color: var(--amg-ink) !important;
}
.amg-contact-form-card h3,
#contact .home-contat h3 { color: var(--amg-navy) !important; font-size: 30px; margin-bottom: 8px; }
.amg-contact-form-card > p,
#contact .home-contat > p { color: var(--amg-muted) !important; }
/* Prevent the previous nested card/double-box appearance. */
.amg-contact-form-card .home-contat,
#contact .home-contat .home-contat,
#contact .row > .wpcf7,
#contact .wpcf7 form {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.amg-contact-form-card .home-contat {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

#contact > .row,
#contact .row { margin-left: 0 !important; margin-right: 0 !important; }
.wpcf7 form ul { list-style: none !important; padding: 0 !important; margin: 24px 0 0 !important; }
.wpcf7 form li { margin: 0 0 14px !important; }
.wpcf7 .form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100% !important;
  min-height: 50px;
  padding: 12px 15px !important;
  border: 1px solid #cdd9e2 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--amg-ink) !important;
  box-shadow: none !important;
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus { border-color: var(--amg-blue) !important; box-shadow: 0 0 0 3px rgba(11,111,159,.12) !important; outline: 0 !important; }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 5px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; border-radius: 10px; padding: 10px 14px; }

/* ---------------- Consultancy ---------------- */
.amg-consultancy-hero { padding: clamp(80px, 9vw, 128px) 0; }
.amg-consultancy-hero__media { position: relative; }
.amg-consultancy-hero__image { overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.amg-consultancy-hero__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.amg-consultancy-badge { position: absolute; left: -24px; bottom: -24px; padding: 16px 18px; border-radius: 14px; background: var(--amg-gold); color: var(--amg-navy); box-shadow: var(--amg-shadow); }
.amg-consultancy-badge span { display: block; font-size: 12px; text-transform: uppercase; }
.amg-regulatory-card--featured { background: var(--amg-navy); color: #fff; border-color: var(--amg-navy); }
.amg-regulatory-card--featured h3,
.amg-regulatory-card--featured p { color: #fff; }
.amg-consultancy-pillars { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.amg-consultancy-pillars > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 18px; border: 1px solid var(--amg-line); border-radius: 13px; background: #fff; }
.amg-consultancy-pillars span { color: var(--amg-blue); font-family: 'ProductSansBold', Arial, sans-serif; }
.amg-callout-panel { margin-top: 26px; padding: 22px 24px; border-left: 4px solid var(--amg-gold); border-radius: 0 14px 14px 0; background: #f5f8fb; }
.amg-services-heading { margin: 48px 0 22px; }
.amg-services-list { border-top: 1px solid var(--amg-line); }
.amg-services-list article { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--amg-line); }
.amg-services-list__number { color: var(--amg-blue); font-family: 'ProductSansBold', Arial, sans-serif; }
.amg-growth-section__grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(30px, 6vw, 80px); }
.amg-growth-highlight { margin-top: 24px; padding: 20px 22px; border-radius: 14px; background: var(--amg-surface); }
.amg-consultancy-cta { padding: clamp(48px, 6vw, 76px) 0; background: var(--amg-navy); color: #fff; }
.amg-consultancy-cta h2 { color: #fff; }
.amg-consultancy-cta__inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: center; }
.amg-consultancy-cta__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------------- Limbus ---------------- */
.full-automation,
.limbus-bluebody { overflow: hidden; }
.limbus-bluebody { padding: clamp(50px, 6vw, 82px) 0; }
.carusol-slider { min-width: 0; }
.carusol-slider .nav-tabs { border: 0; margin-bottom: 20px; }
.carusol-slider .dropdown-menu.show { width: min(100%, 420px); max-height: 320px; overflow-y: auto; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.carusol-slider .dropdown-item { white-space: normal; }
.limbus-bluebody .tab-content { min-width: 0; }
.limbus-bluebody .owl-carousel { width: 100%; max-width: 100%; overflow: hidden; }
.limbus-bluebody .owl-carousel .item img { width: 100%; height: auto; object-fit: contain; }
.tabbing-imbus .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabbing-imbus .nav-tabs .nav-link { min-width: max-content; }
.organrisk-imbus { width: 100%; }

/* Desktop hexagon remains untouched; responsive fallback only below. */

/* ---------------- Footer ---------------- */
.amg-stable-footer .footer-top {
  padding: 48px 0 38px !important;
  background-color: #0d6d9f !important;
  background-image: url('images/footerpattern.jpg') !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
}
.amg-footer-row { row-gap: 28px; }
.amg-footer-brand img { max-width: 190px; }
.amg-footer-tagline { max-width: 280px; margin: 16px auto 0; color: rgba(255,255,255,.78); font-family: 'ProductSansRegular', Arial, sans-serif; font-size: 15px; line-height: 1.55; text-align: center; }
.amg-footer-heading { margin: 3px 0 16px; color: var(--amg-gold); font-size: 14px; letter-spacing: .1em; }
.amg-footer-contact-item { margin-bottom: 13px; }
.amg-footer-contact-item span { display: block; color: rgba(255,255,255,.6); font-family: 'ProductSansRegular', Arial, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.amg-footer-contact-item a { color: #fff; overflow-wrap: anywhere; }
ul.amg-footer-explore { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
ul.amg-footer-explore li { margin: 0; padding: 0; border: 0; display: block; }
ul.amg-footer-explore a { color: rgba(255,255,255,.88); font-size: 15px; text-decoration: none; }
ul.amg-footer-explore a:hover { color: var(--amg-gold); }
.amg-footer-cta-col .bookdemobtn { width: auto; }
.amg-stable-footer .footer-btm { padding: 16px 0 !important; }
.amg-stable-footer .footer-btm p { font-size: 13px; line-height: 1.55; }

/* ---------------- Tablet ---------------- */
@media (max-width: 1199px) {
  .amg-home-hero__grid,
  .amg-consultancy-hero__grid { grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); gap: 40px; }
  .amg-logo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 991px) {
  .logo { width: auto; max-width: 70%; }
  .logo img { max-height: 56px; }
  body.amg-menu-active { overflow: hidden; }

  .banner { min-height: 380px; }
  .amg-home-hero { min-height: 0; }
  .amg-home-hero__grid,
  .amg-consultancy-hero__grid,
  .amg-section-heading--split,
  .amg-contact-layout,
  .amg-growth-section__grid,
  .amg-consultancy-cta__inner { grid-template-columns: 1fr; }
  .amg-home-hero__visual { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .amg-orbit-card--primary { grid-column: 1 / -1; }
  .amg-consultancy-hero__media { max-width: 680px; }
  .amg-consultancy-badge { left: 18px; }
  .amg-logo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

  .technology.productpage .technology-top > [class*="col-"] + [class*="col-"] { margin-top: 28px; }

  .hexagon-box-frame {
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
  }
  .hexagon-box-frame .hexagon-box {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 420px;
    height: auto !important;
    min-height: 280px;
    margin: 0 auto !important;
  }

  .amg-stable-footer .footer-top { padding: 34px 0 26px !important; }
  .amg-footer-contact-col,
  .amg-footer-explore-col,
  .amg-footer-cta-col { text-align: center !important; }
  ul.amg-footer-explore { align-items: center; }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { padding-left: 18px; padding-right: 18px; }

  .banner {
    min-height: 330px;
    padding: 64px 0;
    margin-bottom: 44px;
  }
  .banner h1 { font-size: clamp(34px, 10vw, 48px); }
  .banner p { margin-bottom: 24px; }

  .amg-home-hero,
  .amg-consultancy-hero { padding: 68px 0; }
  .amg-home-hero h1,
  .amg-consultancy-hero h1 { font-size: clamp(37px, 11vw, 52px); }
  .amg-home-hero__visual { grid-template-columns: 1fr; }
  .amg-orbit-card--primary { grid-column: auto; }
  .amg-hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .amg-hero-actions .amg-button,
  .banner .btn-style-one,
  .banner .btn-style-two,
  .banner .bookdemobtn { width: 100%; }

  .amg-section { padding: 52px 0; }
  .amg-section-heading { margin-bottom: 28px; }
  .amg-section-heading h2,
  .amg-growth-section h2,
  .amg-consultancy-cta h2 { font-size: clamp(31px, 9vw, 42px); }
  .amg-division-grid,
  .amg-regulatory-grid,
  .amg-consultancy-pillars { grid-template-columns: 1fr; }
  .amg-capability-row,
  .amg-services-list article { grid-template-columns: 42px minmax(0,1fr); gap: 14px; }
  .amg-product-category { grid-template-columns: 1fr; gap: 8px; }
  .amg-logo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .amg-logo-grid li { min-height: 94px; padding: 14px; }
  .amg-contact-layout { gap: 28px; }
  .amg-contact-form-card,
  #contact .home-contat { padding: 22px 18px !important; border-radius: 16px !important; }

  .technology.productpage { padding-bottom: 52px !important; }
  .technology.productpage .technology-top { margin-bottom: 34px !important; }
  .technology.productpage .col-lg-5,
  .technology.productpage .col-lg-6,
  .technology.productpage .col-lg-7 { font-size: 16px; line-height: 1.65; }

  .hexagon-box-frame { grid-template-columns: 1fr; gap: 14px; }
  .hexagon-box-frame .hexagon-box { min-height: 250px; }
  .hexagon-box-content { padding: 0 34px !important; }
  .full-automation-process > [class*="col-"]::after { display: none !important; }
  .organrisk-imbus [class*="col-"] { margin-bottom: 14px; }
  .tabbing-imbus { margin-top: 36px; }

  .amg-stable-footer .footer-top { padding: 26px 0 20px !important; }
  .amg-footer-row { row-gap: 20px; }
  .amg-footer-brand img { max-width: 155px; }
  .amg-footer-tagline { max-width: 330px; margin-top: 10px; font-size: 14px; text-align: center !important; }
  .amg-footer-heading { margin-bottom: 10px; }
  .amg-footer-contact-item { margin-bottom: 9px; }
  ul.amg-footer-explore {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
  }
  ul.amg-footer-explore li { display: inline-flex !important; width: auto !important; }
  ul.amg-footer-explore a { font-size: 14px; padding: 4px 0; }
  .amg-footer-cta-col .bookdemobtn { width: min(100%, 260px); }
  .amg-stable-footer .footer-btm { padding: 12px 0 !important; }
  .amg-stable-footer .footer-btm p { font-size: 12px; line-height: 1.5; }
}

@media (max-width: 430px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .amg-home-hero h1,
  .amg-consultancy-hero h1 { font-size: 38px; }
  .amg-logo-grid { grid-template-columns: 1fr 1fr; }
  .amg-division-card,
  .amg-regulatory-card { padding: 22px 18px; }
  .btn-style-one,
  .btn-style-two,
  .bookdemobtn,
  .amg-button,
  .wpcf7 input[type="submit"] { width: 100%; }
  .amg-contact-facts a { padding: 13px 14px; }
}

@media (max-width: 360px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .amg-home-hero h1,
  .amg-consultancy-hero h1 { font-size: 34px; }
  .amg-logo-grid { grid-template-columns: 1fr; }
}

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

/* ================================================================
   AMG 3.6.0 — Standard typography scale
   Normalizes legacy oversized type without changing page content.
   ================================================================ */
body {
  font-size: 17px;
  line-height: 1.65;
}

p,
li,
.technology.productpage .col-lg-5,
.technology.productpage .col-lg-6,
.technology.productpage .col-lg-7 {
  font-size: 17px;
  line-height: 1.65;
}

h1 { font-size: clamp(38px, 3.8vw, 48px); line-height: 1.1; }
h2 { font-size: clamp(32px, 3.1vw, 40px); line-height: 1.14; }
h3 { font-size: clamp(25px, 2.25vw, 30px); line-height: 1.2; }
h4 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.25; }
h5 { font-size: 20px; line-height: 1.3; }
h6 { font-size: 18px; line-height: 1.35; }

.banner h1 {
  font-size: clamp(40px, 4.2vw, 52px);
  line-height: 1.08;
}
.banner p {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.6;
}

.amg-home-hero h1,
.amg-consultancy-hero h1 {
  font-size: clamp(42px, 4.3vw, 52px);
  line-height: 1.06;
}
.amg-home-hero__support,
.amg-consultancy-hero__lead {
  font-size: clamp(17px, 1.2vw, 19px);
}

.amg-section-heading h2,
.amg-growth-section h2,
.amg-consultancy-cta h2,
.amg-contact-copy h2 {
  font-size: clamp(32px, 3.1vw, 40px);
  line-height: 1.12;
}

.amg-capability-row h3 { font-size: clamp(23px, 2vw, 28px); }
.amg-contact-form-card h3,
#contact .home-contat h3 { font-size: 26px; }



/* ==========================================================================
   AMG 3.6.0 — Header, navigation, footer safeguard and mobile stability
   ========================================================================== */
:root {
  --amg-header-height: 74px;
  --amg-mobile-header-height: 56px;
  --amg-admin-offset: 0px;
  --amg-mobile-menu-top: 56px;
  --amg-header-glass: rgba(255, 255, 255, .84);
  --amg-header-shadow: 0 14px 38px rgba(7, 27, 51, .12);
  --amg-header-ease: 240ms cubic-bezier(.2, .7, .2, 1);
  --amg-menu-ease: 320ms cubic-bezier(.22, .78, .24, 1);
}

/* Fixed-on-scroll state is applied by js/amg-header.js. Keeping the header in
   normal flow before scroll avoids covering the hero and works around legacy
   body overflow rules that make CSS sticky unreliable in mobile Safari. */
.amg-site-header {
  position: relative;
  z-index: 5000;
  width: 100%;
  background: transparent;
  isolation: isolate;
}

.amg-header-spacer {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.amg-site-header.amg-stuck {
  position: fixed;
  top: var(--amg-admin-offset, 0px);
  right: 0;
  left: 0;
  width: 100%;
}

.amg-header-shell {
  position: relative;
  z-index: 2;
  padding: 5px 0;
  background: transparent;
  border-bottom: 1px solid rgba(7, 27, 51, .04);
  box-shadow: 0 4px 18px rgba(7, 27, 51, .045);
}

.amg-header-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, .985);
  transition: background-color var(--amg-header-ease), border-color var(--amg-header-ease), box-shadow var(--amg-header-ease), backdrop-filter var(--amg-header-ease), -webkit-backdrop-filter var(--amg-header-ease);
}

.amg-site-header.amg-stuck .amg-header-shell {
  border-bottom-color: rgba(7, 27, 51, .08);
  box-shadow: var(--amg-header-shadow);
}

.amg-site-header.amg-stuck .amg-header-shell::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(246, 251, 254, .76));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.amg-header-shell::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(11,111,159,.20) 30%, rgba(231,175,0,.28) 50%, rgba(11,111,159,.20) 70%, transparent);
  transition: opacity var(--amg-header-ease);
}

.amg-site-header.amg-stuck .amg-header-shell::after { opacity: 1; }

.amg-site-header .amg-header-shell > .container {
  width: 100%;
  max-width: 1380px;
  padding-right: clamp(18px, 2.2vw, 34px);
  padding-left: clamp(18px, 2.2vw, 34px);
}

.amg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--amg-header-height);
  gap: clamp(20px, 3vw, 44px);
}

.amg-header-logo {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
}

.amg-header-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  line-height: 0;
}

.amg-header-logo img,
.amg-header-logo-image {
  display: block;
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1 / 1;
  transform: none;
}

.amg-header-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.amg-mobile-menu-toggle,
.amg-submenu-toggle {
  display: none;
}

#cssmenu,
#cssmenu ul,
#cssmenu li,
#cssmenu a {
  box-sizing: border-box;
}

#cssmenu {
  width: auto;
  max-width: 100%;
  margin: 0;
  background: transparent;
}

#cssmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#cssmenu > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1px, .5vw, 8px);
}

#cssmenu > ul > li {
  position: relative;
  display: block;
  float: none;
  margin: 0;
  padding: 0;
}

#cssmenu > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px clamp(9px, .8vw, 14px);
  border-radius: 10px;
  color: #071b33;
  font-family: 'ProductSansBold', 'ProductSansRegular', Arial, sans-serif;
  font-size: clamp(12px, .8vw, 14px);
  line-height: 1.2;
  letter-spacing: .025em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--amg-header-ease), background-color var(--amg-header-ease), transform var(--amg-header-ease);
}

#cssmenu > ul > li > a::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--amg-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--amg-header-ease);
}

#cssmenu > ul > li:hover > a,
#cssmenu > ul > li:focus-within > a,
#cssmenu > ul > li.current-menu-item > a,
#cssmenu > ul > li.current-menu-ancestor > a {
  color: var(--amg-blue-dark);
  background: rgba(11, 111, 159, .07);
}

#cssmenu > ul > li:hover > a::before,
#cssmenu > ul > li:focus-within > a::before,
#cssmenu > ul > li.current-menu-item > a::before,
#cssmenu > ul > li.current-menu-ancestor > a::before {
  transform: scaleX(1);
}

/* Desktop dropdowns are self-contained here; legacy menu.css is no longer
   enqueued, eliminating its mobile #menu-button positioning rules. */
#cssmenu ul ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5100;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(7, 27, 51, .09);
  border-top: 3px solid var(--amg-gold);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 45px rgba(7, 27, 51, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .22s ease, visibility .18s ease;
}

#cssmenu li:hover > ul,
#cssmenu li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#cssmenu ul ul li {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

#cssmenu ul ul li a {
  display: block;
  width: 100%;
  min-width: 200px;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--amg-ink);
  background: transparent;
  font-family: 'ProductSansRegular', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

#cssmenu ul ul li:hover > a,
#cssmenu ul ul li:focus-within > a,
#cssmenu ul ul li a:focus-visible {
  color: #fff;
  background: var(--amg-blue);
}

#cssmenu ul ul ul {
  top: -8px;
  left: calc(100% + 8px);
}

#cssmenu > ul > li.amg-nav-cta > a {
  margin-left: 6px;
  padding-right: 17px;
  padding-left: 17px;
  color: var(--amg-navy);
  background: var(--amg-gold);
  box-shadow: 0 8px 20px rgba(231, 175, 0, .20);
}

#cssmenu > ul > li.amg-nav-cta > a::before { display: none; }
#cssmenu > ul > li.amg-nav-cta > a:hover,
#cssmenu > ul > li.amg-nav-cta > a:focus-visible { background: #f3c337; }

.amg-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 4900;
  background: rgba(3, 16, 30, .50);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity .25s ease, visibility .25s ease;
}

body.amg-menu-active .amg-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.amg-menu-active { overflow: hidden; }
body.amg-menu-active .amg-site-header { z-index: 5300; }

/* Restore the original AMG patterned footer on every breakpoint. */
.amg-stable-footer .footer-top {
  background-color: #0d6d9f !important;
  background-image: url('images/footerpattern.jpg') !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: cover !important;
  color: #fff;
}

.amg-stable-footer .footer-btm {
  background: #1b1c38 !important;
  color: #fff;
}

.full-automation-process > div::after { content: ' '; }

@media (max-width: 1199px) and (min-width: 992px) {
  #cssmenu > ul { gap: 0; }
  #cssmenu > ul > li > a { padding-right: 9px; padding-left: 9px; font-size: 12.5px; }
  .amg-header-inner { gap: 14px; }
}

@media (max-width: 991px) {
  .amg-header-shell,
  .amg-site-header.amg-stuck .amg-header-shell {
    min-height: var(--amg-mobile-header-height);
    padding: 0;
  }

  .amg-site-header.amg-stuck .amg-header-shell::before {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(247,251,253,.84));
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
  }

  .amg-site-header .amg-header-shell > .container {
    max-width: none;
    min-height: var(--amg-mobile-header-height);
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .amg-header-inner {
    min-height: var(--amg-mobile-header-height);
    height: var(--amg-mobile-header-height);
    gap: 12px;
  }

  .amg-header-logo,
  .amg-header-logo-link,
  .amg-header-logo img,
  .amg-header-logo-image {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
  }

  .amg-header-nav {
    position: static;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .amg-mobile-menu-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(7, 27, 51, .10);
    border-radius: 13px;
    background: var(--amg-navy);
    box-shadow: 0 7px 18px rgba(7, 27, 51, .15);
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    z-index: 35;
  }

  .amg-mobile-menu-toggle:hover,
  .amg-mobile-menu-toggle:focus-visible,
  .amg-mobile-menu-toggle.is-open {
    background: var(--amg-blue);
    box-shadow: 0 9px 24px rgba(11, 111, 159, .24);
  }

  .amg-mobile-menu-toggle__line {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #fff;
    transform-origin: center;
    transition: transform .32s cubic-bezier(.22,.78,.24,1), top .28s cubic-bezier(.22,.78,.24,1), opacity .18s ease;
  }

  .amg-mobile-menu-toggle__line:nth-child(1) { top: 13px; }
  .amg-mobile-menu-toggle__line:nth-child(2) { top: 20px; }
  .amg-mobile-menu-toggle__line:nth-child(3) { top: 27px; }

  .amg-mobile-menu-toggle.is-open .amg-mobile-menu-toggle__line:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .amg-mobile-menu-toggle.is-open .amg-mobile-menu-toggle__line:nth-child(2) { opacity: 0; transform: scaleX(.35); }
  .amg-mobile-menu-toggle.is-open .amg-mobile-menu-toggle__line:nth-child(3) { top: 20px; transform: rotate(-45deg); }

  .amg-site-header #cssmenu {
    position: fixed;
    top: calc(var(--amg-mobile-menu-top, 56px) + 8px);
    right: 12px;
    left: 12px;
    z-index: 5200;
    display: block;
    width: auto;
    max-width: 430px;
    max-height: calc(100vh - var(--amg-mobile-menu-top, 56px) - 20px);
    max-height: calc(100dvh - var(--amg-mobile-menu-top, 56px) - 20px);
    margin: 0 0 0 auto;
    padding: 9px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(7, 27, 51, .09);
    border-radius: 20px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 26px 70px rgba(3, 16, 30, .24), 0 4px 14px rgba(7, 27, 51, .08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -12px, 0) scale(.985);
    transform-origin: top right;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    transition: opacity .24s ease, transform var(--amg-menu-ease), visibility .24s ease;
  }

  .amg-header-nav.amg-mobile-menu-open #cssmenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .amg-site-header #cssmenu > ul {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .amg-site-header #cssmenu li,
  .amg-site-header #cssmenu > ul > li {
    position: relative;
    display: block;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .amg-site-header #cssmenu > ul > li + li { border-top: 1px solid rgba(7,27,51,.07); }

  .amg-site-header #cssmenu a,
  .amg-site-header #cssmenu > ul > li > a,
  .amg-site-header #cssmenu ul ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 12px 50px 12px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--amg-navy);
    font-family: 'ProductSansBold', 'ProductSansRegular', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: .02em;
    text-align: left;
    text-decoration: none;
    white-space: normal;
  }

  .amg-site-header #cssmenu > ul > li > a::before { display: none; }

  .amg-site-header #cssmenu a:hover,
  .amg-site-header #cssmenu a:focus-visible,
  .amg-site-header #cssmenu .current-menu-item > a,
  .amg-site-header #cssmenu .current-menu-ancestor > a {
    color: var(--amg-blue);
    background: rgba(11, 111, 159, .08);
  }

  .amg-site-header #cssmenu .amg-nav-cta > a {
    justify-content: center;
    margin-top: 7px;
    padding-right: 14px;
    color: var(--amg-navy);
    background: var(--amg-gold);
  }

  .amg-site-header #cssmenu ul ul,
  .amg-site-header #cssmenu ul ul ul {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0 6px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: rgba(7, 27, 51, .035);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: max-height .32s cubic-bezier(.22,.78,.24,1), opacity .2s ease, transform .28s ease, visibility .2s ease;
  }

  .amg-site-header #cssmenu li.amg-submenu-open > ul {
    max-height: 1200px;
    margin: 3px 0 7px;
    padding-top: 5px;
    padding-bottom: 5px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .amg-site-header #cssmenu ul ul li a {
    min-height: 40px;
    padding: 9px 42px 9px 14px;
    font-family: 'ProductSansRegular', Arial, sans-serif;
    font-size: 13.5px;
  }

  .amg-submenu-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 5;
    display: block;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(7, 27, 51, .055);
    color: var(--amg-navy);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .amg-submenu-toggle::before,
  .amg-submenu-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .24s ease, opacity .2s ease;
  }

  .amg-submenu-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .amg-submenu-open > .amg-submenu-toggle { color: var(--amg-blue); background: rgba(11,111,159,.10); }
  .amg-submenu-open > .amg-submenu-toggle::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }

  /* Mobile contact is always a single readable column. */
  #contact.amg-contact-section .container.amg-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 28px;
    padding-right: 18px;
    padding-left: 18px;
  }

  #contact.amg-contact-section .amg-contact-copy,
  #contact.amg-contact-section .amg-contact-form-card,
  #contact.amg-contact-section .wpcf7,
  #contact.amg-contact-section .wpcf7 form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #contact.amg-contact-section .amg-contact-copy h2 {
    max-width: none;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  #contact.amg-contact-section .wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='radio']),
  #contact.amg-contact-section .wpcf7 select,
  #contact.amg-contact-section .wpcf7 textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .amg-stable-footer .amg-footer-explore-col ul.amg-footer-explore {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px 12px;
    width: 100%;
  }

  .amg-stable-footer .amg-footer-explore-col ul.amg-footer-explore > li {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
  }

  .amg-stable-footer .amg-footer-explore-col ul.amg-footer-explore > li > a {
    display: inline-flex;
    width: auto;
    padding: 4px 0;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  :root { --amg-mobile-header-height: 54px; }

  .amg-site-header .amg-header-shell > .container {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .amg-header-logo,
  .amg-header-logo-link,
  .amg-header-logo img,
  .amg-header-logo-image,
  .amg-mobile-menu-toggle {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
  }

  .amg-mobile-menu-toggle__line { left: 10px; width: 18px; }

  .amg-site-header #cssmenu {
    right: 8px;
    left: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  #contact.amg-contact-section .container.amg-contact-layout {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amg-site-header *,
  .amg-site-header *::before,
  .amg-site-header *::after,
  .amg-menu-overlay {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
