/*
  jm-base.css — Universal Spedition 2027 (flatsome-child-universal)
  Base typography, buttons, header, footer and the global components. Loaded after tokens.css and flatsome.css.
  Rules: colours, fonts, spacing, radii, shadows and durations come from tokens.css as var(--…) only.
  Breakpoints follow Flatsome: medium ≤ 849px, small ≤ 549px.

  1. Base and typography      5. Language switcher        9. Contact actions
  2. Buttons                  6. Mega menus              10. FAQ
  3. Shared bits              7. CTA band                11. Motion
  4. Header and top bar       8. Footer                  12. Hover glow, cookie button, footer lines
*/

/* 1. Base and typography ---------------------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  font-weight: var(--type-body-weight);
  color: var(--ink);
  background: var(--surface);
}
h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  color: var(--ink);
  letter-spacing: 0;
}
h1, .jm-h1 { font-size: var(--type-h1-size); line-height: var(--type-h1-lh); font-weight: var(--type-h1-weight); }
h2, .jm-h2 { font-size: var(--type-h2-size); line-height: var(--type-h2-lh); font-weight: var(--type-h2-weight); }
h3, .jm-h3 { font-size: var(--type-h3-size); line-height: var(--type-h3-lh); font-weight: var(--type-h3-weight); }
h4, .jm-h4 { font-size: var(--type-h4-size); line-height: var(--type-h4-lh); font-weight: var(--type-h4-weight); }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 { color: var(--on-band); }
.jm-display { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: var(--type-display-size); line-height: var(--type-display-lh); font-weight: var(--type-display-weight); }
.jm-lead, p.lead { font-size: var(--type-lead-size); line-height: var(--type-lead-lh); font-weight: var(--type-lead-weight); }
.jm-eyebrow {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.jm-mono, .jm-spec { font-family: var(--font-mono); font-size: var(--type-spec-size); line-height: var(--type-spec-lh); font-weight: var(--type-spec-weight); }
small, .jm-caption { font-size: var(--type-caption-size); line-height: var(--type-caption-lh); }
a { color: var(--navy); }
a:hover { color: var(--band); }
.dark a { color: var(--on-band); }
::selection { background: var(--orange-soft); color: var(--ink); }

/* Focus ring everywhere (tokens.css sets it; Flatsome removes outlines on some elements). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 2px;
  box-shadow: none;
}
.dark a:focus-visible, .dark button:focus-visible, .dark summary:focus-visible, .jm-topbar a:focus-visible, #top-bar a:focus-visible, #top-bar summary:focus-visible {
  outline-color: var(--orange) !important;
}

/* 2. Buttons ---------------------------------------------------------------------------------------------------- */
/* Primary = orange fill, navy text (never white). Secondary = navy. Radius 2, min-height 48 (tap target). */
.jm-btn,
.button, button.button, input[type="submit"], input[type="button"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--type-label-lh);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  background-image: none;
  box-shadow: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  cursor: pointer;
}
.jm-btn { border: 2px solid transparent; margin: 0; white-space: nowrap; }
.jm-btn--primary, body .button.primary:not(.is-outline):not(.is-link):not(.is-underline):not(.is-shade), body input[type="submit"] {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--on-orange);
}
.jm-btn--primary:hover, .jm-btn--primary:focus-visible, body .button.primary:not(.is-outline):not(.is-link):not(.is-underline):not(.is-shade):hover, body input[type="submit"]:hover, body .button.primary.is-outline:hover {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--on-orange);
}
.jm-btn--secondary, body .button.secondary:not(.is-outline):not(.is-link):not(.is-underline):not(.is-shade) {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}
.jm-btn--secondary:hover, body .button.secondary:not(.is-outline):not(.is-link):not(.is-underline):not(.is-shade):hover { background-color: var(--band); border-color: var(--band); color: var(--on-band); }
.jm-btn--outline-dark { background: transparent; border-color: var(--line-strong); color: var(--on-band); }
.jm-btn--outline-dark:hover { border-color: var(--on-band); color: var(--on-band); background: transparent; }
.jm-btn--link { min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--navy); }
.jm-btn--primary:visited { color: var(--on-orange); }
.jm-btn--secondary:visited, .jm-btn--outline-dark:visited { color: var(--on-navy); }

/* 3. Shared bits ------------------------------------------------------------------------------------------------ */
.jm-route-mark { display: inline-flex; align-items: center; flex: none; vertical-align: middle; }
.jm-route-mark--sm { width: 40px; }
.jm-route-mark--lg { width: 160px; margin-bottom: var(--space-3); }
.jm-route-mark__start, .jm-route-mark__end { flex: none; width: 6px; height: 6px; border: 2px solid var(--orange); border-radius: var(--radius-pill); box-sizing: content-box; }
.jm-route-mark__end { background: var(--orange); }
.jm-route-mark--lg .jm-route-mark__start, .jm-route-mark--lg .jm-route-mark__end { width: 6px; height: 6px; }
.jm-route-mark__line { flex: 1; height: 2px; background: var(--orange); }
.jm-badge-years {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px; padding: 0 6px;
  background: var(--orange); color: var(--on-orange);
  font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1;
  border-radius: var(--radius-sm);
}
.jm-phone { font-family: var(--font-mono); font-weight: 500; text-decoration: none; }
.jm-phone--text { color: inherit; }
.jm-phone .jm-phone__number { font-family: var(--font-mono); }
.jm-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 4. Header and top bar ----------------------------------------------------------------------------------------- */
#header .header-top, #top-bar { background-color: var(--band); color: var(--on-band-muted); min-height: var(--topbar-h); }
#top-bar .flex-row { min-height: var(--topbar-h); }
#top-bar .nav > li { margin: 0; }
#top-bar .html { padding: 0; }
.jm-topbar-motto { display: inline-flex; align-items: center; gap: var(--space-3); min-width: 0; font-size: 14px; line-height: 20px; }
.jm-topbar-motto__motto {
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-band); white-space: nowrap;
}
.jm-topbar-motto__years { display: inline-flex; align-items: center; gap: 6px; color: var(--on-band-muted); white-space: nowrap; }
.jm-topbar-motto__years-short { display: none; align-items: center; gap: 4px; white-space: nowrap; color: var(--on-band-muted); }
.jm-topbar-contact { display: flex; align-items: center; gap: var(--space-5); font-size: 14px; line-height: 20px; }
.jm-topbar-contact a { color: var(--on-band); text-decoration: none; }
.jm-topbar-contact a:hover { color: var(--on-band); text-decoration: underline; text-underline-offset: 3px; }
.jm-topbar-contact__phone { font-family: var(--font-mono); font-weight: 500; }
.jm-lang--drawer { display: none; }

/* Main bar */
#masthead.header-main { background: var(--surface); }
#header.header { box-shadow: var(--shadow-header); }
.header-main .nav > li > a.nav-top-link, .header-main .header-nav-main > li > a {
  font-family: var(--font-body); font-weight: 600; font-size: 16.5px; letter-spacing: 0; text-transform: none;
  color: var(--ink); min-height: 44px; padding-top: 0; padding-bottom: 0;
  border-bottom: 2px solid transparent;
}
.header-main .header-nav-main > li.active > a, .header-main .header-nav-main > li.current-menu-ancestor > a,
.header-main .header-nav-main > li > a:hover, .header-main .header-nav-main > li:hover > a {
  color: var(--navy); border-bottom-color: var(--orange);
}
.header-main .header-nav-main > li > a .icon-angle-down { font-size: 12px; margin-left: 2px; opacity: .8; }
.header-main .html_top_right_text { margin-left: var(--space-5); }
.jm-header-cta { padding: var(--space-3) var(--space-5); font-size: 16px; }
.jm-header-cta__short { display: none; }
/* Flatsome default dropdowns (non-block items) */
.nav-dropdown { border-radius: var(--radius-md); box-shadow: var(--shadow-panel); border: 0; }
.nav-dropdown li a { color: var(--ink); }
/* Block (mega) dropdowns: full width under the bar, no Flatsome padding */
.header-nav .menu-item-has-block .nav-dropdown { padding: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.header-nav .menu-item-design-full-width .nav-dropdown { max-width: none; }
.header-nav .menu-item-has-block .nav-dropdown .section { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }

/* Mobile header (≤849): 30 px motto strip above the 64 px bar */
@media (max-width: 849px) {
  #header .header-top, #top-bar, #top-bar .flex-row { min-height: var(--motto-h); height: var(--motto-h); }
  #top-bar .flex-row { padding: 0 var(--space-4); }
  #top-bar .mobile-nav { justify-content: flex-start; width: 100%; }
  #top-bar .mobile-nav > li.html { width: 100%; }
  .jm-topbar-motto { display: flex; width: 100%; justify-content: space-between; gap: 10px; }
  .jm-topbar-motto__motto { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; letter-spacing: .08em; }
  .jm-topbar-motto .jm-route-mark, .jm-topbar-motto__years { display: none; }
  .jm-topbar-motto__years-short { display: inline-flex; font-size: 12px; }
  .jm-topbar-motto__years-short .jm-badge-years { min-width: 22px; height: 18px; padding: 0 4px; font-size: 12px; }
  .header-main { height: 64px; }
  .header-main .flex-row { padding: 0 var(--space-4); gap: var(--space-3); }
  #logo { width: 140px !important; }
  #logo img { max-height: 40px; width: 140px; height: auto; }
  .jm-header-cta { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .header-main li.html.custom.html_top_right_text { display: flex; align-items: center; }
  .jm-header-cta__long { display: none; }
  .jm-header-cta__short { display: inline; }
  .header-main .mobile-nav > li { margin: 0 0 0 var(--space-2); }
  .header-main .nav-icon a, .header-main .mobile-nav .nav-icon a {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--navy);
  }
  /* Drawer (off-canvas) */
  .mobile-sidebar .nav-sidebar > li > a { min-height: var(--tap); font-weight: 600; color: var(--ink); text-transform: none; font-size: 16px; }
  .mobile-sidebar .jm-topbar-contact { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 0; }
  .mobile-sidebar .jm-topbar-contact a { color: var(--navy); }
  .mobile-sidebar .jm-topbar-contact__phone { font-size: 20px; }
  .mobile-sidebar .jm-lang--dropdown { display: none; }
  .mobile-sidebar .jm-lang--drawer { display: flex; }
}

/* 5. Language switcher ------------------------------------------------------------------------------------------ */
.jm-lang { margin: 0; padding: 0; list-style: none; }
.jm-lang li { margin: 0; list-style: none; }
.jm-lang--dropdown { position: relative; }
.jm-lang--dropdown summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px;
  color: var(--on-band); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap;
}
.jm-lang--dropdown summary::-webkit-details-marker { display: none; }
.jm-lang--dropdown[open] summary svg { transform: rotate(180deg); }
.jm-lang__menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 1000; min-width: 180px; margin: 0; padding: 6px;
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-panel); list-style: none;
}
.jm-lang__menu a {
  display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--ink) !important; text-decoration: none !important;
}
.jm-lang__menu a:hover, .jm-lang__menu a[aria-current] { background: var(--navy-soft); }
.jm-lang__code { font-family: var(--font-mono); font-weight: 500; color: var(--ink-muted); margin-right: var(--space-2); }
.jm-lang--drawer { flex-wrap: wrap; gap: var(--space-2); }
.jm-lang--drawer a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink) !important; font-size: 15px;
}
.jm-lang--drawer a[aria-current] { background: var(--navy-soft); }
.jm-lang--inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.jm-lang--inline a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-band-muted); text-decoration: none; }
.jm-lang--inline a[aria-current] { color: var(--orange); font-weight: 700; }

/* 6. Mega menus ------------------------------------------------------------------------------------------------- */
.jm-mega-servicii-section, .jm-mega-rute-section, .jm-mega-industrii-section { background: var(--surface); text-align: left; }
.jm-mega-servicii-section__grid .col, .jm-mega-industrii-section__grid .col { padding: 0 4px 8px; }
.jm-mega-servicii-section__grid .col-inner, .jm-mega-industrii-section__grid .col-inner { height: 100%; }
.jm-mega-link {
  display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; align-items: start; height: 100%;
  padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-alt);
  color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) var(--ease);
}
.jm-mega-link:hover { background: var(--navy-soft); color: var(--ink); }
.jm-mega-link__icon { grid-row: span 2; width: 28px; height: 28px; }
.jm-mega-link__title { font-size: 16px; line-height: 20px; color: var(--navy); font-weight: 700; }
.jm-mega-link__desc { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.jm-mega-link--sector { grid-template-columns: 28px 1fr; align-items: center; }
.jm-mega-link--sector .jm-mega-link__icon { grid-row: auto; }
.jm-mega-servicii-section__popular .col-inner { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.jm-routes-menu { margin: 0; padding: 0; list-style: none; }
.jm-routes-menu li { margin: 0; list-style: none; }
.jm-routes-menu--list { display: grid; gap: var(--space-2); }
.jm-routes-menu--list a { display: flex; align-items: center; gap: var(--space-2); min-height: 32px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.jm-routes-menu--list a::before { content: ""; flex: none; width: 8px; height: 8px; border: 2px solid var(--orange); border-radius: var(--radius-pill); box-sizing: border-box; }
.jm-routes-menu--list .jm-routes-menu__more a, .jm-routes-menu--grid .jm-routes-menu__more a { color: var(--navy); font-weight: 700; margin-top: var(--space-2); }
.jm-routes-menu--list .jm-routes-menu__more a::before { display: none; }
.jm-routes-menu--grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.jm-routes-menu--grid a {
  display: flex; align-items: center; min-height: var(--tap); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--surface-alt); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.jm-routes-menu--grid a:hover { background: var(--navy-soft); }
.jm-routes-menu--grid .jm-routes-menu__more a { background: none; }
@media (max-width: 849px) {
  .jm-routes-menu--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jm-mega-servicii-section__popular .col-inner { padding-left: 0; border-left: 0; }
}

/* 7. CTA band --------------------------------------------------------------------------------------------------- */
.jm-cta-band-section { background-color: var(--band) !important; color: var(--on-band); }
.jm-cta-band-section__title { margin: 0 0 var(--space-3); color: var(--on-band); font-size: 36px; line-height: 42px; font-weight: 800; }
.jm-cta-band-section__line { margin: 0; color: var(--on-band-muted); font-size: 18px; line-height: 28px; max-width: var(--measure); }
.jm-cta-band-section__actions .col-inner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: flex-end; }
.jm-cta-band-section .jm-btn { min-height: 52px; padding: var(--space-3) 28px; font-size: 17px; }
.jm-cta-band-section .jm-phone--outline { padding: var(--space-3) 20px; }
@media (max-width: 849px) {
  .jm-cta-band-section__actions .col-inner { justify-content: flex-start; }
}
@media (max-width: 549px) {
  .jm-cta-band-section__title { font-size: var(--type-h2-size); line-height: var(--type-h2-lh); }
  .jm-cta-band-section__actions .jm-btn { flex: 1 1 100%; }
}

/* 8. Footer ----------------------------------------------------------------------------------------------------- */
#footer.footer-wrapper { background: var(--band); }
.jm-footer-section { background-color: var(--band) !important; color: var(--on-band-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); }
.jm-footer-section__h { margin: 0 0 var(--space-2); font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 16px; line-height: 22px; color: var(--on-band) !important; }
.jm-footer-section__links, .jm-routes-menu--footer { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.jm-footer-section__links li, .jm-routes-menu--footer li { margin: 0; list-style: none; }
.jm-footer-section a { color: var(--on-band-muted); text-decoration: none; }
.jm-footer-section a:hover { color: var(--on-band); text-decoration: underline; text-underline-offset: 3px; }
.jm-footer-section .jm-routes-menu__more a { color: var(--on-band); font-weight: 600; }
.jm-footer-section__dept b { color: var(--on-band); }
.jm-footer-section__dept a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
/* White brand card */
.jm-brand-card {
  display: grid; gap: 14px; align-content: start; padding: var(--space-5);
  background: var(--surface); color: var(--ink); border-radius: var(--radius-brand-card); box-shadow: var(--shadow-panel);
}
.jm-brand-card__logo { width: 190px; max-width: 100%; height: auto; }
.jm-brand-card__rule { display: block; width: 48px; height: 3px; background: var(--orange); border-radius: var(--radius-sm); }
.jm-brand-card__address { margin: 0; font-style: normal; color: var(--ink-muted); }
.jm-brand-card__address b { color: var(--ink); }
.jm-footer-section .jm-brand-card__maps, .jm-brand-card__maps { color: var(--navy); font-weight: 600; }
.jm-footer-section .jm-brand-card__maps:hover { color: var(--band); }
.jm-footer-section .jm-brand-card .jm-phone--button, .jm-brand-card .jm-phone--button { color: var(--on-navy); font-size: 18px; width: 100%; text-decoration: none; }
/* Awards + social row */
.jm-footer-section__meta .col-inner { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding-top: var(--space-5); border-top: 1px solid var(--line-strong); }
.jm-awards { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; padding: 0; list-style: none; }
.jm-awards li { margin: 0; list-style: none; }
.jm-awards__plate { display: inline-flex; align-items: center; justify-content: center; height: 64px; padding: 6px 10px; background: var(--surface); border-radius: 8px; box-sizing: border-box; }
.jm-awards__plate a { display: inline-flex; }
.jm-awards__plate img { display: block; max-width: none; }
.jm-awards__plate--navy { padding: 0; overflow: hidden; background: var(--band); }
.jm-awards__plate--navy img { height: 64px; }
.jm-footer-section__social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.jm-footer-section .jm-footer-section__social-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--on-band);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.jm-footer-section__sep { margin: 0 var(--space-2); color: var(--line-strong); }
/* Legal row */
.jm-footer-section__legal .col-inner { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--type-caption-size); line-height: var(--type-caption-lh); }
.jm-footer-section__copy, .jm-footer-section__legal-links { margin: 0; }
.jm-footer-section__legal-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.jm-footer-section__legal-links a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.jm-footer-section__cols .col { padding-bottom: var(--space-6); }

/* 9. Contact actions -------------------------------------------------------------------------------------------- */
/* z-index 900: below the JM consent banner (.jm-cc 9990); the cookie re-open button is styled in §12. */
.jm-contact-actions { position: static; }
.jm-contact-actions__bar { display: none; }
.jm-contact-actions__fab {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 900;
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius-pill); box-shadow: var(--shadow-panel);
  transition: background-color var(--dur-fast) var(--ease);
}
.jm-contact-actions__fab:hover, .jm-contact-actions__fab:focus-visible { background: var(--band); color: var(--on-band); }
@media (max-width: 849px) {
  .jm-contact-actions__fab { display: none; }
  .jm-contact-actions__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-2);
    padding: var(--space-2) var(--space-2) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--surface); box-shadow: var(--shadow-panel);
  }
  .jm-contact-actions__bar .jm-btn { min-height: var(--tap); padding: 0 var(--space-3); font-size: 15px; }
  body.jm-has-contact-actions { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.jm-submit-in-view .jm-contact-actions__bar { display: none; }
}
/* Never cover the cookie banner: wait until it is answered. */
body:has(#jm-cc:not([hidden])) .jm-contact-actions { display: none; }
body.jm-no-contact-actions .jm-contact-actions { display: none; }
body.jm-no-contact-actions { padding-bottom: 0; }

/* 10. FAQ ------------------------------------------------------------------------------------------------------- */
.jm-faq__title { margin-bottom: var(--space-5); }
.jm-faq__list { border-top: 1px solid var(--line); }
.jm-faq__item { border-bottom: 1px solid var(--line); }
.jm-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--tap); padding: var(--space-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 26px; color: var(--ink);
}
.jm-faq__q::-webkit-details-marker { display: none; }
.jm-faq__q::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px);
  transition: transform var(--dur-fast) var(--ease);
}
.jm-faq__item[open] > .jm-faq__q::after { transform: rotate(-135deg) translateY(-3px); }
.jm-faq__a { padding: 0 0 var(--space-4); color: var(--ink-muted); max-width: var(--measure); }
.jm-faq__a > :last-child { margin-bottom: 0; }

/* 11. Motion ---------------------------------------------------------------------------------------------------- */
/* Flatsome reveal animations off: content is visible without JS, transitions stay ≤ 200 ms. */
[data-animate], [data-animated] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .jm-hero-lines { display: none; }
  html { scroll-behavior: auto; }
}

/* Flatsome indents list items inside columns; the jm- lists are flush. */
body .jm-footer-section ul li, body .jm-awards li, body .jm-routes-menu li, body .jm-lang li, body .jm-mega-servicii-section ul li { margin-left: 0; }
body .jm-footer-section ul, body .jm-routes-menu, body .jm-awards, body .jm-lang { margin-left: 0; }

/* Header CTA: beat Flatsome's .nav > li > a rules. */
.header .header-nav li.html .jm-btn.jm-header-cta, .header .mobile-nav li.html .jm-btn.jm-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: var(--space-3) var(--space-5);
  font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: var(--type-label-lh);
  color: var(--on-orange); background: var(--orange); border: 2px solid var(--orange); border-radius: var(--radius-sm);
  text-transform: none; letter-spacing: 0;
}
.header .header-nav li.html .jm-btn.jm-header-cta:hover, .header .mobile-nav li.html .jm-btn.jm-header-cta:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--on-orange); }
@media (max-width: 849px) {
  .header .mobile-nav li.html .jm-btn.jm-header-cta { min-height: 44px; padding: 0 14px; font-size: 15px; }
}
.header-nav .menu-item-has-block .nav-dropdown .row { margin-left: auto; margin-right: auto; }
.header-nav .menu-item-has-block .nav-dropdown { left: 0; right: 0; }
.jm-routes-menu--grid a { justify-content: space-between; gap: var(--space-2); }
.jm-routes-menu__status { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }

/* Desktop header between 850 and 1279 px: keep both bars on one line. */
.jm-topbar-contact__phone, .jm-topbar-contact__email { white-space: nowrap; }
@media (min-width: 850px) and (max-width: 1279px) {
  .jm-topbar-contact__email { display: none; }
}
@media (min-width: 850px) and (max-width: 1099px) {
  .jm-topbar-motto__years { display: none; }
  .jm-topbar-motto__years-short { display: inline-flex; }
  .jm-topbar-motto .jm-route-mark { display: none; }
  #logo { width: 150px !important; }
  #logo img { width: 150px; height: auto; }
  .header-main .header-nav-main > li { margin: 0 6px; }
  .header-main .header-nav-main > li > a.nav-top-link { font-size: 15px; }
  .header-main .html_top_right_text { margin-left: var(--space-2); }
  .header .header-nav li.html .jm-btn.jm-header-cta { padding: var(--space-2) var(--space-3); font-size: 15px; }
}
@media (min-width: 850px) and (max-width: 959px) {
  .header .header-nav li.html .jm-btn.jm-header-cta .jm-header-cta__long { display: none; }
  .header .header-nav li.html .jm-btn.jm-header-cta .jm-header-cta__short { display: inline; }
  .header-main .header-nav-main > li { margin: 0 4px; }
}

/* Mobile drawer: solid surface (Flatsome's default is translucent, the page showed through). */
.off-canvas:not(.off-canvas-center) .mfp-content,
.off-canvas .sidebar-menu { background-color: var(--surface); }

/* 12. Hover glow, cookie button, footer lines ------------------------------------------------------------------- */
/* Glow: assets/js/jm-fx.js tags cards, buttons and menu items with [data-jm-glow] (fine pointers only) and writes
   --jm-mx / --jm-my on pointermove. The tint lives in ::after (::before for data-jm-glow="before"), under the content
   (z-index -1 inside an isolated host), clipped to the element by inset 0 + inherited radius: no layout shift, text
   stays on top. Colours: navy tint on light, orange tint on navy/dark, a light lift on orange buttons. */
@media (hover: hover) and (pointer: fine) {
  :where([data-jm-glow]) { position: relative; isolation: isolate; }
  [data-jm-glow] { --jm-glow-c: color-mix(in srgb, var(--navy) 18%, transparent); --jm-glow-r: 160px; }
  :where(.dark, .jm-footer-section, .jm-cta-band-section, #top-bar) [data-jm-glow],
  [data-jm-glow]:is(.jm-btn--secondary, .jm-btn--outline-dark, .jm-phone--button, .jm-contact-actions__fab, .button.secondary) {
    --jm-glow-c: color-mix(in srgb, var(--orange) 30%, transparent);
  }
  [data-jm-glow]:is(.jm-btn--primary, .jm-header-cta, .button.primary:not(.is-outline)) { --jm-glow-c: color-mix(in srgb, var(--surface) 38%, transparent); }
  [data-jm-glow]:is(.jm-btn, .button, .nav-dropdown li > a, .jm-lang__menu a) { --jm-glow-r: 90px; }
  .header-nav-main > li > a[data-jm-glow]:not(.jm-btn) { --jm-glow-r: 40px; }
  [data-jm-glow]:not([data-jm-glow="before"]):not(.loading)::after, [data-jm-glow="before"]::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle var(--jm-glow-r) at var(--jm-mx, 50%) var(--jm-my, 50%), var(--jm-glow-c), transparent 72%);
    opacity: 0; transition: opacity var(--dur-base) var(--ease);
  }
  [data-jm-glow]:not([data-jm-glow="before"]):not(.loading):hover::after, [data-jm-glow="before"]:hover::before { opacity: 1; }
  .jm-lang__menu a[data-jm-glow] { --jm-glow-c: color-mix(in srgb, var(--navy) 18%, transparent); }
  /* The FAQ chevron sits in summary::after, the item glows on <details>; mega/route list dots use ::before. */
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  [data-jm-glow]:not([data-jm-glow="before"])::after, [data-jm-glow="before"]::before { transition: none; }
}

/* Cookie settings button (JM Suite consent, setting consent_reopen): a 40 px round icon bottom-left, tooltip on
   hover/focus. jm-fx.js swaps the text for the icon + a visually hidden label. Above the mobile contact bar (§9),
   hidden while a form is on screen below 1400 px (body.jm-form-in-view) so it never covers a field or a submit. */
#jm-cc-re.jm-cc-re {
  left: var(--space-4); bottom: var(--space-4); width: 40px; height: 40px; min-height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-pill) !important; background: var(--surface); color: var(--navy);
  box-shadow: var(--shadow-panel); font-size: 0; line-height: 0; z-index: 890;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
#jm-cc-re.jm-cc-re:hover, #jm-cc-re.jm-cc-re:focus-visible { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
#jm-cc-re:not([data-jm-fx]) { width: auto; padding: 0 14px; font-size: 14px; line-height: 1.25; }
.jm-cc-re__icon { display: block; width: 22px; height: 22px; }
.jm-cc-re__tip {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  padding: 6px 10px; border-radius: var(--radius-md); background: var(--band); color: var(--on-band);
  font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
#jm-cc-re:hover .jm-cc-re__tip, #jm-cc-re:focus-visible .jm-cc-re__tip { opacity: 1; visibility: visible; }
@media (max-width: 849px) {
  body.jm-has-contact-actions #jm-cc-re.jm-cc-re { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1399px) {
  body.jm-form-in-view #jm-cc-re.jm-cc-re { display: none; }
}

/* Footer: hero line field behind the navy band (jm_footer_lines() in inc/footer.php, drawn lazily by jm-hero-lines.js). */
.jm-footer-section { position: relative; overflow: hidden; }
.jm-footer-section > .jm-footer-lines { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.jm-footer-section > .section-content { z-index: 1; }
/* Department column: Secretariat phone in Plex Mono; legal row: copyright + credit stacked on the left. */
.jm-footer-section .jm-footer-section__dept .jm-phone { font-family: var(--font-mono); font-weight: 500; text-decoration: none; color: var(--on-band); }
.jm-footer-section .jm-footer-section__dept .jm-phone:hover { text-decoration: underline; }
.jm-footer-section__credits { display: grid; gap: var(--space-1); }
.jm-footer-section__credits p { margin: 0; }
.jm-footer-credit__heart { display: inline-block; width: 14px; height: 14px; margin: 0 3px; vertical-align: -2px; color: var(--orange); }
.jm-footer-section .jm-footer-credit a { color: var(--on-band); text-decoration: underline; text-underline-offset: 3px; }
