/* ===== Asteróide Petréo — asteroidepetreo.pt ===== */

/* ===== Tipos de letra alojados no próprio site (sem Google Fonts — RGPD) ===== */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fontes/lato-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fontes/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fontes/lato-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fontes/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fontes/montserrat-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fontes/montserrat-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fontes/montserrat-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fontes/montserrat-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --preto: #1b1b1b;
  --marinho: #23395b;
  --verde: #25d366;
  --verde-escuro: #1eb757;
  --cinza-claro: #f5f4f2;
  --texto: #3a3a3a;
  --branco: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  line-height: 1.65;
  background: var(--branco);
}

h1, h2, h3 {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--preto);
  line-height: 1.25;
}

img { max-width: 100%; display: block; }

a { color: var(--marinho); }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ===== Cabeçalho ===== */
.topo {
  background: var(--branco);
  border-bottom: 1px solid #e8e6e2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.marca img { height: 62px; width: auto; }

.menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.menu a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--preto);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.menu a:hover { border-bottom-color: var(--verde); }
.menu a.ativo { border-bottom-color: var(--marinho); color: var(--marinho); }

.botao-menu {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--preto);
  cursor: pointer;
  line-height: 1;
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 6px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); opacity: 0.92; }

.btn-escuro { background: var(--preto); color: var(--branco); }
.btn-claro  { background: var(--branco); color: var(--preto); }
.btn-zap    { background: var(--verde); color: var(--branco); }

/* ===== Hero (V3: animação 3D por trás do texto) ===== */
.hero {
  position: relative;
  overflow: hidden;
  /* A fotografia fica como reserva: só se vê sem JavaScript/WebGL
     ou quando o visitante prefere movimento reduzido */
  background:
    linear-gradient(rgba(20, 20, 22, 0.78), rgba(20, 20, 22, 0.78)),
    url("imagens/capa.jpg") center/cover no-repeat;
  color: var(--branco);
  text-align: center;
  padding: 130px 0 150px;
}

.hero-fundo-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fundo-3d canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sombra suave por trás do texto para garantir a leitura sobre a cena 3D */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 42%,
    rgba(20, 20, 22, 0.55) 0%,
    rgba(20, 20, 22, 0.22) 55%,
    rgba(20, 20, 22, 0) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--branco);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero p {
  font-size: 19px;
  color: #e8e8e8;
  max-width: 720px;
  margin: 0 auto 34px;
}

.hero .botoes { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Secções ===== */
.secao { padding: 78px 0; }
.secao-cinza { background: var(--cinza-claro); }
.secao-escura { background: var(--preto); color: var(--branco); }
.secao-escura h2 { color: var(--branco); }

.titulo-secao {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.subtitulo-secao {
  text-align: center;
  color: var(--marinho);
  font-weight: 700;
  margin-bottom: 40px;
}

/* ===== Faixa de confiança ===== */
.confianca { padding: 22px 0; }

.confianca ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.confianca li {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--preto);
}

.confianca li::before {
  content: "✔";
  color: var(--verde);
  margin-right: 8px;
}

/* ===== Quem somos ===== */
.sobre {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: center;
}

.sobre img { border-radius: 10px; }

.sobre h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 16px; }

.sobre .assinatura {
  margin-top: 18px;
  font-style: italic;
  color: var(--marinho);
  font-weight: 700;
}

/* ===== Cartões ===== */
.grade {
  display: grid;
  gap: 24px;
}

.grade-3 { grid-template-columns: repeat(3, 1fr); }
.grade-2 { grid-template-columns: repeat(2, 1fr); }

.cartao {
  background: var(--branco);
  border: 1px solid #e8e6e2;
  border-top: 4px solid var(--marinho);
  border-radius: 8px;
  padding: 28px 24px;
}

.cartao h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--marinho);
  margin-bottom: 10px;
}

.cartao p { font-size: 15.5px; }

.centro { text-align: center; margin-top: 38px; }

/* ===== Como trabalhamos ===== */
.passo { display: flex; gap: 16px; align-items: flex-start; }

.passo .numero {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--marinho);
  color: var(--branco);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passo h3 { font-size: 17px; margin-bottom: 6px; }
.passo p { font-size: 15px; }

/* ===== Depoimentos ===== */
.depoimento {
  background: var(--branco);
  border: 1px solid #e8e6e2;
  border-radius: 8px;
  padding: 26px 24px;
}

.depoimento .estrelas { color: #f5a623; letter-spacing: 3px; margin-bottom: 10px; }

.depoimento blockquote { font-size: 15.5px; font-style: italic; }

.depoimento .autor {
  margin-top: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--preto);
}

.depoimento .detalhe { font-size: 13px; color: #777; font-weight: 400; }

/* ===== CTA final ===== */
.cta-final { text-align: center; }

.cta-final h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 12px; }
.cta-final p { color: #e8e8e8; margin-bottom: 30px; }
.cta-final .botoes { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Portefólio ===== */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.galeria figure { margin: 0; }

.galeria a { display: block; overflow: hidden; border-radius: 8px; }

.galeria img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.galeria a:hover img { transform: scale(1.04); }

.galeria figcaption { font-size: 14px; color: #666; padding: 10px 4px 0; }

/* ===== Contactos ===== */
.contactos-lista {
  list-style: none;
  max-width: 440px;
  margin: 34px auto 0;
}

.contactos-lista li { margin-bottom: 16px; text-align: center; }

.contactos-lista a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--marinho);
  text-decoration: none;
}

.contactos-lista a:hover { text-decoration: underline; }

.contactos-lista .rotulo {
  display: block;
  font-size: 13px;
  color: #888;
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

.destaque-zap { text-align: center; margin-top: 30px; }

.btn-grande { font-size: 18px; padding: 18px 40px; }

/* ===== Rodapé ===== */
.rodape {
  background: var(--preto);
  color: #cfcfcf;
  padding: 46px 0 30px;
  font-size: 14.5px;
}

.rodape-grelha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.rodape h3 {
  color: var(--branco);
  font-size: 16px;
  margin-bottom: 12px;
}

.rodape a { color: #cfcfcf; text-decoration: none; }
.rodape a:hover { color: var(--verde); }

.rodape ul { list-style: none; }
.rodape li { margin-bottom: 8px; }

.rodape-legal {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

.rodape-legal a { color: #cfcfcf; text-decoration: underline; }

.rodape-legal p { margin-top: 8px; }

.rodape .creditos {
  text-align: center;
  font-size: 13px;
  color: #999;
}

/* ===== Botão flutuante de WhatsApp ===== */
.zap-flutuante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 200;
  transition: transform 0.15s ease;
}

.zap-flutuante:hover { transform: scale(1.08); background: var(--verde-escuro); }

.zap-flutuante svg { width: 32px; height: 32px; fill: var(--branco); }

/* ===== Página interna: topo ===== */
.pagina-topo { padding: 64px 0 10px; text-align: center; }

.pagina-topo h1 { font-size: clamp(30px, 4.4vw, 40px); margin-bottom: 14px; }

.pagina-topo p { max-width: 700px; margin: 0 auto; font-size: 18px; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .grade-3 { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .botao-menu { display: block; }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e8e6e2;
    padding: 10px 0;
  }

  .menu.aberto { display: flex; }

  .menu li { text-align: center; }

  .menu a { display: block; padding: 13px 0; border-bottom: none; }
}

@media (max-width: 720px) {
  .hero { padding: 80px 0; }
  .secao { padding: 56px 0; }
  .sobre { grid-template-columns: 1fr; gap: 30px; }
  .sobre img { max-width: 320px; margin: 0 auto; }
  .grade-3, .grade-2 { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr; }
  .rodape-grelha { grid-template-columns: 1fr; text-align: center; }
  .confianca ul { gap: 12px; flex-direction: column; align-items: center; }
}

/* ===== Prints das avaliações (Zaask) ===== */
.prints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

.prints a {
  display: block;
  border: 1px solid #e8e6e2;
  border-radius: 12px;
  overflow: hidden;
  background: var(--branco);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease;
}

.prints a:hover { transform: translateY(-3px); }

.prints img { width: 100%; display: block; }

.nota-prints {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .prints { grid-template-columns: 1fr; max-width: 400px; }
}

/* ===== Página de privacidade ===== */
.texto-legal { max-width: 780px; }

.texto-legal h2 {
  font-size: 22px;
  margin: 34px 0 12px;
}

.texto-legal p { margin-bottom: 14px; }

.texto-legal ul { margin: 0 0 14px 22px; }

.texto-legal li { margin-bottom: 8px; }

/* ===== Barra de aviso de cookies/privacidade ===== */
.aviso-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--preto);
  color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 20px;
  font-size: 14.5px;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
}

.aviso-cookies p { margin: 0; }

.aviso-cookies a { color: var(--verde); }

.aviso-cookies-botoes {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.aviso-cookies button {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  padding: 9px 22px;
  cursor: pointer;
}

.aviso-cookies .botao-aceitar {
  color: var(--preto);
  background: var(--branco);
  border: none;
}

.aviso-cookies .botao-aceitar:hover { background: var(--verde); color: var(--branco); }

.aviso-cookies .botao-recusar {
  color: #e8e8e8;
  background: transparent;
  border: 1px solid #6a6a6a;
}

.aviso-cookies .botao-recusar:hover { border-color: #e8e8e8; color: var(--branco); }

@media (max-width: 720px) {
  .aviso-cookies { flex-direction: column; text-align: center; padding-bottom: 16px; }
}
