/* ------------------------
   CUSTOM STYLES (Tailwind Extension)
------------------------ */

/* Background Animation */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.animate-slow-zoom {
    animation: slowZoom 20s infinite alternate ease-in-out;
}

/* Nav links underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #cda869; /* secondary */
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Scroll Reveals */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal-fade {
    opacity: 0;
    transition: all 1s ease-out;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}
.reveal-up.active,
.reveal-fade.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Area card top border animation */
.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #cda869;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.area-card:hover::before {
    transform: scaleX(1);
}

/* Accordion transition logic */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease-out;
}
.accordion-item.active .accordion-body {
    max-height: 500px;
    transition: max-height 0.6s ease-in-out, padding 0.4s ease-out;
    padding-bottom: 1.25rem;
}
.accordion-item.active .accordion-header h4 {
    color: #cda869;
}
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Image wrapper custom border */
.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 2px solid #cda869;
    border-radius: 0.5rem;
    z-index: 0;
}

/* Form floating labels - Handled by Tailwind peer classes mostly, 
   but added this for cross-browser fallback if needed */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    font-size: 0.8rem;
    color: #cda869;
    font-weight: 500;
}

/* WhatsApp pulsing glow animation */
@keyframes pulseSubtle {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 10px 25px -5px rgba(0, 0, 0, 0.3); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 10px 25px -5px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px -5px rgba(0, 0, 0, 0.3); }
}
.animate-pulse-subtle {
    animation: pulseSubtle 2s infinite;
}
