/* ==========================================================
   Landing page — Equipa Onyx Investments (RE/MAX Majestic)
   Base "Onyx": mesmo layout, fundos, cores e letra dos iCards
   da equipa (Cristiana Moura, Diogo Porfírio, Tiago Carneiro).
   Páginas: index.html (landing) + equipa.html (membros).
   ----------------------------------------------------------
   Para mudar cores, editar só as variáveis em :root
   ========================================================== */

:root {
  --navy:        #1E345D;   /* barra de topo, rodapé, cartões */
  --navy-escuro: #232B45;   /* véu sobre o fundo de estrelas */
  --grafite:     #212428;   /* fundo das secções escuras */
  --grafite-2:   #23272B;   /* fim do gradiente dos cartões */
  --dourado:     #BC9D5A;   /* destaque (botões, ícones, links) */
  --dourado-lt:  #D4B979;
  --texto:       #FFFFFF;
  --texto-suave: #D2D2DF;
  --cinza:       #878E99;
  --fonte: "Finlandica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largura: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--fonte);
  background: var(--grafite);
  color: var(--texto);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--largura); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.estreito { max-width: 640px; }

/* ---------- 1. Barra de topo ---------- */
.topo {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.topo > .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.topo-logo img { height: 52px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 28px; font-size: 16px; }
.nav-desktop a:not(.btn) { color: var(--texto-suave); transition: color .2s; }
.nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current] { color: var(--dourado-lt); }
.nav-desktop .btn { width: auto; padding: 11px 20px; font-size: 15px; box-shadow: none; }

.menu-btn {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 6px;
}
.menu-btn span { display: block; height: 2px; background: var(--dourado-lt); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--navy); }
.menu.aberto { max-height: 360px; }
.menu ul { list-style: none; padding: 6px 0 14px; }
.menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 17px; }
.menu li svg { width: 18px; height: 18px; fill: var(--dourado); flex-shrink: 0; }
.menu .btn { box-shadow: none; padding: 14px 20px; margin-bottom: 18px; }

/* ---------- Botões ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 18px 24px;
  background: var(--dourado); border: 1px solid var(--dourado); border-radius: 6px;
  color: #fff; font-family: var(--fonte); font-size: 17px; font-weight: 600;
  box-shadow: 10px 10px 19px #1C1E22, -10px -10px 19px #262A2E;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--dourado-lt); border-color: var(--dourado-lt); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }
.btn--contorno { background: transparent; color: var(--dourado-lt); box-shadow: none; }
.btn--contorno:hover { color: #fff; }
.botoes { display: grid; gap: 14px; }

/* ---------- Títulos de secção ---------- */
.kicker { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--dourado); margin-bottom: 12px; }
.titulo { font-size: 34px; font-weight: 400; line-height: 1.2; margin-bottom: 18px; }
.intro { font-size: 17px; color: var(--texto-suave); max-width: 620px; }
.centro { text-align: center; }
.centro .intro { margin: 0 auto; }

/* ---------- 2. Hero (fundo de estrelas) ---------- */
.hero {
  position: relative; padding: 56px 0 60px; text-align: center;
  background: url("assets/fundo-estrelas.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--navy-escuro); opacity: .5; }
.hero .wrap { position: relative; }
.hero-logo {
  width: 230px; height: 230px; margin: 0 auto 36px;
  border-radius: 15px; overflow: hidden; background: #fff;
  border: 3px solid var(--dourado);
  box-shadow: 10px 10px 50px rgba(210,210,223,.55);
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: 39px; font-weight: 400; line-height: 1.2; margin-bottom: 14px; }
.hero h2 { font-size: 21px; font-weight: 400; color: var(--dourado); margin-bottom: 26px; }
.hero p { font-size: 17px; color: var(--texto-suave); margin-bottom: 14px; }
.hero p strong { color: #fff; }
.hero .botoes { margin-top: 30px; }

/* Faixa com as fotos da equipa no hero */
.rostos { display: flex; justify-content: center; margin-top: 34px; }
.rostos a {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--dourado); background: #fff; margin-left: -12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .2s;
}
.rostos a:first-child { margin-left: 0; }
.rostos a:hover { transform: translateY(-4px); z-index: 1; }
.rostos img { width: 100%; height: 100%; object-fit: cover; }
.rostos-legenda { font-size: 15px; color: var(--texto-suave); margin-top: 12px; }

/* ---------- 3. Atalhos (fundo moradia) ---------- */
.atalhos {
  position: relative; padding: 72px 0;
  background: url("assets/fundo-moradia.jpg") center / cover no-repeat;
}
.atalhos::before { content: ""; position: absolute; inset: 0; background: #0F0E0E; opacity: .8; }
.atalhos .wrap { position: relative; display: grid; gap: 44px; padding: 0 30px; }
.atalho { display: block; color: var(--dourado); }
.atalho svg { width: 40px; height: 40px; fill: none; stroke: var(--dourado); stroke-width: 1.6; margin-bottom: 18px; }
.atalho span { display: block; font-size: 21px; letter-spacing: .02em; line-height: 1.15; transition: color .2s; }
.atalho small { display: block; font-size: 16px; color: var(--texto-suave); margin-top: 8px; letter-spacing: 0; }
.atalho:hover span { color: var(--dourado-lt); }

/* ---------- 4. Equipa ---------- */
.equipa { padding: 80px 0 90px; }
.equipa .titulo + .intro { margin-bottom: 110px; }
.membros { display: grid; gap: 90px; }

.membro {
  position: relative; padding: 110px 22px 30px;
  border-radius: 10px; text-align: center;
  background: linear-gradient(145deg, var(--navy), var(--grafite-2));
  box-shadow: 10px 10px 19px #191B1F, -10px -10px 19px #23272B;
  display: flex; flex-direction: column;
}
.membro-foto {
  position: absolute; left: 50%; top: -70px; transform: translateX(-50%);
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--dourado); background: #fff;
  box-shadow: 6px 6px 30px rgba(210,210,223,.35);
}
.membro-foto img { width: 100%; height: 100%; object-fit: cover; }
.membro h3 { font-size: 23px; font-weight: 700; margin-bottom: 6px; }
.membro .cargo { font-size: 16px; color: var(--cinza); margin-bottom: 18px; }
.membro .bio { font-size: 16px; color: var(--texto-suave); margin-bottom: 22px; }
.membro .linha { margin: 0 16px 22px; }
.membro .botoes { margin-top: auto; gap: 12px; }
.membro .btn { padding: 15px 20px; font-size: 16px; box-shadow: none; }
.contactos-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }

.ver-todos { text-align: center; margin-top: 56px; }
.ver-todos .btn { display: inline-flex; width: auto; padding: 16px 30px; }

/* Redes / contactos em quadrados dourados */
.redes { display: flex; justify-content: center; gap: 14px; }
.redes a, .contactos-mini a {
  width: 48px; height: 48px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #C9AB66, #8E7640);
  box-shadow: 6px 6px 14px #16181C, -4px -4px 12px rgba(60,70,90,.35);
  transition: transform .15s, filter .2s;
}
.redes a:hover, .contactos-mini a:hover { filter: brightness(1.1); transform: translateY(-2px); }
.redes svg, .contactos-mini svg { width: 21px; height: 21px; fill: #F3EEE2; }

.linha { height: 1px; background: var(--dourado); opacity: .7; }

/* ---------- 5. Porquê a Onyx ---------- */
.valores { padding: 80px 0; background: var(--navy); }
.valores-lista { display: grid; gap: 34px; margin-top: 50px; }
.valor svg { width: 38px; height: 38px; fill: none; stroke: var(--dourado); stroke-width: 1.6; margin-bottom: 14px; }
.valor h3 { font-size: 20px; font-weight: 600; color: var(--dourado-lt); margin-bottom: 8px; }
.valor p { font-size: 16px; color: var(--texto-suave); }

/* ---------- 6. Contacto ---------- */
.contacto { padding: 150px 0 90px; }
.cartao {
  position: relative; padding: 120px 20px 34px; border-radius: 10px; text-align: center;
  background: linear-gradient(145deg, var(--navy), var(--grafite-2));
  box-shadow: 10px 10px 19px #191B1F, -10px -10px 19px #23272B;
}
.cartao-logo {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  width: 200px; height: 200px; border-radius: 15px; overflow: hidden; background: #fff;
}
.cartao-logo img { width: 100%; height: 100%; object-fit: cover; }
.cartao h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.cartao .cargo { font-size: 17px; color: var(--cinza); margin-bottom: 26px; }
.cartao .linha { margin: 0 16px 30px; }
.cartao .btn { margin-top: 30px; }
.dado { margin-bottom: 26px; }
.dado:last-of-type { margin-bottom: 0; }
.dado p { font-size: 17px; margin-bottom: 4px; }
.dado a { font-size: 17px; color: var(--dourado); word-break: break-word; }

/* ---------- Página "A Equipa": cabeçalho ---------- */
.cabecalho {
  position: relative; padding: 64px 0 150px; text-align: center;
  background: url("assets/fundo-estrelas.jpg") center / cover no-repeat;
}
.cabecalho::before { content: ""; position: absolute; inset: 0; background: var(--navy-escuro); opacity: .5; }
.cabecalho .wrap { position: relative; }
.cabecalho .titulo { font-size: 40px; }
.equipa--pagina { padding-top: 0; margin-top: -40px; position: relative; }

/* ---------- 7. Rodapé ---------- */
.rodape { background: var(--navy); padding: 36px 0 40px; text-align: center; }
.rodape p { font-size: 16px; color: var(--dourado); line-height: 1.5; }
.rodape a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Ecrãs maiores ---------- */
@media (min-width: 760px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .hero { padding: 84px 0 80px; }
  .hero-logo { width: 260px; height: 260px; }
  .hero h1 { font-size: 50px; }
  .hero .botoes { grid-template-columns: 1fr 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .titulo { font-size: 42px; }
  .atalhos .wrap { grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0 32px; }
  .valores-lista { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .membros { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu-btn, .menu { display: none; }
}

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
