
/* =========================
   HERO BASE (global)
========================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero {
  height: 80vh;
  min-height: 420px;
}

.hero-medium {
  height: 60vh;
  min-height: 320px;
}

.hero-small {
  height: 45vh;
  min-height: 260px;
}

/* -------------------------
   RESET BÁSICO
------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------------
   VARIÁVEIS DE COR
------------------------- */
:root {
  --preto: #0e0e0e;
  --cinzento-escuro: #1a1a1a;
  --cinzento-medio: #2a2a2a;
  --cinzento-claro: #b5b5b5;
  --branco: #ffffff;
  --laranja: #ff7a00;
}

/* -------------------------
   BASE
------------------------- */
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background-color: var(--preto);
  color: var(--cinzento-claro);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* -------------------------
   HERO COM IMAGEM
------------------------- */



.hero-home::before {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.2) 100%
  );
}


.hero-home {
  background-image: url("../img/hero/hero-home.jpg");
}






/* Overlay escuro técnico */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero h1 {
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.hero p {
  color: rgba(255,255,255,0.9);
}


/* -------------------------
   CONTEXTO
------------------------- */
.contexto {
  background-color: var(--preto);
}

.contexto p {
  max-width: 800px;
}

/* -------------------------
   ESCALA OPERACIONAL
------------------------- */
.escala {
  background-color: var(--cinzento-escuro);
}

.escala ul {
  list-style: none;
}

.escala li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cinzento-medio);
}

/* -------------------------
   TECNOLOGIA
------------------------- */
.tecnologia {
  background-color: var(--preto);
}

.tecnologia p {
  max-width: 700px;
}

/* -------------------------
   ÁREAS DE ATUAÇÃO
------------------------- */
.areas {
  background-color: var(--cinzento-escuro);
}

.areas .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.area h2 {
  color: var(--branco);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--laranja);
  padding-left: 0.5rem;
}

.area p {
  font-size: 0.95rem;
}

/* -------------------------
   BACKSTAGE
------------------------- */
.backstage {
  background-color: var(--preto);
}

.backstage p {
  max-width: 700px;
  font-style: italic;
}

/* -------------------------
   CONTACTO
------------------------- */
.contacto {
  background-color: var(--cinzento-escuro);
  border-top: 1px solid var(--cinzento-medio);
}

.contacto p {
  margin-bottom: 0.5rem;
}

.contacto strong {
  color: var(--branco);
}

/* -------------------------
   RESPONSIVO
------------------------- */
@media (min-width: 768px) {

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

}

/* -------------------------
   LOGO
------------------------- */
.logo {
  max-width: 320px;
  margin-bottom: 2rem;
}

/* -------------------------
   HERO AJUSTES
------------------------- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* Mobile-first: logo não demasiado grande */
@media (max-width: 767px) {
  .logo {
    max-width: 240px;
  }
}

/* -------------------------
   FOR MOBILE
------------------------- */

@media (max-width: 767px) {
  
  .hero p {
    font-size: 1rem;
  }
}

/* -------------------------
   BACKSTAGE
------------------------- */

.backstage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.backstage-text p {
  max-width: 600px;
  font-size: 1rem;
}

.backstage-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.backstage-images img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%);
}

@media (min-width: 900px) {
  .backstage-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* -------------------------
   MARCAS & TECNOLOGIA
------------------------- */
.marcas {
  background-color: var(--cinzento-escuro);
}

.marcas-intro {
  max-width: 700px;
  margin-bottom: 2rem;
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.marcas-grid span {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cinzento-medio);
  font-size: 0.95rem;
  color: var(--branco);
}

@media (min-width: 768px) {
  .marcas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------
   HERO PEQUENO (GALERIA)
------------------------- */







/* -------------------------
   GALERIA — VERSÃO FINAL ESTÁVEL
------------------------- */
.galeria {
  background-color: var(--preto);
  padding: 3rem 1.5rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.galeria-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--cinzento-escuro);
  border-radius: 4px;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.galeria-item img:hover {
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 1024px) {
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* -------------------------
   MENU / NAVEGAÇÃO
------------------------- */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(14, 14, 14, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-logo img {
  max-height: 34px;
  transform: none;
  transform-origin: left center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a:hover {
  color: var(--laranja);
}

body {
  padding-top: 70px;
}



/* -------------------------
   FOOTER
------------------------- */

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer p {
  font-size: 0.85rem;
  color: #bbb;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------
   MENU - LINK ATIVO
------------------------- */
.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ff7a00; /* laranja Audiomatrix */
}

.nav-links a.active {
  color: #ff7a00;
}


/* -------------------------
   MENU - BOTÃO MOBILE
------------------------- */
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--laranja);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* -------------------------
   MENU - MOBILE
------------------------- */
@media (max-width: 768px) {

  .nav-content {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lang-switch {
    margin-left: auto;
    font-size: 0.8rem;
  }

  /* menu fechado por defeito em mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem;
    background: rgba(14, 14, 14, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
  }

  .main-nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,0.06);
  }

  .nav-links a.active {
    color: #ff7a00;
    font-weight: 500;
  }
}

/* -------------------------
   copyright
------------------------- */
.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #777;
  background: #1a1a1a;
}


/* -------------------------
   lang
------------------------- */

.lang-switch {
  font-size: 0.75rem;
  color: #aaa;
}

.lang-switch a {
  color: #aaa;
  text-decoration: none;
}

.lang-switch a:hover {
  color: #ff7a00;
}

.lang-switch .active {
  color: #fff;
  font-weight: 500;
}

/* -------------------------
   moldura fotos
------------------------- */

.galeria-item {
  display: flex;
  flex-direction: column;
}

/* Caixa só da imagem */
.galeria-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #111;
  padding: 10px;
  border-radius: 6px;
}

.galeria-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px; 
  display: block;
  transition: transform 0.3s ease;
}

.galeria-image img:hover {
  transform: scale(1.05);
}

/* Caixa de texto */
.galeria-info {
  margin-top: 0.6rem;
  padding: 0.8rem 0.9rem;
  background-color: #151515;
  border-radius: 10px;
  border: 1px solid #222;
}

.galeria-info strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.galeria-info span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #aaa;
}




/*CONTACTOS*/

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;              /* antes 2rem */
  text-align: center;
}

.contact-card {
  background: #0f0f0f;
  padding: 2.5rem 2rem;
  min-height: 220px;
  border: 1px solid rgba(255,255,255,0.08);
}


.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

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

.hero-contactos {
  height: 70vh;
  background:
    linear-gradient(to right, rgba(0,0,0,0.55), rgba(0,0,0,0)),
    url("../img/contactos/contactos-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}

/* -------------------------
   FOOTER PRINCIPAL
------------------------- */
.footer-main {
  background: #0b0b0b;
  border-top: 1px solid #1f1f1f;
  padding-top: 3rem;
}


.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  color: #fff;
}

.footer-col p {
  font-size: 0.85rem;
  color: #aaa;
  max-width: 260px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ff7a00;
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #666;
  background: #080808;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}




/* -------------------------
   CTA FINAL
------------------------- */
.cta-final {
  position: relative;
  background: url("../img/cta/cta-audiomatrix.jpg") center/cover no-repeat;
  padding: 10rem 0;   /* antes 7rem */
  color: #fff;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.2)
  );
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  text-align: left;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.2;
}

.cta-content p {
  margin-bottom: 1.5rem;
  color: #ccc;
}

.cta-btn {
  border-radius: 4px;
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: #E9550D;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
  box-shadow: 0 8px 20px rgba(255,122,0,0.25);
}

.cta-btn:hover {
  background: #e96d00;
}



/* ===== CORREÇÃO DEFINITIVA DO IDIOMA NO MENU ===== */

/* por defeito, esconder versão mobile */
.nav-lang-mobile {
  display: none !important;
}

/* comportamento mobile */
@media (max-width: 768px) {

  /* manter o idioma visível ao lado do menu */
  .lang-switch {
    display: block !important;
    margin-left: auto;
    font-size: 0.8rem;
  }

  /* nunca mostrar o idioma dentro do menu */
  .nav-lang-mobile {
    display: none !important;
  }
}

/* ===== COR BOTÃO POLITICA DE PRIVACIDADE ===== */
.footer-bottom a {
  color: inherit;        /* usa a mesma cor do texto */
  text-decoration: none; /* remove sublinhado */
}

.footer-bottom a:hover {
  text-decoration: underline; /* opcional: aparece só ao passar rato */
}

/* ===== REMOVE BORDA DOS CARDS ===== */
@media (max-width:768px){

.company-card,
.group-card,
.text-card{
  border:none !important;
  margin-left:-1.5rem;
  margin-right:-1.5rem;
}

}

