/* EVMAX: shared styles. Page-specific styles live in pages/*.css. */

:root {
  --blue: #0089cf;
  --blue-dark: #0073ae;
  --blue-light: #1889ca;
  --cyan: #00b7ef;
  --navy: #071b4a;
  --ink: #0d1b2a;
  --text: #53627b;
  --muted: #778692;
  --placeholder: #9aa6b8;
  --line: #dde8f1;
  --line-strong: #c9dcea;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-tint: #eaf5fc;
  --bg-tint-2: #f1f8fd;
  --success: #1c8f5a;
  --error: #c62f3b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(7, 27, 74, .06);
  --shadow: 0 10px 30px rgba(7, 27, 74, .08);
  --shadow-lg: 0 24px 60px rgba(7, 27, 74, .16);

  --container: 1290px;
  --gutter: 24px;
  --header-h: 88px;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always hides, also where a rule below sets display (main.js hides carousel arrows and dots, and the
   Copy link button, this way). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 137, 207, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow--lg { font-size: 22px; letter-spacing: 0; }
.h1 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.15; }
.h2 { font-size: clamp(28px, 3vw, 34px); }
.h3 { font-size: 20px; }
.lead { font-size: 16px; color: #647382; max-width: 620px; }
.text-blue { color: var(--blue); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--blue); display: inline-flex; align-items: center; gap: 24px; }
.section-title h2::before, .section-title h2::after { content: ""; width: clamp(24px, 6vw, 64px); height: 2px; background: var(--blue); opacity: .45; }
.section-title p { margin-top: 10px; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); }
.section-head p { margin-top: 8px; color: #647382; }
.section-head .eyebrow { margin-top: 0; color: var(--blue); }

/* ---------- Layout ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint-2); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .section { padding: 56px 0; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; text-align: center; }
.btn .icon { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .icon--arrow, .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 8px 20px rgba(0, 137, 207, .28); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--blue); }
.btn--outline:hover { background: var(--bg-tint); color: var(--navy); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1d2f45; color: #fff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--ghost { background: transparent; color: var(--blue); padding-left: 0; padding-right: 0; min-height: 0; border: 0; }
.btn--ghost:hover { color: var(--blue-dark); }
.btn--pill { border-radius: 999px; }
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-light); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 16px 0 auto; z-index: 50; padding: 0 16px; pointer-events: none; }
.site-header__bar { pointer-events: auto; display: flex; align-items: center; gap: 24px; max-width: var(--container); margin: 0 auto; height: 72px; padding: 0 32px 0 36px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .7); border-radius: 18px; box-shadow: 0 8px 28px rgba(7, 27, 74, .12); transition: box-shadow .3s, background .3s; }
.is-scrolled .site-header__bar { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 32px rgba(7, 27, 74, .16); }
.site-header__logo .logo { width: 164px; height: auto; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { display: flex; gap: clamp(20px, 4.5vw, 72px); }
.site-nav a:not(.btn) { position: relative; display: block; padding: 8px 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform .2s; }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__cta { display: none; }
.site-header__inbox { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 20px; border-radius: 999px; background: var(--blue); color: #fff; transition: background .2s; }
.site-header__inbox:hover { background: var(--blue-dark); color: #fff; }
.site-header__inbox img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.site-header__inbox .icon { width: 14px; height: 14px; }
.site-header__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-tint); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.site-header__toggle .icon--close { display: none; }

@media (max-width: 960px) {
  .site-header { inset: 10px 0 auto; padding: 0 12px; }
  .site-header__bar { height: 64px; padding: 0 12px 0 20px; }
  .site-header__logo .logo { width: 132px; }
  .site-header__toggle { display: inline-flex; }
  .site-header__inbox { display: none; }
  .site-nav { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: block; padding: 12px 20px 20px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header__toggle .icon--open { display: none; }
  .nav-open .site-header__toggle .icon--close { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 17px; }
  .site-nav a[aria-current="page"] { color: var(--blue); font-size: 17px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav__cta { display: flex; width: 100%; margin-top: 12px; }
}

/* ---------- Page heroes ---------- */
/* Photo hero (Products, AC, DC): the header's picture (Settings > Page Headers) filling it, the words on the left on a
   soft white haze. Phones and tablets: the words, then the picture under them. */
.hero { position: relative; display: flex; align-items: center; min-height: 780px; padding: calc(var(--header-h) + 60px) 0 80px; background: #eef3f8; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__img { display: block; width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero > .container { position: relative; z-index: 2; }
.hero__content { position: relative; max-width: 560px; }
.hero__content h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.15; }
.hero__content .lead { margin-top: 28px; font-size: 18px; color: var(--text); line-height: 1.7; max-width: 440px; }
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 120px 0 0; flex-direction: column; align-items: stretch; background: linear-gradient(180deg, #e8f1f9, #f6f9fc); }
  .hero::before { content: none; }
  .hero__media { position: static; order: 1; height: 58vw; max-height: 420px; margin-top: 32px; }
  .hero__img { object-position: var(--hero-mobile-pos, 50% 50%); }
}

/* The soft white haze behind a photo header's words, on wide screens (the home page's slides with words, Products, AC
   and DC): strong behind them, gone past them. It follows the words, which start where the page's container does. */
.home-hero__slide--words::before, .hero::before { --words-left: max(var(--gutter), (100% - var(--container)) / 2); content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 249, 252, .92) 0, rgba(246, 249, 252, .8) calc(var(--words-left) + 420px), rgba(246, 249, 252, 0) calc(var(--words-left) + 680px)); }

/* Plain hero (support, contact): light blue band with an illustration on the right, 504 px tall on wide screens
   (as AC and DC), the circle and the words centred in it. --plain: the same band with just a title (Privacy Policy,
   news listings, 404) */
.page-hero { position: relative; padding: calc(var(--header-h) + 64px) 0 72px; background: var(--bg-tint); overflow: hidden; }
.page-hero .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-hero:not(.page-hero--plain) .container { min-height: calc(504px - var(--header-h) - 136px); } /* 136: the band's padding */
.page-hero__text { max-width: 700px; } /* room for a one-line intro; the heading keeps 640 */
.page-hero__text h1 { max-width: 640px; }
.page-hero h1 { font-size: clamp(34px, 4.2vw, 55px); color: var(--ink); line-height: 1.15; }
.page-hero .lead { margin-top: 16px; max-width: none; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero__art { flex: none; width: clamp(200px, 22vw, 280px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.page-hero__art svg, .page-hero__art img { width: 80%; height: auto; }
.page-hero--plain .container { display: block; }
@media (max-width: 760px) {
  .page-hero { padding: 112px 0 48px; }
  .page-hero .container { flex-direction: column; align-items: flex-start; }
  .page-hero:not(.page-hero--plain) .container { min-height: 0; }
  .page-hero__art { display: none; }
}

.breadcrumb { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-tint); color: var(--blue); flex: none; }
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge svg:not(.icon) { width: 100%; height: 100%; }

/* ---------- Forms ---------- */
.form-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-card__title { font-size: 15px; color: var(--ink); margin-bottom: 20px; }
.form-grid { display: grid; gap: 20px 24px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: flex-end; gap: 24px; }
.form-actions .field { flex: 1; }
.form-actions .btn { min-width: 180px; }
@media (max-width: 860px) { .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .form-grid--2, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-card { padding: 22px 18px; }
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); }
.field label span[aria-hidden="true"] { color: var(--navy); } /* the required-field star */
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 52px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 137, 207, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid, .select select.is-empty { color: var(--placeholder); }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--blue); pointer-events: none; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.field--check label { font-size: 13px; color: var(--text); cursor: pointer; }
.field--check.has-error label { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.form-status.is-success { background: #e7f6ee; color: var(--success); }
.form-status.is-error { background: #fdecee; color: var(--error); }
/* Forms on blue backgrounds */
.on-blue .field input, .on-blue .field textarea { border-color: transparent; }
.on-blue .form-status.is-success { background: rgba(255, 255, 255, .95); }

/* ---------- Modal ---------- */
.modal { width: min(680px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 24px; background: transparent; box-shadow: var(--shadow-lg); overflow: visible; }
.modal::backdrop { background: rgba(7, 27, 74, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease-out; }
/* Browsers without <dialog> (Safari before 15.4): hidden until opened, then main.js's class puts it over the page. */
.modal:not([open]) { display: none; }
.modal--fallback { position: fixed; top: 12px; left: 0; right: 0; z-index: 80; margin: 0 auto; box-shadow: 0 0 0 100vmax rgba(7, 27, 74, .45); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__panel { position: relative; max-height: calc(100vh - 24px); overflow: auto; padding: 48px clamp(20px, 7vw, 76px) 36px; background: #fff; border-radius: 24px; }
.modal__panel h2 { font-size: clamp(26px, 3.4vw, 34px); }
.modal__lead { margin: 10px 0 28px; font-size: 15px; }
.modal__lead strong { color: var(--navy); }
.modal .field:not(.field--check) label { font-size: 14px; font-weight: 700; color: var(--navy); }
.modal .form-grid { margin-bottom: 28px; }
.modal__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-tint); color: var(--navy); cursor: pointer; }
.modal__close:hover { background: #d7ecf8; }
.modal__note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
/* One size whatever the popup shows: a reason (data-state="message") or the download started ("done") sits in the
   form's place, which stays in the layout unseen, and the form's errors have room kept for them (wordpress.css). */
.modal__body { display: grid; }
.modal__body > * { grid-area: 1 / 1; min-width: 0; }
.modal__body > [data-datasheet-message] { align-self: center; }
.modal[data-state="message"] [data-datasheet-form], .modal[data-state="done"] [data-datasheet-form] { visibility: hidden; }
.modal[data-state="done"] .wpcf7-response-output { display: none; } /* the form's "sent" box would make it taller */
.modal__done { align-self: center; text-align: center; }
.modal__done-title { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 20px; font-weight: 700; color: var(--navy); }
.modal__done-title .icon { width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: #e7f6ee; color: var(--success); }
.modal__done-retry { margin-top: 28px; font-size: 14px; color: var(--muted); }
.modal__done .btn { margin-top: 12px; }
body.modal-open { overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #b9dcf0; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; list-style: none; }
.faq details[open] summary { padding-bottom: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-tint); color: var(--blue); flex: none; }
.faq summary .icon { width: 16px; height: 16px; }
.faq summary .icon--minus, .faq details[open] summary .icon--plus { display: none; }
.faq details[open] summary .icon--minus { display: block; }
.faq__answer { padding: 0 20px 20px; font-size: 14px; max-width: 760px; }

/* ---------- Contact cards (distributors) ---------- */
.contact-card { padding: 24px; }
.contact-card__head { display: flex; align-items: center; gap: 16px; }
.contact-card__head .icon-badge { width: 52px; height: 52px; }
.contact-card__country { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.contact-card h3 { font-size: 20px; color: var(--ink); }
.contact-card dl { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.contact-card dt { font-size: 12px; color: var(--muted); }
.contact-card dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-card dd a { color: inherit; }
.contact-card__actions { display: flex; gap: 10px; margin-top: 18px; }
.contact-card__actions .btn--soft { background: var(--bg-tint); color: var(--blue); }
.contact-card__actions .btn--soft:hover { background: #d7ecf8; }

/* ---------- Blue call-to-action band with inline form ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 36px 40px; border-radius: var(--radius-lg); background: var(--blue); color: #d9f1fc; }
.cta-band .eyebrow { color: #bde9ff; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); }
.cta-band p { margin-top: 8px; font-size: 14px; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 72px 0 0; background: #fff; overflow: hidden; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; grid-template-areas: "logo news map" ". info map"; gap: 28px 40px; }
.site-footer__logo { grid-area: logo; }
.site-footer__logo .logo { width: 200px; }
.site-footer__map { grid-area: map; align-self: end; width: 100%; max-width: 280px; opacity: .9; }
.footer-follow { grid-area: news; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.footer-follow__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-tint); color: var(--blue); }
.footer-follow__text strong { display: block; font-size: 15px; color: var(--navy); }
.footer-follow__text span { font-size: 13px; }
.footer-follow__links { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--navy); }
.footer-follow__links img { width: 22px; height: 22px; }
.site-footer__info { grid-area: info; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 15px; }
.site-footer__info h2 { font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.site-footer__info p + p { margin-top: 14px; }
.site-footer__info p { overflow-wrap: anywhere; } /* a long address or email wraps inside its column */
.site-footer__info p strong { color: var(--navy); font-weight: 700; } /* an office's name */
/* The second column of offices has its heading hidden: it starts level with the first office under Contact Us, below
   the heading's line (15px at line-height 1.2) and its 12px gap. Stacked on a phone, it simply follows (below). */
.site-footer__info h2.visually-hidden + p { margin-top: calc(15px * 1.2 + 12px); }
.site-footer__info a { color: var(--text); }
.site-footer__info a:hover { color: var(--blue); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; }
.site-footer__bottom a, .site-footer__bottom .link-button { color: var(--text); }
.site-footer__bottom a:hover, .site-footer__bottom .link-button:hover { color: var(--blue); }
.site-footer__bottom span { margin: 0 18px; }
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1fr; grid-template-areas: "logo" "news" "info"; }
  .site-footer__map { display: none; }
}
@media (max-width: 640px) {
  .site-footer__info { grid-template-columns: 1fr; } .site-footer { padding-top: 48px; }
  .site-footer__info h2.visually-hidden + p { margin-top: 0; }
  .footer-follow { grid-template-columns: auto minmax(0, 1fr); }
  .footer-follow__links { grid-column: 1 / -1; }
}

/* ---------- Cookie banner (footer.php, shown by main.js until the visitor chooses) ---------- */
.cookie-banner { position: fixed; left: 50%; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 20px; width: min(920px, calc(100% - 32px)); padding: 16px 16px 16px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text); transform: translateX(-50%); }
.cookie-banner[hidden] { display: none; }
.nav-open .site-header { z-index: 70; } /* the open phone menu goes over the banner, not under it */
.cookie-banner:focus { outline: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--blue); font-weight: 700; white-space: nowrap; }
.cookie-banner__actions { display: flex; flex: none; gap: 12px; }
@media (max-width: 760px) { .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 16px; right: 16px; width: auto; transform: none; padding: 16px; } .cookie-banner__actions .btn { flex: 1; } }
@media (max-width: 480px) { .cookie-banner__actions { flex-direction: column; } }
/* ---------- WhatsApp button (footer.php, its number in Settings > EVMAX Company) ---------- */
/* Bottom right of every page, under the header and the cookie banner. While the banner shows, main.js sets
   --cookie-banner-space (the banner's height and its 16px from the bottom) so the button sits just above it. The green
   is a shade darker than WhatsApp's #25d366, so the white logo stands out from it (3:1). */
.whatsapp-button { --corner: 24px; position: fixed; right: var(--corner); bottom: calc(var(--corner) + var(--cookie-banner-space, 0px)); z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1da851; color: #fff; box-shadow: 0 8px 24px rgba(7, 27, 74, .22); transition: transform .2s, background .2s; }
.whatsapp-button:hover { background: #189a49; color: #fff; transform: scale(1.06); }
.whatsapp-button .icon { width: 30px; height: 30px; }
/* Room under the footer's last line (footer.php adds has-whatsapp), so at the end of a page the button covers none of
   it: the button's height, its distance from the bottom and 16px. */
.has-whatsapp .site-footer__bottom { padding-bottom: 96px; }
@media (max-width: 760px) {
  .whatsapp-button { --corner: 16px; width: 52px; height: 52px; } .whatsapp-button .icon { width: 28px; height: 28px; }
  .has-whatsapp .site-footer__bottom { padding-bottom: 84px; }
}
.link-button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.link-button:hover { color: var(--blue); }

/* ---------- Small shared bits ---------- */
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 14px; color: var(--text); text-align: center; line-height: 1.3; }
.dots { display: flex; justify-content: center; gap: 10px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #cfd9e3; cursor: pointer; transition: background .2s, transform .2s; }
.dots button[aria-current="true"] { background: var(--blue); transform: scale(1.15); }
.round-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.round-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.round-btn .icon { width: 22px; height: 22px; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); }
.prose p, .prose ul { margin-bottom: 16px; line-height: 1.8; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Carousel base (see main.js) ---------- */
.carousel { position: relative; --per-view: 1; }
.carousel__viewport { overflow: hidden; }
.carousel [data-track] { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.carousel [data-track] > * { flex: 0 0 calc(100% / var(--per-view)); min-width: 0; }
