/* =====================
   MELHORIAS DE TRANSIÇÃO ENTRE SEÇÕES
   ===================== */

/* Adicione estas classes nas seções principais para transições suaves */
.hero,
.free-quote-section,
.who-we-are,
.services-showcase,
.testimonials,
.service-images,
.services-included,
.home-banner,
.about-content,
.services-grid-section {
    position: relative;
}

/* Overlay de transição suave entre seções com cores diferentes */
.hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, rgba(248, 250, 245, 0.5) 50%, rgba(248, 250, 245, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

.free-quote-section {
    position: relative;
    z-index: 3;
}

.services-included::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(248, 250, 245, 0.5) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Transição suave de who-we-are para service-images */
.who-we-are::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* =====================
   BOTÃO GET A FREE QUOTE - DESTAQUE MÁXIMO
   ===================== */
.btn-free-quote {
    display: inline-block;
    background: linear-gradient(135deg, #55A630 0%, #4a9429 100%);
    color: white !important;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #55A630;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(85, 166, 48, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

/* Efeito de brilho animado */
.btn-free-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
  90deg,
  transparent,
  rgba(255, 255, 255, 0.15), /* menor intensidade */
  transparent
);
    transition: left 0.5s;
}

.btn-free-quote:hover::before {
    left: 100%;
}

.btn-free-quote:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(85, 166, 48, 0.6);
    border-color: #4a9429;
}

.btn-free-quote:active {
    transform: translateY(-2px) scale(1.02);
}

/* Seção do Free Quote com mais destaque */
.free-quote-section {
    text-align: center;
    padding: 40px 0 48px;
    background: linear-gradient(135deg, #f0f7eb 0%, #e9f2e4 100%);
    border-top: 2px solid #d4e8c9;
    border-bottom: 2px solid #d4e8c9;
    position: relative;
}

.free-quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(85, 166, 48, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.free-quote-section p {
    color: #2D5566;
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ícone animado ao lado do texto */
.free-quote-section p::before {
    content: '✨';
    margin-right: 8px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* =====================
   BOTÃO TALK TO US - AJUSTE PARA COMBINAR
   ===================== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #55A630 0%, #4a9429 100%) !important;
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(85, 166, 48, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(85, 166, 48, 0.5);
    opacity: 1 !important;
}

/* =====================
   SUAVIZAÇÃO DE TODAS AS SEÇÕES
   ===================== */

/* Padding consistente e transições suaves */
.who-we-are,
.services-showcase,
.testimonials,
.services-included,
.about-content {
    padding: 90px 0;
    transition: all 0.3s ease;
}

/* Espaçamento harmonioso entre elementos */
.who-we-are h2,
.services-showcase h2,
.testimonials h2,
.services-included h2 {
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

/* Service cards com transição mais suave */
.service-card,
.service-hub-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Imagens com transição suave */
.image-item img,
.banner-image img,
.showcase-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   ANIMAÇÕES DE SCROLL REVEAL (OPCIONAL)
   Adicione estas classes via JavaScript para animar ao rolar
   ===================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* =====================
   TRANSIÇÃO SUAVE - BANNER PARA FREE QUOTE SECTION
   ===================== */

/* Remove a transição brusca anterior */
.home-banner::after {
    display: none; /* Remove o overlay anterior */
}

/* Nova transição suave e gradual */
.home-banner {
    position: relative;
    padding-bottom: 100px; /* Aumenta espaço para transição */
}

.home-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, 
                rgba(43, 82, 113, 1) 0%,
                rgba(43, 82, 113, 0.9) 20%,
                rgba(43, 82, 113, 0.6) 40%,
                rgba(144, 181, 157, 0.3) 60%,
                rgba(233, 242, 228, 0.5) 80%,
                rgba(240, 247, 235, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Ajusta a seção Free Quote para conectar suavemente */
.free-quote-section {
    text-align: center;
    padding: 48px 0 48px;
    background: linear-gradient(to bottom,
                rgba(240, 247, 235, 1) 0%,
                rgba(233, 242, 228, 1) 50%,
                rgba(240, 247, 235, 1) 100%);
    border-top: none; /* Remove borda superior */
    border-bottom: 2px solid #d4e8c9;
    position: relative;
    margin-top: -20px; /* Sobrepõe levemente para suavizar */
    z-index: 3;
}

/* Remove o overlay radial anterior para simplificar */
.free-quote-section::before {
    display: none;
}

/* Alternativa: Transição ainda mais suave com degradê estendido */
.home-banner.smooth-transition {
    padding-bottom: 80px;
}

.home-banner.smooth-transition::after {
    height: 150px;
    background: linear-gradient(to bottom, 
                #2b5271 0%,
                #35637f 15%,
                #4a7b8f 30%,
                #6b9aa3 45%,
                #8fb8b5 60%,
                #b5d4c4 75%,
                #d9ecd9 90%,
                #f0f7eb 100%);
}

/* =====================
   VERSÃO COM ONDAS SUAVES (OPCIONAL)
   Comentado - descomente se preferir este estilo
   ===================== */

/*
.home-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(240, 247, 235, 1) 0%, transparent 50%),
        linear-gradient(to bottom, 
            rgba(43, 82, 113, 1) 0%,
            rgba(43, 82, 113, 0.7) 40%,
            rgba(144, 181, 157, 0.3) 70%,
            rgba(240, 247, 235, 1) 100%);
}
*/

/* =====================
   AJUSTES MOBILE
   ===================== */
@media (max-width: 768px) {
    .home-banner {
        padding-bottom: 80px;
    }
    
    .home-banner::after {
        height: 100px;
    }
    
    .free-quote-section {
        margin-top: -15px;
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .home-banner {
        padding-bottom: 60px;
    }
    
    .home-banner::after {
        height: 80px;
    }
}