@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
    /* Cores Lovable (HSL) */
    --background: 30 25% 96%;
    --foreground: 25 30% 12%;
    --card: 30 20% 98%;
    --card-foreground: 25 30% 12%;
    --primary: 25 55% 35%;
    /* Wood Brown */
    --primary-foreground: 30 25% 96%;
    --secondary: 30 15% 90%;
    --muted: 25 10% 45%;
    --accent: 35 60% 50%;
    /* Gold */
    --accent-foreground: 30 25% 96%;
    --border: 30 15% 85%;

    /* Fontes */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;

    /* Utility colors */
    --cream: hsl(35 30% 92%);
    --wood-dark: hsl(20 45% 22%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout Helper */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 12px 5%;
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--muted));
}

nav ul li a:hover {
    color: hsl(var(--primary));
}

.btn-cta {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.2);
}

.btn-cta:hover {
    background: hsl(var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--accent) / 0.3);
}

/* Hero Carousel */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.6) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    color: var(--cream);
}

.hero-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out 0.2s;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out 0.4s;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out 0.6s;
}

.hero .btn-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out 0.8s;
}

.active-content .hero-tagline,
.active-content h1,
.active-content p,
.active-content .btn-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.4s;
}

.indicator.active {
    width: 32px;
    border-radius: 4px;
    background: hsl(var(--accent));
}

/* About Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: hsl(var(--muted));
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: hsl(var(--foreground));
}

.section-header p {
    margin-top: 24px;
    font-size: 1.1rem;
    color: hsl(var(--muted));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px;
    background: hsl(var(--card));
    border-radius: 20px;
    border: 1px solid hsl(var(--border) / 0.5);
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: hsl(var(--primary));
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: hsl(var(--muted));
}

/* Services Grid */
.bg-alt {
    background-color: hsl(var(--card));
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.5);
    transition: 0.4s;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
    cursor: pointer;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-content {
    padding: 24px;
}

.product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.product-content p {
    font-size: 0.9rem;
    color: hsl(var(--muted));
    margin-bottom: 20px;
}

.btn-config {
    width: 100%;
    padding: 10px;
    border: 1px solid hsl(var(--border));
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-config:hover {
    background: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid hsl(var(--border));
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    font-size: 0.9rem;
    color: hsl(var(--muted));
}

.footer-nav a:hover {
    color: hsl(var(--primary));
}

.copyright {
    font-size: 0.8rem;
    color: hsl(var(--muted) / 0.6);
    border-top: 1px solid hsl(var(--border) / 0.5);
    padding-top: 40px;
}

/* Modal Style */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: hsl(var(--background));
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: hsl(var(--primary));
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: hsl(var(--muted));
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.modal-close:hover {
    color: hsl(var(--primary));
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 80vh;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .carousel-btn {
        display: none;
    }

    .section {
        padding: 60px 0;
    }
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: rgba(18, 140, 126, 0.7);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-btn img {
    width: 70px;
    height: 70px;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 140, 126, 0.7);
    }

    70% {
        box-shadow: 0 0 0 25px rgba(18, 140, 126, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(18, 140, 126, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .whatsapp-btn img {
        width: 60px;
        height: 60px;
    }
}