/* ==========================================================================
   Praia — Leça da Palmeira
   Estrutura baseada na arquitetura de informação de uma livecam de praia,
   com identidade visual própria (claro + laranja).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:            #16181d;
  --ink-2:          #21242b;
  --ink-3:          #2c3038;
  --bg:             #f3f4f6;
  --surface:        #ffffff;
  --surface-alt:    #fafbfc;
  --text:           #1a1c22;
  --text-2:         #565b66;
  --text-3:         #8b909b;
  --line:           #e6e8ec;
  --line-strong:    #d5d8de;

  --accent:         #f59321;
  --accent-dark:    #d97a0d;
  --accent-soft:    #fff3e3;
  --accent-ink:     #7a4508;

  --live:           #ff4d4d;
  --ok:             #16a34a;
  --no:             #b6bac2;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 25, 35, .05), 0 4px 12px rgba(20, 25, 35, .04);
  --shadow-md: 0 2px 4px rgba(20, 25, 35, .05), 0 12px 28px rgba(20, 25, 35, .07);
  --shadow-lg: 0 8px 20px rgba(20, 25, 35, .08), 0 24px 60px rgba(20, 25, 35, .10);

  --header-h: 68px;
  --wrap: 1200px;
  --pad: 24px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   NOTA: nunca aplicar overflow-x: hidden/clip ao html ou body — quebra
   position:fixed no mobile e position:sticky nos filhos diretos do body.
   O overflow é contido localmente em cada componente que o cause.
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.ic { width: 20px; height: 20px; flex: none; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Tipografia utilitária
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow--accent { color: var(--accent-dark); }
.eyebrow span { color: var(--text-2); }

.section { padding: 72px 0; }
.section--alt { background: var(--surface-alt); }
.section__title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 8px;
}
.section__lead { color: var(--text-2); margin-top: 8px; max-width: 60ch; }
.section__title + .section__lead { margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   4. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .2s, color .2s, transform .15s;
}
.btn .ic { width: 16px; height: 16px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--accent:active { transform: translateY(1px); }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip-btn:hover { border-color: var(--line-strong); color: var(--text); }
.chip-btn .ic { width: 16px; height: 16px; }
.chip-btn[aria-pressed="true"] { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.chip-btn[aria-pressed="true"] .ic { fill: var(--accent); stroke: var(--accent); }

.linkbtn {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.linkbtn:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Header — filho direto do <body>, sticky
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__logo { display: inline-flex; align-items: center; gap: 10px; }
.header__logo-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #ffc470);
}
.header__logo-text { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }

/* Menu alinhado à direita: o margin-left auto empurra-o para lá e o
   .header__actions fica logo a seguir. */
.header__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.header__link:hover { color: var(--text); }
.header__link.is-active { color: var(--text); border-bottom-color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__burger {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--text-2);
}
.header__burger:hover { background: var(--bg); color: var(--text); }

/* --------------------------------------------------------------------------
   6. Carrossel de promoções
   -------------------------------------------------------------------------- */
.promos { padding: 28px 0 8px; }

.promos__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;            /* overflow contido localmente, não no body */
  box-shadow: var(--shadow-md);
  background: var(--ink);
}
.promos__track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.promos__track.is-instant { transition: none; }

.promo {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 1600 / 400;
  display: block;
  color: #fff;
}
.promo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 20, .78) 0%, rgba(10, 14, 20, .45) 45%, rgba(10, 14, 20, 0) 78%);
}
.promo__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 0 clamp(24px, 5vw, 64px);
  max-width: 640px;
}
.promo__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #14181f;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.promo__title {
  font-size: clamp(20px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.promo__text {
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(255, 255, 255, .82);
  margin: 0;
}
.promo__cta {
  margin-top: 6px;
  display: inline-flex;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.promo:hover .promo__cta { background: var(--accent); color: #fff; }

.promos__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background-color .2s;
  z-index: 2;
}
.promos__arrow:hover { background: #fff; }
.promos__arrow--prev { left: 16px; }
.promos__arrow--next { right: 16px; }

.promos__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.promos__dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .45);
  transition: width .25s, background-color .25s;
}
.promos__dot.is-active { width: 26px; background: var(--accent); }

/* --------------------------------------------------------------------------
   7. Livecam — cabeçalho, tabs, player
   -------------------------------------------------------------------------- */
.livecam { padding: 32px 0 8px; }

.livecam__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.livecam__title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 6px;
}
.livecam__head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.player__video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }

/* Modo imagem — câmara que publica JPEG em vez de stream */
.player__img { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.player__stamp {
  position: absolute;
  top: 16px; right: 20px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .5);
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}
.player__ctrl[hidden] { display: none; }

.player__topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.player__cam-name { color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; }

.player__bottombar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
}
.player__ctrl {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.player__ctrl:hover { background: rgba(255, 255, 255, .26); }
.player__ctrl--icon { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; }

.player__state {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
  background: rgba(18, 21, 26, .82);
  color: #fff;
}
.player__state[hidden] { display: none; }
.player__state-title { font-size: 17px; font-weight: 700; }
.player__state-text { font-size: 13px; color: rgba(255, 255, 255, .68); max-width: 46ch; }
.player__state-text code { background: rgba(255, 255, 255, .12); padding: 2px 6px; border-radius: 5px; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.live-badge__dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 77, .6);
  animation: pulse 2s infinite;
}
.live-badge--sm { padding: 4px 10px; font-size: 10px; background: transparent; color: var(--live); }
.live-badge--sm .live-badge__dot { width: 6px; height: 6px; }

@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* --------------------------------------------------------------------------
   8. Barra de condições atuais
   -------------------------------------------------------------------------- */
.conds {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cond {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, .07);
}
.cond:last-child { border-right: 0; }
.cond__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.cond__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.cond__unit { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.cond__sub { font-size: 12px; color: rgba(255, 255, 255, .5); }
.cond__arrow { color: var(--accent); width: 18px; height: 18px; }

.fonte {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-align: right;
}
.fonte.is-erro { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   9. Cartões genéricos
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 24px; }
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card__head--pad { padding: 24px 24px 0; margin-bottom: 12px; }
.card__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card__meta { font-size: 13px; color: var(--text-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. Previsões
   -------------------------------------------------------------------------- */
/* 7 tabs não cabem em ecrãs pequenos — scroll horizontal contido no próprio
   componente, nunca no body. */
.daytabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
/* flex: 1 0 auto — crescem para ocupar a largura toda, mas nunca encolhem
   abaixo do próprio texto. Se não couberem (ecrãs estreitos), transbordam e
   o overflow-x acima transforma-os em carrossel. */
.daytab {
  flex: 1 0 auto;
  scroll-snap-align: start;
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.daytab span { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); }
.daytab.is-active { background: var(--ink); color: #fff; }
.daytab.is-active span { color: rgba(255, 255, 255, .6); }

.forecast { overflow-x: auto; }        /* scroll contido no componente */
.forecast table { width: 100%; min-width: 720px; border-collapse: collapse; }
.forecast th, .forecast td { padding: 12px 10px; text-align: center; }
.forecast thead th {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  white-space: pre-line;
  line-height: 1.35;
}
.forecast thead th:first-child, .forecast tbody td:first-child { text-align: left; }
.forecast tbody tr + tr td { border-top: 1px solid var(--line); }
.forecast tbody td { font-size: 15px; font-weight: 700; }
.forecast .fc-hour { font-size: 14px; font-weight: 800; color: var(--text); }
.forecast .fc-unit { font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.forecast .fc-dir { display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-size: 13px; }
.forecast .fc-dir svg { width: 16px; height: 16px; color: var(--accent); }
.forecast .fc-icon { width: 26px; height: 26px; color: var(--accent); margin-inline: auto; }
.forecast tbody tr:hover td { background: var(--surface-alt); }

/* --------------------------------------------------------------------------
   11. Marés
   -------------------------------------------------------------------------- */
.tides {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}
.tidechart { width: 100%; }
.tidechart svg { width: 100%; height: auto; display: block; }

.tidelist { padding: 8px 12px 16px; }
.tideitem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: var(--r-md);
}
.tideitem + .tideitem { border-top: 1px solid var(--line); border-radius: 0; }
.tideitem.is-next { background: var(--accent-soft); border-top-color: transparent; }
.tideitem__ic {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-2);
  flex: none;
}
.tideitem__ic .ic { width: 17px; height: 17px; }
.tideitem--high .tideitem__ic { background: var(--accent-soft); color: var(--accent-dark); }
.tideitem__body { flex: 1; min-width: 0; }
.tideitem__type { font-size: 14px; font-weight: 700; }
.tideitem__time { font-size: 12px; color: var(--text-3); font-weight: 600; }
.tideitem__h { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tideitem__h span { font-size: 11px; font-weight: 600; color: var(--text-3); }

.astro {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.astro__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.astro__ic {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex: none;
}
.astro__ic .ic { width: 21px; height: 21px; }
.astro__label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.astro__value { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   12. Informações úteis
   -------------------------------------------------------------------------- */
.infogrid { display: grid; gap: 20px; }

.factlist { display: grid; gap: 2px; }
.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child { border-bottom: 0; }
.fact[hidden] { display: none; }
.fact__label { font-size: 14px; color: var(--text-2); }
.fact__value { font-size: 14px; font-weight: 700; text-align: right; }
.fact__value--yes { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.fact__value--no  { display: inline-flex; align-items: center; gap: 6px; color: var(--no); }
.fact__value .ic { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 56px 0 28px; margin-top: 8px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__logo { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.footer__text { margin-top: 12px; font-size: 14px; max-width: 42ch; }
.footer__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 14px;
}
.footer__list { display: grid; gap: 9px; font-size: 14px; }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

/* --------------------------------------------------------------------------
   14. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .conds { grid-template-columns: repeat(4, 1fr); }
  .cond:nth-child(4n) { border-right: 0; }
  .cond:nth-child(-n+4) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .tides { grid-template-columns: 1fr; }
  .astro { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --pad: 18px; }

  /* O blur do header obriga o browser a refazer o desfoque a cada frame de
     scroll. Em mobile o custo nao compensa — fundo solido, zero jank. */
  .header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Nav mobile: fade, NUNCA translateX — translateX duplica a largura do
     documento e cria overflow horizontal. */
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 12px var(--pad) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s linear .3s;
  }
  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s, visibility 0s linear 0s;
  }
  .header__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header__link.is-active { border-bottom-color: var(--line); color: var(--accent-dark); }

  /* Em mobile a nav é fixed, logo sai do fluxo — é o .header__actions que
     tem de levar o auto para encostar o hambúrguer à direita. */
  .header__actions { margin-left: auto; }
  .header__burger { display: grid; }

  .section { padding: 52px 0; }
  .promos { padding: 16px 0 4px; }
  .promo { aspect-ratio: 4 / 3; }
  .promo__shade { background: linear-gradient(180deg, rgba(10, 14, 20, .3) 0%, rgba(10, 14, 20, .82) 72%); }
  .promo__body { justify-content: flex-end; padding-bottom: 44px; max-width: none; }
  .promos__arrow { display: none; }

  .conds { grid-template-columns: repeat(2, 1fr); }
  .cond { padding: 16px 14px; }
  .cond:nth-child(2n) { border-right: 0; }
  .cond:not(:nth-last-child(-n+2)) { border-bottom: 1px solid rgba(255, 255, 255, .07); }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .card--pad { padding: 18px; }
  .card__head--pad { padding: 18px 18px 0; }
}

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