/* ==========================================================================
   PÁGINAS DE PORTFÓLIO & SOBRE (MOBILE-FIRST)
   ========================================================================== */

/* Page Header e Espaçamentos Base */
.page-padding {
    padding-top: 6rem;
    padding-bottom: 3.75rem;
}

@media (min-width: 768px) {
    .page-padding {
        padding-top: 11.25rem;
    }
}

.page-header {
    text-align: center;
    max-width: 56.25rem;
    margin: 0 auto 4rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 7vw, 6rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.1;
}

.page-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    color: var(--muted);
    max-width: 40.625rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
}

.grid-3,
.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 769px) {
    .portfolio-grid {
        gap: 2rem;
        margin-bottom: 5rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .portfolio-grid {
        gap: 2.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* YOUTUBE (16:9) */
.youtube-card .iframe-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.youtube-card .iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* DESIGN & CARROSSEL SWIPE */
.design-card .design-carousel-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #000;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* MOBILE FIRST: Rola suavemente com o dedo (Swipe nativo) */
.design-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

/* Oculta a barra de rolagem no mobile */
.design-carousel::-webkit-scrollbar {
    display: none;
}

.design-carousel img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
    /* Bloqueio de seleção (O Azul Bugado) */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

/* Bolinhas de Navegação Mobile (Estilo Instagram) */
.mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.mobile-dot.active {
    background: var(--lime);
    transform: scale(1.2);
}

@media (min-width: 1025px) {
    .mobile-dots { display: none; }
}

/* Indicador Carrossel (Topo Direito) */
.carousel-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(14, 17, 10, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--white);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.carousel-indicator svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}

/* OVERLAY (Oculto no Mobile, visível no Desktop) */
.lightbox-trigger-overlay {
    display: none;
}

/* INFORMAÇÕES DE LEGENDA (Formatação Premium Escaravelho) */
.portfolio-info {
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.portfolio-info .agency-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.375rem;
}

.portfolio-info .client-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.portfolio-info .client-title:hover {
    color: var(--lime);
}

.portfolio-info .design-specs {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-info .design-specs li {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.portfolio-info .design-specs strong {
    color: var(--lime);
    font-weight: 600;
    margin-right: 0.3rem;
}

/* =======================================================
   COMPORTAMENTO DESKTOP (Abre Lightbox)
   ======================================================= */
@media (min-width: 1025px) {
    .design-card .design-carousel-wrapper {
        cursor: pointer;
    }
    
    .design-carousel {
        overflow-x: hidden;
        pointer-events: none; 
    }
    
    .lightbox-trigger-overlay {
        display: flex;
        position: absolute;
        inset: 0;
        background: rgba(5, 6, 4, 0.8);
        backdrop-filter: blur(2px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--white);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 10;
    }
    
    .design-carousel-wrapper:hover .lightbox-trigger-overlay {
        opacity: 1;
    }
}

/* =========================================================
   LIGHTBOX MODAL DE DESIGN (DESKTOP PREMIUM)
   ========================================================= */
.design-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999; /* Corrigido: Sobrepõe o Menu */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.design-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-bg {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 4, 0.95);
    backdrop-filter: blur(15px);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100000; /* Corrigido: Acima de tudo e do menu */
    background: rgba(14, 17, 10, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: var(--lime);
    color: var(--bg-base);
    border-color: var(--lime);
    box-shadow: 0 0 15px var(--lime-glow);
    transform: scale(1.1);
}

.lightbox-content-wrapper {
    position: relative;
    width: 90vw;
    max-width: 600px;
    aspect-ratio: 3 / 4; /* Corrigido: Mantém o formato nativo do post */
    max-height: 85vh;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default; /* Removido o grab bugado */
    user-select: none;
}

.lightbox-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Corrigido: Slides grudados milimetricamente */
}

.lightbox-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corrigido: Preenchimento total */
    border-radius: 0;
    pointer-events: none; /* Bloqueia o azul/fantasma no desktop */
    -webkit-user-drag: none;
    user-select: none;
}

/* Dots do Modal */
.lightbox-dots {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    bottom: -2rem;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s;
}

.lightbox-dot.active {
    background: var(--lime);
    box-shadow: 0 0 10px var(--lime-glow);
}

/* Setas específicas do modal */
.lightbox-prev,
.lightbox-next {
    z-index: 60;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(14, 17, 10, 0.85);
    border: 1px solid var(--border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--lime);
    color: var(--bg-base);
    border-color: var(--lime);
    box-shadow: 0 0 20px var(--lime-glow);
}
.lightbox-prev { left: -6rem; }
.lightbox-next { right: -6rem; }

/* =======================================================
   CARROSSEL 2D DE REELS (Setas Esquerda/Direita)
   ======================================================= */
.reels-section {
    padding-bottom: 1rem !important;
}

.reels-carousel-wrapper {
    perspective: none !important;
    margin: 1rem 0 5rem 0 !important;
    height: 75vh !important;
    min-height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    cursor: default !important;
}

.reels-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: flat !important;
}

/* O Card em si */
.reel-card {
    position: absolute;
    width: 80vw;
    max-width: 340px;
    max-height: 70vh;
    aspect-ratio: 9/16;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease, border-color 0.3s ease;

    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.7);
    z-index: 1;
    filter: blur(10px);
}

/* Elementos internos do card */
.reel-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #050604;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.reel-card.playing .reel-video {
    opacity: 1;
}

.reel-click-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

/* Textos do Card */
.reel-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(5, 6, 4, 0.95) 0%, rgba(5, 6, 4, 0.7) 40%, transparent 100%);
    color: var(--white);
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.4s ease;
}

.reel-card.playing .reel-info-overlay {
    opacity: 0;
    pointer-events: none;
}

.reel-client {
    font-size: 0.75rem;
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    pointer-events: auto;
}

.reel-client a {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 30;
}

.reel-client a:hover {
    text-decoration: underline;
    color: var(--white);
}

.reel-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    font-style: italic;
}

.reel-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* BOTÃO FULLSCREEN (TELA CHEIA) */
.fullscreen-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(14, 17, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    color: var(--white);
}

.reel-card.active .fullscreen-btn {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-btn:hover {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--bg-base);
    box-shadow: 0 0 15px var(--lime-glow);
    transform: scale(1.1);
}

/* Botão Play/Pause */
.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(193, 105, 61, 0.9);
    color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 0 30px var(--lime-glow);
}

.play-pause-btn svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    margin-left: 4px;
}

.reel-card.playing .play-pause-btn {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
}

@media (hover: hover) {
    .reel-card.playing:hover .play-pause-btn {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        color: var(--white);
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .reel-card.playing:hover .play-pause-btn svg {
        margin-left: 0;
    }
}

/* ESTADOS DO CARROSSEL 2D */
.reel-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    pointer-events: auto;
    filter: blur(0px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border-color: var(--lime);
}

.reel-card.prev {
    opacity: 0.5;
    transform: translateX(-110%) scale(0.85);
    z-index: 5;
    filter: blur(3px);
    pointer-events: auto;
    cursor: pointer;
}

.reel-card.next {
    opacity: 0.5;
    transform: translateX(110%) scale(0.85);
    z-index: 5;
    filter: blur(3px);
    pointer-events: auto;
    cursor: pointer;
}

@media (max-width: 768px) {
    .reel-card.prev {
        transform: translateX(-85%) scale(0.85);
        opacity: 0.3;
    }

    .reel-card.next {
        transform: translateX(85%) scale(0.85);
        opacity: 0.3;
    }
}

/* Setas de Navegação */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(14, 17, 10, 0.85);
    border: 1px solid var(--border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.carousel-nav-btn:hover {
    background: var(--lime);
    color: var(--bg-base);
    border-color: var(--lime);
    box-shadow: 0 0 20px var(--lime-glow);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 2vw; }
.next-btn { right: 2vw; }

@media (min-width: 1024px) {
    .prev-btn { left: 15vw; width: 4rem; height: 4rem; }
    .next-btn { right: 15vw; width: 4rem; height: 4rem; }
}

.carousel-nav-btn svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* AJUSTE DE TAMANHO: CARDS DE DESIGN (CORREÇÃO GRID 3x2) */
.design-card { width: 100%; }
@media (max-width: 768px) {
    .design-card { max-width: 400px; margin: 0 auto; }
}
@media (min-width: 769px) {
    .design-card { max-width: 100%; margin: 0; }
}

/* AFASTAR SETAS EXCLUSIVAMENTE NO YOUTUBE */
#carousel-youtube .prev-btn { left: 2vw; }
#carousel-youtube .next-btn { right: 2vw; }

@media (min-width: 1024px) {
    #carousel-youtube .prev-btn { left: 4vw; }
    #carousel-youtube .next-btn { right: 4vw; }
}

/* NOVO CARROSSEL: YOUTUBE (16:9) */
.youtube-carousel-wrapper {
    perspective: none !important;
    margin: 1rem 0 2rem 0 !important;
    height: 50vh !important;
    min-height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.youtube-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: flat !important;
}

.yt-card {
    position: absolute;
    width: 85vw;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease, border-color 0.3s ease;

    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.7);
    z-index: 1;
    filter: blur(10px);
}

.yt-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    pointer-events: auto;
    filter: blur(0px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border-color: var(--lime);
}

.yt-card.prev {
    opacity: 0.5;
    transform: translateX(-55%) scale(0.85);
    z-index: 5;
    filter: blur(3px);
    pointer-events: auto;
    cursor: pointer;
}

.yt-card.next {
    opacity: 0.5;
    transform: translateX(55%) scale(0.85);
    z-index: 5;
    filter: blur(3px);
    pointer-events: auto;
    cursor: pointer;
}

@media (max-width: 768px) {
    .yt-card.prev { transform: translateX(-50%) scale(0.85); opacity: 0.3; }
    .yt-card.next { transform: translateX(50%) scale(0.85); opacity: 0.3; }
}

.yt-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.yt-click-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

.yt-card.active .yt-click-layer {
    display: none;
}

/* REELS (CORTE DO ECRÃ E OCULTAÇÃO DO OVERLAY) */
.reels-grid .portfolio-item {
    aspect-ratio: 9 / 16;
    height: auto;
    width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    position: relative;
}

.portfolio-item.playing .portfolio-overlay {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* YOUTUBE CAROUSEL (RESPONSIVIDADE E SETAS) */
.yt-carousel-container {
    position: relative;
    width: 100%;
    height: 70vw;
    min-height: 250px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin: 2rem 0 5rem 0;
}

@media (min-width: 900px) {
    .yt-carousel-container { height: 500px; margin-bottom: 2rem; }
}

.yt-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: absolute;
    bottom: -4rem;
    width: 100%;
    z-index: 20;
}

@media (min-width: 900px) {
    .yt-controls {
        bottom: 50%;
        transform: translateY(50%);
        justify-content: space-between;
        padding: 0 2rem;
        pointer-events: none;
    }
    .yt-btn { pointer-events: auto; }
}

/* AJUSTE DAS SETAS DO YOUTUBE (Responsivo) */
#carousel-youtube {
    padding-top: 5.5rem !important;
    padding-bottom: 2rem !important;
}

#carousel-youtube .prev-btn,
#carousel-youtube .next-btn {
    position: absolute;
    top: 0.5rem !important;
    bottom: auto !important;
    transform: none !important;
}

#carousel-youtube .prev-btn { left: calc(50% - 4.2rem) !important; right: auto !important; }
#carousel-youtube .next-btn { right: calc(50% - 4.2rem) !important; left: auto !important; }

@media (min-width: 1024px) {
    #carousel-youtube { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    #carousel-youtube .prev-btn,
    #carousel-youtube .next-btn { top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; }
    #carousel-youtube .prev-btn { left: 4vw !important; right: auto !important; }
    #carousel-youtube .next-btn { right: 4vw !important; left: auto !important; }
}

/* ==========================================================================
   REGISTRO DE MARCA (MOBILE-FIRST & HIGH CONVERSION)
   ========================================================================== */

/* BLOOMS COM TEXTURA/GRANULADO (Premium Effect) */
.bloom-orange-noise {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    background: #c1693d; /* O laranja da marca */
}
/* Camada de ruído injetada via CSS para o efeito visual complexo */
.bloom-orange-noise::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* HERO SPLIT (Desktop vs Mobile Responsivo) */
.hero-internal { padding-top: 7rem; padding-bottom: 4rem; position: relative; z-index: 2; }

.hero-split { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
    align-items: center; 
}

/* ORDEM MOBILE: Vídeo Primeiro */
.hero-visual { order: 1; display: flex; justify-content: center; position: relative; z-index: 3; }
.hero-content { order: 2; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 3; }

@media (min-width: 900px) {
    .hero-internal { padding-top: 9rem; padding-bottom: 5rem; }
    .hero-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
    /* ORDEM DESKTOP: Texto na Esquerda, Vídeo na Direita */
    .hero-content { order: 1; text-align: left; align-items: flex-start; }
    .hero-visual { order: 2; justify-content: flex-end; }
}

.hero-text .hero-h1, .hero-content .hero-h1 { 
    font-size: clamp(2rem, 8vw, 4rem); 
    line-height: 1.05; 
    margin: 1rem 0; 
    font-weight: 500; 
}

.hero-sub { 
    font-size: clamp(1rem, 3vw, 1.2rem); 
    color: var(--muted); 
    line-height: 1.6; 
    max-width: 500px;
}

/* BOTÕES HERO */
.hero-actions { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    gap: 1rem; 
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .hero-actions { flex-direction: row; width: auto; }
}

/* VÍDEO VERTICAL DA HERO */
.vsl-frame-vertical { 
    position: relative; 
    width: 100%; 
    max-width: 340px; 
    aspect-ratio: 9/16; 
    border-radius: 1.5rem; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.08); 
    background: #000; 
}

.vsl-frame-vertical video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Overlay de Play do VSL (quando acaba) */
.vsl-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}
.vsl-play-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.vsl-play-btn {
    background: var(--lime);
    color: #000;
    border: none;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(193, 105, 61, 0.4);
}
.vsl-play-btn:hover {
    transform: scale(1.1);
}

.vsl-audio-toggle { 
    position: absolute; 
    bottom: 1.25rem; 
    right: 1.25rem; 
    width: 2.75rem; 
    height: 2.75rem; 
    border-radius: 50%; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: white; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s; 
    z-index: 10; 
}

.vsl-audio-toggle:hover { background: var(--lime); border-color: var(--lime); transform: scale(1.1); box-shadow: 0 0 20px rgba(193, 105, 61, 0.4); color: #000;}

/* =========================================
   SESSÃO DE PROTEÇÃO (Flexbox Igualando Alturas)
   ========================================= */
.protection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch; /* Garante que estiquem */
}
@media(min-width: 768px) {
    .protection-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.protection-card {
    background: rgba(14, 17, 10, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* Configuração Flex para igualar e preencher a altura da caixa */
    display: flex;
    flex-direction: column;
    height: 100%;
}
.protection-card:hover {
    transform: translateY(-5px);
    border-color: rgba(193, 105, 61, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.protection-icon-wrapper {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    background: rgba(193, 105, 61, 0.1);
    border: 1px solid rgba(193, 105, 61, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lime);
    margin-bottom: 2rem;
    flex-shrink: 0;
}
.protection-icon-wrapper svg {
    width: 2.25rem;
    height: 2.25rem;
}
.protection-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 500;
}
.protection-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    color: var(--muted);
    flex-grow: 1; /* Faz o texto preencher o espaço restante, empurrando a borda pra baixo de forma igual */
}

/* Callout Textual (Novo Highlight Premium) */
.protection-highlight {
    background: linear-gradient(135deg, rgba(14, 17, 10, 0.95) 0%, rgba(20, 24, 15, 0.95) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--lime); /* Borda demarcatória elegante */
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin-top: 3.5rem;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}
@media(min-width: 768px) {
    .protection-highlight { padding: 3rem 4rem; }
}
.protection-highlight-icon {
    color: var(--lime);
    flex-shrink: 0;
}
.protection-highlight p {
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
    line-height: 1.6;
}
.protection-highlight p strong {
    font-weight: 600;
    color: var(--lime); /* Destaque direto no texto */
}

/* =========================================
   SESSÃO COMO FUNCIONA (TIMELINE AJUSTADA)
   ========================================= */
.timeline-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }

@media (min-width: 900px) { 
    .timeline-grid { grid-template-columns: repeat(3, 1fr); } 
}

.timeline-step { 
    background: rgba(14, 17, 10, 0.6); 
    backdrop-filter: blur(20px); 
    border: 1px solid var(--border); 
    border-radius: 1.5rem; 
    padding: 2.5rem 2rem; 
    position: relative; 
    transition: transform 0.3s ease, border-color 0.3s ease; 
    text-align: left;
    /* Adicionado Flexbox para forçar a organização e o empilhamento correto */
    display: flex;
    flex-direction: column;
}

.timeline-step:hover { 
    transform: translateY(-5px); 
    border-color: rgba(193, 105, 61, 0.5); 
    background: rgba(14, 17, 10, 0.9); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

/* NÚMERO NA ESTRUTURA NORMAL PARA NÃO SOBREPOR O TEXTO */
.timeline-number { 
    font-family: var(--font-display); 
    font-size: 3.5rem; 
    color: var(--lime); 
    opacity: 0.4; /* Aumentei a opacidade para deixá-lo evidente */
    position: relative; /* Removido o absolute, agora ele respeita o espaço */
    line-height: 1; 
    font-weight: 700;
    margin-bottom: 1.25rem; /* Empurra perfeitamente o título para baixo */
}

.timeline-title { font-size: 1.3rem; margin-bottom: 1rem; color: var(--white); font-weight: 600; position: relative; z-index: 2; }
.timeline-step p { position: relative; z-index: 2; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* =========================================
   PRICING GRID PREMIUM 
   ========================================= */
.pricing-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    max-width: 900px; 
    margin: 3rem auto 0; 
}

@media (min-width: 850px) { 
    .pricing-grid { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 2.5rem; } 
}

.pricing-card { 
    background: var(--bg-surface); 
    border: 1px solid var(--border); 
    border-radius: 2rem; 
    padding: 3rem 2rem; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.3s, border-color 0.3s; 
    position: relative; 
    text-align: left;
}

.pricing-card:hover { border-color: var(--border-hover); }

.pricing-card.highlighted { 
    background: linear-gradient(145deg, rgba(14,17,10,1) 0%, rgba(193,105,61,0.08) 100%); 
    border-color: var(--lime); 
    transform: scale(1.02); 
    box-shadow: 0 20px 60px rgba(193, 105, 61, 0.15); 
}

.pricing-badge { 
    position: absolute; 
    top: -14px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--lime); 
    color: #000; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    padding: 6px 20px; 
    border-radius: 100px; 
    white-space: nowrap;
}

.pricing-name { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); margin-bottom: 0.5rem; font-weight: 500; }
.pricing-subtitle { color: var(--lime); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; font-weight: 600; }

.pricing-price { 
    font-family: var(--font-display); 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    color: var(--white); 
    font-weight: 700; 
    margin-bottom: 2rem; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 2rem; 
    line-height: 1; 
}
.pricing-price span { display: block; font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; font-weight: 400; }

.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem 0; flex-grow: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.2rem; color: #ddd; font-size: 0.95rem; line-height: 1.4; }
.pricing-features li svg { width: 1.25rem; height: 1.25rem; min-width: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.pricing-features li.disabled { opacity: 0.4; text-decoration: line-through; }


/* =========================================
   CAIXA DE GARANTIA (Textura Laranja)
   ========================================= */
.section-garantia {
    background-color: #c1693d; /* Laranja Base */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    position: relative;
    overflow: hidden;
}

.guarantee-box { 
    background: rgba(14, 17, 10, 0.95); /* Caixa escura e imponente */
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border-radius: 1.5rem; 
    padding: 2.5rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 1.5rem; 
    max-width: 800px; 
    margin: 0 auto; 
}

@media (min-width: 768px) { 
    .guarantee-box { flex-direction: row; text-align: left; padding: 3rem 4rem; gap: 3rem;} 
}

.guarantee-icon { 
    width: 5rem; height: 5rem; flex-shrink: 0; 
    background: rgba(193, 105, 61, 0.15); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: var(--lime); 
}
.guarantee-icon svg { width: 2.5rem; height: 2.5rem; }

.guarantee-text h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); margin-bottom: 0.5rem; font-weight: 500; }
.guarantee-text p { color: #d0d0d0; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.guarantee-text strong { color: var(--white); font-weight: 600; }


/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-container { max-width: 50rem; display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.faq-item { background: rgba(255,255,255,0.01); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; transition: all 0.3s; }
.faq-item.active { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 1.5rem; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; color: var(--white); cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; }
.faq-icon { font-size: 1.5rem; color: var(--lime); transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer-inner { padding: 0 1.5rem 1.5rem; color: var(--muted); line-height: 1.6; font-size: 0.95rem; text-align: left; }

/* CONTATO */
.contact-section { 
    background: rgba(255,255,255,0.01); border-radius: 1.5rem; border: 1px solid var(--border); 
    padding: 2.5rem 1.5rem; 
    margin-top: 0; /* Espaçamento extra removido */
    display: grid; grid-template-columns: 1fr; gap: 2.5rem; 
    align-items: center; position: relative; overflow: hidden; text-align: left;
}
.contact-section > div:first-child { text-align: center; }
.contact-section > div:first-child p { margin-inline: auto; }
.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border); color: var(--white); font-family: var(--font-body); font-size: 1rem; padding: 0 0 0.75rem 0; transition: border-color 0.3s; border-radius: 0; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--lime); }
.form-textarea { resize: none; min-height: 5rem; }
.form-select option { background: var(--bg-surface); color: var(--white); }
.btn-submit { width: 100%; padding: 1rem; background: var(--white); color: var(--bg-base); font-size: 1rem; font-weight: 600; font-family: var(--font-body); border: none; border-radius: 100px; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; }
.btn-submit:hover, .btn-submit:active { background: var(--lime); color: var(--white); box-shadow: 0 0 25px var(--lime-glow); }

/* BOTÃO DE IDIOMA FORMATADO (Pílula Sutil) */
.btn-en-text { 
    display: block; width: fit-content; margin: 1.5rem auto 0 auto; 
    background: rgba(255,255,255,0.03); border: 1px solid var(--border); 
    color: var(--muted); cursor: pointer; text-decoration: none; 
    font-family: var(--font-body); font-size: 0.85rem; transition: all 0.3s; 
    padding: 0.6rem 1.25rem; border-radius: 100px; text-align: center;
}
.btn-en-text:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--border-hover); }

@media (min-width: 901px) { 
    .contact-section { 
        grid-template-columns: 1fr 1fr; padding: 4rem; gap: 3.75rem; 
        margin-top: -2rem; /* Puxa o contato para cima reduzindo o vão */
        border-radius: 2rem; 
    } 
    .contact-section > div:first-child { text-align: left; }
    .contact-section > div:first-child p { margin-inline: 0; }
    .form-input, .form-select, .form-textarea { font-size: 1.2rem; }
}

/* =========================================================
   FOOTER (EQUILIBRADO DESKTOP & MOBILE)
   ========================================================= */
footer { 
    border-top: 1px solid var(--border); 
    padding-top: 2.5rem; padding-bottom: 1.5rem; 
    background: var(--bg-base); position: relative; z-index: 10; 
}

.footer-grid { 
    display: grid; grid-template-columns: 1fr; gap: 2rem; 
    margin-bottom: 1.5rem; text-align: center;
}

.footer-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-brand .footer-logo { max-width: 2rem; margin: 0 auto 0.75rem auto; display: block; }
.footer-brand p { text-align: center; margin: 0 auto; max-width: 20rem; font-size: 0.85rem; color: var(--muted); }

.footer-title { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); margin-bottom: 0.5rem; font-weight: 600; text-align: center; }
.footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; text-align: center; }
.footer-links li { margin-bottom: 0.2rem !important; font-size: 0.8rem; list-style: none !important; } 
.footer-links a { color: var(--white); transition: color 0.3s; display: inline-block; padding: 0.1rem 0; }

.footer-contact-box { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer-contact-item { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--muted); font-size: 0.825rem; transition: color 0.3s; }
.footer-contact-item:hover { color: var(--lime); }

/* MOBILE: 2 Colunas Limpas e Distribuídas */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .footer-brand { grid-column: 1 / -1; }
    
    /* O "display: contents" funde os filhos direto no grid principal, evitando gambiarras no HTML */
    .footer-links-wrapper { display: contents; } 
    
    .footer-col-portfolio { grid-column: 1 / 2; }
    .footer-col-agencia { grid-column: 2 / 3; }
    .footer-col-contato { grid-column: 1 / -1; }
}

/* DESKTOP: 3 Colunas com os Menus Menores Unificados no Centro */
@media (min-width: 901px) { 
    footer { padding-top: 4rem; padding-bottom: 1.5rem; }
    
    .footer-grid { 
        grid-template-columns: 2fr 2.5fr 1.5fr; 
        gap: 4rem; align-items: flex-start; text-align: left; 
    }
    
    .footer-brand { align-items: flex-start; }
    .footer-brand .footer-logo { margin: 0 0 1rem 0; }
    .footer-brand p { text-align: left; margin: 0; }
    
    /* Coloca Portfólio e Agência LADO A LADO na coluna central para equilibrar o tamanho da coluna Contatos */
    .footer-links-wrapper { display: flex; justify-content: space-around; gap: 2rem; width: 100%; }
    
    .footer-title, .footer-links { text-align: left; }
    .footer-col-contato .footer-title { text-align: left; }
    .footer-contact-box { align-items: flex-start; }
    .footer-contact-item { justify-content: flex-start; }
}

.footer-bottom { 
    display: flex; flex-direction: column; gap: 0.4rem; text-align: center; justify-content: center; 
    align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; color: var(--muted); font-size: 0.75rem; 
}

@media (min-width: 901px) { 
    .footer-bottom { flex-direction: row; justify-content: space-between; font-size: 0.8rem; padding-top: 1.25rem; }
}

/* =========================================================
   SELETOR DE IDIOMA (BOUTIQUE)
   ========================================================= */
.lang-menu { position: relative; display: flex; align-items: center; margin-left: 0.5rem; z-index: 1000; }
.lang-btn { background: transparent; border: none; color: var(--muted); font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; cursor: pointer; display: flex; align-items: center; transition: color 0.3s; text-transform: uppercase; letter-spacing: 0.1em; }
.lang-btn:hover { color: var(--white); }

.lang-dropdown { 
    position: absolute; top: 120%; right: 0; background: rgba(14, 17, 10, 0.95); backdrop-filter: blur(12px); 
    border: 1px solid var(--border); border-radius: 0.75rem; min-width: 140px; display: flex; flex-direction: column; 
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); overflow: hidden; pointer-events: none;
}
.lang-menu:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.lang-dropdown button { 
    background: transparent; border: none; color: var(--muted); padding: 0.85rem 1.25rem; 
    font-size: 0.85rem; font-family: var(--font-body); text-align: left; cursor: pointer; 
    transition: all 0.3s; border-bottom: 1px solid rgba(255,255,255,0.03); 
}
.lang-dropdown button:hover { background: rgba(255,255,255,0.03); color: var(--lime); padding-left: 1.5rem; }
.lang-dropdown button:last-child { border-bottom: none; }

@media (max-width: 1024px) {
    .lang-menu { margin: 1rem auto 0; }
    .lang-dropdown { right: auto; left: 50%; transform: translateX(-50%) translateY(10px); }
    .lang-menu:hover .lang-dropdown { transform: translateX(-50%) translateY(0); }
}

/* =========================================================
   HEADER MOBILE ACTIONS & MENU SANDUÍCHE
   ========================================================= */
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espaço entre idioma e menu */
}

.lang-menu {
    position: relative;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.4rem 0.8rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lime);
}

@media (min-width: 900px) {
    .nav-mobile-actions {
        order: 3;
    }
    #nav-links {
        order: 2;
        margin-right: auto;
        margin-left: 2rem;
    }
}