/**
 * Homepage-specific styles - Maxiclin
 * Mobile-first: base = mobile, progressive enhancement para tablet/desktop
 */

/* Hero - mobile first: 50vh base, escala para telas maiores */
.hero-section {
    min-height: 50vh;
}

/* Card alinhado na parte inferior do hero */
#hero .section-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#hero .section-overlay .container {
    flex-shrink: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile: row com padding mínimo */
#hero .hero-row {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#hero .hero-card .card-body {
    padding: 1rem !important;
}

/* Mobile: H1 menor para caber na tela */
#hero .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

/* Mobile: subtítulo compacto */
#hero .hero-card .lead {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Mobile: botões full-width, stack vertical, min 44px touch target */
#hero .hero-cta-group {
    flex-direction: column;
    gap: 0.5rem;
}

#hero .hero-cta-group .btn {
    min-height: 44px;
    width: 100%;
    justify-content: center;
}

/* Mobile: logo menor */
#hero .hero-card .logo-dark {
    max-width: 120px;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    #hero .section-overlay .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    #hero .hero-row {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    #hero .hero-card .card-body {
        padding: 1.25rem 1.5rem !important;
    }
    #hero .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    #hero .hero-cta-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    #hero .hero-cta-group .btn {
        width: auto;
    }
    #hero .hero-card .logo-dark {
        max-width: 160px;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 65vh;
    }
    #hero .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .hero-section {
        min-height: 70vh;
    }
    #hero .hero-title {
        font-size: 3rem;
    }
}

/* Overlay do hero mais suave - destaca a imagem hero */
#hero.bg-overlay:before {
    background: rgba(30, 34, 40, 0.2);
}

/* Fallback: imagem de fundo hero.jpg (caso JS não carregue) */
.hero-section.bg-image {
    background-image: url('./images/hero.jpg');
    background-position: center center;
    background-size: cover;
}

/* Linha divisória azul entre SERVIÇOS, DIFERENCIAIS e DEPOIMENTOS */
#diferenciais,
#depoimentos {
    border-top: 1px solid var(--bs-primary, #0d6efd);
}

/* Cards: borda azul e efeito lift (hover) em SERVIÇOS, DIFERENCIAIS e DEPOIMENTOS */
#servicos .card,
#diferenciais .card,
#depoimentos .card {
    border: 1px solid var(--bs-primary, #0d6efd) !important;
    transition: all 0.3s ease;
}

#servicos .card:hover,
#diferenciais .card:hover,
#depoimentos .card:hover {
    -webkit-transform: translateY(-0.4rem);
    transform: translateY(-0.4rem);
    box-shadow: 0 0.25rem 1.25rem rgba(52, 63, 82, 0.1);
}

/* Image caption - compacto no mobile */
.image-caption-padding {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
}

@media (min-width: 768px) {
    .image-caption-padding {
        padding: 10px;
        font-size: inherit;
    }
}

/* Aspect ratio for images to prevent CLS */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

/* WhatsApp floating button - mobile optimization */
@media (max-width: 767.98px) {
    .botao-whats {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 99999;
    }
}

@media (min-width: 768px) {
    .botao-whats {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 99999;
    }
}

