/* Structure shared by the homepage samples. Look and feel lives in sample1-4.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { text-wrap: balance; }
.avatar { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 19px; font-weight: 700; color: #fff; background: #2B7FAB; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #5fb3dd; outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s, padding .3s; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex: none; }
.logo img { width: auto; height: 50px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { display: flex; align-items: center; gap: 28px; }
.main-nav a { white-space: nowrap; }
.has-sub { position: relative; }
.has-sub > a i { font-size: 11px; margin-left: 2px; }
.sub {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 280px;
  margin-top: 12px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; color: inherit; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item { flex: none; display: grid; place-items: center; width: 190px; height: 72px; padding: 0 26px; }
.logo-item img { max-height: 48px; width: auto; object-fit: contain; }

/* Consultation form */
.s-form-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
.s-form input { width: 100%; min-width: 0; }
.s-form-submit { white-space: nowrap; }
.s-form .mb-3:has(.g-recaptcha:not(:empty)) { margin-top: 14px; }
.s-form-error { margin-top: 8px; color: #cd1e34; font-size: 14px; }
.s-form .mb-3 .text-danger { display: block; margin-top: 8px; color: #cd1e34; font-size: 14px; }

/* Slider */
.slider-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { flex: none; scroll-snap-align: start; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr .8fr 1.1fr; gap: 48px; }
.footer-brand p { margin: 20px 0; max-width: 340px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform .25s, background-color .25s, color .25s; }
.footer-social a:hover { transform: translateY(-3px); }
.site-footer h3 { margin-bottom: 18px; }
.site-footer li { margin-bottom: 11px; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 1040px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 18px 32px 28px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { display: block; padding: 12px 0; }
  .has-sub > a i { display: none; }
  .sub { position: static; min-width: 0; margin: 0 0 8px; padding: 0 0 0 14px; opacity: 1; visibility: visible; transform: none; background: none !important; box-shadow: none !important; border: 0 !important; }
  .sub::before { display: none; }
  .sub a { padding: 7px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .s-form-fields { grid-template-columns: 1fr 1fr; }
  .s-form-submit { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .logo img { height: 42px; }
  .main-nav { padding-inline: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .s-form-fields { grid-template-columns: 1fr; }
  .g-recaptcha { transform: scale(.92); transform-origin: left top; }
}

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