/* malves.pt – estilos base. Cores e tipos de letra do mockup aprovado. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}

:root {
  --navy: #0b1f3a;
  --navy-2: #12294b;
  --navy-line: #2a4470;
  --accent: #2456f5;
  --btn: #3366ff; /* botões: azul mais claro (contraste 4,7:1 com branco) */
  --orange: #ff8a3d; /* títulos sobre fundo escuro */
  --mint: #4fe3c1;
  --bg-soft: #f4f6fa;
  --line: #dde3ec;
  --text: #14213d;
  --text-2: #475569;
  --on-dark: #c9d4e5;

  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --maxw: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.88;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.on-dark :focus-visible {
  outline-color: var(--mint);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Barra de contactos ---------- */
.topbar {
  background: var(--navy);
  color: var(--on-dark);
  font-size: 14px;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: center;
}

.topbar a,
.topbar span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Navegação ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}

.brand img {
  display: block;
  height: 56px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-weight: 500;
  font-size: 16px;
}

.nav a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}

.nav .nav-cta {
  margin-left: 8px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-weight: 600;
}

/* ---------- Botões ---------- */
.btn {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--btn);
  color: #fff;
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-light {
  border-color: #5f7799;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

/* ---------- Secções ---------- */
.section {
  background: #fff;
}

.section.soft {
  background: var(--bg-soft);
}

.section .container {
  padding-top: 88px;
  padding-bottom: 88px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.on-dark .eyebrow {
  color: var(--orange);
}

.h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 760px;
}

.lead {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--text-2);
  max-width: 640px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark);
}

.site-footer .container {
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-cols > div {
  flex: 1 1 160px;
  min-width: 0;
}

.footer-cols > .footer-brand {
  flex: 2 1 280px;
}

.footer-brand .logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}

.footer-brand .logo span {
  color: var(--orange);
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 340px;
}

.footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .section .container {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .h2 {
    font-size: 32px;
  }
}

/* Livro de Reclamações: acesso visível e destacado no rodapé */
.lre {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  background: var(--navy-2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.lre p {
  margin: 0;
}

.lre-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: #a50000;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* Nota do custo da chamada na barra do topo */
.topbar .call-note {
  margin-left: 10px;
  font-size: 12px;
  color: #a9b8cf;
}
