/* ============================
   COMPONENTES INTERATIVOS
   ============================ */

/* HAMBURGER MENU */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--cor-tipira);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background-color: rgba(253, 101, 0, 0.1);
    border-color: var(--cor-tipira-escuro);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--cor-tipira);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active {
    background-color: var(--cor-tipira);
    border-color: var(--cor-tipira);
}

.hamburger-menu.active .hamburger-line {
    background-color: white;
}

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

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

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

/* CAROUSEL CONTROLS */
.carousel {
    position: relative;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 101, 0, 0.8);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: var(--cor-tipira-escuro);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* CAROUSEL INDICATORS */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--cor-tipira);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--cor-tipira);
    width: 32px;
    border-radius: 6px;
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--cor-tipira);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: var(--cor-tipira-escuro);
    transform: scale(1.1);
}

.scroll-to-top:active {
    transform: scale(0.95);
}

/* ACTIVE NAVIGATION LINK */
.navbar-text.active {
    color: var(--cor-tipira-escuro);
    font-weight: 700;
    position: relative;
}

.navbar-text.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cor-tipira);
    border-radius: 2px;
}

/* SMOOTH SCROLL BEHAVIOR */
html {
    scroll-behavior: smooth;
}

/* LOADING STATE FOR IMAGES */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img:not([loading]) {
    opacity: 1;
}
