/* Variáveis de cores e fontes */
:root {
    --bege-claro: #F8F5F1;
    --dourado: #D1A954;
    --verde-oliva: #7C8067;
    --cinza-areia: #E3E0DC;
    --preto-carvao: #2D2D2D;
    --sombra: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--preto-carvao);
    background-color: var(--bege-claro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--preto-carvao);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--dourado);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

/* Botão Primary - ANIMAÇÃO FLUIDA */
.btn-primary {
    display: inline-block;
    background-color: var(--verde-oliva);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover {
    background-color: var(--dourado);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Header e Navegação - LOGO AUMENTADA */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 245, 241, 0.95);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

/* ANIMAÇÃO CORRIGIDA DO HEADER */
.nav-menu a {
    text-decoration: none;
    color: var(--preto-carvao);
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Lora', serif;
    position: relative;
    padding: 8px 0;
    display: block;
}

/* Riscinho igual ao estado ativo */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dourado);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* HOVER = EXATAMENTE IGUAL AO ATIVO */
.nav-menu a:hover {
    color: var(--dourado);
}

.nav-menu a:hover::after {
    width: 100%; /* Mesmo efeito do active */
}

/* ESTADO ATIVO (mantido igual) */
.nav-menu a.active {
    color: var(--dourado);
}

.nav-menu a.active::after {
    width: 100%; /* Mesmo efeito do hover */
    background-color: var(--dourado);
}

/* Garantir que links não-ativos voltem ao normal */
.nav-menu a:not(.active):not(:hover) {
    color: var(--preto-carvao);
}

.nav-menu a:not(.active):not(:hover)::after {
    width: 0; /* Some quando não está hover/active */
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--preto-carvao);
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    background-color: rgba(248, 245, 241, 0.733);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* REMOVI as propriedades de opacity e transform iniciais */
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--preto-carvao);
    line-height: 1.1;
    /* REMOVI as propriedades de opacity e transform iniciais */
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--preto-carvao);
    font-family: 'Lora', serif;
    /* REMOVI as propriedades de opacity e transform iniciais */
}

/* Container para o carrossel como fundo */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease, transform 8s ease;
    transform: scale(1.1);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel-slide.prev {
    opacity: 0;
    transform: scale(1.1);
    z-index: 1;
}

.carousel-slide.next {
    opacity: 0;
    transform: scale(1.1);
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    gap: 15px;
}

.carousel-prev, .carousel-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--preto-carvao);
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--dourado);
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--dourado);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(209, 169, 84, 0.7);
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-image {
    flex: 1;
    position: relative;
    max-width: 400px;
    margin-left: 50px;
}

.green-square {
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: var(--verde-oliva);
    top: -25px;
    left: -50px;
    z-index: 0;
    border-radius: 5px;
    transition: all 0.4s ease;
}

.professional-photo {
    width: 100%;
    height: auto;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.about-image:hover .professional-photo {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image:hover .green-square {
    transform: translateY(-5px) scale(1.02) rotate(-3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-family: 'Lora', serif;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--verde-oliva);
}

.about-text ul {
    list-style: none;
    margin-top: 15px;
}

.about-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dourado);
    font-weight: bold;
}

/* Services Section */
.services {
    background-color: var(--cinza-areia);
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--sombra);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1.5px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--bege-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--dourado);
    flex-shrink: 0;
}

.service-card h3 {
    font-family: 'Lora', serif;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--preto-carvao);
    flex-shrink: 0;
}

.service-card p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card p strong {
    color: var(--verde-oliva);
    display: block;
    margin-bottom: 8px;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--dourado);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 
                0 0 0 1px var(--dourado);
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--preto-carvao);
    transition: all 0.3s ease;
    border-radius: 20px;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--dourado);
    color: white;
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.portfolio-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: all 0.4s ease;
    border: 1.5px solid transparent;
    max-width: 350px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-item.filter-animation {
    animation: filterFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes filterFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--dourado);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-family: 'Lora', serif;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Contact Section - REFORMULADA PARA REDES SOCIAIS */
.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.contact-details {
    margin: 20px 0;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Estilos para a nova seção de contato com redes sociais */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: var(--cinza-areia);
    border-radius: 10px;
    color: var(--preto-carvao);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    background-color: var(--dourado);
    color: white;
    transform: translateY(-3px);
    border-color: var(--dourado);
}

.social-links a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-links a span {
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.contact-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--cinza-areia);
}

.contact-cta .btn-primary {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background-color: var(--cinza-areia);
    color: var(--preto-carvao);
    text-align: center;
    padding: 30px 0;
}


/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-float .tooltip-text {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: var(--preto-carvao);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 101;
}

.whatsapp-float .tooltip-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background-color: var(--preto-carvao);
    transform: rotate(45deg);
}

.whatsapp-float:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    bottom: 60px;
}

/* Ajustes do WhatsApp para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-float:hover .tooltip-text {
        bottom: 50px;
        right: -10px;
    }
    
    .whatsapp-float .tooltip-text::after {
        right: 20px;
    }
    
    .btn-primary {
        padding: 14px 35px;
        font-size: 1rem;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px) scale(1.03);
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
    
    .whatsapp-float .tooltip-text {
        font-size: 12px;
        padding: 6px 10px;
        bottom: 60px;
    }
    
    .whatsapp-float:hover .tooltip-text {
        bottom: 45px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Reveal Animation para todas as seções */
.hero, .about, .services, .portfolio, .contact {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.visible, .about.visible, .services.visible, .portfolio.visible, .contact.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animações específicas para cada tipo de elemento */
.about-content, .contact-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-content.visible, .contact-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsividade */
@media (max-width: 1200px) {
    .logo {
        height: 55px;
    }
}

@media (max-width: 992px) {
    .logo {
        height: 60px;
    }
    
    header {
        padding: 10px 0;
    }
    
    .hero-content, .about-content, .contact-content {
        flex-direction: column;
    }
    
    .hero-text, .about-image, .contact-info {
        margin-top: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bege-claro);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    .about-image {
        margin-left: 40px;
    }
    
    .green-square {
        width: 85%;
        height: 85%;
        left: -40px;
        top: -20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 0;
    }
    
    nav {
        justify-content: center;
        position: relative;
        padding: 0 20px;
    }
    
    .nav-logo {
        justify-content: center;
        margin: 0 auto;
    }
    
    .logo {
        height: 55px;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .services {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .service-card {
        padding: 25px 20px;
        min-height: 280px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        margin: 5px 0;
        width: 200px;
        text-align: center;
    }
    .about-image {
        margin-left: 30px;
    }
    
    .green-square {
        width: 80%;
        height: 80%;
        left: -30px;
        top: -15px;
    }
    
    /* Responsividade para redes sociais */
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .social-links a {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .logo {
        height: 50px;
    }
    .about-image {
        margin-left: 20px;
    }
    
    .green-square {
        width: 75%;
        height: 75%;
        left: -20px;
        top: -10px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 48px;
    }
    
    .hero-text {
        padding: 20px 15px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    .services {
        padding: 40px 0;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
        min-height: 260px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Garantir que a seção seja visível */
.services .container {
    overflow: visible;
}

.services h2 {
    overflow: visible;
}