/* =========================================
   1. RESET E VARIÁVEIS GLOBAIS
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --color-green: #3bbe1b;
    --color-green-hover: #2e9615;
    --color-teal: #1abc9c;
    --color-dark-blue: #2c3e50;
    --color-darker-blue: #1c2833;
    --color-gray-bg: #f5f7f8;
    --color-text-main: #555;
    --color-text-dark: #001d30;
    --color-white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitários */
.text-center { text-align: center; }
.highlight-teal { color: var(--color-teal); font-weight: 700; }
.mt-2 { margin-top: 15px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 60px; }
.text-white { color: var(--color-white); }

/* Badges (Tags pequenas acima dos títulos) */
.badge {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-text-main);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.badge-light { color: #a1a1a1; }

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-green {
    background-color: var(--color-green);
    color: var(--color-white);
}
.btn-green:hover {
    background-color: var(--color-green-hover);
}
.btn-large { padding: 15px 35px; font-size: 16px; }


/* =========================================
   2. HEADER FLUTUANTE 
========================================= */
.header {
    position: absolute;
    top: 25px; 
    left: 0;
    width: 100%;
    z-index: 100;
}
.header-container {
    background-color: var(--color-white);
    border-radius: 100px;
    padding: 10px 15px 10px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { max-height: 40px; width: auto; }
.main-nav { display: flex; gap: 30px; }
.main-nav a {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}
.main-nav a:hover { color: var(--color-teal); }


/* =========================================
   3. HERO SECTION
========================================= */
.hero {
    background-color: #eaf1f4; 
    background-image: url('https://pages.greatpages.com.br/www.ortopedicaitauna.com.br/1765393135/imagens/desktop/3411019_1_176305692269161d1a4e902.png');
    background-size: cover;
    background-position: center bottom;
    padding: 200px 0 140px 0; 
}
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.hero-content { max-width: 500px; }
.hero-content h1 {
    font-size: 40px;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--color-text-main);
}
.hero-image { max-width: 500px; width: 100%; }


/* =========================================
   4. BENEFITS BAR (FLUTUANTE)
========================================= */
.benefits-bar {
    margin-top: -60px; 
    position: relative;
    z-index: 10;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.benefit-item {
    background-color: var(--color-dark-blue);
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.benefit-icon {
    background-color: var(--color-teal);
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}
.benefit-item p {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}


/* =========================================
   5. CTA DO CATÁLOGO
========================================= */
.catalog-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-teal) 100%);
    position: relative;
    margin-top: 60px;
}

.catalog-cta-content {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.catalog-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: 30px;
}

.catalog-cta-content h2 {
    color: var(--color-white);
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.catalog-cta-content p {
    color: #e6f4f1;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}


/* =========================================
   6. POR QUE ESCOLHER
========================================= */
.why-section { padding: 80px 0 100px; background-color: var(--color-white); }
.why-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
}

.why-left { flex: 1; max-width: 650px; }
.why-left h2 { font-size: 34px; color: var(--color-text-dark); line-height: 1.2; margin-bottom: 30px;}

.why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.why-card {
    background-color: var(--color-dark-blue);
    border-radius: 15px;
    padding: 25px;
}
.why-card img {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    opacity: 0.8;
}
.why-card p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}
.why-card p strong { color: var(--color-white); }

.wide-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 20px;
}
.wide-card img { margin-bottom: 0; flex-shrink: 0; }

.why-right {
    flex: 1;
    display: flex;
}
.image-composite {
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 500px;
}
.img-doctor {
    max-width: 220px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.experience-tag {
    background-color: var(--color-teal);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* =========================================
   7. ETAPAS (CORRIGIDO)
========================================= */
.steps-section {
    padding: 80px 0; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.steps-section::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-color: rgba(15, 25, 35, 0.75); 
}

.steps-section .container { 
    position: relative; 
    z-index: 2; 
}

.title-white {
    color: var(--color-white);
    font-size: 36px;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; 
}

.step-box {
    background-color: rgba(60, 95, 90, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 12px;
    padding: 25px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.step-number {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8); 
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
}

.step-box h3 { 
    color: var(--color-white); 
    font-size: 16px; 
    margin-bottom: 10px; 
    line-height: 1.3;
}

.step-box p { 
    color: #e0e0e0; 
    font-size: 13px; 
    line-height: 1.5;
}


/* =========================================
   8. DEPOIMENTOS & STATS
========================================= */
.testimonials-section { padding: 100px 0; background-color: var(--color-white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.testi-box {
    background-color: var(--color-gray-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.stars { color: #f1c40f; margin-bottom: 15px; font-size: 14px; }
.testi-box p { font-style: italic; font-size: 14px; margin-bottom: 20px; }
.author { color: var(--color-teal); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px;}

.stats-banner {
    background-color: var(--color-dark-blue);
    border-radius: 15px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
}
.stats-banner h3 { color: var(--color-white); font-size: 22px; font-weight: 400;}


/* =========================================
   9. SOBRE NÓS E FAQ
========================================= */
.about-faq-section { padding: 100px 0; background-color: var(--color-gray-bg); }
.about-grid, .faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2, .faq-text h2 { font-size: 34px; color: var(--color-text-dark); line-height: 1.2; margin-bottom: 20px;}

.about-image { position: relative; width: 100%; height: 250px; }
.box-behind { position: absolute; width: 85%; height: 220px; background-color: var(--color-teal); border-radius: 20px; right: 0; bottom: 0; }
.box-front { position: absolute; width: 85%; height: 220px; background-color: var(--color-white); border-radius: 20px; left: 0; top: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; padding: 30px; }

.faq-accordion { border: 1px solid #eee; border-radius: 15px; overflow: hidden; background-color: var(--color-white);}
.accordion-item { border-bottom: 1px solid #eee; }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
    width: 100%; text-align: left; padding: 20px; background-color: var(--color-white);
    border: none; font-size: 15px; font-weight: 600; color: var(--color-dark-blue);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-main); transition: 0.3s;
}
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    background-color: var(--color-white);
}
.accordion-content p { padding: 15px 20px 25px 20px; font-size: 14px; }
.accordion-item.active .accordion-content { max-height: 200px; }
.accordion-item.active .accordion-btn { color: var(--color-teal); }
.accordion-item i { transition: transform 0.3s; }
.accordion-item.active i { transform: rotate(180deg); }


/* =========================================
   10. FOOTER CTA E FOOTER BOTTOM
========================================= */
.footer-cta {
    padding: 80px 0;
    background-color: var(--color-white); 
}
.cta-box {
    background-color: var(--color-dark-blue);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
}
.cta-bg-clip {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
}
.cta-bg-logo {
    position: absolute;
    right: -20px;
    bottom: -20px;
    max-width: 350px;
    opacity: 0.05; 
    z-index: 1;
}

.cta-text {
    max-width: 55%;
    color: var(--color-white);
    position: relative;
    z-index: 2;
}
.cta-text .badge { margin-bottom: 20px; color: #a1a1a1; }
.cta-text h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}
.cta-text p {
    font-size: 15px;
    color: #d1d1d1;
    margin-bottom: 30px;
}

.cta-doctor {
    position: absolute;
    right: 5%;
    bottom: 0;
    height: 115%; 
    max-height: 400px;
    width: auto;
    z-index: 2;
}

.footer-bottom {
    background-color: var(--color-white);
    border-top: 1px solid #eee;
    padding: 20px 0;
}
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { max-width: 150px; }
.footer-flex p { font-size: 13px; color: #999; }


/* =========================================
   11. WHATSAPP FLUTUANTE
========================================= */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25d366; color: var(--color-white);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 32px; z-index: 999; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}


/* =========================================
   12. RESPONSIVO (Mobi/Tablet)
========================================= */
@media (max-width: 1024px) {
    /* CORREÇÃO: benefits-grid QUEBRANDO EM 2 NO TABLET */
    .grid-4, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text { margin-bottom: 40px; max-width: 100%;}
    
    .why-container { flex-direction: column; }
    .why-left { max-width: 100%; }
    .image-composite { min-height: 400px; margin-top: 50px; }
    
    .steps-grid { grid-template-columns: repeat(2, 1fr); }

    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-banner { flex-direction: column; text-align: center; gap: 20px; }
    
    .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .cta-box { flex-direction: column; padding: 40px 30px; text-align: center; }
    .cta-text { max-width: 100%; }
    .cta-doctor { display: none; }
    
    .catalog-cta-content { padding: 40px 20px; margin: 0 15px; }
    .catalog-cta-content h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    .header-container { padding: 10px 15px; } 
    .main-nav { display: none; } 
    /* CORREÇÃO: benefits-grid QUEBRANDO EM 1 NO MOBILE */
    .grid-4, .why-cards, .steps-grid, .benefits-grid { grid-template-columns: 1fr; }
    .wide-card { grid-column: span 1; flex-direction: column; text-align: center; }
    .hero { padding: 160px 0 80px; }
    .hero-content h1 { font-size: 30px; }
    .footer-flex { flex-direction: column; gap: 15px; text-align: center; }
    
    .catalog-cta { padding: 80px 0; }
}