:root {
    /* Color Palette - Elegant & Neutral */
    --primary-color: #5c7c67;
    /* Soft Green */
    --primary-light: #8ba894;
    --accent-color: #d4a373;
    /* Warm Sand/Wood */
    --bg-light: #fdfaf6;
    /* Off-White/Sand */
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --sand-bg: #f5f1ea;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --section-padding: 100px 20px;
    --border-radius-lg: 24px;
    --border-radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(92, 124, 103, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(92, 124, 103, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

/* header.scrolled removed since it's already solid */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 98px;
    /* Aumentado 40% de 70px */
    width: auto;
    transition: var(--transition-smooth);
}

header.scrolled .logo-img {
    height: 77px;
    /* Aumentado 40% de 55px */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Carousel */
.hero {
    position: relative;
    height: 80vh;
    /* Reduced from 100vh for better balance */
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f0ede8;
    /* Cor neutra baseada na paleta sand */
}

.carousel-slide.active {
    opacity: 1;
}

/* Carousel overlay removed for clarity as per user request */
.carousel-slide::after {
    display: none;
    /* Removed gradient since text is gone */
}

.hero-content {
    display: none;
    /* Backup removal from CSS */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    max-width: 850px;
    animation: fadeInUp 1s ease-out;
    color: var(--bg-white);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-weight: 500;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.section-padding {
    padding: var(--section-padding);
    scroll-margin-top: 130px;
    /* Margem para compensar o cabeçalho fixo */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    background-color: transparent;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Testimonials Carousel */
.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    position: relative;
    height: 350px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease-in-out;
    transform: translateX(50px);
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    box-shadow: var(--shadow-soft);
}

.profile-info h5 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.profile-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: none;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px;
    }

    .profile-img {
        width: 60px;
        height: 60px;
    }

    .carousel-nav {
        display: none;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    height: 250px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Scroll Animation Classes */
[data-reveal] {
    opacity: 0;
    transition: all 1s ease-out;
}

[data-reveal="left"] {
    transform: translateX(-50px);
}

[data-reveal="right"] {
    transform: translateX(50px);
}

[data-reveal="bottom"] {
    transform: translateY(50px);
}

.revealed {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 60px 20px;
    }
}

/* Footer Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    font-size: 1.8rem;
    color: white;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a .fa-instagram {
    color: #E4405F;
    /* Instagram Brand Color */
}

.social-links a .fa-facebook-f {
    color: #1877F2;
    /* Facebook Brand Color */
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-info .logo-img {
    height: 126px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

/* Team Section Responsive Fix */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 30px 20px !important;
    }

    .team-image-wrapper {
        flex: 0 0 auto !important;
        margin-bottom: 20px;
    }

    .team-card ul {
        text-align: left;
        display: inline-block;
    }
}