/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #0f0f0f;
    color: white;
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    width: 90vw;
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    height: 80px;
    transform: translateX(-50%) translateY(0px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    z-index: 1000;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

header.scrolled {
    width: 80vw;
    height: 64px;
    transform: translateX(-50%) translateY(16px);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    border-radius: 50px;
    padding: 0 3vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2vw;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: clamp(13px, 1.1vw, 15px);
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #ff6a00;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* HERO */
.hero {
    display: flex;
    flex-direction: row;
    height: 90vh;
    min-height: 90vh;
    padding: 0;
    margin: 0;
}

.hero-left {
    flex: 1;
    background: #ff6a00;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 50vw;
    overflow: hidden;
}

.hero-left::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.social {
    margin-bottom: 10px;
}

.social a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social a:hover {
    color: rgba(255, 255, 255, 0.75);
    transform: translateX(4px);
}

.hero-content {
    max-width: min(420px, 38vw);
    color: white;
    padding: 0 4vw;
}

.hero-content h1 {
    font-size: clamp(26px, 3.2vw, 44px);
    margin: 10px 0;
    line-height: 1.25;
}

.hero-content p {
    margin-bottom: 20px;
    font-size: clamp(13px, 1.1vw, 15px);
}

.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 1;
    /* 👈 fallback importante */
    transition: opacity 1.2s ease, transform 6s ease;
}

.slide:not(.active) {
    opacity: 0;
    transform: scale(1.04);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots .dot.active {
    background: #ff6a00;
    transform: scale(1.3);
}

/* SECTIONS */
section {
    padding: 8vh 0;
    min-height: 50vh;
}

section h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 5vh;
    color: #ff6a00;
}

/* GALERIA */
#galeria {
    background: #111;
    padding: 15vh 0;
    min-height: 100vh;
}

.gallery-info {
    font-size: clamp(13px, 1vw, 15px);
    color: #aaa;
    margin-bottom: 3vh;
    text-align: left;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 6px;
}

.galeria-item img {
    width: 100%;
    height: clamp(180px, 50vh, 340px);
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.4s ease;
    pointer-events: none;
}

.galeria-item figcaption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(6px);
    color: white;
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 2;
    text-align: center;
    opacity: 0.9;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.galeria-item:hover img {
    transform: scale(1.08);
}

.galeria-item:hover::after {
    background: rgba(0, 0, 0, 0.58);
}

.galeria-item:hover figcaption {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

/* SOBRE */
#sobre {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 15vh 0;

    background: url('images/sobre-bg.jpeg') center center / cover no-repeat;
    background-attachment: scroll;

    overflow: hidden;
    /* 👈 evita “vazamento” */
}

#sobre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1;
}

#sobre .container {
    position: relative;
    z-index: 2;
}

.about-intro,
.about-mission {
    margin-bottom: 2vh;
    color: #ccc;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 2vw;
    margin: 4vh 0;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background: rgba(17, 17, 17, 0.9);
    padding: clamp(16px, 2vw, 24px);
    border-radius: 12px;
    text-align: center;
    flex: 1 1 220px;
    border: 1px solid rgba(255, 106, 0, 0.1);
}

.feature-card i {
    font-size: clamp(24px, 2.5vw, 32px);
    color: #ff6a00;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: white;
    font-size: clamp(16px, 1.4vw, 20px);
}

.feature-card p {
    font-size: clamp(13px, 0.95vw, 15px);
    color: #bbb;
}

.feature-card:hover {
    box-shadow: 0 16px 40px rgba(255, 106, 0, 0.25);
    transition: box-shadow 0.3s ease;
}

.about-cta {
    text-align: center;
    margin-top: 4vh;
}

.btn-contact {
    display: inline-block;
    padding: clamp(12px, 1.2vh, 16px) clamp(22px, 2.2vw, 32px);
    background: #ff6a00;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact:hover {
    background: #ff8126;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}

/* TIMELINE */
.timeline {
    margin-top: 5vh;
    margin-bottom: 5vh;
    color: #ccc;
}

.timeline-title {
    text-align: center;
    font-size: clamp(18px, 2vw, 24px);
    color: #ff6a00;
    margin-bottom: 4vh;
}

.timeline-container {
    position: relative;
    margin: 0 auto;
    padding-left: 4vw;
    border-left: 2px solid #ff6a00;
}

.timeline-item {
    position: relative;
    margin-bottom: 4vh;
    padding-left: clamp(30px, 4vw, 50px);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: clamp(-30px, -2.5vw, -20px);
    top: 0;
    width: clamp(40px, 4vw, 52px);
    height: clamp(40px, 4vw, 52px);
    background: #ff6a00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(16px, 1.6vw, 22px);
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
}

.timeline-content h4 {
    font-size: clamp(15px, 1.3vw, 18px);
    color: #ff6a00;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.7;
    color: #ccc;
}

/* CONTATO */
#contato .container {
    max-width: 600px;
    text-align: center;
}

#contato {
    background: #111;
    padding: 15vh 0;
    min-height: 100vh;
}

#contato p {
    margin-bottom: 2vh;
    color: #ccc;
    font-size: clamp(13px, 1vw, 15px);
}

.contact-info {
    padding-top: 5vh;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.contact-form input,
.contact-form textarea {
    padding: clamp(12px, 1.2vh, 16px) 16px;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: clamp(13px, 1vw, 15px);
    background: #0f0f0f;
    color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}

.contact-form button {
    margin-top: 1vh;
    padding: clamp(12px, 1.4vh, 16px);
    border: none;
    background: #ff6a00;
    color: white;
    font-weight: 600;
    font-size: clamp(14px, 1vw, 16px);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    background: #ff8126;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}

/* FOOTER */
footer {
    background: #000;
    text-align: center;
    padding: 4vh 0;
    border-top: 2px solid #ff6a00;
}

.social-media a {
    margin: 0 1.2vw;
    color: white;
    font-size: clamp(18px, 1.5vw, 22px);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.social-media a:hover {
    color: #ff6a00;
    transform: translateY(-3px) scale(1.15);
}

/* LIGHTBOX */
img {
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.96);
    z-index: 2000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.lightbox-img {
    max-width: 88vw;
    max-height: 86vh;
    border-radius: 10px;
    transition: opacity 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.close {
    position: absolute;
    top: 3vh;
    right: 3vw;
    font-size: clamp(32px, 3.5vw, 44px);
    color: white;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #ff6a00;
    transform: rotate(90deg) scale(1.1);
}

.galeria-item img {
    cursor: pointer;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 4vh;
    left: 3vw;
    background: #ff6a00;
    color: white;
    padding: clamp(12px, 1.5vh, 18px) clamp(18px, 1.8vw, 24px);
    border-radius: 8px;
    font-size: clamp(13px, 1vw, 15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(30px, 3.5vw, 46px);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 1vh 1.5vw;
    user-select: none;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prev {
    left: 2vw;
}

.next {
    right: 2vw;
}

.prev:hover {
    color: #ff6a00;
    transform: translateY(-50%) translateX(-3px) scale(1.1);
}

.next:hover {
    color: #ff6a00;
    transform: translateY(-50%) translateX(3px) scale(1.1);
}

/* HERO ANIMATION */
.hero-title,
.hero-subtitle,
.hero-social {
    opacity: 0;
    transform: translateY(36px);
    animation: heroFade 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title {
    animation-delay: 0.25s;
}

.hero-subtitle {
    animation-delay: 0.5s;
}

.hero-social {
    animation-delay: 0.75s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: max(4vh, 20px);
    right: 3vw;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: clamp(44px, 4vw, 56px);
    height: clamp(44px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 2vw, 30px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    animation: waPulse 3s ease-in-out infinite;
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    animation: none;
}

.footer-partnership {
    margin-top: 3vh;
    text-align: center;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-partnership p {
    font-size: clamp(12px, 0.9vw, 14px);
}

.btn-partnership {
    display: inline-block;
    padding: clamp(8px, 1vh, 12px) clamp(16px, 1.6vw, 22px);
    background: #56078b;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: clamp(12px, 0.9vw, 14px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-partnership:hover {
    background: #6a0dad;
    transform: translateY(-2px);
}

/* ================= MOBILE FIRST AJUSTADO ================= */

/* TABLETS */
@media (max-width: 992px) {

    header {
        padding: 0 4vw;
    }

    header.scrolled {
        width: 92vw;
    }

    /* HERO */
    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-left {
        width: 100%;
        max-width: 100%;
        padding: 6vh 6vw;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-social {
        align-items: center;
    }

    .hero-right {
        width: 100%;
        height: 50svh;
        min-height: auto;
    }

    /* GALERIA */
    .galeria-grid {
        grid-template-columns: 1fr;
        gap: 3vw;
    }

    .galeria-item img {
        height: clamp(200px, 40vw, 340px);
    }

    /* SOBRE */
    #sobre {
        background-attachment: scroll;
    }

    .about-features {
        gap: 3vw;
    }

    .feature-card:hover {
        box-shadow: none;
    }

    /* TIMELINE */
    .timeline-container {
        padding-left: 6vw;
    }

    /* LIGHTBOX */
    .lightbox-img {
        max-width: 95vw;
        max-height: 80vh;
    }

    .prev,
    .next {
        display: none;
    }
}


/* CELULARES */
@media (max-width: 768px) {

    body {
        padding-top: 72px;
    }

    section {
        padding: 7vh 0;
    }

    /* HERO (CORRIGIDO 100%) */
    .hero {
        min-height: auto;
    }

    .hero-left {
        padding: 5vh 6vw;
    }

    .hero-content h1 {
        font-size: clamp(22px, 6vw, 30px);
    }

    .hero-right {
        height: 45vh;
        min-height: 240px;
    }

    /* SOBRE */
    #sobre {
        min-height: auto;
        padding: 10vh 0;
        background-position: center top;
    }

    #sobre::before {
        background: rgba(0, 0, 0, 0.7);
    }

    /* LIGHTBOX DOTS */
    .lightbox-dots {
        display: flex;
        justify-content: center;
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
        z-index: 2000;
    }

    .lightbox-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: white;
        opacity: 0.5;
        cursor: pointer;
    }

    .lightbox-dots span.active {
        opacity: 1;
        background: #ff6a00;
    }

    footer {
        padding-bottom: 80px;
    }
}


/* CELULARES PEQUENOS */
@media (max-width: 576px) {

    header {
        height: 68px;
        padding: 0 5vw;
    }

    header.scrolled {
        width: 96vw;
        transform: translateX(-50%) translateY(10px);
    }

    /* MENU MOBILE */
    .nav-links {
        flex-direction: column;
        gap: 12px;
        background: rgba(10, 10, 10, 0.97);
        position: fixed;
        top: 68px;
        right: -100%;
        width: 65vw;
        max-width: 260px;
        height: 100vh;
        padding: 4vh 6vw;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 16px;
    }

    /* HERO */
    .hero-left {
        padding: 5vh 8vw;
    }

    .hero-right {
        height: 45svh;
        min-height: 220px;
    }

    /* GALERIA */
    .galeria-item img {
        height: 52vw;
    }

    /* CARDS */
    .feature-card {
        flex: 1 1 100%;
    }

    /* TIMELINE */
    .timeline-container {
        padding-left: 8vw;
    }

    .timeline-icon {
        left: -22px;
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    section h2 {
        font-size: clamp(22px, 6vw, 30px);
    }
}


/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
}

@media (max-width: 576px) {
    .hamburger {
        display: flex;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .hamburger {
        display: none;
    }
}

.hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@keyframes fadeInGaleria {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.galeria-item {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quando aparece */
.galeria-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quando aparece */
.feature-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}