:root{
  /* Baseado no teu logo (azul/noite) */
  --primary: #1F325D;       /* azul principal */
  --primary-dark: #0E143A;  /* azul bem escuro */
  --muted: #5F657E;         /* azul-cinza para texto secundário */
  --bg: #ffffff;
  --bg-soft: #EEF1F7;       /* fundo suave */

  --radius: 18px;
  --shadow: 0 18px 40px rgba(0,0,0,0.18);
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #17141f;
  background: var(--bg);
  line-height: 1.55;
}

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

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60,49,117,0.12);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name{
  font-weight: 850;
  letter-spacing: 0.3px;
  color: var(--primary-dark);
  line-height: 1.05;
}

.brand-sub{
  font-size: 0.92rem;
  color: var(--muted);
}

.nav{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 12px;
}

.nav a:hover{
  background: rgba(60,49,117,0.08);
}

/* BUTTONS */
.btn{
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
}

.btn:hover{
  filter: brightness(0.96);
}

.btn-small{
  padding: 9px 12px;
  border-radius: 12px;
}

.btn-ghost{
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.55);
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.12);
}

/* HERO */
.hero{
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: flex-start;
  padding: 350px 0 150px;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg"); /* <-- confirma o nome do ficheiro */
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(14, 20, 58, 0.82),   /* --primary-dark */
    rgba(31, 50, 93, 0.62)    /* --primary */
  );
}

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

.hero-card{
  width: min(980px, 100%);   /* mais largo */
  margin: 0 auto;            /* centrado */
  padding: 18px 22px;        /* menos alto (menos padding vertical) */
  border-radius: var(--radius);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-card h1{
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}

.hero-lead{
  margin: 10px 0 10px;
  color: rgba(255,255,255,0.92);
}

.hero-list{
  margin: 0;
  padding-left: 18px;
}

.hero-list li{
  margin: 8px 0;
  color: rgba(255,255,255,0.92);
}

.hero-actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* SECTIONS */
.section{
  padding: 56px 0;
}

.section-alt{
  background: rgba(218,216,225,0.35);
}

.section h2{
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 1.6rem;
}

/* FOOTER */
.site-footer{
  border-top: 1px solid rgba(60,49,117,0.12);
  padding: 18px 0;
  color: var(--muted);
}

/* MOBILE */
@media (max-width: 820px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .nav{
    justify-content: flex-start;
  }

  .hero{
    min-height: auto;
  }
}

.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card{
  background: #fff;
  border: 1px solid rgba(14, 20, 58, 0.12);
  border-radius: 16px;
  padding: 16px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.card h3{
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

@media (max-width: 900px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .cards{ grid-template-columns: 1fr; }
}

.team-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.team-card{
  background: #fff;
  border: 1px solid rgba(14, 20, 58, 0.12);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.team-head h3{
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 1.15rem;
}

.team-role{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.team-meta{
  margin: 10px 0 0;
  color: #17141f;
}

.team-card h4{
  margin: 16px 0 8px;
  color: var(--primary-dark);
  font-size: 1.02rem;
}

.team-card ul{
  margin: 0;
  padding-left: 18px;
}

.team-card li{
  margin: 6px 0;
}

.pill-list{
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill-list li{
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 50, 93, 0.10);
  border: 1px solid rgba(31, 50, 93, 0.18);
  color: var(--primary-dark);
  font-weight: 650;
}

@media (max-width: 900px){
  .team-grid{ grid-template-columns: 1fr; }
}

.table-wrap{
  margin-top: 16px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(14, 20, 58, 0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.clients-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px; /* permite scroll horizontal em ecrãs pequenos */
}

.clients-table th,
.clients-table td{
  text-align: left;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(14, 20, 58, 0.10);
  vertical-align: top;
}

.clients-table th{
  color: var(--primary-dark);
  background: rgba(238, 241, 247, 0.85);
  font-weight: 800;
}

.clients-table tr:last-child td{
  border-bottom: none;
}

/* Mobile: transforma a tabela em “cards” */
@media (max-width: 780px){
  .clients-table{
    min-width: 0;
  }

  .clients-table thead{
    display: none;
  }

  .clients-table,
  .clients-table tbody,
  .clients-table tr,
  .clients-table td{
    display: block;
    width: 100%;
  }

  .clients-table tr{
    padding: 10px 0;
    border-bottom: 1px solid rgba(14, 20, 58, 0.10);
  }

  .clients-table tr:last-child{
    border-bottom: none;
  }

  .clients-table td{
    border: none;
    padding: 10px 14px;
  }

  .clients-table td::before{
    content: attr(data-label);
    display: block;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
  }
}

.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.contact-card{
  background: #fff;
  border: 1px solid rgba(14, 20, 58, 0.12);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.contact-card h3{
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.contact-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contact-list li{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
}

.contact-list .label{
  color: var(--muted);
  font-weight: 750;
}

.contact-list .value a{
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.contact-list .value a:hover{
  text-decoration: underline;
}

.contact-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* botão “ghost” escuro (para usar em fundo claro) */
.btn-ghost-dark{
  background: transparent;
  color: var(--primary) !important;
  border-color: rgba(31, 50, 93, 0.35);
}

.btn-ghost-dark:hover{
  background: rgba(31, 50, 93, 0.08);
}

.contact-note{
  margin: 0 0 14px;
  color: var(--muted);
}

.contact-form{
  display: grid;
  gap: 12px;
}

.contact-form label{
  display: grid;
  gap: 6px;
  font-weight: 750;
  color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea{
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(14, 20, 58, 0.18);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(31, 50, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 50, 93, 0.10);
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-list li{ grid-template-columns: 1fr; }
}

.map-wrap{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(14, 20, 58, 0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.map-wrap iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 560px){
  .hero{
    padding: 110px 0 28px; /* menos altura total */
  }

  .hero-card{
    width: 100%;
    padding: 16px;
  }

  .hero-card h1{
    font-size: 1.5rem;
  }

  .hero-list{
    font-size: 0.98rem;
  }
}

@media (max-width: 560px){
  .nav a{
    padding: 7px 9px;
    font-size: 0.95rem;
  }
}

@media (max-width: 560px){
  .map-wrap iframe{
    height: 280px;
  }
}