/* style.css (COMPLETO corrigido) */

/* =========================================
   1. CONFIGURAÇÃO GERAL E VARIÁVEIS
   ========================================= */
:root {
    --bg-body: #0a0a12;
    --bg-card: #151520;
    --bg-nav: rgba(10, 10, 18, 0.95);
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --primary: #00f2ea;
    --secondary: #ff0050;
    --border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    --hover-overlay: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.98);
    --text-main: #222222;
    --text-muted: #555555;
    --primary: #007bff;
    /* FORÇADO CYAN NO MODO CLARO TAMBÉM */
    --secondary: #d60040;
    --border: 1px solid #eaeaea;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-overlay: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-text-size-adjust: 100%
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background .3s, color .3s;
    position: relative;
    min-height: 100vh;
    padding-top: 110px;
}

/* UTIL */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px
}

.text-center {
    text-align: center
}

.highlight {
    color: var(--primary) !important;
}

/* TOP BAR */
.top-bar {
    background: #111;
    color: #fff;
    padding: 10px 0;
    font-size: .85rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2001;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.top-info span {
    white-space: nowrap
}

.top-info i {
    color: var(--primary);
    margin-right: 5px
}

/* NAV */
nav {
    background: var(--bg-nav);
    padding: 15px 0;
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    z-index: 2000;
    backdrop-filter: blur(10px);
    border-bottom: var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1)
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1002;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    line-height: 1
}

.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1002
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: .3s
}

.nav-links a:hover {
    color: var(--primary)
}

.btn-nav {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: bold;
    font-size: .9rem;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-main);
    margin-left: 10px
}

.lang-widget {
    display: flex;
    gap: 5px;
    background: var(--hover-overlay);
    padding: 4px;
    border-radius: 50px;
    border: var(--border);
    align-items: center
}

.lang-btn {
    background: transparent;
    border: none;
    font-size: .75rem;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: .3s;
    opacity: .6;
    color: var(--text-muted)
}

.lang-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    color: var(--text-main)
}

.lang-btn.active {
    background: var(--primary) !important;
    opacity: 1;
    color: #fff;
    box-shadow: 0 0 10px var(--primary)
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main)
}

/* HERO */
.hero {
    height: 90vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1920&q=80') center/cover no-repeat;
    color: #fff
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7)
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px
}

.tagline {
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px
}

/* PREÇO */
#main-price .price-from,
#main-price .price-amount {
    display: inline;
}

#main-price .price-amount {
    white-space: nowrap;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .85)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, .5) inset
}

.price-display {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 25px rgba(0, 242, 234, .5);
    margin: 20px 0
}

.desc-light {
    color: #ddd;
    font-size: 1.1rem
}

.spaced {
    margin-bottom: 40px
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--secondary), #ff8800);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--secondary);
    transition: .3s;
    margin-top: 20px
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--secondary)
}

.btn-small {
    padding: 8px 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block
}

.btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    z-index: 999;
    display: none;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
    text-decoration: none;
}

.btn-top:hover {
    transform: translateY(-5px)
}

.btn-text {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: .3s
}

.btn-text:hover {
    border-color: var(--primary);
    color: var(--primary)
}

/* SEÇÕES & CARDS */
.section {
    padding: 80px 0
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: var(--text-main);
    line-height: 1.2;
}

.card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 15px;
    border: var(--border);
    text-align: center;
    transition: .3s;
    box-shadow: var(--shadow)
}

.service-card-detailed {
    text-align: left
}

.service-card-detailed .card-icon {
    display: block;
    margin: 0 auto 20px;
    text-align: center
}

.service-card-detailed h3 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.card-divider {
    border: 0;
    height: 1px;
    background: var(--primary);
    width: 50px;
    margin: 0 auto 20px;
    opacity: .5
}

.service-list {
    list-style: none;
    padding: 0
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.4;
    overflow-wrap: break-word;
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary)
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary)
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px
}

.card h3 {
    color: var(--text-main)
}

.card p {
    color: var(--text-muted)
}

/* RESULTADOS */
.results-parallax {
    padding: 100px 0;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80') fixed center/cover;
    position: relative;
    color: #fff;
    text-align: center
}

.overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .85)
}

.relative {
    position: relative;
    z-index: 2
}

.stat-item i {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 15px
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900
}

/* DEPOIMENTOS */
.section-dark {
    padding: 80px 0;
    background: #050505;
    color: #fff
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollLeft 40s linear infinite
}

.review-card {
    width: 300px;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
    white-space: normal;
    flex-shrink: 0
}

.review-card .user {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 10px
}

.review-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary)
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-25%)
    }
}

/* PORTFÓLIO (LINHA COM 3 NO DESKTOP) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    background: #e0e0e0
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 8s ease-in-out
}

.portfolio-item:hover img {
    transform: translateY(calc(-100% + 350px))
}

.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: .3s;
    height: 100%
}

.hover-info .btn-small {
    padding: 5px 10px;
    font-size: .8rem
}

.portfolio-item:hover .hover-info {
    opacity: 1
}

/* LP PORTFOLIO */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: .3s;
    font-size: 0.85rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.portfolio-item.hide {
    display: none
}

.portfolio-item.show {
    animation: fadeIn .5s ease forwards
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

/* FORM CORREÇÃO ZOOM MOBILE */
.prospect-form {
    max-width: 800px;
    margin: 0 auto
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-main);
    font-weight: 500
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 6px;
    outline: none;
    transition: .3s;
    font-size: 16px !important;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 171, 170, .3)
}

.phone-wrapper {
    display: flex;
    gap: 10px
}

.phone-wrapper select {
    width: auto;
    min-width: 100px;
    max-width: 120px
}

.phone-wrapper input {
    flex-grow: 1
}

/* FOOTER */
footer {
    background: #080808;
    color: #999;
    padding: 70px 0 20px;
    border-top: 1px solid #222
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    white-space: nowrap
}

.footer-col ul {
    list-style: none;
    padding: 0
}

.footer-col li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4
}

.footer-col li i {
    min-width: 18px;
    color: var(--primary);
    text-align: center;
    margin-top: 3px
}

.footer-col a {
    color: #999;
    text-decoration: none;
    transition: .3s;
    cursor: pointer;
    display: block
}

.footer-col a:hover {
    color: var(--primary)
}

.logo-footer {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block
}

.logo-footer span {
    color: var(--primary)
}

.socials {
    margin-top: 35px
}

.socials a {
    font-size: 1.2rem;
    margin-right: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.copyright {
    text-align: center;
    margin-top: 50px;
    font-size: .8rem;
    border-top: 1px solid #222;
    padding-top: 20px
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        transform: translateY(0)
    }
}

/* =========================================
   RESPONSIVIDADE LINHA POR LINHA (MOBILE FIX)
   ========================================= */

@media (max-width: 991px) {
    .hamburger {
        display: block
    }

    .nav-wrapper {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        background: rgba(10, 10, 18, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, visibility 0s .3s;
        padding-top: 100px;
        z-index: 2005;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: flex
    }

    .nav-wrapper.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, visibility 0s 0s;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6)
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 30px;
        align-items: center;
        /* CENTRALIZA AS LIS NO MOBILE */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-wrapper .nav-links a {
        color: #fff !important;
        font-weight: 600;
        font-size: 1.2rem;
    }

    .nav-wrapper .nav-links a:hover {
        color: var(--primary) !important;
    }

    /* ✅ BOTÃO NO MENU MOBILE - CENTRALIZAÇÃO E OVERFLOW FIX (CYAN) */
    .nav-wrapper .btn-nav {
        display: inline-flex !important;
        width: auto !important;
        min-width: 250px;
        max-width: 90%;
        margin: 10px auto;
        justify-content: center;
        align-items: center;
        padding: 14px 15px;
        font-size: 0.82rem !important;
        /* Tamanho reduzido para não estourar lateralmente no Android */
        background-color: var(--primary) !important;
        color: #fff !important;
        font-weight: bold;
        box-shadow: 0 5px 20px rgba(0, 242, 234, 0.4);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 50px;
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .top-bar {
        min-height: 65px;
        height: auto;
        padding: 8px 0;
    }

    .top-info {
        gap: 5px 15px;
        line-height: 1.2;
        font-size: 0.75rem;
    }

    nav {
        top: 65px;
    }

    body {
        padding-top: 130px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    #sobre .grid-4,
    .results-parallax .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    #servicos .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .portfolio-item {
        height: 220px !important
    }

    .portfolio-item:hover img {
        transform: translateY(calc(-100% + 220px))
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    #sobre .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .top-info {
        font-size: 0.7rem;
    }

    .footer-grid {
        gap: 40px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* COMPLEMENTOS */
.btn-pulse {
    animation: pulse 1.8s infinite ease-in-out
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.03)
    }

    100% {
        transform: scale(1)
    }
}

body:not(.prices-ready) #main-price,
body:not(.prices-ready) #nav-price-btn {
    visibility: hidden;
}