:root {
    --brand-dark: #0f241b;
    --brand-primary: #184938;
    --brand-primary-hover: #123629;
    --brand-accent: #b0651a;
    --brand-accent-hover: #8f5215;
    --brand-login: #184938;
    --brand-login-hover: #123629;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f8fafc;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    transition: .3s;
}

main {
    padding-top: 80px;
}

body, html {
    max-width: 100%;
    overflow-x: hidden;
}

.slide-1 picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 200;
    transition: top .3s ease-in-out;
    left: 0;
    right: 0;
}

.brand, .hero {
    position: relative;
}

.navbar.nav-hidden {
    top: -100px;
}

.hero-slideshow, .slide {
    top: 0;
    position: absolute;
    left: 0;
}

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

.brand, .brand a {
    display: flex;
    height: 100%;
}

.brand {
    align-items: center;
    gap: 12px;
    z-index: 160;
}

.brand a, .nav-links {
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: none;
    gap: 30px;
}

.nav-links a:not(.btn-login) {
    color: var(--text-muted);
    font-weight: 500;
}

.icon-blue, .nav-links a:not(.btn-login):hover {
    color: var(--brand-primary);
}

.btn-login {
    background-color: var(--brand-login);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(24,73,56,.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .3s;
}

.btn-login:hover {
    background-color: var(--brand-login-hover);
    color: #fff !important;
    transform: translateY(-2px);
}

.hero {
    background-color: var(--brand-dark);
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    overflow: hidden;
}

.btn-associese-hero, .btn-whatsapp {
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
}

.hero-slideshow {
    right: 0;
    bottom: 0;
    z-index: 0;
}

.contact-section::before, .hero-overlay {
    top: 0;
    right: 0;
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: 15s infinite fade-slides;
}

.slide-1 {
    background-image: none !important;
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('/assets/slide-2.webp');
    animation-delay: 5s;
}

.slide-3 {
    background-image: url('/assets/slide-3.webp');
    animation-delay: 10s;
}

@keyframes fade-slides {
    0%, 100%, 43% {
        opacity: 0;
        transform: scale(1.05);
    }
    10%, 33% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-overlay {
    background-color: rgba(0,0,0,.655);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.categories-section, .max-w-7xl, .news-section, .quick-access {
    max-width: var(--container-width);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

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

.btn-associese-hero {
    background-color: var(--brand-accent);
    color: #fff !important;
    box-shadow: 0 10px 15px rgba(206,126,45,.3);
    transition: .3s;
}

.btn-associese-hero:hover {
    background-color: var(--brand-accent-hover);
    color: #fff !important;
}

.btn-whatsapp {
    background-color: #128c7e;
    color: #fff !important;
    box-shadow: 0 10px 15px rgba(29,151,74,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-card, .service-card {
    background: #fff;
    border-radius: 12px;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    background-color: #075e54;
}

.quick-access {
    margin: -50px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

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

.service-card {
    padding: 24px;
    box-shadow: 0 10px 15px rgba(0,0,0,.05);
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    border-top: 4px solid transparent;
}

.category-card, .news-card {
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0,0,0,.1);
}

.border-blue {
    border-top-color: var(--brand-primary);
}

.border-red {
    border-top-color: #ef4444;
}

.border-orange {
    border-top-color: var(--brand-accent);
}

.border-green {
    border-top-color: #22c55e;
}

.service-card i {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    transition: transform .3s;
}

.service-card:hover i {
    transform: scale(1.1);
}

.icon-red {
    color: #ef4444;
}

.icon-orange {
    color: var(--brand-accent);
}

.icon-green {
    color: #22c55e;
}

.service-card h2 {
    font-size: 1.125rem;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.service-card p {
    font-size: .875rem;
    color: var(--text-muted);
}

.categories-section {
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.categories-section h2 {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 48px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-bottom, .legal-header, .site-footer, .text-center {
    text-align: center;
}

.category-card {
    transition: box-shadow .3s;
}

.category-card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,.1);
}

.category-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.img-construcao {
    background-image: url('/assets/imagem-construcao.webp');
}

.img-mobiliario {
    background-image: url('/assets/imagem-mobiliario.webp');
}

.img-premoldados {
    background-image: url('/assets/imagem-pre-moldados.webp');
}

.category-content {
    padding: 24px;
}

.category-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.link-action {
    color: var(--brand-primary);
    font-weight: 600;
}

.link-action:hover {
    text-decoration: underline;
}

@media (min-width: 901px) {
    .nav-links {
        display: flex;
    }
}

@media (min-width: 768px) {
    .pagination {
        justify-content: flex-start;
    }
}

.news-section {
    margin: 0 auto;
    padding: 20px 20px 80px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.news-header h2 {
    font-size: 2rem;
    color: var(--brand-dark);
}

.btn-outline-dark {
    color: var(--brand-dark);
    border: 2px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: .3s;
}

.news-card, .partner-item {
    flex-direction: column;
    border-radius: 12px;
}

.btn-outline-dark:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background-color: #f8fafc;
}

.footer-col h3::after, .partner-item:hover, .social-links a:hover {
    background-color: var(--brand-primary);
}

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

.news-card {
    background: #fff;
    transition: box-shadow .3s, transform .3s;
    display: flex;
}

.contact-section, .news-img {
    background-size: cover;
    background-position: center;
}

.news-card:hover {
    box-shadow: 0 15px 25px rgba(0,0,0,.1);
    transform: translateY(-5px);
}

.news-img {
    height: 220px;
    background-color: #e2e8f0;
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: .85rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-content h3 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.site-footer {
    background-color: var(--brand-dark);
    color: #cbd5e1;
    padding: 24px 20px;
    margin-top: 40px;
}

.partners-section {
    background-color: #fff;
    padding: 80px 20px;
    border-top: 1px solid #e2e8f0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.section-title {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.contact-container, .footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 120px;
    background-color: var(--bg-light);
    color: var(--text-muted);
    transition: .3s;
    cursor: pointer;
}

@media (max-width: 600px) {
    .partners-grid {
        gap: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .partner-item {
        width: 100%;
        height: 100px;
    }
    .partner-item i {
        font-size: 2rem;
    }
}

.partner-item i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    transition: color .3s;
}

.partner-item span {
    font-weight: 600;
    font-size: .9rem;
}

.partner-item:hover {
    color: #fff;
    box-shadow: 0 10px 15px rgba(24,73,56,.2);
}

.footer-bottom a:hover, .partner-item:hover i {
    color: #fff;
}

.contact-section {
    position: relative;
    padding: 120px 20px;
    background-image: url('/assets/foto-parallax-1.webp');
    background-attachment: fixed;
}

.contact-section::before {
    content: '';
    background-color: rgba(0,0,0,.655);
}

.contact-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
}

.contact-info {
    padding: 48px;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--brand-primary);
    background: #e8f2ef;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-list strong {
    display: block;
    color: var(--brand-dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-list span {
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

.contact-map {
    min-height: 400px;
    background-color: #e2e8f0;
}

.contact-link, .contact-links-wrapper a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    transition: color .2s;
    -webkit-text-fill-color: var(--text-muted);
}

.contact-link:hover, .contact-links-wrapper a:hover {
    color: var(--brand-primary) !important;
    -webkit-text-fill-color: var(--brand-primary);
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}

.main-footer {
    background-color: var(--brand-dark);
    color: #cbd5e1;
    padding-top: 60px;
}

.footer-container {
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.brand-col p {
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,.1);
    color: #fff;
    border-radius: 50%;
    transition: .3s;
}

.social-links a:hover {
    transform: translateY(-3px) !important;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: #cbd5e1;
    transition: .3s;
    display: inline-block;
}

.footer-col ul a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    background-color: #08140f;
    padding: 24px 20px;
    font-size: .9rem;
}

.footer-bottom a {
    color: #cbd5e1;
    text-decoration: underline;
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
    z-index: 1000;
    transition: .3s;
    animation: 2s infinite pulse-whatsapp;
}

.logo-icon, .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
    animation: none;
    background-color: #128c7e;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37,211,102,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

.brand-col .logo-text, .btn-login, .btn-login i {
    color: #fff !important;
}

.footer-col .social-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 0;
}

.footer-col .social-links a i {
    margin: 0 !important;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--brand-primary);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-header h1, .logo-text, .mobile-menu-btn {
    color: var(--brand-dark);
}

.brand-col .logo-text {
    display: inline-block !important;
    color: #fff !important;
}

.mobile-menu-btn {
    display: none;
    background: 0 0;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-info {
        padding: 32px 20px;
    }
    .contact-list {
        gap: 16px;
    }
    .contact-map {
        min-height: 350px;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 160;
    }
    .nav-links, .navbar::before {
        position: absolute;
        top: 0;
        left: 0;
        background-color: #fff;
    }
    .nav-links {
        right: 0;
        flex-direction: column;
        padding: 100px 20px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,.1);
        z-index: 150;
        display: flex;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: .3s ease-in-out;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .btn-login {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .navbar {
        background-color: transparent !important;
        box-shadow: none !important;
    }
    .navbar::before {
        content: '';
        width: 100%;
        height: 80px;
        box-shadow: 0 1px 3px rgba(0,0,0,.1);
        z-index: 155;
        pointer-events: none;
    }
}

.menu-overlay-public {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.6);
    z-index: 149;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s, visibility .4s;
}

.menu-overlay-public.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.2s;
}

.alert-danger {
    background-color: #fef2f2;
    color: #ef4444;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 24px;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 8px;
    margin: 32px 0 0;
    justify-content: center;
    flex-wrap: wrap;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
    min-width: 44px;
    height: 44px;
}

.page-item .page-link:hover {
    background-color: #f8fafc;
    border-color: #184938;
    color: #184938;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #184938;
    border-color: #184938;
    box-shadow: 0 4px 10px rgba(24,73,56,.25);
}

.page-item.disabled .page-link {
    color: #94a3b8;
    pointer-events: none;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.d-flex.justify-content-between.flex-fill.d-sm-none, .d-none.flex-sm-fill.d-sm-flex.align-items-sm-center.justify-content-sm-between > div:first-child {
    display: none !important;
}

.d-none.flex-sm-fill.d-sm-flex.align-items-sm-center.justify-content-sm-between > div:last-child {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .contact-section, .mvv-section, .page-header {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}

.legal-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
}

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.legal-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content em {
    font-style: italic;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .form-control, [type=search], [type=text], input, select, textarea {
        font-size: 16px !important;
    }
    .hero h1, .legal-header h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .quick-access {
        margin-top: 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .legal-container {
        padding: 32px 20px;
    }
}

body.no-scroll, html.no-scroll {
    overflow: hidden !important;
    touch-action: none !important;
}

#map-desktop-container {
    display: none;
}

@media (min-width: 1025px) {
    #map-desktop-container {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        display: none !important;
    }
}

/* ========================================================
   FIX DE PERFORMANCE: Evita "pulo" de texto/ícones nos hovers
   ======================================================== */
.btn-login,
.service-card,
.service-card i,
.news-card,
.page-item .page-link,
.social-links a,
.footer-col ul a,
.partner-item {
    /* Força aceleração de hardware e estabiliza a renderização 3D */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* Suaviza as bordas das fontes durante a transição */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Cria uma camada de composição separada para evitar o recálculo do DOM */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Garante que o hover dos cards não perca a estabilidade */
.service-card:hover,
.news-card:hover {
    will-change: transform, box-shadow;
}