/*
 * GrowSmart V2 – Complementary CSS helpers for Tailwind implementation
 * These styles focus on interactive behaviors that are not convenient to express
 * directly in utility classes (carousel controls, menu state, WordPress defaults).
 */

body.menu-open {
    overflow: hidden;
}

.site-content {
    padding-top: 6.5rem;
}

.navbar.scrolled {
    box-shadow: var(--shadow-elev-1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Testimonial carousel */
.testimonials-container {
    position: relative;
}

.testimonial-item {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-item.active {
    display: block;
    opacity: 1;
}

.testimonials-dots {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.3s ease;
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: var(--gs-red-700);
    border-color: transparent;
}

/* Utility helpers for legacy blocks */
.wp-block-quote,
blockquote {
    border-left: 4px solid var(--gs-red-700);
    padding-left: 1.5rem;
    color: #f8fafd;
}

.wp-block-button__link {
    border-radius: 0.75rem;
    font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .site-content {
        padding-top: 5.5rem;
    }

    .nav-menu.active {
        width: 100%;
    }
}
