/* =============================================
   BigaBruler - Site PHP Puro
   ============================================= */

:root {
    --verde: #9bc933;
    --verde-hover: #88b329;
    --escuro: #4e001d;
    --bege: #ddc8a8;
    --cinza: #777777;
    --bege-escuro: #ddd0ba;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #444;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--verde); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--escuro); }

img { max-width: 100%; height: auto; }

/* ===== TOP BAR ===== */
.topbar {
    background: var(--escuro);
    color: rgba(255,255,255,.9);
    padding: 0 24px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left span { font-weight: 700; letter-spacing: .5px; }
.topbar-left a    { color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: 5px; }
.topbar-left a:hover { color: var(--verde); }
.topbar-right a   { color: rgba(255,255,255,.9); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.topbar-right a:hover { color: var(--verde); }

/* ===== NAVBAR (Logo Maior à Esquerda, Menu em Branco à Direita) ===== */
.navbar {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--verde);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
}

.navbar .logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.navbar .logo img {
    height: 68px;
    max-height: 68px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 0 0 auto;
    padding: 0;
}

.nav-links a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: none; /* Somente a primeira letra maiúscula */
    padding: 8px 10px;
    border-bottom: 2px solid transparent;
    border-radius: 4px;
    transition: all .2s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(78, 0, 29, 0.2);
    border-bottom-color: #ffffff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: auto;
    border-radius: 4px;
    transition: background .2s;
}

.nav-toggle:hover,
.nav-toggle:focus {
    background: rgba(0,0,0,0.12);
    outline: none;
}

/* ===== HERO (Centralizado) ===== */
.hero {
    height: 90vh;
    min-height: 540px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 130px; /* topbar 38px + navbar maior ~92px */
}

@media (min-width: 900px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 24px;
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: #fff;
    font-size: 46px;
    font-weight: 700;
    margin: 0 auto 18px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-content h2 {
    color: rgba(255,255,255,.94);
    font-size: 20px;
    font-weight: 400;
    margin: 0 auto 34px;
    max-width: 720px;
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--verde);
    color: #fff;
    border-color: var(--verde);
}

.btn-primary:hover {
    background: var(--verde-hover);
    border-color: var(--verde-hover);
    color: #fff;
}

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

.btn-outline:hover {
    background: #fff;
    color: var(--escuro);
}

/* ===== SECTIONS ===== */
.section {
    padding: 70px 20px;
}

.section-bege {
    background: var(--bege-escuro);
}

.section-light {
    background: #f8f8f8;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.section-title h4 {
    font-size: 16px;
    font-weight: 400;
    color: var(--cinza);
    margin: 0;
    line-height: 1.5;
}

/* ===== GRID ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* ===== BUILDING CARDS ===== */
.building-card {
    text-align: center;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.building-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.building-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.building-card-img-wrap {
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    display: block;
    overflow: hidden;
    transition: border-color .25s;
}

.building-card-img-wrap:hover {
    border-color: var(--verde);
}

.building-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.building-card:hover img {
    transform: scale(1.05);
}

/* ===== FEATURE ICONS ===== */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
}

.feature-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border: 2px solid var(--verde);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--verde);
    background: #fff;
    transition: all .3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--verde);
    color: #fff;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--escuro);
    margin: 0;
    line-height: 1.4;
}

.feature-item p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 6px 0 0;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-grid a img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.08);
}

.gallery-intro {
    padding-right: 20px;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 130px 20px 70px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid var(--verde);
}

.contact-info-item .icon {
    font-size: 26px;
    color: var(--verde);
    min-width: 36px;
    margin-top: 2px;
}

.contact-info-item h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--escuro);
}

.contact-info-item p {
    margin: 0;
    color: var(--cinza);
    line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 16px;
    transition: border-color .2s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(155, 201, 51, 0.2);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--verde);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s;
}

.contact-form button:hover {
    background: var(--escuro);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid #c3e6cb;
}

/* ===== MAP ===== */
.map-container {
    width: 100%;
    height: 380px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== CTA VERDE ===== */
.cta-verde {
    background: var(--verde);
    padding: 60px 20px;
    text-align: center;
}

.cta-verde h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* ===== GALERIA HOME ===== */
.home-gallery-section {
    padding: 70px 20px;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.home-gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.home-gallery-grid a img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease, opacity .3s;
}

.home-gallery-grid a:hover img {
    transform: scale(1.06);
    opacity: .9;
}

/* ===== FOOTER ===== */
.footer {
    background: #2b0010 url('../../uploads/IMG_0643PredioDalbem2.jpg') center/cover no-repeat;
    position: relative;
    color: rgba(255,255,255,.9);
    text-align: center;
}

.footer-overlay {
    background: rgba(15, 2, 6, 0.85);
    padding: 60px 20px 30px;
}

.footer .footer-logo img {
    height: 68px;
    max-width: 220px;
    margin-bottom: 16px;
    object-fit: contain;
}

.footer p {
    margin: 6px 0;
    font-size: 13px;
    color: rgba(255,255,255,.8);
}

.footer a {
    color: var(--verde);
}

.footer-social {
    margin: 18px 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-social a {
    color: rgba(255,255,255,.8);
    font-size: 22px;
    transition: color .2s;
}

.footer-social a:hover {
    color: var(--verde);
}

/* ===== SCROLL TO TOP (Posicionado discretamente acima ou à esquerda) ===== */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 22px;
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 500;
    text-decoration: none;
}

.scroll-top:hover {
    background: var(--escuro);
    color: #fff;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== WHATSAPP FLOATING BUTTON (À DIREITA) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20ba59;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    color: #fff !important;
}

/* ===== PAGE HERO ===== */
.page-hero {
    height: 55vh;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    margin-top: 130px; /* topbar 38px + navbar ~92px */
}

@media (min-width: 900px) {
    .page-hero {
        background-attachment: fixed;
    }
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

/* ===== RESPONSIVIDADE COMPLETA (MOBILE E TABLETS) ===== */
@media (max-width: 900px) {
    .topbar {
        padding: 0 12px;
        font-size: 11px;
    }
    
    .topbar-left span { display: none; }
    .topbar-right { display: none; }

    .navbar {
        padding: 10px 18px;
    }

    .navbar .logo img {
        height: 54px;
        max-height: 54px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 74px; /* altura da navbar em mobile */
        left: 0;
        right: 0;
        width: 100%;
        background: #9bc933;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        box-shadow: 0 8px 18px rgba(0,0,0,.25);
        z-index: 1000;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links li a {
        display: block;
        padding: 14px 24px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        text-transform: none; /* Somente a primeira letra maiúscula */
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .nav-links li a.active,
    .nav-links li a:hover {
        background: rgba(78, 0, 29, 0.25);
        color: #ffffff;
        border-bottom-color: rgba(255,255,255,0.15);
    }

    .nav-toggle {
        display: block;
        color: #ffffff;
    }

    .hero {
        min-height: 480px;
        height: auto;
        padding: 70px 0 50px;
        margin-top: 112px;
        justify-content: center;
        text-align: center;
    }

    .page-hero {
        min-height: 280px;
        height: 40vh;
        margin-top: 112px;
    }

    .hero-content {
        padding: 20px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .hero-content h2 {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gallery-intro {
        padding-right: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section {
        padding-top: 110px;
    }

    .section {
        padding: 50px 15px;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .scroll-top {
        bottom: 76px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content h2 {
        font-size: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .home-gallery-grid {
        grid-template-columns: 1fr;
    }

    .home-gallery-grid a img {
        height: 180px;
    }
}

