/* ==========================================================================
   VersaSuite site styles
   Brand: teal #2d95b0, orange accent #ff9900. Fonts: Varela Round + Open Sans.
   Content classes are documented in content/README.md.
   ========================================================================== */

:root {
  --brand: #2d95b0;
  --brand-700: #1f7189; /* AA contrast for text/links on white */
  --brand-800: #175567;
  --brand-300: #45afc7;
  --brand-50: #eaf5f8;
  --accent: #ff9900;
  --accent-600: #e68400;
  --ink: #17202a;
  --text: #36414c;
  --muted: #64707d;
  --line: #e1e7eb;
  --bg: #ffffff;
  --bg-muted: #f5f7f8;
  --dark: #1b2128;
  --darker: #11151a;

  --font-head: 'Varela Round', 'Open Sans', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --header-h: 84px;
  --container: 1200px;
  --gutter: 20px;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(16 24 32 / 0.06), 0 8px 24px rgb(16 24 32 / 0.08);
  --section-y: clamp(48px, 7vw, 96px);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-overlay-header { padding-top: 0; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
* + h2, * + h3 { margin-top: 1.4em; }

p, ul, ol, table, figure, blockquote { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.3em; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

a { color: var(--brand-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-800); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.text-center { text-align: center; }
.text-brand { color: var(--brand-700); }
.eyebrow { margin: 0 0 0.4em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: var(--brand-300); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.6em;
  border: 2px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--outline { background: transparent; border-color: var(--brand-700); color: var(--brand-700); }
.btn--outline:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn--light, .section--dark .btn--outline { border-color: #fff; color: #fff; }
.btn--light:hover, .section--dark .btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--small { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.92rem; }
.btn + .btn { margin-left: 0.75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row .btn + .btn { margin-left: 0; }
.text-center > .btn-row, .text-center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 24px;
}
.logo { display: block; flex: none; position: relative; }
.logo__img { height: 44px; width: auto; }
.logo__img--light { position: absolute; inset: 0; opacity: 0; }

/* Transparent header over a hero until the page scrolls */
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) { background: transparent; box-shadow: none; }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .logo__img--dark { opacity: 0; }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .logo__img--light { opacity: 1; }

.site-nav { flex: 1; display: flex; align-items: center; gap: 24px; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.menu__item { position: relative; display: flex; align-items: center; margin: 0; }
.menu__link {
  display: block; padding: 10px 10px;
  color: var(--ink); font-weight: 600; font-size: 0.97rem; text-decoration: none; white-space: nowrap;
  border-radius: 6px;
}
.menu__link:hover, .menu__item.is-active > .menu__link { color: var(--brand-700); }
.menu__link--label { cursor: default; }
.submenu-toggle {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px;
  border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer;
}
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.menu__item.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; left: 0; z-index: 10;
  min-width: 260px; margin: 0; padding: 8px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.submenu li { margin: 0; }
.submenu a {
  display: block; padding: 9px 12px; border-radius: 6px;
  color: var(--text); font-size: 0.95rem; text-decoration: none;
}
.submenu a:hover, .submenu a[aria-current='page'] { background: var(--brand-50); color: var(--brand-800); }
.menu__item--parent:hover > .submenu,
.menu__item--parent:focus-within > .submenu,
.menu__item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }

.site-nav__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--brand); }

.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) :is(.menu__link, .header-phone, .submenu-toggle, .header-phone .icon) { color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2px; margin: auto; background: currentColor; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.site-header.is-open .nav-toggle__bars { background: transparent; }
.site-header.is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .nav-toggle { color: #fff; }

@media (max-width: 1320px) {
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Mobile / tablet navigation drawer */
@media (max-width: 1140px) {
  :root { --header-h: 72px; }
  .logo__img { height: 38px; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 32px; overflow-y: auto;
    background: #fff; border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .menu { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu__link { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
  .submenu-toggle { width: 48px; height: 48px; margin: 0; }
  .submenu {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 12px;
    border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none;
  }
  .menu__item--parent:hover > .submenu, .menu__item--parent:focus-within > .submenu { display: none; }
  .menu__item.is-open > .submenu { display: block; }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 24px; }
  .header-phone { justify-content: center; padding: 10px; }
  .header-phone span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .has-overlay-header .site-header:not(.is-scrolled):not(.is-open) :is(.menu__link, .header-phone, .submenu-toggle) { color: var(--ink); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Page title (pages without a hero image) ---------- */
.page-title {
  padding: clamp(40px, 6vw, 72px) 0;
  background: linear-gradient(120deg, var(--brand-800), var(--brand) 70%, var(--brand-300));
  color: #fff;
}
.page-title h1 { margin: 0; color: #fff; }
.page-title__sub { margin: 0.5em 0 0; font-size: 1.15rem; opacity: 0.9; }

/* ---------- Content sections ---------- */
.section {
  padding-block: var(--section-y);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}
.section > :last-child, .col > :last-child, .card > :last-child { margin-bottom: 0; }
.section--muted { background: var(--bg-muted); }
.section--brand { background: var(--brand); color: #fff; }
.section[style*='--bg-color'] { background-color: var(--bg-color); }
.section--dark { background-color: var(--dark); color: rgb(255 255 255 / 0.88); }
.section--image {
  background-image: linear-gradient(rgb(12 22 32 / 0.62), rgb(12 22 32 / 0.62)), var(--bg-image);
  background-size: cover; background-position: center;
}
:is(.section--dark, .section--brand) :is(h1, h2, h3, h4, h5, h6, strong) { color: #fff; }
:is(.section--dark, .section--brand) a:not(.btn) { color: #fff; }
.section--dark .text-brand { color: var(--brand-300); }
.section--brand .text-brand { color: #fff; }

/* Hero = first section with a background image */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(380px, 52vh, 560px);
  padding-top: calc(var(--header-h) + var(--section-y));
  text-align: center;
}
.hero h1 { color: #fff; margin-inline: auto; max-width: 22ch; }
.hero p { max-width: 62ch; margin-inline: auto; font-size: 1.15rem; }
.hero > :not(.cols) { width: 100%; }

/* Slider section: edge to edge */
.section:has(> .slider) { padding: 0; }

/* Columns */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cols + .cols, .cols + *, * + .cols { margin-top: clamp(24px, 4vw, 48px); }
.col { grid-column: span 12; min-width: 0; }
@media (min-width: 800px) {
  .col--1-2 { grid-column: span 6; }
  .col--1-3 { grid-column: span 4; }
  .col--2-3 { grid-column: span 8; }
  .col--1-4 { grid-column: span 3; }
  .col--3-4 { grid-column: span 9; }
  .col--1-6 { grid-column: span 2; }
  .col--5-6 { grid-column: span 10; }
  .col--5-12 { grid-column: span 5; }
  .col--7-12 { grid-column: span 7; }
}
@media (min-width: 800px) and (max-width: 1023px) {
  .col--1-4 { grid-column: span 6; }
  .col--1-6:empty { display: none; }
  .col--1-6:empty ~ .col--2-3 { grid-column: span 12; }
}
@media (max-width: 799px) { .col:empty { display: none; } }

/* Images */
figure.image { margin: 0 0 1.2em; }
figure.image img { border-radius: 8px; }
figure.image.text-center img, .text-center figure.image img { margin-inline: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 1.2em; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.image-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.image-compare img { border-radius: 8px; }

/* Cards (feature boxes) */
.card {
  padding: 28px; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card img { margin-bottom: 16px; border-radius: 6px; }
.card + .btn, .card + p > .btn { margin-top: 20px; }
.card :is(h2, h3, h4, h5) { margin-top: 0; }
.section--dark .card :is(h2, h3, h4, h5, h6, strong) { color: var(--ink); }
.section--dark .card a:not(.btn) { color: var(--brand-700); }
.card__link { display: inline-block; margin-top: 8px; font-weight: 700; }

/* Lists */
.check-list ul, .icon-list { list-style: none; padding-left: 0; }
.check-list li, .icon-list li { position: relative; padding-left: 1.9em; }
.check-list li::before, .icon-list li::before {
  content: ''; position: absolute; left: 0; top: 0.42em;
  width: 1.15em; height: 1.15em; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.section--dark .check-list li::before { background-color: var(--brand-300); }

/* Row links (module lists, brochure downloads) */
.list-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: background-color 0.15s;
}
.list-row span:first-child { flex: none; min-width: 4.5rem; color: var(--brand-700); font-weight: 700; }
a.list-row::after { content: '→'; margin-left: auto; color: var(--brand); transition: transform 0.15s; }
a.list-row:hover { background: var(--brand-50); color: var(--ink); }
a.list-row:hover::after { transform: translateX(3px); }
.section--dark .list-row { color: rgb(255 255 255 / 0.88); border-color: rgb(255 255 255 / 0.15); }
.section--dark .list-row span:first-child { color: var(--brand-300); }
.section--dark a.list-row:hover { background: rgb(255 255 255 / 0.08); color: #fff; }

.highlight :is(h1, h2, h3, h4, h5, h6) { color: var(--brand-700); }

/* Tables (RWT, reports, systems) */
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th, tr:first-child th { background: var(--bg-muted); color: var(--ink); }
.section > table, .col > table { display: block; overflow-x: auto; }

/* Accordion (Key Features) */
.accordion { display: grid; gap: 10px; margin-bottom: 1.2em; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  color: var(--ink); font-family: var(--font-head); font-size: 1.1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s;
}
.accordion details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.accordion details[open] summary { border-bottom: 1px solid var(--line); }
.accordion details > :not(summary) { margin: 0; padding: 16px 20px 0 20px; }
.accordion details > :last-child { padding-bottom: 16px; }

/* Testimonials */
.testimonials {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; scrollbar-width: thin;
}
.testimonial {
  flex: 0 0 min(100%, 620px); scroll-snap-align: start; margin: 0;
  padding: 32px; border-radius: var(--radius);
  background: #fff; color: var(--text); box-shadow: var(--shadow);
}
.testimonial blockquote { margin: 0 0 16px; font-size: 1.08rem; font-style: italic; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption strong { display: block; color: var(--ink); }
.testimonial figcaption span { color: var(--muted); font-size: 0.95rem; }
.testimonials-nav { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.testimonials-nav button {
  width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; font-size: 1.2rem;
}

/* Video link + lightbox */
.video-link {
  display: inline-flex; align-items: center; gap: 14px;
  color: inherit; font-weight: 700; text-decoration: none;
}
.video-link::before {
  content: ''; flex: none; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid currentColor;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23ff9900'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform 0.2s;
}
.video-link:hover::before { transform: scale(1.08); }
.video-link img { display: none; }
.video-dialog { width: min(960px, 92vw); padding: 0; border: 0; border-radius: 12px; background: #000; }
.video-dialog::backdrop { background: rgb(0 0 0 / 0.8); }
.video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-dialog__close {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.6); color: #fff; cursor: pointer;
}
.video-dialog__close .icon { width: 22px; height: 22px; }

/* ---------- Hero slider ---------- */
/* Slides stack in one grid cell, so the slider is as tall as its tallest slide
   (long captions never overflow). Controls get reserved space below the buttons. */
.slider { position: relative; overflow: hidden; background: var(--darker); color: #fff; }
.slider__track { display: grid; min-height: clamp(520px, 88vh, 780px); }
.slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 18 26 / 0.78), rgb(10 18 26 / 0.35)); }
.slide__content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 24px); padding-bottom: 96px; text-align: center; }
.slide__heading { margin: 0 auto 0.4em; max-width: 18ch; color: #fff; font-size: clamp(2.2rem, 5.2vw, 4rem); }
.slide__caption { max-width: 60ch; margin: 0 auto 1.6em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / 0.9); }
.slide .btn-row { justify-content: center; }
.slider__controls {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; pointer-events: none;
}
.slider__controls > * { pointer-events: auto; }
.slider__dot, .slider__pause {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.slider__dot::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; transition: background-color 0.2s; }
.slider__dot.is-active::before { background: #fff; }
.slider__pause::before { content: ''; width: 10px; height: 12px; border-inline: 3px solid #fff; }
.slider__pause[aria-pressed='true']::before { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-block: 7px solid transparent; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- Forms ---------- */
.form { max-width: 760px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field label { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.field__req { color: #c2410c; }
.field :is(input, select, textarea) {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #c3ccd4; border-radius: 6px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: 3px solid rgb(45 149 176 / 0.35); border-color: var(--brand); }
.field :is(input, select, textarea)[aria-invalid='true'] { border-color: #c2410c; }
.form__notice {
  margin: 20px 0; padding: 12px 16px; border-left: 4px solid var(--brand);
  background: var(--brand-50); color: var(--text); font-size: 0.92rem; border-radius: 0 6px 6px 0;
}
.form__notice strong { color: var(--ink); }
.form__actions { margin: 0; }
.form__status { margin: 16px 0 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-success { padding: 14px 16px; border-radius: 6px; background: #ecfdf3; color: #14532d; }
.form__status.is-error { padding: 14px 16px; border-radius: 6px; background: #fef2f2; color: #991b1b; }
.section--dark .form { padding: 28px; border-radius: var(--radius); background: #fff; color: var(--text); }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgb(255 255 255 / 0.72); font-size: 0.97rem; }
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px;
  padding-block: clamp(48px, 6vw, 80px);
}
.site-footer__brand img { width: 182px; margin-bottom: 18px; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__heading {
  margin: 0 0 16px; color: #fff; font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contact .icon { margin-top: 0.3em; color: var(--brand-300); }
.site-footer__bar { background: var(--darker); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.site-footer__bar p { margin: 0; font-size: 0.88rem; }
.site-footer__bar p a { margin-left: 12px; }
.social { display: flex; gap: 6px; }
.social li + li { margin-top: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.social a:hover { background: rgb(255 255 255 / 0.1); }
.social .icon { width: 20px; height: 20px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .slider__controls, .form, .nav-toggle { display: none !important; }
  body { padding-top: 0; }
  .section--dark, .section--image, .section--brand { background: none !important; color: #000; }
}

/* ---------- Section refinements ---------- */
.section--gradient { background: linear-gradient(100deg, var(--brand-700), var(--brand) 55%, var(--brand-300)); }
.section[style*='--bg-gradient'] { background: var(--bg-gradient); color: #fff; }

/* Consecutive bands with the same (plain or muted) background read as one block:
   don't stack two paddings between them. */
.section:not(.section--dark, .section--brand, .section--muted, .section--image, [style]) + .section:not(.section--dark, .section--brand, .section--muted, .section--image, [style]),
.section--muted + .section--muted { padding-top: 0; }
.text-center :is(p, ul) { margin-inline: auto; }
.section.text-center > p { max-width: 70ch; }
.accordion details > :is(ul, ol) { padding-left: calc(20px + 1.3em); }
.accordion details > .check-list, .accordion details > .icon-list { padding-left: 20px; }
.video-dialog video { display: block; width: 100%; max-height: 85vh; background: #000; }
.accordion, .accordion summary, .content :is(p, li, td) { overflow-wrap: break-word; }
.accordion details { min-width: 0; }
.accordion details table, .card table { display: block; overflow-x: auto; }
/* Equal-height cards per row, buttons aligned underneath */
.cols:has(> .col > .card) { align-items: stretch; }
.col:has(> .card) { display: flex; flex-direction: column; align-items: center; }
.col:has(> .card) > .card { flex: 1; width: 100%; }
