/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #3a3838;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: #004522;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.875rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #00733d;
    color: #fff;
    border-color: #00733d;
}

.btn-primary:hover {
    background: #fff;
    color: #00733d;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background: #cce8a3;
    color: #004522;
    border-color: #cce8a3;
}

.btn-dark {
    background: #004522;
    color: #fff;
    border-color: #004522;
}

.btn-dark:hover {
    background: #cce8a3;
    color: #004522;
    border-color: #cce8a3;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0 0 20px 20px;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.logo img {
    height: 55px;
    width: auto;
}

.menu-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.plans {
    position: relative;
    cursor: pointer;
}

.plans-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-weight: 500;
}

.plans-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #96ca4b;
    border-radius: 0 0 10px 10px;
    list-style: none;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 10;
}

.plans:hover .plans-content {
    opacity: 1;
    visibility: visible;
}

.plans-content li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.plans-content li:hover {
    background: #f5f5f5;
}

.menu-dropdown ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.menu-dropdown a {
    font-weight: 500;
    transition: color 0.2s;
}

.menu-dropdown a:hover {
    color: #00733d;
}

.search-btn {
    background: none;
    cursor: pointer;
    border: none;
}

.menu-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    cursor: pointer;
    border: none;
}

.menu-hamburger .line {
    width: 25px;
    height: 3px;
    background: #004522;
    border-radius: 2px;
    transition: 0.2s;
}

@media (max-width: 992px) {
    .menu-nav {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 85px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: 0.3s;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    .menu-nav.active { left: 0; }
    .menu-dropdown ul { flex-direction: column; gap: 1rem; }
    .menu-hamburger { display: flex; }
    .plans-content { position: static; opacity: 1; visibility: visible; width: 100%; border: none; display: none; }
    .plans.active .plans-content { display: block; }
}

/* ===== SLIDER ===== */
.main-slider {
    padding-top: 85px;
    position: relative;
}

.hero-swiper {
    width: 100%;
    overflow: hidden;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: auto;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #bdbdbd;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #96ca4b;
    width: 30px;
    border-radius: 8px;
}

/* ===== SELECT BAR ===== */
.select-bar {
    background: linear-gradient(83.44deg, #00733d, #96ca4b);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: -30px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-select-bar {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.btn-select-bar:hover {
    background: #96ca4b;
    border-color: #96ca4b;
}

/* ===== SEÇÕES ===== */
section { padding: 5rem 0; }
.section-default { padding: 4rem 0; }

.default-component {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.default-component .block-image { flex: 1; border-radius: 10px; overflow: hidden; }
.default-component .content { flex: 1; }
.default-component .content p { margin: 1.5rem 0; color: #182f43; }

@media (max-width: 768px) {
    .default-component { flex-direction: column; }
}

/* ===== CARDS ===== */
.section-cards {
    background: #004522;
    color: #fff;
    border-radius: 20px;
    margin: 2rem auto;
    width: calc(100% - 40px);
    max-width: 1150px;
}

.section-cards .container { padding: 3rem 2rem; }
.cards-header { text-align: center; margin-bottom: 3rem; }
.cards-header h2 { color: #fff; }
.cards-header p { max-width: 600px; margin: 0 auto; opacity: 0.9; }

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

.card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }
.card-image img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 1.5rem; }
.card-content h3 { color: #fff; margin-bottom: 0.75rem; }
.card-content p { margin-bottom: 1.5rem; font-size: 0.875rem; opacity: 0.9; }

/* ===== UNIDADES ===== */
.units-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.units-images { flex: 1; display: flex; gap: 1rem; }
.unit-stack { display: flex; flex-direction: column; gap: 1rem; }
.unit-stack img { border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.units-content { flex: 1; }
.units-content p { margin: 1.5rem 0; }

@media (max-width: 768px) {
    .units-container { flex-direction: column; }
    .units-images { order: 2; }
    .units-content { order: 1; }
}

/* ===== PLANOS ===== */
.section-plans { text-align: center; }
.plans-header { margin-bottom: 2rem; }
.plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.plan-card {
    background: #fff;
    border: 2px solid #00733d;
    border-radius: 15px;
    padding: 1.5rem;
    width: 280px;
    text-align: center;
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.plan-card h3 {
    color: #00733d;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #004522;
    margin: 1rem 0;
}

.plan-coverage {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ===== CTA ===== */
.cta-box {
    background: #96ca4b;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-content { flex: 1; }
.cta-content h2 { color: #004522; }
.cta-content p { margin: 1rem 0; }
.cta-image { flex: 0 0 200px; }

@media (max-width: 768px) {
    .cta-box { flex-direction: column; text-align: center; }
    .cta-image { order: -1; }
}

/* ===== NOTÍCIAS ===== */
.section-news { background: #f4f4f4; }
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover { transform: translateY(-5px); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 1.5rem; }
.news-tag {
    display: inline-block;
    background: #cce8a3;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.news-content h3 { font-size: 1.125rem; margin-bottom: 0.75rem; line-height: 1.4; }
.news-content time { font-size: 0.75rem; color: #737373; }

/* ===== MODAIS ===== */
.search-modal, .modal-contact, .modal-video {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.search-modal.active, .modal-contact.active, .modal-video.active {
    display: flex;
}

.search-modal-content, .modal-contact-content, .modal-video .modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal, .close-contact-modal, .close-video-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

#searchInput {
    width: 100%;
    padding: 12px;
    margin: 1rem 0;
    border: 2px solid #00733d;
    border-radius: 10px;
    font-size: 1rem;
}

#searchResults {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f4f4f4;
}

.form-success {
    background: #cce8a3;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.whatsapp-float a:hover {
    transform: scale(1.05);
    background: #128C7E;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

/* ===== RODAPÉ ===== */
.main-footer {
    background: #004522;
    color: #fff;
    padding: 3rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(150,202,75,0.4);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo img { height: 50px; }
.footer-badges { display: flex; gap: 1rem; }
.footer-badges img { height: 40px; }

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

.footer-col h4 { color: #96ca4b; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.875rem; }
.footer-col a { transition: opacity 0.2s; }
.footer-col a:hover { opacity: 0.8; text-decoration: underline; }

.social-links { display: flex; gap: 1rem; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #96ca4b;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: 0.2s;
    text-decoration: none;
}
.social-links a:hover { background: #cce8a3; transform: scale(1.05); }

.app-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.app-links img { height: 35px; }

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(150,202,75,0.4);
    font-size: 0.75rem;
    opacity: 0.8;
}
.copyright p { margin-bottom: 0.25rem; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    section { padding: 3rem 0; }
    .select-bar { flex-direction: column; align-items: stretch; }
    .btn-select-bar { text-align: center; }
    .cards-grid { grid-template-columns: 1fr; }
    .news-header { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .whatsapp-float a { padding: 8px 15px; }
    .whatsapp-float span { display: none; }
}