/*
 * Radius HR marketing site — design system
 * Material 3 colour roles generated from seed #1A79FF (audit §8.2),
 * M3 type scale (§8.3), shape/state guidance (§8.4).
 */

:root {
  --md-sys-color-primary: #0057c1;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #006ef1;
  --md-sys-color-on-primary-container: #fefcff;
  --md-sys-color-secondary: #425d96;
  --md-sys-color-secondary-container: #a6c0ff;
  --md-sys-color-on-secondary-container: #324e85;
  --md-sys-color-tertiary-container: #c64f00;
  --md-sys-color-on-tertiary-container: #fffbff;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-surface: #faf9ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f2f3fe;
  --md-sys-color-surface-container: #ecedf9;
  --md-sys-color-surface-container-high: #e6e7f3;
  --md-sys-color-on-surface: #181b23;
  --md-sys-color-on-surface-variant: #414755;
  --md-sys-color-outline: #727786;
  --md-sys-color-outline-variant: #c1c6d7;
  --md-sys-color-inverse-surface: #10131b;
  --md-sys-color-inverse-on-surface: #e0e2ed;
  --rh-success: #146c2e;
  --rh-whatsapp: #25d366;
  --rh-on-whatsapp: #0b3d20;

  --rh-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --rh-radius-sm: 8px;
  --rh-radius-md: 12px;
  --rh-radius-lg: 16px;
  --rh-radius-xl: 28px;
  --rh-radius-full: 999px;
  --rh-gutter: 16px;
  --rh-max: 1200px;
  --rh-ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --md-sys-color-primary: #aec6ff;
    --md-sys-color-on-primary: #002e6b;
    --md-sys-color-primary-container: #508dff;
    --md-sys-color-on-primary-container: #10131b;
    --md-sys-color-secondary: #aec6ff;
    --md-sys-color-secondary-container: #2b487f;
    --md-sys-color-on-secondary-container: #9db8f7;
    --md-sys-color-tertiary-container: #ef6719;
    --md-sys-color-on-tertiary-container: #2b0b00;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-surface: #10131b;
    --md-sys-color-surface-container-lowest: #0b0e15;
    --md-sys-color-surface-container-low: #181b23;
    --md-sys-color-surface-container: #1c1f28;
    --md-sys-color-surface-container-high: #272a32;
    --md-sys-color-on-surface: #e0e2ed;
    --md-sys-color-on-surface-variant: #c1c6d7;
    --md-sys-color-outline: #8b90a0;
    --md-sys-color-outline-variant: #414755;
    --md-sys-color-inverse-surface: #e0e2ed;
    --md-sys-color-inverse-on-surface: #181b23;
    --rh-success: #7ddc8f;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--rh-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--md-sys-color-primary); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }

h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 700; color: var(--md-sys-color-on-surface); letter-spacing: 0; }
/* M3 type scale */
.display-lg, .hero h1 { font-size: 36px; line-height: 44px; }
@media (min-width: 992px) { .hero h1 { font-size: 52px; line-height: 60px; } }
h1, .page-hero h1 { font-size: 32px; line-height: 40px; }
@media (min-width: 992px) { h1, .page-hero h1 { font-size: 36px; line-height: 44px; } }
h2 { font-size: 24px; line-height: 32px; }
@media (min-width: 992px) { h2 { font-size: 32px; line-height: 40px; } }
h3 { font-size: 20px; line-height: 28px; }
h4 { font-size: 16px; line-height: 24px; }

:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  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: 16px; top: -48px; z-index: 1000; padding: 12px 16px; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border-radius: var(--rh-radius-sm); }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--rh-max); margin: 0 auto; padding: 0 var(--rh-gutter); }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 56px 0; }
@media (min-width: 992px) { .section { padding: 80px 0; } }
.section--alt { background: var(--md-sys-color-surface-container-low); }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 18px; line-height: 28px; color: var(--md-sys-color-on-surface-variant); }
.muted { color: var(--md-sys-color-on-surface-variant); }
.small { font-size: 14px; line-height: 20px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--md-sys-color-on-surface-variant); margin-bottom: 8px;
}
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px;
  border-radius: var(--rh-radius-sm); border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--md-sys-color-on-surface-variant);
}

/* Grid */
.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .split--reverse > :first-child { order: 2; }
}

/* Buttons (M3: filled, tonal, outlined, text) */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--rh-radius-full);
  font: 600 14px/20px var(--rh-font); letter-spacing: 0.1px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: box-shadow 0.2s var(--rh-ease), background-color 0.2s var(--rh-ease);
  overflow: hidden; white-space: nowrap;
}
.btn::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity 0.2s var(--rh-ease); pointer-events: none; }
.btn:hover::after { opacity: 0.08; }
.btn:focus-visible::after, .btn:active::after { opacity: 0.1; }
.btn--filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn--filled:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.btn--tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn--outlined { background: transparent; color: var(--md-sys-color-primary); border-color: var(--md-sys-color-outline); }
.btn--text { background: transparent; color: var(--md-sys-color-primary); padding: 12px 12px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header / top app bar */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--md-sys-color-surface); border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { height: 40px; width: auto; }
.brand .brand__dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .brand__light { display: none; }
  :root:not([data-theme="light"]) .brand .brand__dark { display: block; }
}
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 12px 12px;
  color: var(--md-sys-color-on-surface); text-decoration: none; font: 500 16px/24px var(--rh-font);
  background: none; border: 0; border-radius: var(--rh-radius-full); cursor: pointer;
}
.nav__link:hover, .nav__toggle:hover { background: var(--md-sys-color-surface-container); }
.nav__link[aria-current="page"] { color: var(--md-sys-color-primary); }
.nav__menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--md-sys-color-surface-container-high); border-radius: var(--rh-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); display: none;
}
.nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu, .nav__toggle[aria-expanded="true"] + .nav__menu { display: block; }
.nav__menu a { display: block; min-height: 48px; padding: 12px 16px; border-radius: var(--rh-radius-sm); color: var(--md-sys-color-on-surface); text-decoration: none; }
.nav__menu a:hover { background: var(--md-sys-color-surface-container); }
.nav__menu small { display: block; color: var(--md-sys-color-on-surface-variant); font-size: 14px; line-height: 20px; }
.header-actions { display: none; align-items: center; gap: 8px; }
.menu-button {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 0; border-radius: var(--rh-radius-full); background: transparent; color: var(--md-sys-color-on-surface); cursor: pointer;
}
.menu-button:hover { background: var(--md-sys-color-surface-container); }
@media (min-width: 1200px) {
  .nav { display: block; }
  .header-actions { display: flex; }
  .menu-button { display: none; }
}

/* Navigation drawer (compact widths) — fixed and clipped so it never widens the page */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: 190; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 86vw); z-index: 200;
  background: var(--md-sys-color-surface-container-low); padding: 12px; overflow-y: auto;
  border-radius: 0 var(--rh-radius-lg) var(--rh-radius-lg) 0;
}
.drawer[hidden], .drawer-scrim[hidden] { display: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.drawer h2 { font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); margin: 16px 16px 4px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: flex; align-items: center; min-height: 56px; padding: 0 16px; border-radius: var(--rh-radius-full); color: var(--md-sys-color-on-surface); text-decoration: none; font-weight: 500; }
.drawer a:hover, .drawer a[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.drawer .btn { margin-top: 8px; }
body.drawer-open { overflow: hidden; }

/* Hero */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-surface)); }
@media (min-width: 992px) { .hero { padding: 72px 0 80px; } }
.hero .lead { max-width: 620px; }
.hero__micro { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); }
.hero__media { border-radius: var(--rh-radius-lg); overflow: hidden; background: var(--md-sys-color-surface-container-lowest); }
.hero__media img { width: 100%; height: auto; aspect-ratio: auto; }

.page-hero { padding: 40px 0 32px; background: var(--md-sys-color-surface-container-low); }
@media (min-width: 992px) { .page-hero { padding: 56px 0 48px; } }
.page-hero .lead { max-width: 760px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; }
.breadcrumb a { color: var(--md-sys-color-on-surface-variant); display: inline-block; padding: 2px 0; min-height: 24px; }

/* Cards */
.card {
  background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--rh-radius-lg); padding: 24px; height: 100%;
}
.card--filled { background: var(--md-sys-color-surface-container); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: var(--rh-radius-md); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container);
}
.card__link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--md-sys-color-secondary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23324e85' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font-weight: 700;
}

.screenshot { border-radius: var(--rh-radius-lg); background: var(--md-sys-color-surface-container-lowest); overflow: hidden; }
.screenshot img { width: 100%; height: auto; }

/* Module explorer (tabs) */
.tabs__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: thin; }
.tabs__tab {
  flex: 0 0 auto; min-height: 48px; padding: 10px 16px; border-radius: var(--rh-radius-sm);
  border: 1px solid var(--md-sys-color-outline); background: transparent; color: var(--md-sys-color-on-surface-variant);
  font: 500 14px/20px var(--rh-font); cursor: pointer;
}
.tabs__tab[aria-selected="true"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: transparent; }
.tabs__panel[hidden] { display: none; }

/* CTA band */
.cta-band { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border-radius: var(--rh-radius-xl); padding: 40px 24px; text-align: center; }
.cta-band h2, .cta-band p { color: var(--md-sys-color-on-primary); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--filled { background: var(--md-sys-color-on-primary); color: var(--md-sys-color-primary); }
.cta-band .btn--outlined { color: var(--md-sys-color-on-primary); border-color: var(--md-sys-color-on-primary); }
.cta-band a:not(.btn) { color: var(--md-sys-color-on-primary); }

/* Forms (M3 outlined text fields with persistent labels) */
.form { display: grid; gap: 16px; }
@media (min-width: 768px) { .form--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form--2col .form__full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--md-sys-color-on-surface); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--md-sys-color-outline); border-radius: var(--rh-radius-sm);
  background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); font: 400 16px/24px var(--rh-font);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border: 2px solid var(--md-sys-color-primary); padding: 13px 15px; }
.field__help { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--md-sys-color-on-surface-variant); }
.field__error { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--md-sys-color-error); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border: 2px solid var(--md-sys-color-error); }
.req { color: var(--md-sys-color-error); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); }
.consent input { width: 24px; height: 24px; margin: 0; flex: 0 0 24px; accent-color: var(--md-sys-color-primary); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px; border-radius: var(--rh-radius-md); margin-bottom: 16px; }
.alert--error { background: #ffdad6; color: #410002; }
.alert--success { background: #c4eed0; color: #072711; }
.form-card { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--rh-radius-xl); padding: 24px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }

/* Pricing */
.plans { display: grid; gap: 24px; }
@media (min-width: 992px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { display: flex; flex-direction: column; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--rh-radius-xl); padding: 24px; }
.plan--featured { border: 2px solid var(--md-sys-color-primary); }
.plan__badge { align-self: flex-start; margin-bottom: 8px; padding: 4px 12px; border-radius: var(--rh-radius-sm); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-size: 12px; line-height: 16px; font-weight: 600; }
.plan__name { font-size: 22px; line-height: 28px; margin-bottom: 4px; }
.plan__price { font-size: 32px; line-height: 40px; font-weight: 700; margin: 12px 0 0; }
.plan__price small { font-size: 14px; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.plan__note { font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); margin-bottom: 16px; }
.plan .checklist { flex: 1; }
.plan .btn { margin-top: 8px; }
.calc { display: grid; gap: 16px; align-items: end; }
@media (min-width: 768px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); } }
.calc output { display: block; font-size: 16px; line-height: 24px; }
.calc__result { background: var(--md-sys-color-surface-container); border-radius: var(--rh-radius-lg); padding: 16px; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--rh-radius-lg); }
table.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--md-sys-color-outline-variant); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--md-sys-color-surface-container); font-size: 16px; }
.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--rh-success); font-weight: 700; }
.no { color: var(--md-sys-color-on-surface-variant); }
.addon { color: var(--md-sys-color-secondary); font-weight: 600; }

/* FAQ accordion */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--rh-radius-md); }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 48px 16px 16px; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 22px; color: var(--md-sys-color-primary); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 16px; line-height: 24px; margin: 0; }
.faq__answer { padding: 0 16px 16px; color: var(--md-sys-color-on-surface-variant); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 40px; }

/* Team */
.person img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--rh-radius-lg); margin-bottom: 16px; background: var(--md-sys-color-surface-container); }

/* Legal / prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; line-height: 28px; margin-top: 32px; }
.prose h3 { font-size: 18px; line-height: 26px; margin-top: 24px; }
.prose li { margin-bottom: 8px; }
.note { padding: 16px; border-left: 4px solid var(--md-sys-color-primary); background: var(--md-sys-color-surface-container-low); border-radius: 0 var(--rh-radius-sm) var(--rh-radius-sm) 0; }

/* Footer */
.site-footer { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: var(--md-sys-color-inverse-on-surface); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-size: 16px; line-height: 24px; color: var(--md-sys-color-inverse-on-surface); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: auto; } }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-contact p { margin-bottom: 4px; }
.social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.social a { width: 48px; height: 48px; justify-content: center; border-radius: 50%; border: 1px solid rgba(224, 226, 237, 0.4); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(224, 226, 237, 0.2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; line-height: 20px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer { background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); }
  :root:not([data-theme="light"]) .site-footer a, :root:not([data-theme="light"]) .site-footer h2 { color: var(--md-sys-color-on-surface); }
}

/* WhatsApp FAB — bottom-right, 56px (M3 FAB) */
.fab-whatsapp {
  position: fixed; right: 16px; bottom: 16px; z-index: 150; display: inline-flex; align-items: center; gap: 8px;
  min-width: 56px; height: 56px; padding: 0 16px; border-radius: var(--rh-radius-lg);
  background: var(--rh-whatsapp); color: var(--rh-on-whatsapp); text-decoration: none; font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.fab-whatsapp svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 24px; }
.fab-whatsapp span { display: none; }
@media (min-width: 992px) { .fab-whatsapp span { display: inline; } }
body.has-form-focus .fab-whatsapp, body.drawer-open .fab-whatsapp { display: none; }

/* Cookie consent */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 640px;
  background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface);
  border-radius: var(--rh-radius-lg); padding: 20px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { font-size: 14px; line-height: 20px; }

.notfound { text-align: center; padding: 80px 0; }
.notfound .btn-row { justify-content: center; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
