@font-face {
  font-family: 'Caracolina';
  src: url('../fonts/Caracolina-Regular.otf');
}

/* header */
header {
  background: #ffffff;
  box-shadow: 0px 40px 44px 7px rgba(0, 0, 0, 0.40);
  border-radius: 0px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-onda {
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 49%;
  transform: translateX(-50%); /* centra horizontalmente */
  width: 60%;  /* ajusta ao teu gosto */
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Garante que o conteúdo fica à frente */
.header-inner,
.menu {
  position: relative;
  z-index: 1;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px 0 30px; /* esquerda: 16px, direita: 48px */
  height: 140px;
}

/* Hamburger (esquerda) */
.hamburger {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: fit-content; /* ← encolhe para o tamanho da imagem */
}

.hamburger img {
  width: 160px; /* ajusta ao teu gosto */
  height: center;
  object-fit: contain;
  cursor: pointer;
  padding: 0px 0px 0px 25px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
}

/* Logotipo (centro) */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 120px;
  width: auto;
}

/* Texto (direita) */
.brand-text .slogan {
  font-family: 'Caracolina';
}

.brand-text {
  display: flex;
  justify-content: flex-end;
}

.brand-text div {
  text-align: right;
  line-height: 1.2;
}

.slogan-img {
  height: 30px;   /* ajusta a altura ao teu gosto */
  width: auto;
  display: block;
  margin-left: auto; /* mantém alinhado à direita */
  padding: 0px 50px 0px 0px;
  position: relative;
  top: 4px;
}

.slogan-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px; /* espaço entre o slogan e o ícone */
}

.slogan-icone {
  width: 55px;
  height: auto;
  object-fit: contain;
  position: relative;
  top: 15px; /* vai aumentando ao teu gosto */
}

.brand-text .slogan {
  font-size: 15px;
  color: #000000;
  letter-spacing: 0.08em;
  padding: 0px 10px 0px 0px;
  position: relative;
  top: 10px;
}

.menu {
  position: absolute;
  top: 100px; /* altura do header */
  left: 16px; /* alinha com o hamburger */
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  width: 180px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 4px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 99;
}

.menu.aberto {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  font-family: 'Caracolina'; /* a tua fonte */
  font-weight: bolder;
  font-size: 15px;
  transition: background 0.2s;
}

.menu a:hover {
  background: #f5f5f5;
}

.menu a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
/* fim de header */

/* ══════════════════════════════════════════
   Responsivo (telemóvel)
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
  .header-inner {
    height: 90px;
    padding: 0 16px;
  }

  .hamburger img {
    width: 90px;
    padding-left: 4px;
  }

  .logo img {
    height: 64px;
  }

  .brand-text .slogan {
    font-size: 11px;
    top: 4px;
    padding-right: 0;
  }

  .slogan-img {
    height: 20px;
    padding-right: 0;
  }

  .header-bg {
    width: 100%;
  }

  .menu {
    top: 60px;
    left: 12px;
    width: 160px;
  }
}

@media (max-width: 400px) {
  .brand-text .slogan-row { display: none; }
}
