/* Recorde Pétreo — estilos complementares ao Tailwind (CDN) */
:root {
  --navy: #142B46;
  --slate: #253B52;
  --orange: #F07824;
  --orange-dark: #D9650F;
  --bg: #F9FAFB;
  --text: #111827;
  --line: #D9DEE3;
  --radius: 15px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }

h1, h2, h3 { text-wrap: balance; }

/* Âncoras compensam o menu fixo */
section[id], article[id] { scroll-margin-top: 84px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(240,120,36,.7); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-dark { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .75rem 1.2rem; font-size: .95rem; }

.link-arrow { color: var(--orange-dark); font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.on-dark .link-arrow, .link-arrow.light { color: #FFB98A; }

/* Títulos de secção */
.eyebrow-bar { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--orange); margin-bottom: 1.25rem; }
.eyebrow-bar.center { margin-left: auto; margin-right: auto; }

/* Cartões */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(20,43,70,.35); border-color: #c3cad2; }
.card-dark { background: var(--slate); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease; }
.card-dark:hover { transform: translateY(-6px); border-color: var(--orange); }

/* Imagem com placeholder (visível enquanto a foto real não existir) */
.img-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, var(--slate), var(--navy));
}
.img-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .img-frame img { transform: scale(1.05); }

/* Hero */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(20,43,70,.96) 0%, rgba(20,43,70,.82) 55%, rgba(20,43,70,.55) 100%),
    url('../img/hero-bg.webp') center/cover no-repeat,
    linear-gradient(135deg, var(--navy), var(--slate));
}

/* Barra de credibilidade sobreposta ao hero */
.cred-bar { margin-top: -3.25rem; position: relative; z-index: 10; }

/* Passos — linha do tempo */
.step-num {
  flex: none; width: 3.25rem; height: 3.25rem; border-radius: 9999px;
  background: var(--orange); color: var(--navy); font-weight: 700; font-size: 1.25rem;
  display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(240,120,36,.18);
}
@media (min-width: 1024px) {
  .steps-line { position: relative; }
  .steps-line::before { content: ''; position: absolute; top: 1.625rem; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
}

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: var(--orange); box-shadow: 0 16px 32px -24px rgba(20,43,70,.4); }

/* Marcadores de conteúdo pendente (remover quando confirmado) */
.pendente { background: rgba(240,120,36,.15); border-radius: 4px; padding: 0 .3em; }

/* Mapa */
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 320px; border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 3.75rem; height: 3.75rem; border-radius: 9999px; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 9999px; border: 2px solid #25D366; animation: wa-pulse 2.2s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::after { animation: none; }
  .btn, .card, .card-dark { transition: none; }
}

/* Menu fixo com opções visíveis (computador: segunda linha) */
.menu-topo { height: 72px; gap: 1rem; }
.logo-topo { height: 44px; width: auto; }
.menu-linha { display: none; }
@media (min-width: 640px) { .logo-topo { height: 48px; } }
/* A partir de 1100px: logótipo, menu e botão na mesma linha */
@media (min-width: 1100px) {
  .menu-topo { height: 80px; }
  .logo-topo { height: 42px; }
  .menu-linha { display: flex; align-items: center; justify-content: center; gap: .8rem; font-size: 13.5px; font-weight: 500; color: var(--navy); white-space: nowrap; }
  .menu-botao, .menu-movel { display: none !important; }
  .btn-topo { padding: .6rem .85rem; font-size: .85rem; gap: .4rem; white-space: nowrap; }
  section[id], article[id] { scroll-margin-top: 92px; }
}
@media (min-width: 1280px) {
  .logo-topo { height: 50px; }
  .menu-linha { gap: 1.05rem; font-size: 14.5px; }
  .btn-topo { padding: .7rem 1.05rem; font-size: .92rem; }
}
.nav-link { padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--orange-dark); border-bottom-color: var(--orange); }

/* Formulário de candidatura com aparência de e-mail */
.mail-window { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 50px -30px rgba(20,43,70,.45); }
.mail-bar { display: flex; align-items: center; gap: .6rem; background: var(--slate); color: #fff; font-weight: 600; padding: .9rem 1.25rem; }
.mail-row { display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem; min-height: 3.25rem; border-bottom: 1px solid var(--line); }
.mail-row:focus-within { background: #FFF8F3; }
.mail-label { flex: none; width: 5rem; font-size: .9rem; color: #6B7280; }
.mail-chip { background: #EEF1F4; color: var(--navy); border-radius: 9999px; padding: .25rem .85rem; font-size: .95rem; font-weight: 500; }
.mail-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .85rem 0; font: inherit; outline: none; }
.mail-body { display: block; width: 100%; border: 0; padding: 1.25rem; font: inherit; resize: vertical; outline: none; }
.mail-body:focus { background: #FFF8F3; }
.mail-attach { margin: 0 1.25rem; padding: 1rem 1.25rem; border: 2px dashed var(--line); border-radius: var(--radius); display: grid; gap: .6rem; }
.mail-file { width: 100%; font: inherit; font-size: .95rem; }
.mail-file::file-selector-button { margin-right: .9rem; border: 2px solid var(--navy); background: #fff; color: var(--navy); border-radius: 10px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.mail-consent { display: flex; gap: .75rem; align-items: flex-start; padding: 1.25rem; font-size: .95rem; }
.mail-consent input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: none; accent-color: var(--orange); }
.mail-actions { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.mail-actions .btn[disabled] { opacity: .6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-bottom: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; border: 1px solid; }
.form-alert.ok { background: #ECFDF3; color: #05603A; border-color: #A6F4C5; }
.form-alert.erro { background: #FEF3F2; color: #912018; border-color: #FECDCA; }
/* Páginas legais */
.legal { line-height: 1.75; color: rgba(17,24,39,.85); }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.legal h3 { margin: 1.25rem 0 .35rem; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.legal p { margin: .75rem 0; }
.legal ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: .4rem; }
.legal a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--orange-dark); }
/* Aviso de cookies */
.cookie-aviso { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; max-width: 27rem; background: #fff; color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 1.25rem; font-size: .95rem; line-height: 1.55; box-shadow: 0 24px 48px -16px rgba(20,43,70,.45); }
.cookie-titulo { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-bottom: .35rem; }
.cookie-aviso a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cookie-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }

/* Livro de Reclamações Eletrónico */
.livro-reclamacoes { text-align: left; display: inline-flex; align-items: center; gap: .75rem; background: #fff; color: var(--navy); border-radius: var(--radius); padding: .75rem 1.4rem; font-weight: 700; line-height: 1.15; transition: transform .2s ease, box-shadow .2s ease; }
.livro-reclamacoes small { display: block; font-weight: 500; font-size: .8rem; }
.livro-reclamacoes:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); }
/* Hero principal: foto à direita com degradê para o azul onde está o texto */
.hero-main {
  background:
    linear-gradient(180deg, rgba(20,43,70,.90) 0%, rgba(20,43,70,.82) 100%),
    url('../img/hero-principal.jpg') center/cover no-repeat,
    var(--navy);
}
@media (min-width: 1024px) {
  .hero-main {
    background:
      linear-gradient(90deg, #142B46 0%, #142B46 34%, rgba(20,43,70,.92) 48%, rgba(20,43,70,.55) 66%, rgba(20,43,70,.12) 86%, rgba(20,43,70,.05) 100%),
      url('../img/hero-principal.jpg') right center / 72% auto no-repeat,
      var(--navy);
  }
}
@media (min-width: 1024px) and (max-width: 1599px) {
  .hero-main { background-size: auto, auto 100%, auto; }
}