/* Estilos do CTA */
.cta-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 900px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-text {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-right: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.cta-arrow {
  animation: pulseArrow 2s infinite ease-in-out;
}

.cta-arrow path {
  stroke: #B5921C;
  transition: stroke 0.3s ease;
}

.cta-link:hover .cta-arrow path {
  stroke: #000;
}

.cta-link:hover .cta-text {
  color: #B5921C;
}

/* Estilos do botão do menu */
@media only screen and (max-width: 991px) {
  #primary-menu-trigger {
    position: fixed;
    top: 12px; /* Já ajustado */
    right: 15px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #B5921C;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: sizePulse 4s infinite ease-in-out;
  }

  .menu-text {
    color: #fff;
    font-size: 14px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    position: absolute;
    opacity: 1;
    animation: textFade 4s infinite ease-in-out;
  }

  .svg-trigger {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    animation: svgShow 4s infinite ease-in-out;
  }

  .line-top, .line-middle, .line-bottom {
    fill: none;
    stroke: #ffffff !important;
    stroke-width: 4;
    stroke-linecap: round;
  }

  #primary-menu-trigger:active .menu-circle {
    background-color: #8f7115;
    transform: scale(0.95);
    transition: all 0.2s ease;
  }
}

/* Ajustes para mobile - CTA, Logo e Contacta-nos */
@media only screen and (max-width: 991px) {
  .cta-text {
    font-size: 28px;
  }
  #logo {
    padding-top: 3px;
    padding-bottom: 2px;
  }
  #logo img {
    width: calc(100% - 2px);
    height: auto;
  }
  #contacta-nos h2 {
    font-size: 26px !important; /* Reduzido de 30px para 26px com !important */
  }
}

@media only screen and (max-width: 576px) {
  #primary-menu-trigger {
    top: 12px; /* Mantém o ajuste */
  }
  .cta-text {
    font-size: 20px;
  }
  .cta-link {
    padding: 6px 12px;
  }
  .cta-icon {
    width: 20px;
    height: 20px;
  }
  #logo {
    padding-top: 3px;
    padding-bottom: 2px;
  }
  #logo img {
    width: calc(100% - 2px);
    height: auto;
  }
  #contacta-nos h2 {
    font-size: 24px !important; /* Reduzido de 30px para 22px com !important */
  }
}

/* Animações */
@keyframes pulseArrow {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@keyframes sizePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

@keyframes textFade {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes svgShow {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Bhooteshwara Main Menu Transmutation */
.menu-item:hover > .menu-link, .menu-item.current > .menu-link {
    color: #08781f!important;
}


/* Default styles (keeping existing #444 and green hover) */
.menu-item .menu-link div {
    color: #444; /* Dark gray */
    transition: color 0.3s ease; /* Smooth hover transition */
}

/* Green on hover (already in your theme) */
.menu-item .menu-link:hover div {
    color: #1abc9c; /* Green */
}

/* Animation for desktop only */
@media only screen and (min-width: 992px) {
    .menu-item .menu-link {
        display: inline-block; /* Keep inline layout */
        vertical-align: middle; /* Help with vertical alignment */
        position: relative; /* Context for children */
    }

    .menu-item .menu-link div {
        display: inline-block; /* Keep text inline */
        animation: pulseText 3s infinite ease-in-out; /* 3-second loop */
        transform-origin: center center; /* Scale from exact center (horizontal and vertical) */
        line-height: 1.5; /* Adjust for better vertical alignment */
        padding-top: 10px; /* Pull down slightly toward slideshow */
        padding-bottom: 10px; /* Balance with top */
    }

    @keyframes pulseText {
        0%, 100% {
            transform: scale(1); /* Starting size, centered */
            color: #444; /* Dark gray */
        }
        50% {
            transform: scale(1.1); /* Increases 10%, centered */
            color: #11520D; /* Your dark green at peak */
        }
    }
}