/* ================================================================
   MedFamily – LP Pediatria | Sistema de Design Global
   Arquivo: styles.css
   Versão: 2.0 – Otimizada para Conversão (Pediatria)
   ================================================================ */

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333333;
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ========== CSS VARIABLES ========== */
:root {
    --green-primary: #1A7A6D;
    --green-light: #2EC4A5;
    --green-hover: #15665B;
    --blue-dark: #0D2B5E;
    --blue-gradient-end: #153A7A;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-text: #333333;
    --gray-muted: #6B7280;
    --gray-border: #E5E7EB;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE5A;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1100px;
    --transition: all 0.3s ease;
}

/* ========== UTILITY CLASSES ========== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.section {
    padding: 60px 0;
}

.section--gray {
    background-color: var(--gray-light);
}

.section--green {
    background-color: var(--green-primary);
    color: var(--white);
}

.section--dark {
    background-color: var(--blue-dark);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
}

.btn--whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
    font-size: 1.05rem;
}

.btn--whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}

.btn--outline:hover {
    background-color: var(--green-primary);
    color: var(--white);
}

.btn--white-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--white-outline:hover {
    background-color: var(--white);
    color: var(--blue-dark);
}

.btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse-whatsapp {
    0%   { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50%  { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

/* ========== TOP BAR ========== */
.topbar {
    background-color: var(--green-primary);
    padding: 10px 0;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo img {
    height: 40px;
}

.navbar__cta .btn {
    padding: 12px 14px;
    font-size: 0.75rem;
    gap: 6px;
}

.navbar__cta .btn svg {
    width: 16px;
    height: 16px;
}

/* ========== TRUST BAR ========== */
.trust-bar {
    padding: 24px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.trust-bar__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 40px;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-muted);
}

.trust-bar__icon {
    font-size: 1.2rem;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-gradient-end) 100%);
    color: var(--white);
    padding: 25px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    overflow: hidden;
}

.hero__content {
    order: 2;
}

.hero__badge {
    display: inline-block;
    background-color: rgba(46, 196, 165, 0.2);
    color: var(--green-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
}

.hero__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero__microcopy {
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.hero__image {
    order: 1;
    text-align: center;
}

.hero__image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 350px;
    object-fit: cover;
    margin: 0 auto;
    width: 100%;
}

/* ========== PAIN / DOR SECTION ========== */
.pain__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.pain__intro {
    color: var(--gray-muted);
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.pain__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pain-card {
    background-color: var(--white);
    border-left: 4px solid var(--green-primary);
    padding: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.pain-card__icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pain-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.pain-card__text {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.pain__transition {
    margin-top: 36px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green-primary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== SOLUTION SECTION ========== */
.solution__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 36px;
}

.solution__blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.solution-block {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
}

.solution-block__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green-light);
    margin-bottom: 8px;
}

.solution-block__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.solution-block__text {
    font-size: 0.93rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* ========== CTA INLINE (mid-page) ========== */
.cta-inline {
    padding: 40px 0;
    text-align: center;
}

.cta-inline__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== DOCTOR / AUTHORITY SECTION ========== */
.doctor {
    padding: 60px 0;
}

.doctor__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.doctor__image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.doctor__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.doctor__specialty {
    font-size: 0.9rem;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.doctor__bio {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.doctor__crm {
    font-size: 0.85rem;
    color: var(--gray-muted);
    font-style: italic;
    margin-bottom: 20px;
}

/* ========== DIFFERENTIALS SECTION ========== */
.diff__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 36px;
}

.diff__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.diff-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: left;
}

.diff-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.diff-card__icon {
    width: 48px;
    height: 48px;
    background-color: rgba(26, 122, 109, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.diff-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.diff-card__text {
    font-size: 0.9rem;
    color: var(--gray-muted);
    line-height: 1.6;
}

/* ========== FAQ SECTION ========== */
.faq__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 32px;
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-border);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    user-select: none;
}

.faq-question__text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
}

.faq-question__icon {
    font-size: 1.5rem;
    color: var(--green-primary);
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer__text {
    padding-top: 14px;
    font-size: 0.93rem;
    color: var(--gray-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question__icon {
    transform: rotate(45deg);
}

/* ========== CTA FINAL SECTION ========== */
.cta-final {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-gradient-end) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-final__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-final__text {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #0A1F3F;
    color: var(--white);
    padding: 40px 0 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.footer__logo img {
    height: 260px;
    margin-bottom: 12px;
}

.footer__info {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.7;
}

.footer__info p {
    margin-bottom: 4px;
}

.footer__map iframe {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-sm);
    border: none;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.6;
}

.footer-privacy {
    margin-top: var(--space-3);
}

.footer-privacy a {
    color: var(--color-gray-400);
    text-decoration: underline;
    font-size: var(--text-xs);
}

.footer-privacy a:hover {
    color: var(--color-white);
}

/* ── Pain Card – Thumbnail Circular ── */
.pain-card__thumb {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* ── Diff Card – Thumbnail 16:9 ── */
.diff-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
    margin-bottom: 1rem;
}



/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Mobile */
@media (max-width: 767px) {
    .navbar__logo img {
        height: 36px;
    }

    .navbar__cta .btn {
        padding: 11px 14px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .navbar__cta .btn svg {
        width: 16px;
        height: 16px;
    }
    
    .faq-question__text {
        text-align: left !important;
    }

    .faq-answer__text {
        text-align: left !important;
    }

    .faq-list {
        text-align: left !important;
    }
    
    #duvidas .container {
        text-align: left;
    }

    #duvidas .faq__title {
        text-align: center;
    }   
    
    .footer__logo img {
        margin: 0 auto 12px;
        max-width: 100%;
        height: auto;
    }
    
    .footer__info {
        text-align: center;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__content {
        order: 1;
    }

    .hero__image {
        order: 2;
        display: block;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .pain__cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .solution__blocks {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .doctor__grid {
        grid-template-columns: 300px 1fr;
    }

    .diff__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .navbar__logo img {
        height: 50px;
    }

    .navbar__cta .btn {
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .navbar__cta .btn svg {
        width: 22px;
        height: 22px;
    }
    
    .faq-question__text {
        text-align: left !important;
    }

    .faq-answer__text {
        text-align: left !important;
    }

    .faq-list {
        text-align: left !important;
    }
    
    #duvidas .container {
        text-align: left;
    }

    #duvidas .faq__title {
        text-align: center;
    }

}

/* Desktop */
@media (min-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 35px 0 80px;
    }

    .hero__title {
        font-size: 1.95rem;
    }

    .diff__grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .cta-final__title {
        font-size: 2rem;
    }
}
