/* ==========================================================================
   Import4You — folha de estilos única
   Direcção: hero escuro com impacto, corpo claro para as fotos se lerem.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens */
:root {
  /* Estrada nocturna. O site inteiro passa a andar entre um preto-azulado —
     a estrada antes de amanhecer — e um branco frio, a luz de casa. O âmbar
     é a cor dos médios e marca tudo o que é sinal. É o único acento: usada
     a mais, deixa de ser sinal. */
  --ink:          #0a0d12;
  --ink-2:        #141922;
  --ink-3:        #06080b;
  --amber:        #f0a63a;
  --amber-lt:     #ffc46b;
  /* O âmbar puro dá 2.1:1 sobre branco. Sobre fundo claro usa-se este tom,
     que dá 5.2:1. Nunca usar --amber em texto sobre --cream ou --paper. */
  --amber-dk:     #96620f;
  --green:        #2f6b52;
  --danger:       #c0392b;

  --cream:        #f5f6f4;
  --cream-2:      #eceef0;
  --paper:        #ffffff;
  --line:         rgba(10,13,18,.13);
  --line-strong:  rgba(10,13,18,.22);

  --text:         #0f1319;
  --text-soft:    #454a52;
  --text-muted:   #666c75;
  --text-invert:  #f5f6f4;
  --text-invert-soft: rgba(245,246,244,.68);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --shadow-sm: 0 1px 2px rgba(10,13,18,.06), 0 4px 14px rgba(10,13,18,.05);
  --shadow-md: 0 2px 6px rgba(10,13,18,.07), 0 18px 40px rgba(10,13,18,.09);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Alturas do cabeçalho. A barra de topo some abaixo de 780px, por isso
     --header-h muda aí e o conteúdo segue a mesma medida. */
  --header-bar-h: 38px;
  --header-main-h: 78px;
  --header-h: calc(var(--header-bar-h) + var(--header-main-h));
}
@media (max-width: 780px) {
  :root { --header-bar-h: 0px; --header-h: var(--header-main-h); }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* Sem isto o iOS pinta um retângulo cinzento por cima de cada toque. O âmbar
   é a cor do sinal, por isso também é a cor do toque. */
a, button, summary, label, .checkbox { -webkit-tap-highlight-color: rgba(240,166,58,.28); }

:focus-visible {
  outline: 2px solid var(--amber-dk);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .hero-section :focus-visible { outline-color: var(--amber); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--ink);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ Tipografia */
/* Big Shoulders é alta e estreita: compensa-se o x-height com tamanho e
   um tracking ligeiramente fechado, para não parecer uma fonte esbelta. */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .92;
}
.display--xl { font-size: clamp(3.4rem, 10.5vw, 7.5rem); }
.display--lg { font-size: clamp(2.9rem, 7.2vw, 4.75rem); }
.display--md { font-size: clamp(2.2rem, 5vw, 3.25rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-dk);
  margin-bottom: 1.1rem;
}
.on-dark .eyebrow, .hero-section .eyebrow { color: var(--amber); }
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: currentColor; opacity: .6;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--text-soft); }
.on-dark .lede, .hero-section .lede { color: var(--text-invert-soft); }

/* O contorno dourado foi desenhado para fundo escuro. Sobre as secções claras
   usamos o tom escuro do âmbar para manter contraste legível. */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber-dk);
}
.on-dark .text-outline, .hero-section .text-outline {
  -webkit-text-stroke-color: var(--amber);
}
@media (max-width: 700px) { .text-outline { -webkit-text-stroke-width: 1px; } }
/* .7rem dá 11px. Em ecrã pequeno com luz de sol, sobe para 12px. */
@media (max-width: 560px) { .eyebrow { font-size: .75rem; } }

.muted { color: var(--text-muted); }

/* --------------------------------------------------------------- Botões */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-lt); }

.btn--dark { background: var(--ink); color: var(--text-invert); }
.btn--dark:hover { background: var(--ink-2); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(10,13,18,.04); }

.btn--ghost-light { border-color: rgba(245,246,244,.4); color: var(--text-invert); }
.btn--ghost-light:hover { border-color: var(--amber); color: var(--amber); }

.btn--sm { padding: .7rem 1.2rem; font-size: .7rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------- Cabeçalho */
/* O cabeçalho tem fundo escuro próprio por omissão. Só no topo da homepage
   (sobre o hero) é transparente, para a imagem do hero respirar por trás dele.
   Sem isto, o texto claro do menu ficava ilegível sobre as secções claras
   das páginas internas. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(245,246,244,.09);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              transform .35s var(--ease);
}
/* O fio de âmbar é a marca do cabeçalho — a linha da estrada. Fica por baixo
   do menu aberto, senão corta as últimas letras da lista. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--amber); opacity: .5; z-index: 1;
}
.nav-mobile { position: relative; z-index: 2; }

/* Transparente apenas enquanto o topo da homepage ainda está à vista. */
body.has-dark-hero .site-header:not(.is-stuck) {
  background: transparent;
  box-shadow: none;
}
body.has-dark-hero .site-header:not(.is-stuck) .header-bar {
  border-bottom-color: transparent;
}
/* Só neste estado é que a marca fica sobre a fotografia. O carro prateado do
   logo e a carroçaria escura do hero têm a mesma forma e a mesma cor, por isso
   uma sombra não chega: desfazem-se um no outro. O que separa é um véu escuro
   com desvanecimento radial, que escurece só a área da marca e deixa o resto
   da fotografia como está. Some quando o cabeçalho ganha fundo sólido, para
   não aparecer um rectângulo dentro de outro. */
body.has-dark-hero .site-header:not(.is-stuck) .brand {
  position: relative;
}
body.has-dark-hero .site-header:not(.is-stuck) .brand::before {
  content: ""; position: absolute; z-index: -1;
  inset: -.5rem -1.25rem -.5rem -1.25rem;
  background: radial-gradient(120% 100% at 22% 50%, rgba(4,6,9,.92) 0%, rgba(4,6,9,.72) 45%, rgba(4,6,9,0) 100%);
  pointer-events: none;
}

/* Ao descer, encolhe: dá mais espaço ao conteúdo sem tornar o menu alvo
   pequeno — 60px continua muito acima dos 44px de alvo de toque. */
.site-header.is-stuck {
  background: rgba(10,13,18,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(245,246,244,.09), 0 12px 34px rgba(0,0,0,.22);
}
.site-header.is-stuck .header-main { min-height: 60px; }
.site-header.is-stuck .brand__logo { height: 38px; }

.header-bar {
  border-bottom: 1px solid rgba(245,246,244,.14);
  color: var(--text-invert-soft);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.header-bar__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: var(--header-bar-h);
}
.header-bar__meta { display: flex; gap: 1.25rem; align-items: center; }
.header-bar a:hover { color: var(--amber); }
@media (max-width: 780px) { .header-bar { display: none; } }

/* Selector de idioma. Na barra superior é minúsculo e discreto; no menu
   mobile herda o tamanho do resto da navegação. */
.lang-switch { display: flex; align-items: center; gap: .45rem; }
.lang-switch__item {
  padding: .1rem .3rem;
  color: inherit;
  font-weight: 600;
  opacity: .62;
  transition: opacity .18s ease, color .18s ease;
}
.lang-switch__item:hover { opacity: 1; color: var(--amber); }
.lang-switch__item.is-current { opacity: 1; color: var(--amber); }
.lang-switch__item + .lang-switch__item { border-left: 1px solid currentColor; }

.nav-mobile .lang-switch {
  gap: 1rem;
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(245,246,244,.14);
  font-size: .8rem; letter-spacing: .08em;
}
.nav-mobile .lang-switch__item { padding: .2rem .1rem; }

.header-main {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-main-h);
}

/* A marca é o lockup oficial (carro + globo sobre o wordmark), fornecido
   como PNG com fundo transparente. O lema continua a ser texto, não parte da
   imagem: assim traduz-se para inglês e espanhol e continua a ser legível por
   leitores de ecrã. A largura/altura do atributo width/height valem o dobro
   da área de paint, por isso o browser reserva o espaço certo e a página não
   salta quando o ficheiro chega. */
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: .28rem; text-decoration: none; min-width: 0;
}
.brand__logo { display: block; width: auto; height: 46px; }
.brand__tagline {
  font-size: .5rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-invert-soft); line-height: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
@media (max-width: 380px) {
  .brand__tagline { display: none; }
  .brand__logo { height: 38px; }
}

.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-desktop > a:not(.btn) {
  position: relative;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-invert-soft); text-decoration: none;
  padding-block: .4rem;
  /* O padding horizontal existe em todos para o bloco activo não mudar a
     largura do menu quando a página muda. */
  padding-inline: .7rem;
  margin-inline: -.7rem;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease);
}
.nav-desktop > a:not(.btn):hover { color: var(--amber); border-color: var(--amber); }

/* Página actual: bloco âmbar sólido. A posição no menu passa a ler-se como
   posição, não só a cor — quem não distingue âmbar de branco ainda vê. */
.nav-desktop > a[aria-current="page"] {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
@media (max-width: 940px) { .nav-desktop { display: none; } }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid rgba(245,246,244,.3); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--text-invert);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 940px) { .nav-toggle { display: flex; } }

.nav-mobile {
  background: var(--ink);
  border-top: 1px solid rgba(245,246,244,.1);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  /* O cabeçalho é fixo e o JS trava o scroll do corpo enquanto o menu está
     aberto. Sem limite de altura, num telefone baixo ou com o teclado no ecrã,
     o fim da lista ficava cortado sem forma de lá chegar. */
  max-height: calc(100vh - var(--header-main-h));
  max-height: calc(100dvh - var(--header-main-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px;
  font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-invert); text-decoration: none;
  padding: .85rem 0; border-bottom: 1px solid rgba(245,246,244,.08);
}
.nav-mobile a[aria-current="page"] { color: var(--amber); }
.nav-mobile .btn { margin-top: 1.25rem; }

/* ------------------------------------------------------------- Flash */
.flash { padding: 1rem 0; font-size: .9rem; font-weight: 600; }
.flash--success { background: var(--green); color: #fff; }
.flash--error   { background: var(--danger); color: #fff; }
.flash--info    { background: var(--ink-2); color: var(--text-invert); }

/* --------------------------------------------------------------- Hero */
/* Duas colunas: o texto à esquerda, o carro à direita na imagem. Não é
   mais texto sobre fotografia — é a travessia, com a estrada ao lado. */
.hero-section {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--text-invert);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero-section > .container { position: relative; max-width: 46rem; }
.hero-section__media { position: absolute; inset: 0; z-index: -2; }
.hero-section__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
.hero-section::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,8,11,.96) 0%, rgba(6,8,11,.86) 40%, rgba(6,8,11,.25) 78%, rgba(6,8,11,.5) 100%),
    linear-gradient(0deg, rgba(6,8,11,.85) 0%, rgba(6,8,11,0) 60%);
}
@media (max-width: 900px) {
  /* Em ecrã estreito o carro ficaria atrás do texto. Passa a ser fundo. */
  .hero-section { min-height: auto; }
  .hero-section { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2.5rem; }
  .hero-section > .container { max-width: none; }
  .hero-section__media img { object-position: 60% 50%; }
  .hero-section::after {
    background: linear-gradient(0deg, rgba(6,8,11,.96) 0%, rgba(6,8,11,.8) 55%, rgba(6,8,11,.6) 100%);
  }
}

.hero-section h1 { margin-bottom: 1.25rem; }
.hero-section h1 .line-2 { color: var(--amber); }
.hero-section .eyebrow { margin-bottom: .9rem; }

/* A travessia. Quatro paragens ligadas por uma linha de estrada — é o
   negócio inteiro numa só imagem, e a razão de ser do âmbar. */
.hero-route {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .75rem; margin-top: 2.5rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-invert-soft);
}
.hero-route span { white-space: nowrap; }
.hero-route__rule {
  flex: 0 0 26px; height: 1px;
  background: var(--amber); opacity: .55;
}
@media (max-width: 560px) { .hero-route { gap: .5rem; font-size: .62rem; } }
@media (max-width: 430px) {
  .hero-route { gap: .4rem; font-size: .58rem; }
  .hero-route__rule { flex: 0 0 14px; }
}

/* Faixa escura logo abaixo do heró: fecha a primeira dobra sem empurrar
   o título para fora do ecrã. */
.hero-foot {
  background: var(--ink);
  color: var(--text-invert);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.hero-foot .hero-note { margin-top: 2rem; max-width: 52ch; }

/* Factos, não números de troféu. O valor primeiro, a etiqueta ao lado — ao
   contrário dos "stats" de número grande, que é o registo por omissão. */
.hero-facts {
  display: grid; gap: 1.25rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 760px; margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(245,246,244,.18);
}
.hero-facts dt {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .4rem;
}
.hero-facts dd {
  margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.35;
  color: var(--text-invert);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
@media (max-width: 560px) { .hero-actions .btn { width: 100%; } }

.hero-note {
  margin-top: 2rem; font-size: .78rem; color: var(--text-invert-soft); max-width: 46ch;
}

/* Telefone deitado: a largura volta a ser grande, mas a altura não. Sem isto
   o heró continuava a pedir 78vh de uma janela que só tem 390px. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2rem; }
  .hero-actions { margin-top: 1.5rem; }
}

/* ------------------------------------------------------------- Secções */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Faixa de imagem de largura total entre secções. A fotografia fica atrás
   e o texto sobre um véu escuro à esquerda, para o texto continuar legível
   sem escurecer a imagem toda. */
.entrega-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--ink);
  color: var(--text-invert);
}
.entrega-band__media { position: absolute; inset: 0; z-index: -2; }
.entrega-band__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%;
}
.entrega-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,8,11,.94) 0%, rgba(6,8,11,.82) 46%, rgba(6,8,11,.34) 100%),
    linear-gradient(0deg, rgba(6,8,11,.6) 0%, rgba(6,8,11,0) 55%);
}
.entrega-band__inner { max-width: 42rem; }
.entrega-band .eyebrow { color: var(--amber); }
.entrega-band .lede { color: var(--text-invert-soft); }
.entrega-band .display--md { margin-bottom: 1rem; }
@media (max-width: 700px) {
  .entrega-band::after {
    background: linear-gradient(0deg, rgba(6,8,11,.94) 0%, rgba(6,8,11,.78) 60%, rgba(6,8,11,.62) 100%);
  }
}

/* O cabeçalho é fixo, por isso a primeira secção de cada página interna
   empurra o conteúdo para baixo dele. Só a primeira — as restantes mantêm
   o ritmo normal da grelha. */
.page-hero { padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3.5rem)); }
.section--dark { background: var(--ink); color: var(--text-invert); }
.section--dark .lede { color: var(--text-invert-soft); }
.section--dark .eyebrow { color: var(--amber); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
/* Secção sem título próprio (o h1 da página já cobre): menos ar por cima. */
.section-head--tight { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head--tight .eyebrow { margin-bottom: .5rem; }
.section-head p { margin-top: 1.25rem; }

/* ------------------------------------------------------------- Visão */
.vision-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: start;
}
@media (max-width: 900px) { .vision-grid { grid-template-columns: 1fr; } }

.vision-points {
  display: grid; gap: 1.75rem;
  margin-top: 2.5rem; padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .vision-points { grid-template-columns: 1fr 1fr; } }
.vision-points h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.vision-points p { font-size: .9rem; color: var(--text-soft); }

/* Títulos que remetem para outra página: o link é o alvo, por isso herda a
   cor do texto do heading e só ganha sublinhado no hover/foco. Sem isto
   ficava com a cor de link genérica, desligado da hierarquia do título. */
.vision-points h3 a { color: inherit; text-decoration: none; }
.vision-points h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vision-points h3 a:focus-visible { outline: 2px solid var(--amber-dk); outline-offset: 3px; }
.vision-points .point-link { margin-top: .75rem; font-weight: 600; }
.vision-points .point-link a { color: var(--amber-dk); text-decoration: none; }
.vision-points .point-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- Processo */
/* O conteúdo É uma sequência de quatro passos, por isso a numeração
   codifica informação em vez de decorar. Fica na mesma linha do título,
   como marca de posição numa estrada — a estrutura que a página inteira usa. */
.steps { display: grid; gap: 1.75rem; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--line-strong); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 1.25rem; right: 0;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
  /* Âmbar puro dá 1.9:1 no creme. Sobre fundo claro o número usa o tom
     escuro, que dá 5.2:1. O âmbar claro fica reservado para fundo escuro. */
  color: var(--amber-dk);
}
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; padding-right: 2.5rem; }
.step p { font-size: .88rem; color: var(--text-soft); }

/* ------------------------------------------------------------- Catálogo */
.catalog-layout { display: grid; gap: 2.5rem; grid-template-columns: 260px minmax(0,1fr); align-items: start; }
@media (max-width: 1000px) { .catalog-layout { grid-template-columns: 1fr; } }

.filters {
  position: sticky; top: 110px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.filters__body { display: grid; gap: 1.15rem; }

/* O sumário só existe no telemóvel: no desktop o painel é uma coluna lateral
   sempre aberta. O atributo `open` vem no HTML, por isso quem não tem JS vê
   os filtros — o JS fecha-o só no ecrã estreito. */
.filters__toggle { display: none; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__count {
  display: none;
  font-family: var(--font-body); font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; color: var(--ink);
  background: var(--amber); border-radius: 2px;
  padding: .2rem .55rem; margin-left: .5rem;
}
.filters[data-active] .filters__count { display: inline-block; }

@media (max-width: 1000px) {
  /* Cinco campos acima da grelha faziam o telemóvel abrir num formulário em
     vez de abrir nos carros. Fechado: o filtro vira um painel. */
  .filters { position: static; padding: 0; }
  .filters__toggle {
    display: flex; align-items: center; gap: 1rem;
    min-height: 52px; padding: 0 1.25rem;
    font-weight: 700; cursor: pointer; list-style: none;
  }
  .filters__toggle::after {
    content: ""; width: 10px; height: 10px; flex: none; margin-left: auto;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-2px,-2px);
    transition: transform .25s var(--ease);
  }
  .filters[open] .filters__toggle::after { transform: rotate(225deg) translate(-1px,-1px); }
  .filters__body { padding: 1.25rem; border-top: 1px solid var(--line); }
}

.field { display: grid; gap: .5rem; }
.field > label,
.field-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; color: var(--text-soft);
}

/* Campo escuro, como o resto do site. Sobre fundo claro lê-se como uma
   janela para a noite, e o foco faz-se pela linha inferior âmbar em vez
   do anel de sombra cinzento de sempre. */
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  /* 16px evita o zoom automático do iOS ao focar um campo. */
  font-size: 1rem; color: var(--text-invert);
  background: var(--ink-2);
  border: 1px solid rgba(245,246,244,.14);
  border-bottom: 2px solid rgba(245,246,244,.22);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: .85rem .95rem;
  min-height: 48px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
/* .38 dava 3.4:1, abaixo do mínimo. .62 dá 6.6:1 e continua a ler-se como
   texto de ajuda, não como texto principal. */
.field input::placeholder, .field textarea::placeholder { color: rgba(245,246,244,.62); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--ink);
  border-color: rgba(245,246,244,.14);
  border-bottom-color: var(--amber);
}
/* O select precisa de seta própria: a nativa desaparece no fundo escuro. */
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f0a63a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.5rem;
}
.field select option { background: var(--ink-2); color: var(--text-invert); }

.field-hint { font-size: .76rem; color: var(--text-muted); }
.field--error input, .field--error select, .field--error textarea {
  border-bottom-color: var(--danger);
}
/* --danger dá 3.2:1 sobre o campo escuro. Dentro do cartão escuro o erro
   usa um vermelho claro, que dá 7.7:1 e continua a ler-se como erro. */
.field-error { font-size: .78rem; color: var(--danger); font-weight: 600; }
.contact-form .field-error { color: #ff8a80; }
/* Erro também com ícone: a cor sozinha não chega para quem não a distingue. */
.field-error::before { content: "! "; font-weight: 800; }

.catalog-bar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.catalog-count { font-size: .85rem; color: var(--text-muted); }

.car-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1100px) { .car-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { .car-grid { grid-template-columns: 1fr; } }

/* Sem caixa. O cartão é a fotografia; o texto apoia-se nela em vez de
   flutuar num cartão com sombra. O canto é o do documento técnico. */
.car-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.car-card:hover { border-color: var(--amber); }
.car-card:focus-within { border-color: var(--amber); }

.car-card__media {
  position: relative; aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #1b232e, #0d1218);
  overflow: hidden;
}
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car-card:hover .car-card__media img { transform: scale(1.04); }
.car-card__media--empty {
  display: grid; place-items: center;
  color: var(--text-muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}

.car-card__badges {
  position: absolute; top: .75rem; left: .75rem; right: .75rem;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.badge {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 2px;
  background: rgba(10,13,18,.88); color: var(--text-invert);
  backdrop-filter: blur(6px);
}
.badge--accent { background: var(--amber); color: var(--ink); }

.car-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.car-card__title { font-size: 1.02rem; line-height: 1.3; }
.car-card__title a { text-decoration: none; }
.car-card__title a:hover { color: var(--amber-dk); }
.car-card__meta { font-size: .8rem; color: var(--text-muted); }

/* O preço é o dado principal do cartão, por isso usa a voz de display e
   números tabulares — a coluna de preços não pode saltar ao alinhar. */
.car-card__price {
  margin-top: auto; padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.9rem; line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.car-card__price small {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
  display: block; margin-bottom: .35rem;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 3rem 2rem; text-align: center;
  background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.catalog-empty p { color: var(--text-soft); margin-bottom: 1.5rem; }

/* ------------------------------------------------------ Página viatura */
.car-detail { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: start; }
@media (max-width: 900px) { .car-detail { grid-template-columns: 1fr; } }

.car-gallery__main {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #1b232e, #0d1218);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.car-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.spec-list div { min-width: 0; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); }
.spec-list div:nth-child(2n) { padding-right: 0; padding-left: 1rem; }
.spec-list dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.spec-list dd { margin: .25rem 0 0; font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }

/* Empilhados numa coluna não têm espaço para deslizar — ficariam colados ao
   topo do ecrã enquanto se lê o resto da página. */
@media (max-width: 900px) {
  .price-card, .sim-result { position: static; }
}

.price-card {
  position: sticky; top: 110px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-md);
}
.price-card__amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; margin-bottom: .35rem; }
.price-card__note { font-size: .78rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.price-card .btn { margin-bottom: .7rem; }
.price-card .contact-mini { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-muted); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .78rem; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--amber-dk); }

/* ----------------------------------------------------------- Simulador */
.simulator-layout { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: minmax(0,1fr) minmax(0,.85fr); align-items: start; }
@media (max-width: 900px) { .simulator-layout { grid-template-columns: 1fr; } }

.sim-form { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
.sim-form .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .sim-form { grid-template-columns: 1fr; } }

.sim-result {
  position: sticky; top: 110px;
  background: var(--ink); color: var(--text-invert);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
}
/* Um valor em euros é uma cadeia longa. A 320px, 2.75rem já não cabia. */
.sim-result__total {
  font-family: var(--font-display); font-size: clamp(2.1rem, 6vw, 3.75rem);
  line-height: 1; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.sim-result__label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-invert-soft); margin-bottom: .5rem; }
.sim-rows { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(245,246,244,.16); }
.sim-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .15rem 1rem; padding: .5rem 0; font-size: .88rem;
}
.sim-row span { min-width: 0; }
.sim-row span:first-child { color: var(--text-invert-soft); }
.sim-row--credit span:last-child { color: #9fd6b4; }
.sim-row--charge span:last-child { color: #e6a0a0; }
.sim-row--total { margin-top: .75rem; padding-top: .85rem; border-top: 1px solid rgba(245,246,244,.16); font-weight: 800; font-size: 1rem; }

.sim-disclaimer {
  margin-top: 1.5rem; padding: 1.15rem 1.25rem;
  background: rgba(240,166,58,.12);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .8rem; color: var(--text-invert-soft);
}
.sim-disclaimer a { color: var(--amber); font-weight: 700; }

/* ----------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--amber-dk); line-height: 1;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 1.5rem 1.5rem; font-size: .93rem; color: var(--text-soft); }

/* ----------------------------------------------------------- Contacto */
.contact-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* O formulário é a única caixa escura numa página clara — é aqui que a
   conversa acontece, por isso tem o mesmo peso visual que o cabeçalho. */
.contact-form {
  background: var(--ink);
  border: 1px solid rgba(245,246,244,.12);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.contact-form__grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
.contact-form__grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .contact-form__grid { grid-template-columns: 1fr; } }

/* Etiquetas e notas dentro do cartão escuro: a cor de texto do site é preta
   e desapareceria aqui. */
.contact-form .field > label,
.contact-form .field-label { color: var(--text-invert-soft); }
.form-note {
  margin-top: .9rem; text-align: center;
  font-size: .78rem; color: var(--text-invert-soft);
}

/* Honeypot: escondido de utilizadores reais, preenchido por robôs. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: grid; gap: 1.5rem; }
.contact-card {
  background: var(--ink); color: var(--text-invert);
  border-radius: var(--radius); padding: 1.75rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.contact-card p { font-size: .9rem; color: var(--text-invert-soft); }
.contact-card a { color: var(--amber); }

.promise-list { display: grid; gap: 1rem; }
.promise-list li { display: flex; gap: .8rem; font-size: .9rem; color: var(--text-soft); }
.promise-list { list-style: none; padding: 0; margin: 0; }
.promise-list .tick { color: var(--amber-dk); flex: none; font-weight: 800; }

/* ------------------------------------------------------------- Rodapé */
.site-footer { background: var(--ink); color: var(--text-invert-soft); padding-top: clamp(3.5rem, 7vw, 5rem); }
/* Mesma lockup do cabeçalho, um pouco maior: aqui há espaço e é a última
   coisa que fica no ecrã. */
.footer-logo { display: block; width: auto; height: 52px; margin-bottom: 1.1rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 3rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-heading {
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-invert); margin-bottom: 1rem;
}
.footer-blurb { font-size: .88rem; max-width: 34ch; margin-bottom: 1.5rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; font-size: .88rem; }
/* Um link de texto a .88rem dá uns 23px de altura. No rodapé do telemóvel isso
   está mesmo ao alcance do polegar, onde um alvo de 23px erra-se com facilidade. */
.footer-list a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--text-invert-soft); text-decoration: none;
}
.footer-list a:hover { color: var(--amber); }
.footer-muted { color: rgba(245,246,244,.42); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between;
  padding-block: 1.75rem; border-top: 1px solid rgba(245,246,244,.12);
  font-size: .72rem;
}
@media (max-width: 700px) {
  /* A barra fixa cobre o fundo do ecrã, por isso a reserva vive aqui — no
     escuro do rodapé — e não como uma margem no corpo, que aparecia
     como uma faixa creme por baixo da barra âmbar. */
  .site-footer { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
  .footer-bottom { flex-direction: column; }
}
.footer-bottom p { margin: 0; }
.footer-bottom .footer-muted { max-width: 72ch; line-height: 1.6; }

/* --------------------------------------------------------- CTA móvel */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    /* env() vale zero enquanto o viewport não levar viewport-fit=cover — hoje
       é o navegador que afasta o conteúdo da barra de gestos. Fica na
           expressão para quando esse dia chegar, sem nenhum efeito inesperado. */
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
    margin: 0;
    background: var(--amber); color: var(--ink);
    font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  }
}

/* ------------------------------------------------------------- Página 404 */
.error-page {
  min-height: 70vh; display: grid; place-items: center; text-align: center;
  padding-block: var(--section-y);
  padding-top: calc(var(--header-h) + var(--section-y));
}
.error-page .display--xl { color: var(--amber-dk); margin-bottom: .5rem; }

/* ---------------------------------------------------------------- Admin */
.admin-body { background: var(--cream-2); }
.admin-wrap { max-width: 1100px; margin-inline: auto; padding: 2rem var(--gutter) 4rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}
.table-scroll > .admin-table { min-width: 620px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table th, .admin-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .88rem; }
.admin-table th { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); background: var(--cream); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-actions { display: flex; gap: .6rem; justify-content: flex-end; }
.admin-badge { display: inline-block; padding: .2rem .5rem; border-radius: 2px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-badge--on { background: var(--green); color: #fff; }
.admin-badge--off { background: rgba(10,13,18,.14); color: var(--text-muted); }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: var(--gutter); }
.admin-login__card { width: 100%; max-width: 400px; background: var(--paper); border-radius: var(--radius-lg); padding: 2.25rem; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .88rem; font-weight: 600; margin-bottom: 1.25rem; }
.alert--error { background: rgba(168,34,34,.1); color: var(--danger); border: 1px solid rgba(168,34,34,.3); }
.alert--success { background: rgba(53,83,68,.1); color: var(--green); border: 1px solid rgba(53,83,68,.3); }

/* ------------------------------------------------------------- Utilitários */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------ Checkbox */
.checkbox {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .88rem; color: var(--text-soft); cursor: pointer;
}
.checkbox input {
  width: 18px; height: 18px; flex: none; margin: .15rem 0 0;
  accent-color: var(--amber-dk); cursor: pointer;
}

/* ------------------------------------------------- Política de privacidade */
.prose-date { margin-top: .75rem; font-size: .82rem; }
/* A página é uma coluna de texto longo. Sem limite de largura as linhas
   ficariam com mais de 90 caracteres, que é ilegível numa morada. */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: .9rem; color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose-list { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.prose-list li {
  padding: .8rem 0; border-top: 1px solid var(--line);
  color: var(--text-soft); font-size: .95rem;
}
.prose-list li:last-child { border-bottom: 1px solid var(--line); }
.prose-cta {
  margin-top: 3rem; padding: 1.75rem;
  background: var(--cream); border-radius: var(--radius-lg);
}
.prose-cta h2 { margin-top: 0; }
.prose-cta p { margin-top: .6rem; }
.prose-cta .btn { margin-top: .4rem; }
