/* ====== HERO SECTION ====== */
.hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(6, 182, 212, 0.95)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.search-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-input,
.search-select {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input input,
.search-select select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    font-size: 1rem;
    color: var(--gray-700);
}

.search-input input::placeholder,
.search-select select {
    color: var(--gray-500);
}

.search-input i,
.search-select i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.search-input.focused,
.search-select.focused {
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input.focused input,
.search-select.focused select {
    border-color: var(--primary);
    color: var(--gray-800);
}

.search-select.open select {
    border-color: var(--primary);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white for better contrast */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 0;
    overflow-y: auto; /* Enable scrolling for long lists */
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    border: 1px solid var(--gray-200);
}

.search-suggestions.active {
    max-height: 300px;
    opacity: 1;
    padding: 0.75rem 0;
}

.suggestions-title {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800); /* Darker title for better visibility */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
    background-color: rgba(200, 220, 200, 0.3); /* Light green tint for the title background */
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    color: var(--gray-700); /* Darker text for readability */
}

.suggestion-item:hover {
    background-color: var(--forest-green); /* Nature-inspired hover color */
    color: var(--white); /* White text on hover for contrast */
}

.suggestion-item strong {
    color: var(--forest-green); /* Match the hover color for highlighted text */
    font-weight: 600;
}

.suggestion-item:hover strong {
    color: var(--white); /* Ensure highlighted text is visible on hover */
}

.search-form .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary);
}

.search-form .btn:hover {
    background-color: #3c3ab9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--white);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.9;
}

/* ====== HOW IT WORKS ====== */
.how-it-works {
    background-color: var(--white);
    padding: 4rem 0;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--gray-50);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.step-description {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ====== CATEGORIES SECTION ====== */
.categories-section {
    background-color: var(--gray-50);
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.category-name {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.category-description {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* ====== FEATURED PROVIDERS ====== */
.featured-providers-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.provider-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.provider-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.provider-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-light);
}

.provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-info {
    flex: 1;
}

.provider-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--gray-800);
}

.provider-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    color: var(--warning);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.provider-body {
    padding: 1.5rem;
    flex: 1;
}

.provider-services h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.provider-services ul {
    margin: 0;
    padding: 0;
}

.provider-services li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.875rem;
}

.provider-services li:last-child {
    border-bottom: none;
}

.service-category {
    font-weight: 600;
    color: var(--primary);
}

.service-title {
    color: var(--gray-700);
}

.no-services {
    color: var(--gray-500);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

.provider-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* ====== RECENT SERVICES ====== */
.recent-services-section {
    background-color: var(--gray-50);
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.service-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.service-provider .provider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.service-provider .provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-name {
    font-weight: 500;
    color: var(--gray-700);
}

.service-description {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    flex: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-price,
.service-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.service-price span {
    font-weight: 600;
    color: var(--gray-800);
}

/* ====== TESTIMONIALS ====== */
.testimonials-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

.testimonial {
    padding: 2rem;
    background-color: var(--gray-50);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.quote-icon {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.testimonial-rating {
    color: var(--warning);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--gray-800);
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--gray-700);
    z-index: 10;
    transition: var(--transition);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--primary);
    color: var(--white);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ====== APP DOWNLOAD ====== */
.app-download {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6rem 0;
}

.app-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.app-info {
    flex: 1;
}

.app-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.app-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.feature span {
    font-size: 0.9rem;
    color: var(--white);
}

.app-buttons {
    display: flex;
    gap: 1rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--white);
    color: var(--gray-800);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.app-btn i {
    font-size: 1.75rem;
}

.app-btn span {
    display: flex;
    flex-direction: column;
}

.app-btn small {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* ====== CTA SECTION ====== */
.cta-section {
    background-color: var(--gray-50);
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--gray-600);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ====== NEWSLETTER ====== */
.newsletter-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.newsletter-info {
    flex: 1;
}

.newsletter-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.newsletter-info p {
    font-size: 1rem;
    color: var(--gray-600);
}

.newsletter-form {
    flex: 1;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form button {
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    color: var(--white);
    background-color: var(--primary);
}

.newsletter-form .form-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ====== ANIMAÇÕES ====== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.steps .step:nth-child(1) {
    transition-delay: 0.1s;
}

.steps .step:nth-child(2) {
    transition-delay: 0.2s;
}

.steps .step:nth-child(3) {
    transition-delay: 0.3s;
}

.categories-grid .category-card:nth-child(n) {
    transition-delay: calc(0.05s * var(--n));
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .app-content,
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .app-features {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .app-buttons {
        justify-content: center;
    }

    .newsletter-form {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-select {
        width: 100%;
    }

    .search-suggestions.active {
        max-height: 250px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 400px;
        width: 100%;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        justify-content: space-around;
    }

    .stat-item .counter {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .app-features {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .services-grid,
    .providers-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .provider-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .search-box {
        padding: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-item {
        width: 40%;
    }

    .stat-item .counter {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .steps {
        gap: 2rem;
    }

    .step-icon {
        width: 60px;
        height: 60px;
    }

    .step-icon i {
        font-size: 1.5rem;
    }

    .carousel {
        max-width: 100%;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        border-radius: var(--border-radius-md);
        margin-bottom: 0.5rem;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: var(--border-radius-md);
    }
}