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

body{
    font-family:'Montserrat', sans-serif;
    background:#f5f5f5;
    color:#333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto
}




.logo {
    width: 250px; /* aumente esse valor */
    height: auto;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500
}

.hero{
    height:90vh;
    background-image:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
        url("images/inicio.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    position: relative;
    z-index: 1;

    display:flex;
    align-items:flex-end;
    justify-content:flex-end;

    color:white;
    padding:40px;
}

.hero-content h1{
    font-size:2.1rem;
    font-weight:600;
    letter-spacing:0.5px;
    margin-bottom:12px;
}

.hero-content p{
    font-size:0.95rem;
    font-weight:400;
    letter-spacing:0.4px;
    opacity:0.85;
}

.section {
    padding: 80px 0
}

.section.gray {
    background: #eaeaea
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
    transition: .3s
}

.service-card:hover {
    transform: translateY(-10px)
}

.contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px
}

input,
textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc
}

.btn {
    display: inline-block;
    background: #6cc24a;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #0b0b0b;
    color: white
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: .8s
}

.fade-in.show {
    opacity: 1;
    transform: none
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none
}

/* Botão do cabeçalho */
.header-btn {
    text-decoration: none;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Ajuste do header para alinhar tudo */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


@media (max-width: 768px) {

    .header-btn {
        display: none; /* mantém escondido no mobile */
    }

    .header-content {
        flex-direction: row;   /* mantém lado a lado */
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        width: 180px; /* reduz um pouco no mobile */
    }

    .menu {
        gap: 15px; /* menos espaço entre links */
    }

    .menu a {
        font-size: 0.9rem;
    }
}

/* ===== MENU DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    list-style: none;
    min-width: 240px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
    z-index: 999;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: #6cc24a;
    color: #000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.whatsapp-float i{
    font-size:32px;
}

.whatsapp-icon {
    width: 50px;   /* ajuste como quiser */
    height: auto; /* mantém proporção */
}

/* ===== BOTÕES PROFISSIONAIS DE CONTATO ===== */

.contact-buttons {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

@media (max-width: 768px) {
    .contact-buttons {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.contact-card i {
    font-size: 2.2rem;
}

.contact-card strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.contact-card span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* WhatsApp */
.contact-card.whatsapp i {
    font-size: 2.6rem;
    color: #6cc24a;
}


/* Telefone */
.contact-card.phone i {
    color: #6cc24a;
}


/* Hover elegante */
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* E-mail */
.contact-card.email i {
    color: #6cc24a; /* verde institucional */
}


/* ===== RODAPÉ PROFISSIONAL ===== */

.footer {
    background: #0b0b0b;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: start;
}

.footer-logo {
    width: 140px;
    margin-bottom: 15px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer p {
    line-height: 1.6;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: #6cc24a;
}

.footer-contact i {
    margin-right: 10px;
    color: #6cc24a;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #6cc24a;
    border-color: #6cc24a;
    color: #000;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #777;
}

/* ===== RODAPÉ RESPONSIVO ===== */

@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        display: flex;
        justify-content: center;
    }

    .footer-social a {
        margin: 0 8px;
    }
}


/* ===== IMAGENS NOS SERVIÇOS ===== */

.service-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

@media (max-width: 768px) {
    .service-img {
        height: 200px;
    }
}

.service-card {
    padding: 0;
    overflow: hidden;
}

.service-card h3,
.service-card p {
    padding: 0 25px 25px;
}

.service-card h3 {
    padding-top: 20px;
}

.service-card {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    z-index: 2;
}

/* ===== CORREÇÃO DE SOBREPOSIÇÃO (Z-INDEX) ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;      /* ✅ trava à esquerda */
    right: 0;     /* ✅ trava à direita */
    width: 100%;
    z-index: 2000;
}

.hero {
    position: relative;
    z-index: 1;
}

#services {
    position: relative;
    z-index: 2;
}

.service-card {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    z-index: 2;
}

/* ===== HOVER DOS ÍCONES DE CONTATO ===== */

.contact-card.whatsapp:hover i,
.contact-card.email:hover i,
.contact-card.phone:hover i {
    color: #4fae32;
}

/* ===== PÁGINA INTERNA DE SERVIÇOS – VISUAL PREMIUM ===== */

.service-page {
    background: linear-gradient(180deg, #f5f5f5 0%, #eaeaea 100%);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* CARD DA IMAGEM */
.service-image {
    background: #fff;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

.service-image img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

/* CARD DO TEXTO */
.service-text {
    background: #ffffff;
    padding: 45px;
    border-radius: 22px;
    box-shadow: 0 25px 55px rgba(0,0,0,0.18);
    position: relative;
}

.service-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #6cc24a;
    border-radius: 22px 0 0 22px;
}

.service-text h2 {
    text-align: left;
    font-size: 2.1rem;
    margin-bottom: 18px;
    color: #111;
}

.service-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #444;
}

/* LISTA COM ÍCONES */
.service-list {
    margin: 25px 0 35px;
    padding: 0;
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #333;
}

.service-list li::before {
    content: "✔";
    color: #6cc24a;
    font-weight: bold;
}

/* BOTÃO */
.service-text .btn {
    text-decoration: none;
    padding: 14px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: none;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-text h2 {
        text-align: center;
    }

    .service-text {
        padding: 35px 28px;
    }
}

/* ===== SLIDER DE IMAGENS – SERVIÇOS ===== */

.service-image.slider {
    position: relative;
    overflow: hidden;
}

.service-image.slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.service-image.slider img.active {
    opacity: 1;
    position: relative;
}

/* mantém altura consistente */
.service-image.slider {
    height: 420px;
}

@media (max-width: 768px) {
    .service-image.slider {
        height: 420fpx;
    }
}

/* ===== HEADER NORMALIZADO ===== */

.header {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid #6cc24a; /* barra divisória */
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.menu a {
    font-size: 0.95rem;
    font-weight: 500;
}

.header-btn {
    font-size: 0.95rem;
    padding: 10px 22px;
    line-height: 1;
}

/* ===== TRANSIÇÃO ENTRE PÁGINAS ===== */

body {
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.loaded {
    opacity: 1;
}

body.fade-out {
    opacity: 0;
}

.service-card h3 a {
    text-decoration: none;
    color: inherit; /* mantém a cor do título */
}

.service-card h3 a:hover {
    color: #000; /* ou a cor da sua marca */
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    cursor: pointer;
}

.service-link:hover .service-card {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.service-card {
    transition: all 0.3s ease;
}

#about {
    padding: 100px 0;
}

#about p {
    max-width: 800px;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0 auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: 12px;
}

.about-image img {
    width: 100%;
    transform: translateY(0);
    transition: transform 0.2s ease-out;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: right;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
}


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

    .about-image {
        order: 2;
        margin-top: 30px;
        text-align: center;
    }

    .about-text {
        order: 1;
        text-align: center;
    }
}

.contact-intro {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.menu a {
    position: relative;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.menu a:hover {
    color: #6cc24a; /* verde institucional */
    text-shadow: 0 0 8px rgba(108, 194, 74, 0.8);
}

/* ===== H1 DAS PÁGINAS SECUNDÁRIAS ===== */

.service-text h1 {
    font-size: 0.5rem;
    line-height: 1.25;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .service-text h1 {
        font-size: 1.6rem;
    }
}

/* ===== LAYOUT VERTICAL: IMAGEM EM CIMA, TEXTO EMBAIXO ===== */

.service-detail {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ===== AJUSTE TOPO PÁGINAS INTERNAS ===== */
.service-page {
    margin-top: 200px;
}

@media (max-width: 768px) {
    .service-page {
        margin-top: 100px;
    }
}

/* =====================================================
   AJUSTE FINAL – HEADER MOBILE (SOBRESCREVE TUDO ACIMA)
   ===================================================== */

@media (max-width: 768px) {

    /* REMOVE BOTÃO SOLICITAR ORÇAMENTO */
    .header .header-btn,
    .header .btn {
        display: none !important;
    }

    /* HEADER FLUIDO */
    .header-content {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    /* LOGO RESPONSIVA */
    .logo {
        max-width: 180px;
        height: auto;
    }

    /* MENU AJUSTADO */
    .menu {
        gap: 14px;
    }

    .menu a {
        font-size: 0.9rem;
        white-space: nowrap;
    }

   
  /* só funciona se existir .service-page na página */
    .service-page ~ .header .dropdown > a,
    body:has(.service-page) .dropdown > a {
        pointer-events: none;
    }

     body.service-interna .dropdown-menu {
        position: fixed;
        top: 70px;              /* abaixo do header */
        left: 50%;
        transform: translateX(-50%);
        min-width: 240px;       /* MESMO valor do desktop */
        max-width: calc(100vw - 24px);
        width: auto;
        border-radius: 8px;
        box-sizing: border-box;
        z-index: 4000;
        margin-left: 120px; /* 🔹 move um pouco para a direita */
    }

}

@media (max-width: 768px) {

    .dropdown-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        min-width: 240px;
        max-width: calc(100vw - 24px);
        width: 100%;
        margin: 0;               /* ✅ remove overflow */
        border-radius: 8px;
        box-sizing: border-box;
        z-index: 4000;
    }

}

/* =====================================================
   CORREÇÃO DE ÂNCORAS COM HEADER FIXO
   ===================================================== */

#about,
#services,
#contact {
    scroll-margin-top: 100px; /* altura do header */
}



/* =====================================================
   CORREÇÃO FINAL – HEADER MOBILE (ANTI OVERFLOW)
   ===================================================== */
@media (max-width: 768px) {

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

    /* remove botão orçamento no mobile */
    .header-btn {
        display: none !important;
    }

    /* estrutura do header */
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 12px 16px;
        width: 100%;
    }

    .logo {
        width: 170px;
        max-width: 100%;
    }

    nav {
        width: 100%;
    }

    .menu {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        max-width: 100%;
    }

    .menu a {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}