/* AMS — shared layout, typography and responsive visual system. */
:root {
  --ams-blue-deep: #075b9d;
  --ams-blue-secondary: #147ab5;
  --ams-blue-light: #eaf3f8;
  --ams-navy: #102f43;
  --ams-bg-soft: #f3f6f8;
  --ams-grey: #5b6b76;
  --ams-line: #dbe4e9;
  --ams-radius: 20px;
  --ams-content: 1180px;
  --ams-gutter: clamp(22px, 4.5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; overflow-x: hidden; background: #fff; color: var(--ams-grey); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body .wp-site-blocks { padding: 0; }
body .wp-site-blocks > * { margin-block-start: 0; }
body .wp-site-blocks > main { margin: 0; padding: 0; }
body .wp-site-blocks > main > .wp-block-post-content { margin: 0 !important; padding: 0; width: 100%; max-width: none; }
body .wp-block-post-content > .alignfull { margin-inline: 0; margin-block-start: 0; }
body .wp-block-post-content > .wp-block-group:not(.alignfull) { padding-inline: var(--ams-gutter); max-width: calc(var(--ams-content) + var(--ams-gutter) * 2); }
h1,h2,h3,h4,h5 { color: var(--ams-navy); font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -.045em; text-wrap: balance; }
body h1 { font-size: clamp(38px, 4.3vw, 60px); font-weight: 500; line-height: 1.13; }
body h2 { font-size: clamp(30px, 3.25vw, 44px); font-weight: 500; line-height: 1.2; }
body h3 { font-size: 25px; font-weight: 600; line-height: 1.32; }
body h4 { font-size: 20px; line-height: 1.4; }
p { margin-block: 0 18px; }
a { text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #30a7e7; outline-offset: 5px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
.wp-block-group > :first-child, .wp-block-column > :first-child { margin-top: 0; }
.wp-block-group > :last-child, .wp-block-column > :last-child { margin-bottom: 0; }
body .wp-block-columns { gap: 24px; margin-bottom: 0; }
.wp-block-column { min-width: 0; }
.ams-section-pad, .ams-section-pad-sm, .ams-specialties, .ams-story, .ams-hero, .ams-profile-hero { padding-inline: var(--ams-gutter); }
.ams-section-pad { padding-block: clamp(60px, 7.5vw, 108px); }
/* Our Team sits directly above Meet AMS — tighten the gap between them. */
.ams-team-pad-tight { padding-bottom: clamp(30px, 3.5vw, 54px); }
.ams-meetams-pad-tight { padding-top: clamp(30px, 3.5vw, 54px); }
.ams-section-pad-sm { padding-block: 40px; }
.ams-section-pad > .wp-block-group, .ams-section-pad-sm > .wp-block-group, .ams-specialties > .wp-block-group, .ams-hero > .wp-block-group, .ams-profile-hero > .wp-block-group { width: 100%; max-width: var(--ams-content) !important; margin-inline: auto !important; }
.ams-section-pad > .wp-block-group > p:not([class]), .ams-section-pad-sm > .wp-block-group > p:not([class]) { max-width: 80ch; margin-inline: 0 !important; }
.ams-section-pad > .ams-center > p { margin-inline: auto !important; }
.ams-section-pad > .wp-block-group > h2:not(:first-child) { margin-top: 40px; }
.ams-section-pad > .wp-block-group > .ams-section-label + h2 { margin-top: 14px; }
.ams-soft-bg { background: var(--ams-bg-soft); }
.ams-light-blue-bg { background: var(--ams-blue-light); }
.ams-center { text-align: center; }
.ams-center.wp-block-buttons, .ams-center .wp-block-buttons { justify-content: center; }
.ams-max-narrow { max-width: 800px; margin-inline: auto; }
.ams-section-label, .ams-eyebrow, .ams-card-kicker { font-size: 11px; letter-spacing: .14em; font-weight: 700; line-height: 1.5; text-transform: uppercase; color: var(--ams-blue-deep); }
.ams-eyebrow { display: flex; align-items: center; gap: 10px; }
.ams-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.ams-section-description { max-width: 650px; margin-bottom: 38px; }
.ams-section-description.ams-center { margin-inline: auto; }
/* Brand: the logo artwork is pre-trimmed to its content, so it just needs
   to fit its box at the right aspect ratio. */
.ams-brand { display: inline-block; flex-shrink: 0; background: #fff; border-radius: 8px; text-decoration: none; }
.ams-brand-crop { display: block; width: 180px; aspect-ratio: 2.259; overflow: hidden; }
.ams-brand-crop img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ams-header { position: relative; z-index: 50; padding: 12px var(--ams-gutter); background: #fff; border-bottom: 1px solid #eef2f5; }
/* Homepage only: the header floats transparently over the hero banner
   instead of sitting above it, so the banner reaches the very top. */
body.home .ams-header { position: absolute; top: 0; left: 0; right: 0; z-index: 60; background: transparent; border-bottom: none; }
body.home .ams-nav, body.home .ams-nav a { color: #fff; }
body.home .ams-nav a:hover { color: #bfe0f5; }
body.home .ams-nav .wp-block-navigation__submenu-container, body.home .ams-nav .wp-block-navigation__submenu-container a { color: var(--ams-navy); }
body .ams-header-inner { max-width: var(--ams-content); margin-inline: auto; gap: 28px; min-height: 76px; }
.ams-nav { margin-left: auto; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--ams-navy); }
.ams-nav .wp-block-navigation__container { gap: clamp(14px, 1.8vw, 28px); }
.ams-nav a { text-decoration: none; }
.ams-nav a:hover { color: var(--ams-blue-deep); }
.ams-nav .wp-block-navigation__submenu-container { padding: 10px; border: 1px solid var(--ams-line) !important; border-radius: 12px; box-shadow: 0 12px 35px #102f4315; min-width: 190px !important; }
.ams-nav .wp-block-navigation__submenu-container a { padding: 10px 14px; border-radius: 6px; }
.ams-nav .wp-block-navigation__submenu-container a:hover { background: var(--ams-bg-soft); }
/* Buttons and text links. */
body .wp-block-buttons { gap: 12px; margin-top: 26px; }
body .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; border: 1px solid transparent; border-radius: 9px; padding: 13px 22px; font: 500 14px/1.4 'Inter', sans-serif; letter-spacing: 0; text-decoration: none; box-shadow: none; transition: background .2s, transform .2s; }
body .wp-block-button__link:hover { transform: translateY(-2px); }
.ams-btn-primary .wp-block-button__link { background: var(--ams-blue-deep); color: #fff; }
.ams-btn-primary .wp-block-button__link:hover { background: #03487e; }
.ams-btn-outline .wp-block-button__link { background: transparent; border-color: #b8cbd6; color: var(--ams-navy); }
.ams-btn-outline .wp-block-button__link:hover { background: var(--ams-blue-light); }
.ams-btn-white .wp-block-button__link { background: #fff; color: var(--ams-navy); }
.ams-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border-color: #ffffff66; }
.ams-header .wp-block-buttons { margin: 0; flex-shrink: 0; }
.ams-header .wp-block-button__link { min-height: 45px; padding: 12px 18px; font-size: 12px; }
/* Header social icons (Facebook, Instagram). */
.ams-social-icons { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ams-social-icons a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #b8cbd6; color: var(--ams-navy); transition: background .2s, color .2s, border-color .2s; }
.ams-social-icons a:hover { background: var(--ams-blue-light); }
.ams-social-icons svg { width: 15px; height: 15px; fill: currentColor; }
body.home .ams-social-icons a { border-color: #ffffff66; color: #fff; }
body.home .ams-social-icons a:hover { background: #ffffff22; }
.ams-text-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ams-blue-deep); font-size: 14px; font-weight: 600; text-decoration: none; }
.ams-text-link span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #cbdbe5; border-radius: 50%; font-size: 17px; transition: background .2s; flex-shrink: 0; }
.ams-text-link:hover span { background: var(--ams-blue-light); }
/* Full photographic opening, with a shared content alignment. */
body .wp-block-post-content > .ams-home-hero { position: relative; isolation: isolate; width: auto; max-width: none !important; margin: 0 calc(50% - 50vw) 16px !important; border-radius: 0; overflow: hidden; background: #14384e; }
.ams-home-hero .ams-hero-photo { position: absolute; z-index: -2; inset: 0; margin: 0; width: 100%; max-width: none; }
.ams-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ams-home-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#062338b3 0%,#0b2c4366 47%,#06233805 100%),linear-gradient(0deg,#0c293966,transparent 70%); }
.ams-hero-content { min-height: 630px; margin: 0 !important; padding: 100px max(calc(var(--ams-gutter) - 16px), calc((100% - 1180px) / 2)) 64px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ams-hero-content > .wp-block-group { margin: 0 !important; }
.ams-hero-copy { width: min(740px,72%); flex-shrink: 0; }
.ams-hero-copy > * { margin-inline: 0 !important; }
.ams-home-hero h1 { font-size: clamp(26px, 2.7vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.35; color: #fff; margin: 22px 0; text-wrap: pretty; }
.ams-home-hero .ams-eyebrow { color: #d6eaf5; font-size: 10px; }
.ams-hero-description { color: #e2edf4; max-width: 440px; font-size: 16px; line-height: 1.65; }
.ams-hero-note { background: #f8fbf5f2; border-radius: 14px; padding: 24px; width: 265px; flex-shrink: 0; color: var(--ams-navy); }
.ams-hero-note .ams-section-label { font-size: 9px; }
.ams-hero-note > p:nth-child(2) { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 21px; letter-spacing: -.03em; line-height: 1.4; margin: 14px 0; }
.ams-hero-note .ams-hero-note-small { font-size: 12px; line-height: 1.6; color: var(--ams-grey); margin: 0; }
/* Three aligned specialty summaries. */
.ams-specialties { padding-block: 36px 46px; border-bottom: 1px solid var(--ams-line); }
.ams-specialties-grid > .wp-block-column + .wp-block-column { border-left: 1px solid var(--ams-line); padding-left: 32px; }
.ams-specialty { display: flex; align-items: center; gap: 20px; }
.ams-specialty-number { font-size: 12px; color: #8198a7; margin: 0; white-space: nowrap; }
.ams-specialty-copy { margin: 0 !important; }
.ams-specialty h2 { font-size: 24px; margin: 0 0 3px; }
.ams-specialty p:last-child { font-size: 12px; margin: 0; }
/* Editorial image/copy sections. */
body .ams-about-grid, body .ams-story-grid { align-items: center; gap: clamp(36px,7vw,100px); }
.ams-about-grid h2 { margin-top: 16px; }
.ams-about-grid .wp-block-column > p:not(.ams-section-label) { max-width: 520px; }
.ams-about-visual, .ams-story-visual { position: relative; overflow: hidden; border-radius: 20px; }
.ams-about-image { height: 470px; overflow: hidden; background: #d8e7ef; }
.ams-about-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ams-image-caption { position: absolute; bottom: 16px; left: 16px; right: 16px; padding: 14px 18px; margin: 0 !important; border-radius: 10px; background: #ffffffed; font-size: 10px; letter-spacing: .12em; font-weight: 600; color: var(--ams-navy); }
/* The portfolio cards share image ratios and equal-height text areas. */
.ams-solutions-grid { margin-top: 40px; }
.ams-solutions-grid > .wp-block-column { display: flex; }
.ams-solution-card { display: flex; flex-direction: column; width: 100%; border-radius: var(--ams-radius); overflow: hidden; background: #fff; border: 1px solid #e4eaee; }
.ams-solution-image { aspect-ratio: 1.12; width: 100%; overflow: hidden; background: #c7dcec; flex-shrink: 0; }
.ams-solution-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; transition: transform .5s; }
.ams-card-body { padding: 26px; transition: background-color .35s ease, color .35s ease; }
.ams-solution-card .ams-card-body { margin-top: 0; flex: 1; display: flex; flex-direction: column; }
.ams-card-kicker { font-size: 8px; color: #5a7c90; }
.ams-solution-card h3 { margin: 12px 0; }
.ams-solution-card .ams-card-body > p:not([class]) { font-size: 14px; }
.ams-solution-card .ams-card-body > p:last-child { margin-top: auto; padding-top: 16px; }
.ams-story { background: #102f43; color: #cad9e2; }
.ams-story h2, .ams-story h3 { color: #fff; }
.ams-story .ams-section-label { color: #9fcee7; }
.ams-story-grid > .wp-block-column > p { font-size: 14px; }
.ams-story-image { height: 565px; }
.ams-story-image img { width: 100%; height: 100%; object-fit: cover; object-position: 72%; }
.ams-pillar { padding: 20px 0; border-top: 1px solid #ffffff24; }
.ams-pillar h3 { font-size: 18px; letter-spacing: -.025em; margin: 0 0 8px; }
.ams-pillar p { font-size: 13px; margin: 0; }
/* Leadership cards share the same shape as the product/solution cards:
   full-bleed photo at the top, padded text body below with the link
   pinned to the bottom. */
.ams-leaders-grid { margin-top: 40px; }
.ams-leaders-grid > .wp-block-column, .ams-resources-grid > .wp-block-column { display: flex; }
/* Leadership hub page: force a proper 3-per-row grid above the tablet
   breakpoint so six doctors don't get squeezed into one row. Scoped by
   min-width so it never fights the existing 2-col/1-col responsive rules
   for .ams-leaders-grid further down this file. */
@media (min-width: 1101px) {
  .ams-leaders-grid-3col { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.ams-leader-card { display: flex; flex-direction: column; width: 100%; border-radius: var(--ams-radius); overflow: hidden; background: #fff; border: 1px solid #e4eaee; }
.ams-monogram { width: 64px; height: 64px; background: #e2edf3; color: #075b9d; border-radius: 50%; display: grid; place-items: center; font: 500 22px 'Plus Jakarta Sans',sans-serif; letter-spacing: -.05em; }
.ams-leader-photo-wrap { aspect-ratio: 1.12; width: 100%; display: grid; place-items: center; background: #e2edf3; flex-shrink: 0; }
.ams-leader-photo { width: 100% !important; height: auto !important; aspect-ratio: 1.12; margin: 0 !important; border-radius: 0 !important; overflow: hidden; background: #e2edf3; flex-shrink: 0; }
.ams-leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .5s; }
.ams-leader-card .ams-card-body { margin-top: 0; flex: 1; display: flex; flex-direction: column; }
.ams-leader-card .ams-section-label { font-size: 11px; margin: 0 0 12px; }
.ams-leader-card h3 { font-size: 21px; margin: 0 0 24px; }
.ams-leader-card .ams-card-body > p:last-child { margin-top: auto; padding-top: 16px; }
.ams-resources-grid { margin-top: 36px; }
.ams-catalogue-card { width: 100%; background: #fff; border: 1px solid var(--ams-line); border-radius: 16px; }
.ams-resources-grid .ams-catalogue-card { display: flex; flex-direction: column; padding: 30px; }
.ams-resources-grid h3 { font-size: 24px; margin: 14px 0; }
.ams-resources-grid p:not(.ams-section-label) { font-size: 14px; }
.ams-resources-grid .ams-catalogue-card > p:last-child { margin-top: auto; padding-top: 20px; }
.ams-cta { background: #eaf3f8; }
.ams-cta h2 { font-size: clamp(36px,4vw,54px); }
.ams-cta p:not(.ams-section-label) { margin-inline: auto; }
.ams-clients-carousel { position: relative; margin-top: 40px; }
.ams-clients-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 12px; margin: 0 -4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ams-clients-track::-webkit-scrollbar { display: none; }
.ams-client-slide { flex: 0 0 auto; width: 280px; scroll-snap-align: start; }
.ams-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--ams-line); display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ams-blue-deep); cursor: pointer; box-shadow: 0 6px 18px rgba(10,40,60,.1); }
.ams-carousel-btn:hover { background: var(--ams-blue-light); }
.ams-carousel-prev { left: -14px; }
.ams-carousel-next { right: -14px; }
/* Client cards share the same shape as the team/product cards: full-bleed
   photo at the top, padded text body below. */
.ams-client-card { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: var(--ams-radius); overflow: hidden; background: #fff; border: 1px solid #e4eaee; text-align: left; }
.ams-client-photo { width: 100% !important; height: auto !important; aspect-ratio: 1.12; margin: 0 !important; border-radius: 0 !important; overflow: hidden; background: #1c1c1c; flex-shrink: 0; }
.ams-client-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .5s; }
.ams-client-card .ams-card-body { margin-top: 0; flex: 1; display: flex; flex-direction: column; }
.ams-client-name { margin: 0 0 6px; font-size: 21px; }
.ams-client-role { margin: 0; font-size: 13px; color: var(--ams-grey); }
/* Shared hover treatment: product, team and client cards lift with a soft
   shadow and their photo gently zooms. */
.ams-solution-card, .ams-leader-card, .ams-client-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.ams-solution-card:hover, .ams-leader-card:hover, .ams-client-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(16,47,67,.16); border-color: #cfe0ea; }
.ams-solution-card:hover img, .ams-leader-card:hover img, .ams-client-card:hover img { transform: scale(1.06); }
/* On hover the text box also switches to the brand blue with reversed
   (white) text, matching the card lift/shadow/zoom treatment above. */
.ams-solution-card:hover .ams-card-body, .ams-leader-card:hover .ams-card-body, .ams-client-card:hover .ams-card-body { background: var(--ams-blue-deep); }
.ams-solution-card:hover .ams-card-body *, .ams-leader-card:hover .ams-card-body *, .ams-client-card:hover .ams-card-body * { color: #fff !important; }
.ams-solution-card:hover .ams-card-body .ams-text-link span, .ams-leader-card:hover .ams-card-body .ams-text-link span, .ams-client-card:hover .ams-card-body .ams-text-link span { border-color: rgba(255,255,255,.55); }
.ams-solution-card:hover .ams-card-body .ams-text-link:hover span, .ams-leader-card:hover .ams-card-body .ams-text-link:hover span, .ams-client-card:hover .ams-card-body .ams-text-link:hover span { background: rgba(255,255,255,.18); }
/* Every inner page uses the same content edges and compact visual introduction. */
.ams-hero { background: #edf4f8; padding-block: 60px; }
body .ams-intro-grid { align-items: center; gap: 70px; }
.ams-intro-grid > .wp-block-column:first-child { flex-basis: 60% !important; }
.ams-intro-grid > .wp-block-column:last-child { flex-basis: 40% !important; }
.ams-intro-grid h1 { font-size: clamp(36px,4vw,54px); margin: 18px 0 24px; }
.ams-intro-copy { max-width: 540px; }
.ams-intro-image { height: 330px; border-radius: 18px; overflow: hidden; }
.ams-intro-image img { width: 100%; height: 100%; object-fit: cover; }
.ams-intro-image img[src*="surgical-team"] { object-position: 76% center; }
.ams-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.ams-category-grid > * { margin: 0 !important; max-width: none !important; }
.ams-category-grid > .wp-block-spacer { display: none; }
.ams-category-grid .ams-catalogue-card h3 { font-size: 23px; }
.ams-category-grid .ams-catalogue-card p { font-size: 14px; }
.ams-category-grid > .wp-block-buttons { grid-column: 1/-1; padding-top: 16px; }
.ams-card { background: var(--ams-bg-soft); border: 1px solid var(--ams-line); border-radius: 14px; height: 100%; }
.ams-profile-hero { padding-block: 70px; background: #edf4f8; }
.ams-profile-hero h1 { max-width: 860px; }
.ams-chip { display: inline-block; padding: 7px 12px; margin: 0 6px 8px 0; background: #e1edf4; border-radius: 6px; color: #225672; font-size: 12px; line-height: 1.5; }
.ams-timeline-card { padding: 24px; border-left: 3px solid var(--ams-blue-deep); background: var(--ams-bg-soft); border-radius: 0 12px 12px 0; }
.single-leader .ams-section-pad > .wp-block-group { max-width: 900px !important; }
.single-product .wp-block-post-content { padding-bottom: 55px; }
.ams-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ams-contact-grid > * { margin: 0 !important; }
.ams-contact-grid ul { padding-left: 22px; }
.ams-contact-grid li { margin-bottom: 12px; }
.ams-contact-address-card { margin-top: 24px !important; }
.ams-contact-address { line-height: 1.6; }
/* Contact form */
.ams-contact-form { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.ams-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ams-form-field { display: flex; flex-direction: column; gap: 8px; }
.ams-form-field label { font-size: 13px; font-weight: 600; color: var(--ams-navy); }
.ams-form-field span[aria-hidden] { color: var(--ams-blue-deep); }
.ams-contact-form input[type="text"], .ams-contact-form input[type="email"], .ams-contact-form input[type="tel"], .ams-contact-form select, .ams-contact-form textarea { width: 100%; border: 1px solid var(--ams-line); border-radius: 9px; padding: 12px 14px; font: 400 14px/1.5 'Inter', sans-serif; color: var(--ams-navy); background: #fff; transition: border-color .2s; }
.ams-contact-form textarea { resize: vertical; min-height: 120px; }
.ams-contact-form input:focus, .ams-contact-form select:focus, .ams-contact-form textarea:focus { outline: none; border-color: var(--ams-blue-deep); }
.ams-form-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ams-form-submit { align-self: flex-start; display: inline-flex; align-items: center; gap: 20px; min-height: 50px; border: none; border-radius: 9px; padding: 13px 22px; background: var(--ams-blue-deep); color: #fff; font: 500 14px/1.4 'Inter', sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.ams-form-submit:hover { background: #03487e; transform: translateY(-2px); }
.ams-form-notice { padding: 14px 16px; border-radius: 9px; font-size: 14px; margin-bottom: 4px; }
.ams-form-notice-success { background: #e3f6ea; color: #1c6b3d; border: 1px solid #b9e6c8; }
.ams-form-notice-error { background: #fbe9e9; color: #a52424; border: 1px solid #f3c4c4; }
@media (max-width: 560px) {
  .ams-form-row { grid-template-columns: 1fr; }
}
/* Quiet footer, aligned with the page grid. */
.ams-footer { background: #0b2639; color: #b7cbd7; padding: 70px var(--ams-gutter) 28px; }
.ams-footer > * { max-width: var(--ams-content) !important; margin-inline: auto !important; }
body .ams-footer-grid { gap: 55px; }
.ams-footer .ams-brand { padding: 8px 12px; }
.ams-footer .ams-brand-crop { width: 170px; }
.ams-footer h3 { color: #fff; font: 500 14px/1.4 'Inter',sans-serif; letter-spacing: 0; margin-bottom: 24px; }
.ams-footer ul { list-style: none; padding: 0; margin: 0; }
.ams-footer li { margin-bottom: 11px; font-size: 13px; }
.ams-footer a { color: #b7cbd7; text-decoration: none; }
.ams-footer a:hover { color: #fff; }
.ams-footer-description { max-width: 285px; font-size: 13px; margin-top: 22px; }
.ams-footer-caption { color: #8baabd; font-size: 8px; letter-spacing: .08em; }
.ams-footer-address { color: #8baabd; font-size: 12px; line-height: 1.6; margin-top: 16px; }
.ams-footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #ffffff20; display: flex; justify-content: space-between; gap: 50px; }
.ams-footer-bottom p { font-size: 10px; line-height: 1.7; margin: 0; }
.ams-footer-bottom p:first-child { max-width: 610px; }
.ams-footer-bottom p:last-child { flex-shrink: 0; }
/* Content is visible without JavaScript. Motion never gates reading. */
.ams-fade-up { opacity: 1; transform: none; }
@media (min-width: 1600px) { .ams-hero-content { padding-inline: max(40px,calc((100% - 1180px)/2)); min-height: 720px; } }
@media (max-width: 1100px) {
  .ams-header-inner { gap: 20px !important; }
  .ams-header-cta { display: none !important; }
  .ams-social-icons { display: none !important; }
  .ams-hero-note { width: 230px; padding: 20px; }
  .ams-hero-copy { width: 68%; }
  .ams-hero-content { min-height: 600px; padding-inline: 36px; }
  .ams-leaders-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ams-client-slide { width: 240px; }
  .ams-footer-grid { gap: 28px !important; }
}
@media (max-width: 900px) {
  .ams-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .ams-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; padding: 12px; }
  .ams-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; padding: 32px; }
  .ams-header .is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 24px; font-size: 21px; width: 100%; }
  .ams-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
  .ams-header .is-menu-open .wp-block-navigation__submenu-container { border: none !important; box-shadow: none; padding: 16px 0 0 20px !important; font-size: 16px; gap: 8px; align-items: flex-start; }
  .ams-hero-note { display: none; }
  .ams-hero-copy { width: 100%; }
  .ams-hero-content { min-height: 580px; }
  .ams-home-hero::after { background: linear-gradient(90deg,#062338de,#06233855); }
  /* Four items no longer fit comfortably in one flex row at tablet widths —
     switch to a 2x2 grid so nothing squeezes or wraps mid-word. */
  .ams-specialties-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 16px !important; }
  .ams-specialties-grid > .wp-block-column { padding-left: 0 !important; border-left: 0 !important; }
  .ams-specialties-grid > .wp-block-column:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--ams-line) !important; }
  .ams-specialties-grid > .wp-block-column:nth-child(n+3) { padding-top: 20px; border-top: 1px solid var(--ams-line); }
  .ams-specialty { gap: 12px; }
  .ams-specialty h2 { font-size: 19px; }
  .ams-about-grid, .ams-story-grid { gap: 36px !important; }
  .ams-intro-grid { gap: 32px !important; }
  .ams-card-body { padding: 22px; }
  .ams-footer-grid { display: grid !important; grid-template-columns: 2fr 1fr; }
  .ams-footer-bottom { flex-direction: column; gap: 18px; }
}
@media (max-width: 781px) {
  .ams-header { padding-block: 8px; }
  body .ams-header-inner { min-height: 62px; }
  .ams-brand-crop { width: 150px; }
  body .wp-block-post-content > .ams-home-hero { margin: 0 calc(50% - 50vw) 10px !important; border-radius: 0; }
  .ams-hero-content { min-height: 600px; padding: 100px 26px 44px; }
  .ams-home-hero h1 { font-size: clamp(24px,5vw,32px); }
  .ams-hero-photo img { object-position: 62% center; }
  .ams-specialties-grid { display: grid !important; grid-template-columns: 1fr; gap: 24px !important; }
  .ams-specialties-grid > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--ams-line); padding: 24px 0 0; }
  .ams-specialty { gap: 24px; }
  .ams-specialty h2 { font-size: 24px; }
  .ams-about-image { height: 430px; }
  .ams-story-image { height: 420px; }
  .ams-story-grid { flex-direction: column-reverse; }
  .ams-solutions-grid { gap: 28px !important; }
  .ams-solution-image { aspect-ratio: 1.4; }
  .ams-solution-image img { object-position: center 42%; }
  .ams-solution-card .ams-card-body { padding: 26px; }
  .ams-page-hero { padding-block: 40px; }
  .ams-intro-image { height: 320px; }
  .ams-category-grid, .ams-contact-grid { grid-template-columns: 1fr; }
  .ams-category-grid .ams-catalogue-card h3 { font-size: 22px; }
  .ams-profile-hero { padding-block: 45px; }
  .ams-cta h2 { font-size: 38px; }
  .ams-footer { padding-top: 50px; }
}
@media (max-width: 480px) {
  .ams-home-hero h1 { font-size: 23px; }
  .ams-hero-content { padding-inline: 22px; min-height: 580px; }
  .ams-home-hero h1 br { display: none; }
  .ams-hero-description { font-size: 14px; }
  .ams-home-hero .wp-block-buttons { align-items: stretch; flex-direction: column; }
  .ams-home-hero .wp-block-button__link { width: 100%; }
  .ams-home-hero .ams-eyebrow { font-size: 8px; letter-spacing: .13em; }
  .ams-leaders-grid { grid-template-columns: 1fr; }
  .ams-leader-card h3 { font-size: 24px; }
  .ams-clients-track { gap: 14px; }
  .ams-client-slide { width: 78%; }
  .ams-client-name { font-size: 19px; }
  .ams-carousel-btn { width: 38px; height: 38px; font-size: 18px; }
  .ams-carousel-prev { left: 2px; }
  .ams-carousel-next { right: 2px; }
  .ams-about-image { height: 360px; }
  .ams-footer-grid { grid-template-columns: 1fr 1fr; }
  .ams-footer-grid > .wp-block-column:first-child { grid-column: 1/-1; }
  .ams-footer-bottom p:last-child { flex-shrink: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
