/* =========================================================
   GM OBRAS CONSTRUTORA - STYLESHEET OTIMIZADO & LEVE
   High Performance & Responsive Layout
   ========================================================= */

/* --- 1. VARIÁVEIS E RESET GLOBAL --- */
:root {
    --primary: #ffcc00;
    --primary-hover: #e6b800;
    --secondary: #000000;
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #222222;
    --text-muted: #888888;
    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Oswald', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* --- 2. HEADER & NAVEGAÇÃO FIXA --- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary);
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-wrapper img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.8rem;
}

.navigation ul li a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.navigation ul li a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.navigation ul li a:not(.btn-cta):hover::after {
    width: 100%;
}

.btn-cta {
    background-color: var(--primary);
    color: var(--secondary) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

.btn-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- 3. CARROSSEL INFINITO (PROMO) OTIMIZADO --- */
.promo-container {
    margin-top: 95px;
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    background-color: #fcfcfc;
}

.promo {
    display: flex;
    width: max-content;
    gap: 25px;
    will-change: transform;
    animation: rolarInfinito 30s linear infinite;
}

.promo:hover {
    animation-play-state: paused;
}

.item-venda {
    flex-shrink: 0;
}

.item-venda img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-venda img:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

@keyframes rolarInfinito {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- 4. HERO BANNER DE TEXTO --- */
.hero-text-container {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-left: 10px solid var(--primary);
    margin: 40px auto;
    width: 90%;
    max-width: 1100px;
    padding: 35px 30px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: var(--shadow-soft);
}

.hero-text-container h1 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-text-container p {
    color: #cccccc;
    font-size: 1.05rem;
    border-top: 1px solid #2a2a2a;
    padding-top: 15px;
}

/* --- 5. FILTRO DE SERVIÇOS SELETOR --- */
.filter-wrapper {
    text-align: center;
    padding: 35px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin: 20px 0 40px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-wrapper label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    text-transform: uppercase;
}

#service-filter {
    padding: 12px 22px;
    width: 100%;
    max-width: 420px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    font-size: 0.98rem;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--secondary);
    background-color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
}

#service-filter:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

/* --- 6. CONTAINER DE SEÇÕES E TÍTULOS --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto 70px auto;
    padding: 0 5%;
}

.title-impact {
    font-family: var(--font-title);
    text-align: center;
    font-size: 2.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 45px;
    position: relative;
    padding-bottom: 12px;
    color: var(--secondary);
}

.title-impact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* --- 7. CARDS DE SERVIÇOS --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 45px;
    transition: transform 0.3s ease;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.s-img {
    flex: 1.2;
    height: 330px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.s-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease;
}

.service-item:hover .s-img img {
    transform: scale(1.04);
}

.s-text {
    flex: 1;
}

.s-text h4 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--secondary);
}

.s-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
}

/* --- 8. GRID SOBRE NÓS --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.text-block h2 {
    text-align: left;
    margin-bottom: 20px;
}

.text-block h2::after {
    left: 0;
    transform: none;
}

.text-block p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #555555;
}

.image-placeholder.main-img .img-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border-left: 6px solid var(--primary);
    box-shadow: var(--shadow-soft);
}

/* --- 9. SEÇÃO DE AVALIAÇÕES --- */
.reviews-section {
    padding: 30px 0 60px 0;
    background-color: #fafafa;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto 0 auto;
}

.review-card {
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.review-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 10. RODAPÉ --- */
.footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 50px 5% 25px 5%;
    text-align: center;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.f-brand p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #cccccc;
}

.footer-logo-wrapper img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.f-info {
    text-align: right;
}

.f-info a, .f-info p {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.f-info a:hover {
    color: var(--primary);
}

.copy {
    font-size: 0.85rem;
    color: #888888;
    margin-top: 8px;
}

.copy a {
    color: #aaaaaa;
    text-decoration: underline;
}

.copy a:hover {
    color: var(--primary);
}

/* --- 11. BOTÕES FLUTUANTES (FAB) --- */
.fab-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.fab-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    will-change: transform;
}

.fab-btn:hover {
    transform: scale(1.1);
}

.whatsapp {
    background-color: #25d366;
}

.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* --- 12. RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-item, .service-item.reverse {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 12px 20px;
        gap: 8px;
    }

    .navigation ul {
        gap: 1rem;
    }

    .navigation ul li a {
        font-size: 0.8rem;
    }

    .btn-cta {
        padding: 0.4rem 1rem;
        font-size: 0.75rem !important;
    }

    .promo-container {
        margin-top: 115px;
        padding: 20px 0;
    }

    .item-venda img {
        width: 220px;
        height: 310px;
    }

    .hero-text-container {
        width: 95%;
        padding: 25px 20px;
        border-left-width: 6px;
    }

    .hero-text-container h1 {
        font-size: 1.5rem;
    }

    .title-impact {
        font-size: 1.8rem;
    }

    .service-item, .service-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .s-img, .image-placeholder.main-img .img-inner img {
        height: 250px;
        width: 100%;
    }

    .image-placeholder.main-img .img-inner img {
        border-left: none;
        border-bottom: 5px solid var(--primary);
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .f-info {
        text-align: center;
    }

    .fab-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .promo-container {
        margin-top: 125px;
    }

    .item-venda img {
        width: 180px;
        height: 260px;
    }

    #service-filter {
        font-size: 0.9rem;
    }
}