@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;400;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --gold:       #d4a017;
  --gold-light: #e8b94f;
  --gold-dark:  #b8880f;
  --bg-dark:    #0f172a;
  --bg-card:    #1a2236;
  --bg-card2:   #1e2840;
  --border:     rgba(212,160,23,0.14);
  --border-soft: rgba(255,255,255,0.07);
  --text:       #e8eaf0;
  --text-muted: #7e8ba4;
  --text-soft:  #b0bac8;
  --white:      #ffffff;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #172035 50%, #0f172a 100%);
  --gradient-gold: linear-gradient(135deg, #d4a017, #b8880f);
  --shadow-gold: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.45);
  --radius:     14px;
  --radius-sm:  9px;
  --transition: 0.32s cubic-bezier(0.4,0,0.2,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Proposal Header */
.proposal-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.proposal-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Hero Proposal */
.hero-proposal {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: var(--gradient-hero);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(212, 160, 23, 0.1);
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border-radius: 2rem;
}

.hero-proposal h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero-proposal p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Sections */
.proposal-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.dark-bg {
    background-color: var(--bg-dark);
    color: var(--text);
    border-bottom: none;
}

.section-tag {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--gold);
}

/* Expertise */
.expertise-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.expertise-item {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.expertise-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 160, 23, 0.3);
    box-shadow: var(--shadow-card);
}

.expertise-item .num {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}

.expertise-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.expertise-item p {
    color: var(--text-muted);
}

/* Categories */
.category-block {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    pointer-events: none; /* Previne clique com botão direito/arrastar na imagem direto */
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Categories Spacing */
.category-block {
    margin-bottom: 6rem;
}

.category-title {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 160, 23, 0.14);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--gold);
}

/* Buttons */
.btn, .btn-large {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-gold);
    color: #0f172a;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.5rem 4rem;
}

.btn:hover, .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.98);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.lightbox.active { display: flex; }

.lightbox-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 95%;
    max-width: 1400px;
    height: 85vh;
}

.lightbox-img-area {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-wrapper {
    position: relative;
    display: inline-block;
}

.img-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    border: 3px solid var(--gold);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    border-radius: 5px;
}

/* Watermark */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background-image: url('logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
    z-index: 10;
}

.lightbox-info-panel {
    flex: 0.8;
    max-width: 450px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-caption {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.lightbox-description {
    font-size: 1.1rem;
    color: var(--text-soft);
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 160, 23, 0.2);
}

.close-lightbox {
    position: absolute;
    top: 2rem; right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.5;
}

.lightbox-nav {
    position: fixed;
    top: 50%; 
    width: 100vw; 
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 10000;
}

.nav-btn {
    pointer-events: auto;
    background: rgba(212, 160, 23, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-btn:hover { background: var(--gold); color: #0f172a; }

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .lightbox {
        overflow: hidden;
    }

    .lightbox-content {
        flex-direction: column;
        height: 100%;
        width: 100%;
        padding: 0;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .lightbox-img-area { 
        width: 100%;
        height: 35vh; /* REDUZIDO para dar visibilidade ao texto */
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none; 
        margin-top: 3.5rem; /* Subiu um pouco a imagem */
        padding: 0 1rem;
    }

    .img-wrapper {
        max-height: 35vh;
        max-width: 100%;
    }

    .img-wrapper img { 
        max-height: 35vh;
        max-width: 100%;
        width: auto;
    }

    .lightbox-info-panel { 
        width: 100%; 
        text-align: center; 
        flex: none; 
        padding: 2.5rem 1.5rem 180px; /* Muito mais espaço no fundo */
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), #0f172a);
        border-radius: 30px 30px 0 0;
        margin-top: -20px; /* Faz o card "subir" um pouco sobre a imagem */
        border-top: 1px solid rgba(212, 160, 23, 0.3);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    }

    .lightbox-caption { 
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
        line-height: 1.3;
        color: var(--gold);
        font-family: 'Outfit', sans-serif;
    }

    .lightbox-description {
        font-size: 1.05rem;
        color: var(--text-soft);
        line-height: 1.7;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left; /* Texto à esquerda fica mais profissional para descrições longas */
    }

    .lightbox-nav {
        position: fixed;
        bottom: 1.5rem;
        top: auto;
        left: 0;
        width: 100%;
        height: auto;
        transform: none;
        padding: 0 1.5rem;
        background: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 10010;
        pointer-events: none;
    }

    .nav-btn {
        pointer-events: auto;
        width: 55px;
        height: 55px;
        background: var(--gold);
        color: #0f172a;
        font-size: 1.2rem;
        opacity: 1;
        border-radius: 15px; /* Quadrado arredondado fica mais moderno que círculo total */
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    .close-lightbox {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        background: rgba(15, 23, 42, 0.8);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 1.5rem;
        z-index: 10015;
        border: 1px solid rgba(212, 160, 23, 0.3);
    }
}

/* Footer */
.proposal-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1.2rem; }
    .section-tag { font-size: 1.8rem; margin-bottom: 2rem; }
    .hero-proposal h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
    .hero-proposal p { font-size: 1.1rem; }
    
    .category-title { 
        font-size: 1.3rem; 
        justify-content: center;
        text-align: center;
    }
    .category-title::before { display: none; }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .btn-large { padding: 1.2rem 2rem; font-size: 1rem; width: 100%; text-align: center; }
}
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

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

/* =======================================================
   WHATSAPP MODAL & PROMOTION (PREMIUM REFINEMENT)
   ======================================================= */

/* Botão Flutuante */
.whatsapp-flutuante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
}
.whatsapp-flutuante svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}
.whatsapp-flutuante:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

/* Modal de Lead */
.form-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    padding: 24px;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.4s ease;
}
.form-modal h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}
.form-modal input, .form-modal textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}
.form-modal input:focus, .form-modal textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.06);
}
.form-modal button {
    width: 100%;
    background: var(--gradient-gold);
    color: #010101;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}
.form-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212,160,23,0.3);
}

/* Modal de Promoção */
#promo-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid var(--gold);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(212, 160, 23, 0.25);
    z-index: 2000;
    max-width: 90%;
    width: 380px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}
#promo-modal h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 900;
}
#promo-modal p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
#promo-modal strong {
    color: var(--gold);
}
#promo-modal span {
    display: block;
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 900;
    margin: 10px 0 20px;
    font-family: monospace;
    letter-spacing: 2px;
}
#promo-modal .aceitar {
    background: var(--gradient-gold);
    color: #000;
    font-weight: 800;
}
#promo-modal .recusar {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 0.8rem;
    padding: 8px;
}
#promo-modal .recusar:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments for Modals */
@media (max-width: 480px) {
    .form-modal {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
        padding: 20px;
    }
    .whatsapp-flutuante {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-flutuante svg {
        width: 24px;
        height: 24px;
    }
    /* Hide WA button when modal is open on mobile */
    .form-modal.active ~ .whatsapp-flutuante {
        display: none;
    }
    #promo-modal {
        width: 95%;
        padding: 24px;
    }
    #promo-modal h3 { font-size: 1.2rem; }
    #promo-modal span { font-size: 1.8rem; }
}

/* =======================================================
   PORTFOLIO FILTERS
   ======================================================= */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.filter-btn:hover {
    color: var(--white);
    border-color: rgba(212, 160, 23, 0.35);
}

.filter-btn.active {
    background: var(--gradient-gold);
    color: #0f172a;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

/* Dynamic Filter Transition */
.category-block.filter-item {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-block.filter-item.hidden {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}
