/* =============================================================
   Site Biônica × IoTherm — estilos compartilhados
   Tokens vêm de assets/tokens.css (design system oficial).
   Estes estilos implementam o handoff Figma-ready.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans", "Sora", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1A1A2E;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Spec text override token — handoff specifies #1A1A2E (not browser default) */
:root {
  --text-ink: #1A1A2E;
  --text-ink-80: rgba(26, 26, 46, 0.80);
  --text-ink-70: rgba(26, 26, 46, 0.70);
  --text-ink-60: rgba(26, 26, 46, 0.60);
  --text-ink-50: rgba(26, 26, 46, 0.50);
  --text-on-dark: #FFFFFF;
  --text-on-dark-80: rgba(255, 255, 255, 0.80);
  --text-on-dark-70: rgba(255, 255, 255, 0.70);
  --text-on-dark-50: rgba(255, 255, 255, 0.50);

  --site-max: 1280px;
  --site-pad: 80px;
  --site-pad-tablet: 40px;
  --site-pad-mobile: 20px;
}

/* ---------------- Container ---------------- */
.container {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-pad);
}
@media (max-width: 1024px) {
  .container { padding: 0 var(--site-pad-tablet); }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--site-pad-mobile); }
}

/* ---------------- Section base spacing ---------------- */
.section { padding: 96px 0; }
.section--lg { padding: 128px 0; }
.section--sm { padding: 64px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--lg { padding: 80px 0; }
  .section--sm { padding: 48px 0; }
}

/* ---------------- Backgrounds ---------------- */
.bg-deep {
  background: #0A74B8;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bg-deep::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/deep-blue-hex.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: screen;
}
.bg-deep > * { position: relative; z-index: 1; }

.bg-sereno {
  background: #075C95;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bg-sereno::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/blue-hex.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}
.bg-sereno > * { position: relative; z-index: 1; }

.bg-gradient-deep {
  background: linear-gradient(135deg, #0A74B8 0%, #2FA6DF 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bg-gradient-deep::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/blue-lilac-hex.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.40;
  pointer-events: none;
  mix-blend-mode: screen;
}
.bg-gradient-deep > * { position: relative; z-index: 1; }

.bg-bege { background: #F5EAD6; }
.bg-bege-soft { background: linear-gradient(180deg, #FFFFFF 0%, #F5EAD6 100%); }
.bg-lilas-soft {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4ECFC 100%);
  position: relative;
}
.bg-white-pills {
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bg-white-pills::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/white-pills-lilac.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  pointer-events: none;
}
.bg-white-pills > * { position: relative; z-index: 1; }

/* Texturas suaves para seções claras (4–8% per design system rule) */
.bg-soft-hex {
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bg-soft-hex::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/light-hex.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}
.bg-soft-hex > * { position: relative; z-index: 1; }

.bg-soft-pills {
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.bg-soft-pills::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/white-pills-lilac.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}
.bg-soft-pills > * { position: relative; z-index: 1; }

/* ---------------- Type helpers (handoff scale) ---------------- */
.eyebrow {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C8B6E2;
  margin: 0 0 20px;
}
.eyebrow--ink { color: #075C95; }

.display {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
.display--xl {
  font-size: clamp(44px, 7vw, 80px);
}
.display--white { color: #FFFFFF; }

.h1 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin: 0 0 20px;
  text-wrap: balance;
}
.h1--white { color: #FFFFFF; }
.h1--soft { font-weight: 400; color: rgba(10,116,184,0.55); }

.h2 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.h2--white { color: #FFFFFF; }

.h3 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-ink);
  margin: 0 0 12px;
}
.h3--white { color: #FFFFFF; }

.lead {
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-ink);
  margin: 0 0 16px;
  max-width: 60ch;
}
.lead--lg { font-size: 20px; }
.lead--white { color: var(--text-on-dark-80); }
.lead--muted { color: var(--text-ink-70); }

.body {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-ink);
  margin: 0;
}
.body--white { color: var(--text-on-dark-80); }

.small {
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-ink-60);
}
.small--white { color: var(--text-on-dark-70); }

.serif {
  font-family: "Lora", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
}
.serif--quote {
  font-size: clamp(24px, 3vw, 32px);
  color: #075C95;
}
.serif--callout {
  font-size: 26px;
  color: #075C95;
}

.italic-emph {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ---------------- Buttons (handoff S1) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 200ms ease, color 200ms ease, transform 100ms ease, box-shadow 200ms ease;
  white-space: nowrap;
  text-decoration: none;
  min-height: 48px;
  border: 1.5px solid transparent;
}
.btn:focus-visible {
  outline: 2px solid #2FA6DF;
  outline-offset: 2px;
}
/* COLOR LOGIC INVERTED — default state now shows what used to be the hover, and vice-versa */
.btn--primary {
  background: #2FA6DF;
  color: #1A1A2E;
}
.btn--primary:hover {
  background: #075C95;
  color: #FFFFFF;
}
.btn--primary:active { transform: scale(0.97); box-shadow: none; }

/* Invert variant — solid blue + white default, inverts to white + ink on hover */
.btn--invert {
  background: #2FA6DF;
  color: #FFFFFF;
  border-radius: 9999px;
}
.btn--invert:hover {
  background: #FFFFFF;
  color: #1A1A2E;
  box-shadow: 0 6px 20px rgba(10, 116, 184, 0.20);
}
.btn--invert:active { transform: scale(0.97); box-shadow: none; }

/* Amazon-branded buy button — Amazon orange with full-invert hover */
.btn--amazon {
  background: #FF9900;
  color: #FFFFFF;
  border: 1px solid #E68A00;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(230, 138, 0, 0.22);
  /* Brand font in a lighter weight to evoke Amazon Ember's humanist feel */
  font-family: "Noto Sans", "Sora", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  /* Logo sits in the phrase, spaced like a word */
  gap: 0.28em;
  transition: background 220ms ease, color 220ms ease,
              border-color 220ms ease, box-shadow 220ms ease,
              transform 100ms ease;
}
.btn--amazon:hover {
  background: #FFFFFF;
  color: #0F1111;
  border-color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.btn--amazon:active { transform: scale(0.97); box-shadow: none; }
.btn--amazon:focus-visible { outline-color: #FF9900; }
.btn__amazon-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}
.btn__amazon-mark img,
.btn__amazon-mark svg { display: block; height: 1.4em; width: auto; }
.btn--xl .btn__amazon-mark img,
.btn--xl .btn__amazon-mark svg { height: 1.5em; }
/* Default: invert black PNG to white; hover: restore to black */
.btn--amazon .btn__amazon-mark img {
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}
.btn--amazon:hover .btn__amazon-mark img {
  filter: none;
}

/* Light variant — for use on dark/gradient backgrounds */
.btn--light {
  background: #FFFFFF;
  color: #075C95;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}
.btn--light:hover {
  background: #FFFFFF;
  color: #0A74B8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.btn--light:active { transform: scale(0.97); box-shadow: none; }

.btn--outlined {
  background: transparent;
  color: #2FA6DF;
  border: 1.5px solid #2FA6DF;
}
.btn--outlined:hover {
  background: rgba(47,166,223,0.15);
}
.btn--outlined.on-dark {
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.btn--outlined.on-dark:hover {
  background: rgba(255,255,255,0.15);
}

/* Pill-blue variant — solid deep blue default, inverts to white + blue text */
.btn--pill-blue {
  background: #075C95;
  color: #FFFFFF;
  border: 1.5px solid #075C95;
  border-radius: 9999px;
  transition: background 220ms ease, color 220ms ease,
              border-color 220ms ease, box-shadow 220ms ease,
              transform 100ms ease;
}
.btn--pill-blue:hover {
  background: #FFFFFF;
  color: #075C95;
  border-color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(10, 116, 184, 0.22);
}
.btn--pill-blue:active { transform: scale(0.97); box-shadow: none; }

/* Pill-light variant — white default with deep-blue text, inverts to deep blue on hover */
.btn--pill-light {
  background: #FFFFFF;
  color: #075C95;
  border: 1.5px solid #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  transition: background 220ms ease, color 220ms ease,
              border-color 220ms ease, box-shadow 220ms ease,
              transform 100ms ease;
}
.btn--pill-light:hover {
  background: #075C95;
  color: #FFFFFF;
  border-color: #075C95;
  box-shadow: 0 6px 20px rgba(2, 32, 60, 0.30);
}
.btn--pill-light:active { transform: scale(0.97); box-shadow: none; }

.btn--lg {
  font-size: 16px;
  padding: 18px 36px;
  min-height: 56px;
}
.btn--xl {
  font-size: 18px;
  padding: 22px 44px;
  min-height: 64px;
}
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  color: #2FA6DF;
  font-weight: 500;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link--white { color: #FFFFFF; }

/* ---------------- Header / Nav ---------------- */
section[id] { scroll-margin-top: 84px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: 0 0 0 rgba(2,32,60,0);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease,
    top 320ms cubic-bezier(0.22, 1, 0.36, 1), left 320ms cubic-bezier(0.22, 1, 0.36, 1),
    right 320ms cubic-bezier(0.22, 1, 0.36, 1), border-radius 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.header.header--scrolled {
  top: 14px;
  left: 14px;
  right: 14px;
  width: auto;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(2,32,60,0.08);
}
@media (min-width: 1180px) {
  .header.header--scrolled {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 28px));
  }
}
/* header--on-dark: header sits over a dark hero at the top of the page */
.header--on-dark .nav__links a { color: #FFFFFF; }
.header--on-dark .nav__links a:hover { color: #E7D8F8; }
.header--on-dark .menu-toggle { color: #FFFFFF; }
.header--on-dark .header__logo .logo-white { opacity: 1; }
.header--on-dark .header__logo .logo-blue { opacity: 0; }
/* once scrolled, header is always solid — text/logo switch to the ink/blue identity regardless of hero color */
.header.header--scrolled .nav__links a { color: var(--text-ink); }
.header.header--scrolled .nav__links a:hover { color: #075C95; }
.header.header--scrolled .menu-toggle { color: var(--text-ink); }
.header.header--scrolled .header__logo .logo-white { opacity: 0; }
.header.header--scrolled .header__logo .logo-blue { opacity: 1; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 32px;
  transition: padding 320ms cubic-bezier(0.22, 1, 0.36, 1), height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.header.header--scrolled .header__inner {
  height: 72px;
  padding-left: 28px;
  padding-right: 20px;
}
.header__logo { display: grid; align-items: center; gap: 8px; }
.header__logo img { height: 36px; width: auto; grid-area: 1 / 1; transition: opacity 240ms ease; }
.header__logo img.logo-white { opacity: 0; }
.header__logo img.logo-blue { opacity: 1; }
.header__logo .endorser {
  font-family: "Noto Sans", sans-serif;
  font-size: 11px;
  color: var(--text-ink-50);
  margin-left: 4px;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-family: "Noto Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-ink);
  padding: 8px 0;
  position: relative;
  transition: color 240ms ease;
}
.nav__links a:hover { color: #075C95; }

.header__cta {
  font-size: 14px;
  padding: 10px 20px;
  min-height: 40px;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav__links, .header__cta.is-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile sheet */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  background: #FFFFFF;
  z-index: 49;
  padding: 32px 20px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 600;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-ink);
}
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------------- Footer ---------------- */
.footer {
  background: #075C95;
  color: #FFFFFF;
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("bg/blue-hex.jpg");
  background-size: cover;
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: screen;
}
.footer__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: flex-start;
}
.footer__brand img { height: 32px; width: auto; }
.footer__brand .endorser {
  font-family: "Noto Sans", sans-serif;
  font-size: 11px;
  color: var(--text-on-dark-50);
  margin-top: 10px;
}
.footer__links {
  display: flex; gap: 28px;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  color: var(--text-on-dark-70);
}
.footer__links a:hover { color: #FFFFFF; }
.footer__social {
  display: flex; gap: 16px;
  align-items: center;
}
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--text-on-dark-70);
  border: 1px solid rgba(255,255,255,0.18);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.footer__social a:hover {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}
.footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: "Noto Sans", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-on-dark-50);
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; }
  .footer__social { order: 3; }
}

/* ---------------- Cards (handoff "Cards de Benefício") ---------------- */
.card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(10,116,184,0.08);
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(10,116,184,0.14); transform: translateY(-2px); }
.card__icon {
  width: 56px; height: 56px;
  margin-bottom: 20px;
  display: block;
}
.card__icon--lg { width: 88px; height: 88px; }

/* Glass card (on dark) — for "Solução / O que IoTherm faz" S4 */
.card--glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(2, 32, 60, 0.25);
}
.card--glass:hover { background: rgba(255,255,255,0.10); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------------- Accordion FAQ ---------------- */
.faq__item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq__q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-family: "Noto Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-ink);
  text-align: left;
}
.faq__q-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #2FA6DF;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  transition: transform 250ms ease-in-out;
}
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height 250ms ease-in-out;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-ink-80);
}
.faq__a-inner { padding: 0 0 24px; max-width: 70ch; }
.faq__item.is-open .faq__a { max-height: 600px; }
.faq__item.is-open .faq__q-icon { transform: rotate(45deg); }

/* ---------------- Sticky mobile buy bar (product page) ---------------- */
.buybar-mobile {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0A74B8;
  padding: 10px 16px;
  z-index: 60;
  box-shadow: 0 -8px 24px rgba(2, 32, 60, 0.30);
}
.buybar-mobile .btn { width: 100%; justify-content: center; }
@media (max-width: 768px) {
  .buybar-mobile.is-active { display: block; }
  body.has-buybar { padding-bottom: 76px; }
}

/* ---------------- Bordered seal / chip ---------------- */
.seals {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0;
}
.seals .seal {
  font-family: "Noto Sans", sans-serif;
  font-size: 13px;
  color: var(--text-ink-70);
  padding: 6px 28px;
  border-right: 1px solid rgba(0,0,0,0.10);
  display: inline-flex; align-items: center; gap: 8px;
}
.seals .seal:last-child { border-right: 0; }
.seals--white .seal {
  color: var(--text-on-dark-80);
  border-right-color: rgba(255,255,255,0.18);
}
@media (max-width: 768px) {
  .seals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .seals .seal { border-right: 0; padding: 8px 0; justify-content: center; text-align: center; }
}

/* ---------------- Utility ---------------- */
.center { text-align: center; }
.measure { max-width: 64ch; }
.measure-narrow { max-width: 48ch; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.stack-xl > * + * { margin-top: 40px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* Visível só para leitores de tela (rótulos de controles compactos, ex: dots do carrossel) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Animations (gentle, per brand) ---------------- */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}
.pulse-soft { animation: pulse-soft 1.8s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 600ms var(--ease-out, cubic-bezier(0.2,0.8,0.2,1)) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =============================================================
   HERO CAROUSEL — Home
   Substitui o hero estático. Cada slide reaproveita as classes
   .bg-deep / .bg-gradient-deep (mesma textura/estilo do resto do
   site). Altura fixa por breakpoint evita "pulo" de layout ao
   trocar de slide.
   ============================================================= */
.hero-carousel {
  position: relative;
  overflow: hidden;
}
.hero-carousel__viewport {
  overflow: hidden;
}
.hero-carousel__track {
  display: flex;
  transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: clamp(560px, 88vh, 760px);
  display: flex;
  align-items: center;
  padding: 64px 0;
}
@media (max-width: 880px) {
  .hero-carousel__slide { min-height: clamp(520px, 100vh, 720px); padding: 48px 0; }
}
.hero-carousel__slide[aria-hidden="true"] { pointer-events: none; }
.hero-carousel__slide .container { width: 100%; }

/* Reduced motion: troca instantânea, sem autoplay (ver site.js) */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track { transition: none; }
}

/* Controles: setas nas laterais + dots centralizados embaixo */
.hero-carousel__controls {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
}
.hero-carousel__arrow {
  pointer-events: auto;
  display: none;
}
.hero-carousel__dots {
  pointer-events: auto;
  display: flex;
  gap: 10px;
}
.hero-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.hero-carousel__dot:hover { background: rgba(255,255,255,0.7); }
.hero-carousel__dot.is-active {
  background: #FFFFFF;
  transform: scale(1.2);
}
.hero-carousel__dot:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* Setas: visíveis a partir de telas médias, sobre as laterais do container */
@media (min-width: 720px) {
  .hero-carousel__controls { justify-content: space-between; padding: 0 24px; bottom: 0; top: 0; }
  .hero-carousel__dots { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); }
  .hero-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: #FFFFFF;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 200ms ease, transform 200ms ease;
  }
  .hero-carousel__arrow:hover { background: rgba(255,255,255,0.22); }
  .hero-carousel__arrow:active { transform: scale(0.94); }
  .hero-carousel__arrow:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
}
