:root {
    --primary-background: #ECECEC;
    --primary-blue: #334159;
    --secondary-gray: #A9ABAE;
    --text-primary: #333;
    --text-secondary: #555;
    --white: #fff;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.8;
    background-color: var(--primary-background);
}

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

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--box-shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-logo-img {
    height: 40px; /* Adjust height as needed to fit navbar */
    width: auto;
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #ECECEC;
    padding: 160px 0 100px; /* Adjusted padding */
    overflow: hidden; /* To clip the shapes */
    color: var(--text-primary);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2; /* Ensure content is above shapes */
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.hero-logo {
    max-width: 250px;
    margin: 0 auto 40px; /* Increased from 20px */
    display: block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px; /* Increased from 20px */
    color: var(--primary-blue);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 50px; /* Increased from 30px */
    color: var(--text-secondary);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic shape for image */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--white); /* Fallback/bg for transparency */
}

/* Organic Background Shapes */
.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background-color: #A9ABAE;
    top: -200px;
    right: -100px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: #dbe0e6; /* Lighter shade of blue/gray for contrast */
    bottom: -100px;
    left: -100px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.btn {
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

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

/* Benefits Section */
#beneficios {
    padding: 100px 0;
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: -40px auto 60px;
}

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

.benefit-item {
    background-color: var(--primary-background); /* Slightly different from section bg */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

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

.about-text {
    flex: 1;
}

.about-text p {
    text-align: justify;
}

.about-image {
    flex: 0 0 250px;
    max-width: 250px;
    position: relative;
    z-index: 1;
    margin-left: 20px;
}

/* Geometric decoration behind the image */
.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.3s ease;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    background-color: #e0e4e8; /* Soft blue-gray */
    border-radius: 20px;
    z-index: -2;
    transition: transform 0.3s ease;
}

.about-image:hover::before {
    transform: translate(5px, -5px);
}

.about-image:hover::after {
    transform: translate(-5px, 5px);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    display: block; /* Removes potential bottom space */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* About Section */
#sobre {
    padding: 100px 0;
    background-color: var(--primary-background);
}

/* Services Section */
#servicos {
    padding: 100px 0;
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--primary-background); /* Contrast with white section bg */
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--text-secondary);
}

/* Features Section - Now Conditions Section */
#condicoes {
    padding: 100px 0;
    background-color: var(--primary-background);
}

.conditions-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.condition-item {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.condition-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.condition-item i {
    color: var(--primary-blue);
    margin-right: 15px;
    font-size: 1.2rem;
    min-width: 20px; /* To align text if icon sizes vary */
    text-align: center;
}

.condition-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.conditions-outro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 500;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Testimonials Section (Carousel) */
#depoimentos {
    padding: 100px 0;
    background-color: var(--white);
}

.google-header {
    text-align: center;
    margin-bottom: 50px;
}

.google-rating-score span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.google-rating-score .stars {
    color: #fbbc04; /* Google Star Yellow */
    font-size: 1.5rem;
    margin: 5px 0 10px;
}

.google-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(60,64,67, 0.3), 0 4px 8px 3px rgba(60,64,67, 0.15);
    transition: all 0.2s ease-in-out;
}

.btn-review:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67, 0.3), 0 4px 8px 3px rgba(60,64,67, 0.2);
    transform: translateY(-1px);
}

.btn-review i {
    font-size: 1.1rem;
}

/* Carousel Styles */
.carousel {
    position: relative;
    height: auto;
    width: 100%;
    margin: 0 auto;
    max-width: 100%; /* Changed from 800px to 100% */
}

.carousel__track-container {
    overflow: hidden;
    height: 100%;
    position: relative;
    padding: 20px 0; /* Add space for shadow/transform */
}

.carousel__track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 500ms ease-in-out;
    display: flex;
}

.carousel__slide {
    width: 100%;
    flex-shrink: 0; /* Prevents slide from shrinking */
    padding: 0 15px; /* Spacing between slides */
}

/* Responsive Slide Widths */
@media (min-width: 768px) {
    .carousel__slide {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel__slide {
        width: 33.3333%;
    }
}

.google-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-right: 50px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    margin-right: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    color: var(--text-primary);
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.stars-small {
    color: #fbbc04;
    margin-bottom: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
}

.google-icon-corner {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
}

/* Carousel Buttons */
.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel__button i {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.carousel__button:hover {
    background-color: var(--primary-blue);
}

.carousel__button:hover i {
    color: var(--white);
}

.carousel__button--left {
    left: 10px;
}

.carousel__button--right {
    right: 10px;
}

.carousel__button.is-hidden {
    display: none;
}

/* Carousel Nav (Indicators) */
.carousel__nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.carousel__indicator {
    border: 0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: rgba(0,0,0,0.2);
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel__indicator.current-slide {
    background: var(--primary-blue);
}

/* Contact Section */
#contato {
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-background);
}

.contact-intro {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    margin: 40px 0;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--primary-blue);
    margin-right: 10px;
}

/* Call to Action Section */
.cta {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: #2a364a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-gray);
}

.footer-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    max-width: 200px;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-contact, .footer-services {
    list-style: none;
    padding: 0;
}

.footer-contact li, .footer-services li {
    margin-bottom: 10px;
    color: var(--secondary-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.footer-contact a {
    color: var(--secondary-gray);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--secondary-gray);
    font-size: 0.9rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo {
        margin: 0 auto 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        width: 80%;
        max-width: 350px;
        margin-top: 20px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    /* Adjust carousel buttons on mobile */
    .carousel__button--left {
        left: 0;
    }
    .carousel__button--right {
        right: 0;
    }

    .carousel {
        padding: 0 35px; /* Add padding so buttons don't overlap text too much */
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

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

    .footer-left {
        justify-content: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li, .footer-services li, .footer-contact a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .review-header {
        padding-right: 0;
    }

    .google-icon-corner {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-left: 10px;
        flex-shrink: 0;
    }
    
    .reviewer-name {
        font-size: 1rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

@media (max-width: 375px) {
    .google-card {
        padding: 15px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .google-icon-corner {
        width: 30px;
        height: 30px;
        margin-left: 5px;
    }

    .google-icon-corner img {
        width: 100% !important;
        height: 100% !important;
    }
    
    .carousel {
        padding: 0 25px; /* Reduce space for buttons */
    }
    
    .carousel__button {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
