/* ==========================================================================
   Avance Mobilité — theme.css (loaded on every page)

   Contents
     tokens · base · type · buttons & badges · header · hero · sections &
     service cards · dark band · FAQ · call-to-action · footer · inner pages ·
     editor content · forms & dialog · tracking primitives · floating help ·
     scroll reveal · responsive
   Page-specific styles: home-alternative.css, suivre-trajet.css
   ========================================================================== */

:root {
  --am-ink: #0d2a38;          /* headings */
  --am-text: #4c6472;         /* body copy */
  --am-muted: #7f95a1;
  --am-navy: #0b3f56;         /* buttons, CTA band */
  --am-deep: #062e40;         /* dark section */
  --am-deep-2: #0a3a4e;       /* dark cards */
  --am-teal: #0e7f8c;         /* accent on light */
  --am-aqua: #7fd8e6;         /* accent on dark */
  --am-mist: #f2f8fb;         /* light panels */
  --am-mist-2: #e6f2f6;
  --am-line: #e2ecf0;
  --am-line-dark: rgba(255, 255, 255, .1);
  --am-white: #fff;

  --am-radius: 14px;
  --am-radius-lg: 22px;
  --am-shadow: 0 1px 2px rgba(13, 42, 56, .04), 0 12px 32px -12px rgba(13, 42, 56, .14);
  --am-shadow-lg: 0 30px 60px -24px rgba(6, 46, 64, .35);

  --am-font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --am-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base -------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body.am-alt {
  margin: 0;
  background: var(--am-white);
  color: var(--am-text);
  font-family: var(--am-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:where(.am-alt) :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; padding: 0; }
:where(.am-alt) :where(ul, ol) { list-style: none; }
:where(.am-alt) :where(img, svg) { display: block; max-width: 100%; }
:where(.am-alt) a { color: inherit; text-decoration: none; }
:where(.am-alt) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.am-alt :focus-visible { outline: 2px solid var(--am-teal); outline-offset: 3px; border-radius: 4px; }
.am-dark :focus-visible, .am-cta :focus-visible { outline-color: var(--am-aqua); }

.am-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 28px; }

.am-skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--am-navy); color: #fff !important; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.am-skip:focus { top: 12px; }

.am-ico { width: 14px; height: 14px; flex: none; }

/* ---------- Type -------------------------------------------------------------- */

.am-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--am-teal); margin-bottom: 18px !important;
}
.am-eyebrow--light { color: var(--am-aqua); }
.am-eyebrow--line { display: flex; align-items: center; gap: 14px; }
.am-eyebrow--line::before { content: ""; width: 28px; height: 2px; background: var(--am-teal); }

.am-h2 {
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 600;
  letter-spacing: -.035em; color: var(--am-ink);
}
.am-h2--xl { font-size: clamp(34px, 4vw, 52px); }
.am-h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.am-accent { color: var(--am-teal); }
.am-accent-light { color: var(--am-aqua); }
.am-lead { font-size: 16px; max-width: 54ch; margin-top: 22px !important; }

/* ---------- Buttons & badges -------------------------------------------------- */

.am-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--am-ease), box-shadow .2s;
}
.am-btn .am-ico { transition: transform .25s var(--am-ease); }
.am-btn:hover .am-ico { transform: translate(2px, -2px); }
.am-btn--ghost:hover .am-ico { transform: translateX(3px); }
.am-btn--lg { padding: 17px 22px; font-size: 14px; gap: 28px; }
.am-btn--block { display: flex; width: 100%; }

.am-btn--primary { background: var(--am-navy); color: #fff !important; box-shadow: 0 8px 20px -10px rgba(11, 63, 86, .7); }
.am-btn--primary:hover { background: var(--am-deep); transform: translateY(-1px); }
.am-btn--ghost { background: #fff; border-color: var(--am-line); color: var(--am-ink) !important; }
.am-btn--ghost:hover { border-color: var(--am-navy); }
.am-btn--white { background: #fff; color: var(--am-ink) !important; }
.am-btn--white:hover { background: var(--am-mist-2); transform: translateY(-1px); }

.am-badge {
  display: inline-block; padding: 5px 9px; border-radius: 4px;
  background: #d8f0f5; color: var(--am-teal);
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
}
.am-badge--muted { background: var(--am-mist-2); color: var(--am-navy); }

.am-tag {
  align-self: flex-start; display: inline-block; padding: 7px 10px; background: #fff; color: var(--am-ink);
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}

.am-num { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--am-teal); font-variant-numeric: tabular-nums; }
.am-num--box {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--am-line-dark); color: var(--am-aqua); font-size: 10px;
}
.am-num--dot {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--am-mist-2); font-size: 10.5px;
}

.am-wordmark { display: inline-flex; flex-direction: column; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--am-ink); line-height: 1.2; }
.am-wordmark small { font-size: .72em; letter-spacing: .34em; color: var(--am-teal); }
.am-wordmark--lg { font-size: 17px; }

/* placeholder shown while a photo is missing */
.am-ph {
  width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center;
  background: linear-gradient(160deg, #1d5a73, #0a3345 70%);
  color: rgba(255, 255, 255, .55); font-size: 12px; letter-spacing: .06em;
}

/* ---------- Top strips + header ----------------------------------------------- */

.am-demo-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px;
  padding: 7px 20px; background: var(--am-mist-2); color: var(--am-text); font-size: 11.5px; text-align: center;
}
.am-demo-bar strong { letter-spacing: .16em; text-transform: uppercase; font-size: 10.5px; color: var(--am-ink); align-self: center; }

.am-topbar { background: var(--am-navy); color: #dbeaf0; font-size: 12px; }
.am-topbar__inner { display: flex; justify-content: space-between; align-items: center; padding-block: 7px; }
.am-topbar a { font-weight: 700; color: #fff; }

.am-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.am-header.is-stuck { border-color: var(--am-line); box-shadow: 0 10px 30px -22px rgba(13, 42, 56, .5); }
.admin-bar .am-header { top: 32px; }
.am-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.am-header__logo img { height: 44px; width: auto; }

.am-nav { display: flex; align-items: center; gap: 28px; }
.am-nav__list { display: flex; gap: 26px; }
.am-nav__list a { position: relative; font-size: 13.5px; font-weight: 600; color: var(--am-ink); padding-block: 8px; }
.am-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--am-teal);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--am-ease);
}
.am-nav__list a:hover::after { transform: scaleX(1); }
.am-nav__actions { display: flex; gap: 10px; }

.am-burger { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--am-line) !important; position: relative; }
.am-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--am-ink); border-radius: 2px; transition: transform .25s var(--am-ease), opacity .2s; }
.am-burger span:nth-child(1) { top: 15px; }
.am-burger span:nth-child(2) { top: 21px; }
.am-burger span:nth-child(3) { top: 27px; }
.am-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.am-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.am-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.am-topbar__links { display: flex; align-items: center; gap: 22px; }
.am-topbar__mail { font-weight: 400 !important; color: #dbeaf0 !important; }
.am-topbar__mail:hover { color: #fff !important; }

/* current page + sub-menus (WordPress menu classes) */
.am-nav__list > li { position: relative; }
.am-nav__list .current-menu-item > a, .am-nav__list .current-menu-ancestor > a, .am-nav__list .current_page_item > a { color: var(--am-teal); }
.am-nav__list .current-menu-item > a::after, .am-nav__list .current_page_item > a::after { transform: scaleX(1); }
.am-nav__list > .menu-item-has-children > a { padding-right: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230d2a38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 9px no-repeat; }
.am-nav__list .sub-menu {
  position: absolute; left: -18px; top: 100%; z-index: 10; min-width: 270px; padding: 10px !important; margin-top: 6px !important;
  background: #fff; border: 1px solid var(--am-line); border-radius: 12px; box-shadow: var(--am-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--am-ease), visibility .2s;
}
.am-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.am-nav__list li:hover > .sub-menu, .am-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.am-nav__list .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.am-nav__list .sub-menu a::after { display: none; }
.am-nav__list .sub-menu a:hover { background: var(--am-mist); color: var(--am-teal); }

/* ---------- Hero -------------------------------------------------------------- */

.am-hero { background: linear-gradient(180deg, #fff 0%, var(--am-mist) 100%); padding-top: 8px; }

.am-hero__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 44px 44px 44px 0;
}
.am-hero__panel::before {
  content: ""; position: absolute; inset: 0 -14px 0 -28px; z-index: 0; border-radius: var(--am-radius-lg);
  background: radial-gradient(120% 90% at 0% 0%, #fff 0%, #f4fafc 55%, #e9f4f8 100%);
  box-shadow: var(--am-shadow);
}
.am-hero__panel > * { position: relative; z-index: 1; }

.am-hero__title { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; color: var(--am-ink); }
.am-hero__lead { margin-top: 28px !important; max-width: 46ch; font-size: 16.5px; }
.am-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.am-hero__note { margin-top: 14px !important; font-size: 12px; color: var(--am-muted); }
.am-hero__note a { color: var(--am-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.am-hero__ticks {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px !important; padding-top: 22px !important;
  border-top: 1px solid var(--am-line); font-size: 12.5px;
}
.am-hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.am-ico--check { color: var(--am-teal); width: 13px; height: 13px; }

.am-hero__card {
  position: relative; display: block; aspect-ratio: 20 / 21; border-radius: 28px 28px 14px 14px; overflow: hidden;
  background: var(--am-deep); box-shadow: var(--am-shadow-lg); isolation: isolate;
}
.am-hero__card img, .am-hero__card .am-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--am-ease); }
.am-hero__card:hover img { transform: scale(1.04); }
.am-hero__card::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(6, 36, 50, .92) 72%); }
.am-hero__card-body { position: absolute; inset: auto 0 0; z-index: 2; display: flex; flex-direction: column; padding: 28px; color: #fff; }
.am-hero__card-title { margin-top: 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; }
.am-hero__card-link {
  display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px;
}
.am-hero__card-link .am-ico { transition: transform .25s var(--am-ease); }
.am-hero__card:hover .am-hero__card-link .am-ico { transform: translate(3px, -3px); }

.am-hero__side {
  position: absolute !important; right: 8px; top: 50%; transform: translate(50%, -50%) rotate(90deg); transform-origin: center;
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--am-muted); white-space: nowrap;
}

/* variants used by the classic home page */
.am-hero--flush { padding-bottom: clamp(40px, 5vw, 64px); }
.am-hero__title--sm { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; }
.am-hero__card--wide { aspect-ratio: 3 / 2; margin: 0; border-radius: var(--am-radius-lg); }
.am-hero__card--wide::after { display: none; }

/* ---------- Sections & service cards ------------------------------------------ */

.am-section { padding-block: clamp(72px, 9vw, 120px); }
.am-section--tight { padding-block: clamp(56px, 7vw, 90px); }
.am-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.am-section__aside { max-width: 30ch; font-size: 14px; }

/* services */
.am-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.am-service {
  position: relative; display: flex; flex-direction: column; padding: 26px 22px 20px; min-height: 320px;
  background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); box-shadow: var(--am-shadow);
  transition: transform .35s var(--am-ease), border-color .25s, box-shadow .35s;
}
.am-service::before {
  content: ""; position: absolute; top: -1px; left: 22px; width: 34px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--am-teal); transform: scaleX(.4); transform-origin: left; opacity: .5; transition: transform .35s var(--am-ease), opacity .25s;
}
.am-service:hover { transform: translateY(-6px); border-color: #c5dde5; box-shadow: 0 28px 50px -28px rgba(13, 42, 56, .4); }
.am-service:hover::before { transform: scaleX(1); opacity: 1; }
.am-service--featured { background: linear-gradient(180deg, #eaf6fa, #fff 70%); border-color: #cfe6ed; }
.am-service__top { display: flex; justify-content: space-between; align-items: center; min-height: 22px; margin-bottom: 38px; }
.am-service__title { font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; color: var(--am-ink); }
.am-service__text { margin-top: 16px !important; font-size: 14px; flex: 1; }
.am-service__cta {
  display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 16px;
  border-top: 1px solid var(--am-line); font-size: 12.5px; font-weight: 600; color: var(--am-ink);
}
.am-service__cta .am-ico { transition: transform .25s var(--am-ease); }
.am-service:hover .am-service__cta .am-ico { transform: translate(3px, -3px); }

.am-section--mist { background: var(--am-mist); }
.am-services--auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.am-service__icon { width: 56px; height: 56px; object-fit: contain; }
.am-text { margin-top: 16px; font-size: 15px; }
.am-text strong { color: var(--am-ink); }
.am-container--narrow { max-width: 860px; }

/* two columns: text + media */
.am-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.am-dark .am-split p:not(.am-eyebrow) { margin-top: 18px; max-width: 58ch; font-size: 15px; }
.am-dark .am-split .am-btn { margin-top: 28px; }
.am-checklist.am-checklist--ink { color: var(--am-ink); margin-bottom: 0 !important; }
.am-checklist--ink .am-ico--check, .am-checklist--cols .am-ico--check { color: var(--am-teal); }
.am-checklist.am-checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0 !important; color: var(--am-ink); font-size: 15px; font-weight: 500; }

.am-video { position: relative; aspect-ratio: 16 / 10; border-radius: var(--am-radius); overflow: hidden; background: #041c28; box-shadow: var(--am-shadow-lg); }
.am-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* overlapping photo pair (about page) */
.am-duo { position: relative; padding: 0 12% 12% 0; }
.am-duo figure { overflow: hidden; border-radius: var(--am-radius); box-shadow: var(--am-shadow-lg); }
.am-duo img, .am-duo .am-ph { width: 100%; height: 100%; object-fit: cover; }
.am-duo__main { aspect-ratio: 4 / 5; }
.am-duo__side { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 5 / 6; border: 6px solid #fff; }

/* key figure band */
.am-stat {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--am-line); border-radius: var(--am-radius-lg);
  background: radial-gradient(90% 120% at 0% 50%, #e8f4f8, #fff 70%); box-shadow: var(--am-shadow);
}
.am-stat__figure { display: flex; align-items: center; gap: 20px; }
.am-stat__figure img { width: 72px; height: 72px; object-fit: contain; }
.am-stat__figure p { font-size: 15px; line-height: 1.3; color: var(--am-ink); font-weight: 500; }
.am-stat__figure strong { display: block; font-size: clamp(40px, 5vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--am-teal); font-variant-numeric: tabular-nums; }
.am-stat__more { margin-top: 18px; font-size: 13.5px; font-style: italic; color: var(--am-navy); font-weight: 600; }

/* ---------- Dark band --------------------------------------------------------- */

.am-dark {
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(20, 110, 135, .28), transparent 70%),
    var(--am-deep);
  color: #b9cdd6; padding-block: clamp(72px, 9vw, 110px);
}
.am-dark .am-h2, .am-dark .am-h3, .am-dark h4 { color: #fff; }
.am-checklist { margin: 28px 0 34px !important; display: grid; gap: 12px; font-size: 14px; color: #e3eef2; }
.am-checklist li { display: flex; align-items: center; gap: 12px; }
.am-checklist .am-ico--check { color: var(--am-aqua); }

/* ---------- FAQ --------------------------------------------------------------- */

.am-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.am-faq__intro { position: sticky; top: 120px; }
.am-faq__help { margin-top: 26px !important; font-size: 14px; }
.am-faq__help strong { color: var(--am-ink); }
.am-faq__help a:hover { color: var(--am-teal); }
.am-faq__list { border-top: 1px solid var(--am-line); }
.am-faq__item { border-bottom: 1px solid var(--am-line); }
.am-faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 4px; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 600; color: var(--am-ink); letter-spacing: -.01em; transition: color .2s;
}
.am-faq__item summary::-webkit-details-marker { display: none; }
.am-faq__item summary:hover { color: var(--am-teal); }
.am-faq__plus { position: relative; width: 12px; height: 12px; flex: none; color: var(--am-teal); }
.am-faq__plus::before, .am-faq__plus::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: currentColor; transition: transform .3s var(--am-ease); }
.am-faq__plus::after { transform: rotate(90deg); }
.am-faq__item[open] .am-faq__plus::after { transform: rotate(0); }
.am-faq__answer { padding: 0 48px 28px 4px; font-size: 14.5px; max-width: 64ch; animation: am-fade .35s var(--am-ease); }
@keyframes am-fade { from { opacity: 0; transform: translateY(-6px); } }

.am-faq__photo { margin-top: 32px; max-width: 300px; aspect-ratio: 5 / 4; border-radius: var(--am-radius); overflow: hidden; box-shadow: var(--am-shadow); }
.am-faq__photo img, .am-faq__photo .am-ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Call-to-action ---------------------------------------------------- */

.am-cta { background: var(--am-navy); color: #c4d8e0; padding-block: clamp(56px, 7vw, 84px); }
.am-cta .am-h2 { color: #fff; }
.am-cta__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr); gap: 48px; align-items: center; }
.am-cta__text { margin-top: 20px !important; max-width: 44ch; font-size: 14.5px; }
.am-cta__phone { display: block; margin-top: 26px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: #fff !important; line-height: 1.1; }
.am-cta__mail { display: inline-block; margin-top: 10px; font-size: 13.5px; color: #e3eef2 !important; word-break: break-word; }
.am-cta__phone:hover, .am-cta__mail:hover { color: var(--am-aqua) !important; }

/* ---------- Footer ------------------------------------------------------------ */

.am-footer { background: #f8fbfc; border-top: 1px solid var(--am-line); font-size: 13.5px; }
.am-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 44px; }
.am-footer__brand p { margin-top: 16px; }
.am-footer__note { max-width: 40ch; font-size: 12px; line-height: 1.6; color: var(--am-muted); }
.am-footer__title { margin-bottom: 16px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--am-muted); }
.am-footer li + li { margin-top: 10px; }
.am-footer li { color: var(--am-text); word-break: break-word; }
.am-footer li a { color: var(--am-ink); font-weight: 500; transition: color .2s; }
.am-footer a:hover { color: var(--am-teal); }
.am-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 26px; border-top: 1px solid var(--am-line); font-size: 11.5px; color: var(--am-muted); }

/* ---------- Inner pages ------------------------------------------------------- */

.am-page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, #fff, var(--am-mist)); border-bottom: 1px solid var(--am-line); }
.am-page-hero__title { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 600; letter-spacing: -.045em; color: var(--am-ink); max-width: 20ch; }
.am-page-hero .am-lead { margin-top: 20px; }
.am-page-hero--center { text-align: center; padding-block: clamp(72px, 12vw, 160px); border: 0; }
.am-page-hero--center .am-page-hero__title, .am-page-hero--center .am-lead { margin-inline: auto; }
.am-page-hero--center .am-hero__actions { justify-content: center; }
.am-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 12px; color: var(--am-muted); }
.am-crumbs a:hover { color: var(--am-teal); }
.am-crumbs [aria-current] { color: var(--am-ink); font-weight: 600; }

/* cards */
.am-card { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--am-line); border-radius: 16px; box-shadow: var(--am-shadow); }
.am-card__title { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: var(--am-ink); margin-bottom: 16px; }
.am-card--navy { background: var(--am-navy); border-color: var(--am-navy); color: #c4d8e0; font-size: 14px; }
.am-card--navy .am-card__title { color: #fff; }
.am-card--navy a:not(.am-btn) { color: #fff; }
.am-card--navy a:not(.am-btn):hover { color: var(--am-aqua); }
.am-card--navy .am-btn { margin-top: 20px; }
.am-card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }
.am-alt .am-card--navy .am-link-btn { color: var(--am-aqua) !important; text-decoration: underline; text-underline-offset: 3px; }

/* contact details */
.am-contact-cards { display: grid; gap: 12px; }
.am-contact-cards li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); }
.am-contact-cards__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--am-mist-2); color: var(--am-teal); }
.am-contact-cards__icon .am-ico { width: 20px; height: 20px; }
.am-contact-cards small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--am-muted); }
.am-contact-cards a, .am-contact-cards div > span { font-size: 15px; font-weight: 600; color: var(--am-ink); word-break: break-word; }
.am-contact-cards a:hover { color: var(--am-teal); }
.am-social { display: flex; gap: 10px; margin-top: 18px; }
.am-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--am-line); color: var(--am-ink); transition: background-color .2s, color .2s, border-color .2s; }
.am-social a:hover { background: var(--am-navy); border-color: var(--am-navy); color: #fff; }
.am-social .am-ico { width: 18px; height: 18px; }
.am-map iframe { display: block; width: 100%; height: clamp(320px, 45vw, 520px); border: 0; filter: saturate(.85); }

/* service page */
.am-article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.am-article__cover { margin-bottom: 32px; border-radius: var(--am-radius); overflow: hidden; box-shadow: var(--am-shadow); }
.am-article__cover img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.am-article__aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.am-linklist li + li { border-top: 1px solid var(--am-line); }
.am-linklist a { display: flex; align-items: center; gap: 12px; padding: 14px 2px; font-size: 14px; font-weight: 600; color: var(--am-ink); transition: color .2s; }
.am-linklist a span { flex: 1; }
.am-linklist img { width: 26px; height: 26px; object-fit: contain; }
.am-linklist .am-ico { color: var(--am-muted); transition: transform .2s var(--am-ease), color .2s; }
.am-linklist a:hover, .am-linklist a[aria-current] { color: var(--am-teal); }
.am-linklist a:hover .am-ico, .am-linklist a[aria-current] .am-ico { color: var(--am-teal); transform: translateX(3px); }

/* blog list + WordPress pagination */
.am-postlist li { border-bottom: 1px solid var(--am-line); }
.am-postlist a { display: grid; gap: 6px; padding-block: 24px; }
.am-postlist small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--am-muted); }
.am-postlist strong { font-size: 20px; letter-spacing: -.02em; color: var(--am-ink); transition: color .2s; }
.am-postlist a:hover strong { color: var(--am-teal); }
.am-postlist span { font-size: 14.5px; }
.navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; font-size: 14px; font-weight: 600; color: var(--am-navy); }
.navigation .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Editor content (the_content) -------------------------------------- */

.am-prose { font-size: 16.5px; line-height: 1.75; color: var(--am-text); }
.am-prose > * + * { margin-top: 1.1em; }
.am-prose h2, .am-prose h3, .am-prose h4 { margin-top: 1.8em; color: var(--am-ink); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.am-prose h2 { font-size: clamp(24px, 2.6vw, 32px); }
.am-prose h3 { font-size: clamp(20px, 2vw, 24px); }
.am-prose h4 { font-size: 18px; }
.am-prose > :first-child { margin-top: 0; }
.am-prose strong { color: var(--am-ink); }
.am-prose a { color: var(--am-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.am-prose ul, .am-prose ol { padding-left: 1.3em; }
.am-prose ul { list-style: disc; }
.am-prose ol { list-style: decimal; }
.am-prose li + li { margin-top: .45em; }
.am-prose li::marker { color: var(--am-teal); }
.am-prose img { height: auto; border-radius: var(--am-radius); }
.am-prose figure { margin-block: 1.6em; }
.am-prose figcaption { margin-top: 8px; font-size: 13px; color: var(--am-muted); }
.am-prose blockquote { margin-inline: 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--am-teal); font-size: 1.1em; color: var(--am-ink); }
.am-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.am-prose th, .am-prose td { padding: 10px 12px; border-bottom: 1px solid var(--am-line); text-align: left; }
.am-prose hr { border: 0; border-top: 1px solid var(--am-line); margin-block: 2em; }

/* ---------- Forms & dialog ---------------------------------------------------- */

.am-form-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.am-form-layout--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
.am-form-layout__aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.am-form-layout__aside .am-text { margin-top: 0; }
.am-form .am-h3 { color: var(--am-ink); margin-bottom: 22px; }
.am-form__hint { margin: -12px 0 22px; font-size: 13px; color: var(--am-muted); }

.am-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 28px; }
.am-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.am-field--full { grid-column: 1 / -1; }

.am-form label, .am-form legend, .am-form .form-label {
  display: block; margin-bottom: 8px; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--am-ink);
}
.am-form input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"], [type="file"]),
.am-form select, .am-form textarea {
  display: block; width: 100%; padding: 13px 14px; border: 1.5px solid var(--am-line); border-radius: 10px; background: var(--am-mist);
  color: var(--am-ink); font: 500 15px/1.4 var(--am-font); transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none;
}
.am-form select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230d2a38' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; }
.am-form textarea { min-height: 130px; resize: vertical; }
.am-form ::placeholder { color: #a3b5be; font-weight: 400; }
.am-form input:focus, .am-form select:focus, .am-form textarea:focus { outline: 0; border-color: var(--am-teal); background: #fff; box-shadow: 0 0 0 4px rgba(14, 127, 140, .12); }
.am-form input[type="checkbox"], .am-form input[type="radio"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--am-navy); }

.am-choices { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.am-choices legend { width: 100%; float: left; }
.am-choices--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.am-choices--grid legend { grid-column: 1 / -1; }
.am-form .form-check, .am-form .wpcf7-list-item, .am-form .equipment-option {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 11px 14px; border: 1.5px solid var(--am-line); border-radius: 10px; background: #fff;
  transition: border-color .2s, background-color .2s;
}
.am-form .form-check:has(:checked), .am-form .wpcf7-list-item:has(:checked), .am-form .equipment-option:has(:checked) { border-color: var(--am-navy); background: var(--am-mist); }
.am-form .form-check label, .am-form .wpcf7-list-item label, .am-form .equipment-option label, .am-form .wpcf7-list-item-label { margin: 0; font-weight: 500; font-size: 14px; cursor: pointer; }
.am-form .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 10px; }
.am-form .wpcf7-radio, .am-form .wpcf7-checkbox, .am-form .equipment-options { display: flex; flex-wrap: wrap; gap: 10px; }

/* submit buttons — ours, Contact Form 7's and the former "thm-btn" */
.am-form input[type="submit"], .am-form button[type="submit"]:not(.am-btn), .am-form .thm-btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 17px 28px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--am-navy); color: #fff; font: 600 14px/1.2 var(--am-font); box-shadow: 0 8px 20px -10px rgba(11, 63, 86, .7); transition: background-color .2s, transform .2s var(--am-ease);
}
.am-form input[type="submit"]:hover, .am-form button[type="submit"]:not(.am-btn):hover, .am-form .thm-btn:hover { background: var(--am-deep); transform: translateY(-1px); }
.am-form button[disabled], .am-form input[disabled] { opacity: .6; cursor: progress; }

/* layout classes that may exist inside the Contact Form 7 templates (former Bootstrap grid) */
.am-form .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; }
.am-form .row > * { grid-column: span 12; min-width: 0; }
.am-form .row > [class*="col-md-6"], .am-form .row > [class*="col-sm-6"], .am-form .row > [class*="col-lg-6"] { grid-column: span 6; }
.am-form .row > [class*="col-md-4"], .am-form .row > [class*="col-lg-4"] { grid-column: span 4; }
.am-form .row > [class*="col-md-3"] { grid-column: span 3; }
.am-form .row > [class*="col-md-8"] { grid-column: span 8; }
.am-form .wpcf7-form p, .am-form .contact-field, .am-form .mb-3 { margin: 0 0 18px; }
.am-form .d-flex { display: flex; } .am-form .justify-content-center { justify-content: center; } .am-form .text-center { text-align: center; }
.am-form .wpcf7-form-control-wrap { display: block; }
.am-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }

/* validation + feedback (Contact Form 7, /js/mail.js, Bootstrap-style class names) */
.am-form .text-danger, .am-form .required::after { color: #c2413a; }
.am-form .wpcf7-not-valid, .am-form .is-invalid, .am-form .was-validated :invalid { border-color: #c2413a !important; }
.am-form .wpcf7-not-valid-tip, .am-form .invalid-feedback, .am-form .error { display: block; margin-top: 6px; font-size: 12.5px; color: #8a2a25; }
.am-form .invalid-feedback { display: none; }
.am-form .is-invalid ~ .invalid-feedback, .am-form .was-validated :invalid ~ .invalid-feedback { display: block; }
.am-form .wpcf7-response-output, .am-form .alert, .am-form .form-message, .am-form .ajax-response {
  margin: 20px 0 0 !important; padding: 14px 16px !important; border: 0 !important; border-left: 3px solid var(--am-teal) !important; border-radius: 8px;
  background: var(--am-mist-2); color: var(--am-ink); font-size: 14px; line-height: 1.5;
}
.am-form .wpcf7-response-output:empty, .am-form .form-message:empty, .am-form .ajax-response:empty { display: none; }
.am-form form.invalid .wpcf7-response-output, .am-form form.failed .wpcf7-response-output, .am-form form.spam .wpcf7-response-output, .am-form .alert-danger, .am-form .text-danger.form-message { border-left-color: #c2413a !important; background: #fdf1f0; color: #8a2a25; }
.am-form form.sent .wpcf7-response-output, .am-form .alert-success { border-left-color: #11917f !important; background: #e7f6f3; color: #0d5a4f; }

/* dialog (quote request) */
.am-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--am-text); box-shadow: 0 40px 100px -20px rgba(6, 46, 64, .6); overflow: auto; }
.am-dialog::backdrop { background: rgba(6, 46, 64, .55); backdrop-filter: blur(4px); }
.am-dialog[open] { animation: am-fade .3s var(--am-ease); }
.am-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; background: #fff; border-bottom: 1px solid var(--am-line); }
.am-dialog__head .am-h3 { color: var(--am-ink); font-size: 22px; }
.am-dialog__close { width: 40px; height: 40px; border-radius: 50%; font-size: 26px !important; line-height: 1; color: var(--am-ink) !important; transition: background-color .2s; }
.am-dialog__close:hover { background: var(--am-mist-2) !important; }
.am-dialog__body { padding: 28px; }

/* ---------- Tracking primitives (home demo + tracking page) ------------------- */

.am-callout { margin-top: 32px !important; padding: 14px 18px; border-left: 3px solid var(--am-teal); border-radius: 0 8px 8px 0; background: var(--am-mist-2); font-size: 12px; line-height: 1.6; }
.am-tracker__label { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--am-muted); }
.am-tracker__pulse { position: relative; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #11917f; }
.am-tracker__pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #11917f; opacity: 0; animation: am-pulse 2s ease-out infinite; }
@keyframes am-pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.am-tracker__stops { padding: 8px 22px !important; }
.am-tracker__stops li { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.am-tracker__stops li + li { border-top: 1px dashed var(--am-line); }
.am-tracker__stops div { flex: 1; }
.am-tracker__stops small { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--am-muted); }
.am-tracker__stops strong { font-size: 13px; color: var(--am-ink); }
.am-tracker__stops time { font-size: 12px; font-variant-numeric: tabular-nums; }
.am-stop { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.am-stop--from { border: 2.5px solid var(--am-navy); }
.am-stop--to { background: var(--am-navy); }
.am-alt .am-link-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px !important; font-weight: 700; color: var(--am-navy) !important; }
.am-link-btn:hover .am-ico { transform: translateX(3px); }
.am-link-btn .am-ico { transition: transform .2s; }
.am-link-btn[disabled] { opacity: .45; cursor: default; }
.am-alt .am-link-btn--muted { font-weight: 500; color: var(--am-muted) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating help ----------------------------------------------------- */

.am-chat {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 999px; background: var(--am-navy); color: #fff !important;
  box-shadow: 0 16px 34px -12px rgba(6, 46, 64, .6); transition: transform .25s var(--am-ease), background-color .2s;
}
.am-chat:hover { transform: translateY(-3px); background: var(--am-deep); }
.am-chat svg { width: 20px; height: 20px; }
.am-chat span { display: flex; flex-direction: column; line-height: 1.2; }
.am-chat strong { font-size: 12.5px; }
.am-chat small { font-size: 10.5px; opacity: .75; }

/* ---------- Scroll reveal (only when JS is on) -------------------------------- */

.am-js .am-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--am-ease), transform .7s var(--am-ease); }
.am-js .am-reveal.is-in { opacity: 1; transform: none; }
.am-services .am-reveal:nth-child(2), .am-steps .am-reveal:nth-child(2) { transition-delay: .08s; }
.am-services .am-reveal:nth-child(3), .am-steps .am-reveal:nth-child(3) { transition-delay: .16s; }
.am-services .am-reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive -------------------------------------------------------- */

@media (max-width: 1100px) {
  .am-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-service { min-height: 0; }
  .am-hero__side { display: none; }
  .am-hero__panel { padding-right: 0; }
  .am-hero__panel::before { inset-inline: -14px; }
  .am-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-topbar__mail { display: none; }
}

@media (max-width: 1180px) {
  /* header: burger + drop-down panel */
  .am-burger { display: block; }
  .am-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 20px; max-height: calc(100vh - 120px); overflow-y: auto;
    padding: 20px 28px 28px; background: #fff; border-bottom: 1px solid var(--am-line); box-shadow: 0 30px 40px -30px rgba(13, 42, 56, .4);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--am-ease), visibility .25s;
  }
  .am-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .am-nav__list { flex-direction: column; gap: 0; }
  .am-nav__list a { display: block; padding-block: 14px; font-size: 16px; border-bottom: 1px solid var(--am-line); }
  .am-nav__list a::after { display: none; }
  .am-nav__list > .menu-item-has-children > a { background-image: none; }
  .am-nav__list .sub-menu { position: static; min-width: 0; margin: 0 !important; padding: 0 0 0 16px !important; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .am-nav__list .sub-menu a { padding: 12px 0; border-radius: 0; font-size: 14.5px; color: var(--am-text); }
  .am-nav__actions { flex-direction: column; }
  .am-nav__actions .am-btn { padding-block: 16px; }
}

@media (max-width: 980px) {
  .am-hero__panel, .am-split, .am-faq, .am-cta__inner, .am-form-layout, .am-form-layout--wide, .am-article, .am-stat { grid-template-columns: minmax(0, 1fr); }
  .am-hero__panel { gap: 36px; padding-block: 32px; }
  .am-hero__card { aspect-ratio: 4 / 3.6; }
  .am-hero__card--wide { aspect-ratio: 16 / 10; }
  .am-faq__intro, .am-form-layout__aside, .am-article__aside { position: static; }
  .am-section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .am-faq__photo { display: none; }
}

@media (max-width: 782px) { .admin-bar .am-header { top: 46px; } }

@media (max-width: 640px) {
  .am-container { padding-inline: 20px; }
  .am-demo-bar span { display: none; }
  .am-header__inner { min-height: 64px; }
  .am-header__logo img { height: 38px; }
  .am-services, .am-fields, .am-checklist--cols, .am-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .am-form .row > * { grid-column: span 12 !important; }
  .am-hero__actions .am-btn, .am-dark .am-split .am-btn { width: 100%; }
  .am-stat__figure { flex-direction: column; align-items: flex-start; }
  .am-chat { padding: 12px; }
  .am-chat span { display: none; }
  .am-faq__answer { padding-right: 8px; }
  .am-dialog__body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .am-alt *, .am-alt *::before, .am-alt *::after { animation: none !important; transition: none !important; }
  .am-js .am-reveal { opacity: 1; transform: none; }
}
