/* ===== Variáveis globais ===== */
:root {
  --color-navy: #0b2745;
  --color-navy-dark: #071a30;
  --color-teal: #16b8a6;
  --color-teal-dark: #0f9689;
  --color-ink: #172436;
  --color-text-muted: #52657a;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f7f8;
  --color-border: #e2e8ec;
  --max-width: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 39, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 39, 69, 0.08);
  --shadow-lg: 0 20px 45px rgba(11, 39, 69, 0.14);
}

/* ===== Reset básico ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section[id] {
  scroll-margin-top: 76px;
}

/* ===== Cabeçalho ===== */
.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo:hover {
  text-decoration: none;
}
.logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.logo-text em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.75;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #dce6ee;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ===== Eyebrow (rótulo de secção) ===== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin: 0 0 10px;
}
.eyebrow-light {
  color: #7fe8db;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-dark) 65%, #061424 100%);
  color: #fff;
  padding: 128px 20px 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(22, 184, 166, 0.35) 0, transparent 3px),
    radial-gradient(circle at 34% 62%, rgba(22, 184, 166, 0.3) 0, transparent 3px),
    radial-gradient(circle at 52% 22%, rgba(22, 184, 166, 0.28) 0, transparent 3px),
    radial-gradient(circle at 68% 55%, rgba(22, 184, 166, 0.32) 0, transparent 3px),
    radial-gradient(circle at 82% 30%, rgba(22, 184, 166, 0.25) 0, transparent 3px),
    radial-gradient(circle at 90% 70%, rgba(22, 184, 166, 0.22) 0, transparent 3px);
  background-size: 100% 100%;
  opacity: 0.9;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 15%, rgba(22, 184, 166, 0.16), transparent 55%);
}
.hero-inner {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-visual {
  position: relative;
}
.hero-visual-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-size: 1.15rem;
  margin-bottom: 34px;
  color: #cfdbe6;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-badges li {
  font-size: 0.84rem;
  color: #a9bccb;
  position: relative;
  padding-left: 16px;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  background: var(--color-teal);
  color: #05221d;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  background: #24d0bc;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(22, 184, 166, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-bg-alt);
  transform: none;
  box-shadow: none;
}
.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Secções gerais ===== */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 18px;
}
.section-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 0 18px;
}

/* ===== Eixos de atuação (Sobre) ===== */
.axis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.axis-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.axis-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.axis-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(22, 184, 166, 0.12);
  color: var(--color-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.axis-icon svg {
  width: 24px;
  height: 24px;
}
.axis-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.axis-card h3 span {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.85em;
}
.axis-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== Galeria do escritório (Sobre) ===== */
.office-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
.office-gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.office-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.office-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(7, 26, 48, 0.85), transparent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===== Cards de projetos ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.project-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.projetos-visual {
  margin: 40px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.projetos-visual img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.project-card {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--color-teal);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.project-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(22, 184, 166, 0.12);
  color: var(--color-teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.project-card > p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.metric-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
}
.metric-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-list strong {
  color: var(--color-navy);
  font-size: 1.02rem;
  font-weight: 700;
}
.metric-list span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.tag-list span {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 999px;
}
.tag-list-sm span {
  background: #fff;
}

/* ===== Equipa ===== */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.person-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.person-card-lead {
  align-items: flex-start;
}
.avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-navy));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.avatar-sm {
  width: 46px;
  height: 46px;
  font-size: 0.92rem;
}
.person-info h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.person-info h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.person-role {
  color: var(--color-teal-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.person-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.team-axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 56px;
}
.team-axis-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.team-axis-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 0 0 20px;
}
.team-members {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Contactos ===== */
.contact-panel {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-list li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-list strong {
  color: var(--color-navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-list a {
  color: var(--color-ink);
  font-weight: 500;
}
.contact-list span {
  color: var(--color-ink);
}
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(22, 184, 166, 0.12);
  color: var(--color-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
}
.contact-cta-group {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-cta {
  text-align: center;
}

/* ===== Rodapé ===== */
.site-footer {
  background: var(--color-navy-dark);
  color: #9fb3c4;
  padding: 48px 0 20px;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.footer-brand p {
  margin: 0;
  line-height: 1.5;
  color: #cfdbe6;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.footer-nav a {
  color: #9fb3c4;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a {
  color: #9fb3c4;
}

/* ===== Conteúdo legal ===== */
.legal-content h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
}
.legal-content h2 {
  margin-top: 32px;
  font-size: 1.25rem;
  color: var(--color-navy);
}
.legal-content ul {
  color: var(--color-text-muted);
}
.legal-content p {
  color: var(--color-text-muted);
}

/* ===== Banner de cookies ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-navy-dark);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner p {
  margin: 0;
  max-width: 700px;
  font-size: 0.88rem;
  color: #cfdbe6;
}
.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-visual {
    order: 2;
  }
}

@media (max-width: 640px) {
  .office-gallery {
    grid-template-columns: 1fr;
  }
  .projetos-visual img {
    height: 220px;
  }
}

@media (max-width: 860px) {
  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-cta-group {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .site-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav li:last-child {
    border-bottom: none;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hero {
    padding: 104px 20px 72px;
  }
  .metric-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
  }
}

/* Nav simples (ex.: página de Política de Privacidade) sem botão de menu —
   tem de ficar sempre visível, nunca escondida pela regra mobile acima. */
.site-nav.site-nav-static {
  display: flex !important;
  width: auto;
}
