/* ==========================================================================
   1. Cookie Consent — variáveis (--cc-*) e overrides visuais
   Biblioteca: vanilla-cookieconsent v3.1.0 (vendor/cookieconsent/cookieconsent.min.css)
   ========================================================================== */
:root {
  --cc-font-family: "Poppins", Arial, sans-serif;
  --cc-bg: #ffffff;
  --cc-primary-color: #212529;
  --cc-secondary-color: #5e6266;
  --cc-btn-primary-bg: #0088cc;
  --cc-btn-primary-color: #ffffff;
  --cc-btn-primary-border-color: var(--cc-btn-primary-bg);
  --cc-btn-primary-hover-bg: #006699;
  --cc-btn-primary-hover-color: #ffffff;
  --cc-btn-primary-hover-border-color: var(--cc-btn-primary-hover-bg);
  --cc-btn-secondary-bg: #eff1f3;
  --cc-btn-secondary-color: #212529;
  --cc-btn-secondary-border-color: #dfe3e6;
  --cc-btn-secondary-hover-bg: #dfe3e6;
  --cc-btn-secondary-hover-color: #212529;
  --cc-btn-secondary-hover-border-color: #dfe3e6;
  --cc-toggle-on-bg: #0088cc;
  --cc-toggle-off-bg: #b6bec4;
  --cc-link-color: #0088cc;
  --cc-modal-border-radius: 0.5rem;
  --cc-btn-border-radius: 0.4rem;
  --cc-overlay-bg: rgba(33, 37, 41, 0.65);
}

#cc-main .cm {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

#cc-main .cm__title,
#cc-main .pm__title {
  font-weight: 700;
}

/* ==========================================================================
   2. Utilitários globais
   ========================================================================== */

/* Compensa a altura do header fixo ao saltar para uma âncora (#id) */
[id] {
  scroll-margin-top: 100px;
}

/* ==========================================================================
   3. Componente: Cards (custom-card-style-1)
   ========================================================================== */
.custom-bg-color-light-1.custom-bg-color-light-1 {
  background-color: #eff1f3;
}

.custom-card-style-1 {
  border: 2px solid transparent;
  transition: ease border 300ms;
}

.custom-card-style-1 .custom-card-style-1-title,
.custom-card-style-1 {
  transition: ease color 300ms;
}

.custom-card-style-1 .custom-card-style-1-image-wrapper img {
  transform: translate3d(5px, -5px, 0);
  transition: ease transform 300ms;
}

/* Seletor repetido (.classe.classe) de propósito: técnica comum em temas
   comerciais para ganhar especificidade sem usar !important */
.custom-card-style-1:hover {
  color: var(--secondary);
  border-color: var(--primary);
}

.custom-card-style-1:hover .custom-card-style-1-title.custom-card-style-1-title {
  color: var(--primary);
}

.custom-card-style-1:hover .custom-card-style-1-image-wrapper img {
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   4. Componente: Botão flutuante WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
  color: #fff;
  font-size: 30px;
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float i {
    font-size: 26px;
  }

  .contact-form {
    padding-bottom: 76px;
  }

  /* Esconde o botão flutuante quando o teclado abre com o formulário em foco */
  body:has(.contact-form:focus-within) .whatsapp-float {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
  }
}

/* ==========================================================================
   5. Secção: Hero / introdução da homepage
   ========================================================================== */
.home-intro {
  font-size: 1rem;
  margin-top: 12px;
}

/* :not(.btn) evita sublinhar os botões "Contacte-nos"/"WhatsApp", que também
   são <a> dentro de .home-intro e herdavam o sublinhado por especificidade */
.home-intro a:not(.btn) {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.home-intro a:not(.btn):hover {
  opacity: 0.9;
}

/* ==========================================================================
   6. Secção: Inscrições
   ========================================================================== */
#inscricoes .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   7. Honeypot anti-spam (contactos.html e recrutamento.html)
   Esconde o campo de utilizadores reais sem usar display:none, que alguns
   bots já sabem detetar e ignorar.
   ========================================================================== */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}
