:root {
    --accent: #d0b067;
    --accent-hover: #b89a52;
    --dark: #0b0b0b;
}

body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
}

/* Transições globais */
a,
.btn,
i,
.service-card,
.impact-card,
.about-values .card {
    transition: all .3s ease;
}

.text-qora {
    color: var(--accent) !important;
}

/* NAVBAR */
.navbar {
    transition: .3s;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.navbar-brand {
    color: var(--accent) !important;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--accent) !important;
}


/* SECTIONS */
.section {
    padding: 90px 0;
    position: relative;
}

/* HERO (CORRIGIDO PARA SAFARI/MOBILE) */
header.hero {
    height: 100vh;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    /* FIX: Uso de propriedades de fundo expandidas para compatibilidade */
    background-image: url('../img/home.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Garante que a imagem carrega no Mobile Safari */
}

header.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

header.hero .content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.btn-accent {
    background: var(--accent);
    color: #000;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    text-decoration: none;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

/* QUEM SOMOS (neutro) */
#sobre {
    background: #fff;
    color: #333;
}

.about-values .card {
    background: #fff;
    border: none;
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.about-values .card:hover {
    transform: translateY(-5px);
}

.about-values i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* SERVICES */
.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
    color: #fff;
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3));
}

.service-card .content {
  position: absolute;
  inset: 0; /* ocupa 100% do card */
  z-index: 2;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45); /* overlay translúcido em todo o card */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* texto desce para a base do card */
  border-radius: 12px; /* mantém o arredondamento */
}

.service-card i {
    font-size: 2rem;
    color: var(--accent);
}


.service-card .content h5 {
  color: var(--accent);
  margin-top: 10px;
  font-weight: 600;
}

.service-card .content p {
  color: #fff;
}

.service-card:hover img {
    transform: scale(1.2);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* PRESENÇA GLOBAL (CORRIGIDO PARA SAFARI/MOBILE) */
#presenca {
    color: #fff;
    /* FIX: Uso de propriedades de fundo expandidas para compatibilidade */
    background-image: url('../img/presensa_global.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Garante que a imagem carrega no Mobile Safari */
}

#presenca::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

#presenca .container {
    position: relative;
    z-index: 2;
}

#map {
    height: 420px;
    border-radius: 12px;
}

.city-item {
    background: rgba(255, 255, 255, .1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.leaflet-control-attribution {
  font-size: 10px; /* bem pequeno */
  color: rgba(255,255,255,0.4); /* quase transparente */
  background: transparent; /* remove fundo branco */
}
.leaflet-control-attribution a {
  color: rgba(255,255,255,0.4); /* links discretos também */
  text-decoration: none; /* sem sublinhado */
}


/* IMPACTO (neutro) */
#impacto {
    background: #fff;
}

.impact-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    text-align: center;
}

.impact-card i {
    font-size: 2rem;
    color: var(--accent);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* CONTACT (CORRIGIDO PARA SAFARI/MOBILE) */
#contactos {
    color: #fff;
    /* FIX: Uso de propriedades de fundo expandidas para compatibilidade */
    background-image: url('../img/contacto.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Garante que a imagem carrega no Mobile Safari */
}

#contactos::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
}

#contactos .container {
    position: relative;
    z-index: 2;
}

.contact-form {
    background: rgba(255, 255, 255, .08);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: auto;
    backdrop-filter: blur(6px);
}

.contact-form label {
    font-size: .85rem;
    color: #ddd;
    margin-bottom: 4px;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    border: none;
    padding: 12px;
    transition: all .3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}

footer {
    background: #0b0b0b;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: var(--accent);
    margin: 0 8px;
}

footer a:hover {
    color: var(--accent-hover);
}

/* REAPLICAR EFEITO PARALLAX APENAS NO DESKTOP */
/* Esta media query reativa o 'fixed' em ecrãs maiores para os navegadores compatíveis */
@media (min-width: 992px) {
    header.hero,
    #presenca,
    #contactos {
        background-attachment: fixed;
    }
}


/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  opacity: 0.95;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

/* Ajuste para mobile */
@media (max-width: 576px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
}
