/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2c5530;
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-zatt { height: 40px; display: block; }
.footer-logo { height: 48px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Estado no topo (sobre o banner): links brancos */
.header:not(.scrolled) .nav-link { color: #ffffff; }
.header:not(.scrolled) .nav-link:hover { color: #ffffff; opacity: 0.9; }

.nav-link:hover {
    color: #001f3f;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B42436;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #001f3f;
    margin: 3px 0;
    transition: 0.3s;
}

.header:not(.scrolled) .bar { background: #ffffff; }

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/sitejardins/assets/images/render/vista-leste-dia.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; filter: brightness(0.8); }
.mejs__container video, .mejs__mediaelement, .mejs__container .mejs__mediaelement video { width: 100% !important; height: 100% !important; object-fit: cover; }
.mejs__container, .mejs__overlay, .mejs__mediaelement { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; }
.mejs__controls, .mejs__layers, .mejs__overlay-play { display: none !important; }

.hero-navy .hero-content .hero-title { color: #ffffff; }
.hero-navy .hero-content .hero-subtitle { color: #ffffff; }

.pre-venda-box {
    background: #B42436;
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-top: 16px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(180,36,54,0.35);
}
.pre-venda-box h3 { margin-bottom: 12px; }
.pre-venda-box ul { list-style: none; margin: 0 0 16px 0; padding: 0; }
.pre-venda-box li { margin: 6px 0; }

.btn-red {
    background: #B42436;
    color: #fff;
    border: 2px solid #B42436;
}
.btn-red:hover {
    background: #8E1F2A;
    border-color: #8E1F2A;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(180,36,54,0.35);
}
.btn-whatsapp { border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.btn-hero { display: inline-block; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: left;
    color: white;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: #e9ecef;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero-left { max-width: 720px; }
.hero-right { max-width: 520px; }

.btn {
    display: inline-block;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #2c5530;
    color: white;
    border: 2px solid #2c5530;
}

.btn-primary:hover {
    background: transparent;
    color: #2c5530;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c5530;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Ajustes dos botões Detalhes e Ver fotos nos cards */
.tower-content .btn-details,
.tower-content .btn-photos {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 999px;
    margin-right: 8px;
    margin-bottom: 8px;
    width: auto;
    display: inline-flex;
    gap: 6px;
}

/* Cor específica do botão Ver fotos (navy) */
.btn-photos {
    background: #001f3f;
    color: #fff;
    border: 2px solid #001f3f;
}
.btn-photos:hover {
    background: #022a61;
    color: #fff;
    border-color: #022a61;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,31,63,0.25);
}

/* CTA do topo (pré-venda) em azul escuro igual ao rodapé */
.pre-venda-box .btn-hero {
    background: #001f3f;
    color: #fff;
    border: 2px solid #001f3f;
}
.pre-venda-box .btn-hero:hover {
    background: #022a61;
    border-color: #022a61;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,31,63,0.25);
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: #001f3f;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.9rem;
    color: #6c757d;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.about-image .about-image-secondary { margin-top: 20px; }
.about-cta { text-align: center; width: 100%; display: flex; justify-content: center; margin-top: 24px; grid-column: 1 / -1; }

/* Towers Section */
.towers {
    padding: 100px 0;
    background: #f8f9fa;
}

.towers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tower-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tower-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tower-image {
    height: 250px;
    overflow: hidden;
}

.tower-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tower-card:hover .tower-image img {
    transform: scale(1.1);
}

.tower-content {
    padding: 2rem;
}

.tower-content h3 {
    font-size: 1.5rem;
    color: #001f3f;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tower-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tower-features {
    list-style: none;
    margin-bottom: 2rem;
}

.tower-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.tower-features i {
    color: #2c5530;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.tower-link {
    display: inline-flex;
    align-items: center;
    color: #001f3f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tower-link:hover {
    color: #1e3a21;
}

.tower-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.tower-link:hover i {
    transform: translateX(5px);
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: white;
}

/* Testimonials */
.testimonials { padding: 150px 0; background: #fff; }
.testimonial-carousel { position: relative; overflow: hidden; }
.ts-track { display: flex; transition: transform .5s ease; }
.ts-slide { min-width: 100%; padding: 10px; }
.ts-card { background: #fff; border: 1px solid #e6e8ee; border-radius: 16px; padding: 45px 80px; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.ts-header { color: #001f3f; font-weight: 700; margin-bottom: 12px; }
.ts-body { color: #333; line-height: 1.7; white-space: pre-wrap; }
.ts-footer { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.ts-logo { height: 28px; }
.ts-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid #e6e8ee; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #001f3f; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.1); z-index: 10; }
.ts-prev { left: 10px; }
.ts-next { right: 10px; }

/* Galeria multimídia */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.filter-btn { background: #fff; border: 2px solid #e6e8ee; color: #001f3f; padding: 10px 20px; border-radius: 25px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; }
.filter-btn:hover { background: #001f3f; color: #fff; border-color: #001f3f; transform: translateY(-2px); }
.filter-btn.active { background: #B42436; color: #fff; border-color: #B42436; }
.media-carousel { position: relative; overflow: hidden; margin-bottom: 32px; }
.media-track { display: flex; gap: 16px; transition: transform .5s ease; }
.media-slide { min-width: 70%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.media-slide img { width: 100%; height: 380px; object-fit: cover; display: block; }
.media-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid #e6e8ee; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #001f3f; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.1); z-index: 10; }
.media-prev { left: 10px; }
.media-next { right: 10px; }

.video-embed .video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.video-embed .video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }


/* Conversão final */
.conversion { padding: 80px 0; background: #001f3f; color: #fff; text-align: center; }
.conversion h2 { margin-bottom: 10px; }
.conversion p { margin-bottom: 20px; color: #c9d4e5; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: #2c5530;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 50px 0 20px;
}
.footer-navy { background: #001f3f; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: #b8c5ba;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b8c5ba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8c5ba;
}
.xlabi-logo { height: 18px; vertical-align: middle; display: inline-block; }

/* Modal de PDF */
.pdf-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2000; }
.pdf-modal.open { display: flex; }
.pdf-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.pdf-modal-content { position: relative; background: #fff; width: min(1000px, 92%); height: min(90vh, 900px); border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.pdf-modal-close { position: absolute; top: 10px; right: 10px; background: #B42436; color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(180,36,54,.35); z-index: 2; }
.pdf-modal-close:hover { background: #8E1F2A; transform: translateY(-2px); }
.pdf-modal-body { flex: 1; }
.pdf-modal-body iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 768px) {
    .pdf-modal-content { width: 96%; height: 85vh; border-radius: 10px; }
    .pdf-modal-close { width: 36px; height: 36px; }
}

/* Ajustes específicos do modal de Depoimentos */
#testimonialsModal .pdf-modal-overlay { background: transparent; }
#testimonialsModal .pdf-modal-content {
    background: transparent;
    box-shadow: none;
    height: auto;
    max-height: 90vh;
    overflow: auto;
}
#testimonialsModal .pdf-modal-body {
    flex: 0 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header - mobile alignment and compact CTA */
    .navbar { padding: 0.75rem 0; }
    .nav-container { padding: 0 16px; }
    .logo-zatt { height: 32px; }
    .nav-actions { display: flex; align-items: center; gap: 10px; }
    .btn.btn-whatsapp { padding: 8px 12px; font-size: 0.85rem; line-height: 1; }
    .btn.btn-whatsapp i { font-size: 1rem; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(4px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1.25rem 0 2rem;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 1200;
    }

    /* Garantir contraste no menu mobile */
    .nav-menu .nav-item { list-style: none; }
    .nav-menu .nav-link {
        color: #ffffff;
        display: block;
        padding: 8px 0;
        font-weight: 600;
        text-decoration: none;
    }
    .nav-menu .nav-link:hover { color: #ffffff; opacity: 0.85; }
    .nav-menu .nav-link::after { display: none; }

    /* Ícone hambúrguer visível sobre o menu escuro */
    .nav-toggle.active .bar { background: #ffffff; }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        background-attachment: scroll;
        /* Compensar header fixo para o título não ficar sob o menu */
        padding-top: 90px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description { font-size: 1rem; }

    .hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-right { max-width: 100%; }
    .pre-venda-box { margin-top: 0; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn { padding: 15px 25px; font-size: 1rem; }

    /* CTAs em largura total no mobile (não afeta os botões dos cards) */
    .btn-hero,
    .about-cta .btn,
    .conversion .btn,
    .pre-venda-box .btn {
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .towers-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }


    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Ainda menor em telas muito pequenas */
    .btn.btn-whatsapp { padding: 6px 10px; font-size: 0.8rem; }
    .logo-zatt { height: 30px; }

    .hero-title {
        font-size: 2rem;
    }

    /* Em telas muito pequenas, um pouco mais de respiro abaixo do header */
    .hero { padding-top: 100px; }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tower-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image,
.section-header,
.tower-card,
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2c5530;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a21;
}
