/* ============================================
   ESTILOS GLOBAIS REUTILIZÁVEIS
   ============================================ */

:root {
    --primary-color: #28a745;
    --primary-dark: #218838;
    --primary-light: #34ce57;
    --secondary-color: #6c757d;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--text-dark) !important;
    line-height: 1.7 !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
}

/* ============================================
   NAVBAR
   ============================================ */

nav.navbar {
    padding: 1rem 0 !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-logo,
img.navbar-logo {
    max-width: 180px !important;
    height: auto !important;
    transition: transform 0.3s ease;
    border-radius: 0.75rem !important;
    object-fit: contain !important;
    display: block !important;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-cta-nav {
    background-color: var(--primary-color);
    color: white !important;
    font-weight: 600;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-cta-nav:hover {
    background-color: var(--primary-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-decoration: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

section.hero-section,
.hero-section {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important; */
    background-image: url('./../../assets/fundo.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    padding: 8rem 0 6rem !important;
    margin-top: 76px !important;
    position: relative !important;
    overflow: hidden;
    min-height: auto !important;
}

/* Efeito de blur na imagem de fundo */
section.hero-section::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./../../assets/fundo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(3px);
    transform: scale(1.05);
    z-index: 0;
}

/* Overlay escuro para melhorar legibilidade */
section.hero-section::after,
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

h1.hero-title,
.hero-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    position: relative;
    z-index: 2;
}

p.hero-subtitle,
.hero-subtitle {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #34ce57 !important;
    margin-bottom: 2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.125rem !important;
    color: #ffffff !important;
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.hero-content .lead {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.btn-cta-hero {
    background-color: var(--primary-color);
    color: white !important;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.btn-cta-hero:hover {
    background-color: var(--primary-dark);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

/* ============================================
   SEÇÕES GLOBAIS
   ============================================ */

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.bg-section {
    background-color: var(--bg-light);
}

/* ============================================
   CARDS DE PLANOS
   ============================================ */

.plan-card {
    border: 2px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.plan-card.plan-featured {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: var(--shadow-md);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.plan-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
    line-height: 1;
}

.plan-price small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.plan-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.5;
}

.plan-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.875rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 1.5;
}

.service-card {
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 5px solid #ffc107;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.info-box h5 {
    color: #856404;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    color: #856404;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

.info-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   CERTIFICAÇÃO
   ============================================ */

.certification-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.certification-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.certification-icon {
    color: white;
    opacity: 0.9;
}

.certification-box h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.certification-box p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-logo,
img.footer-logo,
footer img.footer-logo,
footer .footer-logo {
    max-width: 200px !important;
    min-width: 100px !important;
    height: auto !important;
    margin-bottom: 1rem !important;
    filter: brightness(0) invert(1) !important;
    border-radius: 0.75rem !important;
    object-fit: contain !important;
    display: block !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-text a {
    color: white !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.footer-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-dev {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0 4rem;
        margin-top: 72px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .plan-card {
        margin-bottom: 2rem !important;
    }
    
    /* Garantir espaçamento entre cards no mobile */
    .row.g-3 .plan-card,
    .row.g-4 .plan-card {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-logo {
        max-width: 150px;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
        margin-top: 68px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .hero-content p,
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 3.5rem 0;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    /* Ajustes para cards no mobile */
    #planos .row > [class*="col-"],
    #planos .row > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 2rem !important;
    }
    
    #planos .row > [class*="col-"]:last-child,
    #planos .row > div:last-child {
        margin-bottom: 0 !important;
    }
    
    .plan-card {
        padding: 2rem 1.5rem !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .plan-title {
        font-size: 1.25rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .plan-features li {
        font-size: 0.9rem;
        padding: 0.75rem 0;
        padding-left: 1.75rem;
    }
    
    .certification-box {
        padding: 2.5rem 2rem;
    }
    
    .certification-box h3 {
        font-size: 1.5rem;
    }
    
    .certification-box p {
        font-size: 1rem;
    }
    
    .footer-logo {
        max-width: 150px;
        border-radius: 0.5rem;
        display: block !important;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .btn-cta-nav {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .info-box {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .plan-card {
        padding: 1.5rem;
        margin-bottom: 2rem !important;
    }
    
    .plan-price {
        font-size: 1.75rem;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

.text-primary-custom {
    color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.footer-contact {
    margin-top: 1rem;
    margin-bottom: 2rem;
}