/* Importar uma fonte profissional do Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* --- Reset e variáveis --- */
:root {
  --primary-color: #017f92; /* Azul profissional */
  --secondary-color: #143d4f; /* Cinza para texto */
  --accent-color: #e91e63; /* Um toque de cor (opcional) */
  --background-light: #f4f7f9;
  --background-dark: #2c3e50;
  --text-light: #fcfcfc;
  --text-dark: #333;
}

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

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background-light);
  overflow-x: hidden; /* Para evitar scroll horizontal */
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%; /* Padding fixo em % para mobile safe */
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* --- Títulos e Parágrafos --- */
h1,
h2,
h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}
h2 {
  color: var(--primary-color);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.3;
}
h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}
p {
  margin-bottom: 1rem;
}

/* --- Botões --- */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.primary-btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* --- Hero Section (Novo Estilo) --- */
.hero-fullscreen {
  position: relative;
  height: 100vh; /* Altura total da janela de visualização */
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../img/fundo-abstrato.jpg") no-repeat center center/cover;
  z-index: 1;
}

.hero-content-v2 {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  padding: 0 20px;
}

.hero-content-v2 h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content-v2 p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Botões com novo estilo */
.primary-btn-v2 {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-btn-v2:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Navegação inferior (Opcional, para replicar o design da imagem) */
.hero-bottom-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
  font-size: 1rem;
  color: #fff;
}

.nav-arrow {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.nav-arrow:hover {
  background: #fff;
  color: var(--primary-color);
}

/* --- Estilos das Seções --- */
section {
  padding: clamp(40px, 8vh, 100px) 0;
}

/* --- Cards de Serviços (Home) --- */
.services-overview {
  text-align: center;
}

.services-overview h2 {
  margin-bottom: 3rem;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-cards .card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px; /* Responsivo */
  text-align: left;
  transition: transform 0.3s ease;
}

.service-cards .card:hover {
  transform: translateY(-10px);
}

/* --- Páginas Estáticas (Sobre, Áreas, Contacto) --- */
.page-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Lista de valores (Sobre) */
.values ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.values li {
  background: white;
  padding: 1.5rem;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.values li:hover {
  transform: translateX(10px);
}

/* Lista de áreas (Áreas) */
.areas-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.area-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.area-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- Formulário de Contacto --- */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

/* --- Footer --- */
footer {
  background-color: #ffffff;
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
}

footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--primary-color);
}

/* --- Responsividade --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  section {
    padding: 60px 0;
  }
}

/* --- Header --- */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

/* Efeito de sublinhado animado para os links do menu */
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* --- Responsividade do Menu --- */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    text-align: left;
  }

  .logo {
    margin-bottom: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

.hero-fullscreen {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content-v2 {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.scroll-down-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-down-btn a {
  color: #fff;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

.info-section {
  padding: clamp(40px, 8vh, 80px) 0;
  background-color: #f9f9f9;
  text-align: center;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.info-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

.useful-links-section {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.useful-links-section a {
  text-decoration: none;
}

.useful-links-section h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  border-bottom: 1px dotted #ccc;
  display: inline-block;
  padding-bottom: 10px;
}

.useful-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  text-align: left;
}

.useful-links-grid {
  text-decoration: none;
}

.link-group {
  flex: 1 1 20%;
  min-width: 200px;
}

.link-group h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #005f73;
}

.link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-group ul li {
  margin-bottom: 5px;
}

.link-group ul li a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.link-group ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background-color: #ffffff;
  color: #000000;
  padding: 30px 0;
  text-align: center;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 15px;
}

.footer-policy-links {
  margin-bottom: 10px;
}

.footer-policy-links a {
  color: #000;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-policy-links a:hover {
  text-decoration: underline;
}

.developer {
  font-size: 0.8rem;
  margin-top: 10px;
  color: #000;
}

/* HERO */
.hero-sobre {
  background: url("assets/img/about-us.jpg") center/cover no-repeat;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  color: #fff;
  width: 100%;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.2rem;
}

/* QUEM SOMOS */
.quem-somos {
  padding: 80px 0;
  background: #fff;
}

.sobre-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.sobre-texto {
  flex: 1 1 50%;
}

.sobre-texto h2 {
  margin-bottom: 20px;
}

.sobre-texto p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.sobre-imagem {
  flex: 1 1 40%;
}

.sobre-imagem img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* VALORES */
.valores {
  background: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.valores h2 {
  margin-bottom: 40px;
}

.valores-blocos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.valor {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.valor img {
  height: 50px;
  margin-bottom: 15px;
}

/* CTA */
.cta-contato {
  background-color: #003049;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.cta-contato h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-contato p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.primary-btn {
  background-color: #f77f00;
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.primary-btn:hover {
  background-color: #e66e00;
}

/* Submenu base */
nav ul li.has-submenu {
  position: relative;
}

nav ul li.has-submenu > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Estilo do submenu */
nav ul li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 4px;
}

nav ul li .submenu li {
  display: block;
}

nav ul li .submenu li a {
  padding: 10px 15px;
  display: block;
  color: #003049;
  text-decoration: none;
  transition: background 0.2s;
}

nav ul li .submenu li a:hover {
  background-color: #f2f2f2;
}

/* Mostrar submenu ao passar o rato */
nav ul li.has-submenu:hover .submenu {
  display: block;
}
