/* Massaro Locação - Premium CSS */

:root {
    --yellow: #FFD700;
    --yellow-dark: #F0C000;
    --black: #0a0a0a;
    --dark: #111111;
    --dark2: #1a1a1a;
    --dark3: #222222;
    --gray: #888888;
    --white: #ffffff;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 9999 !important;
    background: rgba(10, 10, 10, 0.97) !important;
    border-bottom: 3px solid var(--yellow) !important;
    backdrop-filter: blur(10px);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #2a2a2a 100%);
    border-bottom: 4px solid var(--yellow);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.75);
    pointer-events: none;
}

.hero-with-bg {
    background-image: url('../images/fundo.png');
    background-size: cover;
    background-position: center;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.1; }

h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -1px; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.5px; text-transform: uppercase; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ── BUTTONS ── */
.btn-yellow {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    padding: 1rem 2.5rem;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}
.btn-yellow:hover {
    background: var(--yellow-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.45);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--yellow);
    padding: 1rem 2.5rem;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    border: 2px solid var(--yellow);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(255,215,0,0.1);
    transform: translateY(-3px);
}

/* ── SERVICES CARDS (dark bg) ── */
#servicos {
    background: var(--dark) !important;
}

.service-card {
    background: var(--dark2);
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    border-color: var(--yellow);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.1);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: all 0.35s ease;
}
.service-card:hover img { filter: brightness(1); transform: scale(1.03); }

.service-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card-icon {
    width: 48px; height: 48px;
    background: var(--yellow);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.service-card h3 { color: var(--white); margin-bottom: 0.75rem; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.service-card ul { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.service-card ul li {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.service-card ul li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--yellow);
    font-weight: 900;
}
.service-card .btn-card {
    display: block;
    text-align: center;
    background: var(--yellow);
    color: var(--black);
    padding: 0.85rem;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255,215,0,0.25);
}
.service-card .btn-card:hover {
    background: var(--yellow-dark);
    box-shadow: 0 6px 24px rgba(255,215,0,0.4);
    transform: translateY(-2px);
}

/* ── CTA STRIP ── */
.cta-strip {
    background: var(--yellow);
    padding: 3rem 2rem;
}
.cta-strip h2 { color: var(--black); }
.cta-strip p { color: rgba(0,0,0,0.7); }

/* ── DIFERENCIAIS ── */
#diferenciais { background: var(--black) !important; }

.diferencial-item {
    background: var(--dark2);
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}
.diferencial-item:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.diferencial-item .icon {
    width: 64px; height: 64px;
    background: rgba(255,215,0,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255,215,0,0.2);
}
.diferencial-item:hover .icon {
    background: rgba(255,215,0,0.2);
    border-color: var(--yellow);
}
.diferencial-item h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1rem; }
.diferencial-item p { color: var(--gray); font-size: 0.85rem; line-height: 1.6; }

/* ── EQUIPAMENTOS ── */
#equipamentos { background: var(--dark) !important; }

.equip-card {
    background: var(--dark2);
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.equip-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.equip-card img {
    width: 100%; height: 260px;
    object-fit: cover;
    transition: all 0.35s ease;
}
.equip-card:hover img { transform: scale(1.03); }
.equip-card-body { padding: 2rem; }
.equip-card h3 { color: var(--white); margin-bottom: 0.75rem; }
.equip-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.equip-checklist { list-style: none; margin-bottom: 1.5rem; }
.equip-checklist li {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.equip-checklist li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--yellow); font-weight: 900;
}

/* ── FAQ ── */
#faq { background: var(--black) !important; }

.faq-item {
    background: var(--dark2);
    border: 1px solid rgba(255,215,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}
.faq-item.active, .faq-item:hover { border-color: rgba(255,215,0,0.35); }

.faq-toggle {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem;
    background: none; border: none; cursor: pointer; text-align: left;
    user-select: none;
}
.faq-toggle:focus { outline: none; }
.faq-toggle h3 { color: var(--white); font-size: 0.95rem; font-weight: 700; }
.faq-toggle .icon {
    color: var(--yellow);
    font-size: 1.5rem; font-weight: 900;
    flex-shrink: 0; margin-left: 1rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle .icon { transform: rotate(45deg); }

.faq-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0; padding: 0 1.5rem;
}
.faq-content.show {
    max-height: 300px; opacity: 1;
    padding: 0 1.5rem 1.25rem;
}
.faq-content p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }

/* ── CONTACT FINAL ── */
#contato { background: var(--dark) !important; }

.contact-box {
    background: var(--dark2);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

/* ── FOOTER ── */
footer { background: var(--black) !important; border-top: 3px solid var(--yellow); }
footer h4 { color: var(--white); }
footer a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--yellow); }
footer a::after { display: none; }

/* ── WHATSAPP BUTTON ── */
#whatsapp-btn {
    position: fixed !important;
    bottom: 28px !important; right: 28px !important;
    z-index: 9999 !important;
    width: 60px; height: 60px;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    visibility: visible !important; opacity: 1 !important;
    pointer-events: auto !important;
    border: none !important;
}
#whatsapp-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}
#whatsapp-btn::after { display: none; }

/* ── SCROLL TOP ── */
#scroll-to-top {
    position: fixed;
    bottom: 28px; right: 100px;
    z-index: 9998;
    width: 48px; height: 48px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
#scroll-to-top.hidden { display: none; }
#scroll-to-top:hover { transform: translateY(-3px); }

/* ── TOAST ── */
.toast {
    position: fixed; bottom: 20px; right: 20px;
    background: #10b981; color: white;
    padding: 1rem 1.5rem; border-radius: 8px;
    opacity: 0; z-index: 10000;
    font-weight: 700;
    display: flex; align-items: center; gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-width: 380px; transition: opacity 0.3s ease;
}
.toast.show { opacity: 1; }
.toast-error { background: #dc2626; }
.toast-info { background: #3b82f6; }

/* ── COUNTER ── */
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }
[data-counter] { animation: countUp 0.6s ease-out forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero { min-height: auto; padding-top: 90px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.7rem; }
    #whatsapp-btn { bottom: 20px !important; right: 20px !important; }

    /* Equipamentos responsive */
    #equipamentos > div > div:last-of-type {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .equip-card {
        display: flex;
        flex-direction: column;
    }

    .equip-card img {
        height: 200px;
    }

    /* Serviços responsive */
    #servicos .grid {
        grid-template-columns: 1fr !important;
    }

    /* Padding reduction for mobile */
    section { padding: 2rem 0 !important; }
    .contact-box { padding: 2rem !important; }
    .cta-strip { padding: 2rem 1rem !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    /* Extra tight spacing on small phones */
    section { padding: 1.5rem 0 !important; }

    #whatsapp-btn { bottom: 16px !important; right: 16px !important; width: 52px !important; height: 52px !important; }
    #scroll-to-top { bottom: 16px !important; right: 80px !important; width: 44px !important; height: 44px !important; }

    .gal-wrapper { padding: 0 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr !important; gap: 0.4rem; }
}

/* ── SECTION HEADERS ── */
.section-tag {
    display: inline-block;
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section-title-white { color: var(--white); }
.section-title-black { color: var(--black); }
.section-sub { font-size: 1rem; font-weight: 500; }
.section-sub-dark { color: rgba(255,255,255,0.5); }
.section-sub-light { color: rgba(0,0,0,0.6); }

/* ── GALERIA ─────────────────────────────────────────────────── */

/* Wrapper com espaço lateral para as setas */
.gal-wrapper {
    position: relative;
    padding: 0 3.5rem;
}

@media (max-width: 640px) { .gal-wrapper { padding: 0 2.5rem; } }

/* Setas laterais */
.gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 80px;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 6px;
    color: #FFD700;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.3s;
    z-index: 10;
}
.gal-arrow:hover { background: rgba(255,215,0,0.28); }
.gal-arrow-left  { left: 0; }
.gal-arrow-right { right: 0; }

/* Grade 4 colunas fixas */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (max-width: 900px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }

/* Dots de paginação */
.gal-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,215,0,0.25);
    border: 1px solid rgba(255,215,0,0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.gal-dot.active,
.gal-dot:hover { background: #FFD700; transform: scale(1.2); }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: var(--dark3);
    border: 1px solid rgba(255,215,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s;
}

.gallery-item:hover { transform: scale(1.03); border-color: var(--yellow); }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── LIGHTBOX ────────────────────────────────────────────────── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#lightbox.open { display: flex; }

.lb-inner {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    position: relative;
}

#lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid rgba(255,215,0,0.3);
    display: block;
    margin: 0 auto;
}

#lb-cap {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-style: italic;
}

.lb-close, .lb-prev, .lb-next {
    position: fixed;
    background: rgba(255,215,0,0.15);
    border: 1px solid rgba(255,215,0,0.3);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 100000;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
    background: rgba(255,215,0,0.4);
}

.lb-close {
    top: 1.25rem; right: 1.25rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}

.lb-prev, .lb-next {
    top: 50%; transform: translateY(-50%);
    width: 48px; height: 64px;
    border-radius: 4px;
    font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

@media (max-width: 640px) {
    .lb-prev { left: 0.25rem; }
    .lb-next { right: 0.25rem; }
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
