/**
 * Petiatria - Estilos Customizados
 * Design Clean, Moderno e com Efeitos
 */

/* Reset e Base */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #475569;
    background: #ffffff;
    overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
}

/* Animações suaves */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cards modernos */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
}

/* Botões Hero - Primário */
.btn-primary-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 32px;
    box-shadow: 0 10px 30px rgba(99,102,241,0.3);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary-hero:hover::before {
    left: 100%;
}

.btn-primary-hero:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99,102,241,0.4);
    color: white;
}

.btn-primary-hero i {
    transition: all 0.3s ease;
}

.btn-primary-hero:hover i {
    transform: rotate(-10deg) scale(1.2);
}

/* Botões Hero - Secundário */
.btn-secondary-hero {
    background: white;
    color: #475569;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-secondary-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99,102,241,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-secondary-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary-hero:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
    color: #6366f1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.btn-secondary-hero i {
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover i {
    transform: translateX(3px);
}

/* Botões elegantes */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Links */
a {
    transition: all 0.3s ease;
}

/* Imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Seções */
section {
    position: relative;
}

/* Formulários */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* =====================================================
   CTA FINAL
   ===================================================== */
.cta-final-title {

/* ============================================
   FIX SCROLL HORIZONTAL - MOBILE
   ============================================ */

/* Prevenir scroll horizontal em todo o site */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container principal não pode estourar */
main {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Imagens sempre responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Fix específico para mobile */
@media (max-width: 768px) {
    /* Remove margins negativas do Bootstrap que causam overflow */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Garante que o container fique dentro da tela */
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Carrosséis não podem causar scroll */
    .gallery-slider-wrapper,
    .tv-slider-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
}

/* ============================================
   FIX SCROLL HORIZONTAL - PÁGINA SOBRE
   ============================================ */

/* Carrossel TV responsivo */
@media (max-width: 768px) {
    .tv-slider > div {
        width: 300px !important;
        height: 220px !important;
    }
}

@media (max-width: 576px) {
    .tv-slider > div {
        width: 250px !important;
        height: 180px !important;
    }
}

/* ============================================
   FIX HERO CAROUSEL MOBILE - PREVENIR OVERFLOW
   ============================================ */

/* Garante que o hero não cause scroll horizontal */
.hero-carousel {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Mobile: reduzir altura do hero */
@media (max-width: 768px) {
    .hero-carousel {
        min-height: 60vh !important;
        max-height: 600px;
    }
    
    /* Remove margins que podem causar overflow */
    .hero-content-minimal {
        padding: 0 20px;
    }
}

/* Remove qualquer width calculado que some largura */
.hero-carousel svg,
.hero-carousel div {
    max-width: 100%;
}

/* ============================================
   FOOTER ICONS STYLES
   ============================================ */

/* Footer Contact Icons */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #64748b;
}

.footer-contact li i {
    color: #6366f1;
    font-size: 16px;
    margin-top: 3px;
