/* ===========================================================
   Instituto Patrícia Ribeiro — Estilos
   =========================================================== */

:root {
    --teal:        #16b1ac;
    --teal-dark:   #0e8f8a;
    --teal-light:  #e6f7f6;
    --coral:       #f15a6f;
    --coral-dark:  #e23e56;
    --yellow:      #f6cf3f;
    --green:       #34c759;
    --green-dark:  #28a745;
    --ink:         #2b3a40;
    --muted:       #6c7a80;
    --bg-soft:     #f4fbfb;
    --wpp:         #25d366;
}

* { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html { scroll-padding-top: 100px; }

body {
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--ink);
    width: 100%;
}

h1, h2, h3, h4, h5, h6, .display-1, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

p { color: var(--muted); line-height: 1.75; }

.text-teal   { color: var(--teal) !important; }
.text-coral  { color: var(--coral) !important; }
.bg-soft     { background: var(--bg-soft); }
.bg-teal-light { background: var(--teal-light); }

.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 992px) {
    .container {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
}
@media (min-width: 1200px) {
    .container {
        padding-left: 2.75rem;
        padding-right: 2.75rem;
    }
}

/* ===== NAVBAR ===== */
.navbar { transition: box-shadow .3s, padding .3s; }
.navbar .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 992px) {
    .navbar .container {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
    .navbar .nav-link {
        padding: 0.5rem 1.15rem;
    }
}
@media (min-width: 1200px) {
    .navbar .container {
        padding-left: 2.75rem;
        padding-right: 2.75rem;
    }
}
.logo-nav { height: 48px; width: auto; transition: height .3s; cursor: default; }
@media (min-width: 992px) {
    .logo-nav { height: 72px; }
}

.navbar .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--ink);
    padding: .5rem 1rem;
    border-radius: 50px;
    transition: all .25s;
}
.navbar .nav-link:hover { color: var(--teal); }
.navbar .nav-link.active {
    background: var(--teal);
    color: #fff !important;
}

.btn-wpp {
    background: var(--wpp);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    transition: transform .2s, filter .2s;
}
.btn-wpp:hover { color: #fff; filter: brightness(.95); transform: translateY(-2px); }

/* ===== BOTÕES ===== */
.btn-teal {
    background: var(--teal);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: .75rem 2rem;
    border: none;
    transition: all .25s;
}
.btn-teal:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,177,172,.35); }

.btn-coral {
    background: var(--coral);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: .75rem 2rem;
    border: none;
    transition: all .25s;
}
.btn-coral:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(241,90,111,.35); }

.btn-green {
    background: var(--green);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: .85rem 2.2rem;
    border: none;
    font-size: 1.05rem;
    transition: all .25s;
}
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(52,199,89,.35); }

.btn-outline-teal {
    background: transparent;
    color: var(--teal);
    font-weight: 600;
    border-radius: 50px;
    padding: .85rem 2.2rem;
    border: 2px solid var(--teal);
    font-size: 1.05rem;
    transition: all .25s;
}
.btn-outline-teal:hover { background: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,177,172,.35); }

/* ===== SEÇÕES ===== */
section { padding: 5rem 0; }
.section-tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-light);
    padding: .4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; }

/* ===== HERO ===== */
.hero {
    padding-top: 9rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #eef6fb 0%, #f6fbfb 60%, #fff 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(22,177,172,.12), transparent 70%);
    border-radius: 50%;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    color: var(--teal);
    font-weight: 800;
    line-height: 1.1;
}
.hero p { font-size: 1.1rem; max-width: 540px; }
.hero-img { max-width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.08)); }

/* ===== CARDS / CHECKLIST ===== */
.check-list { list-style: none; padding-left: 0; }
.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .85rem;
    color: var(--ink);
    font-weight: 500;
}
.check-list li i {
    position: absolute;
    left: 0; top: .15rem;
    color: var(--green);
    font-size: 1.15rem;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 1px solid #eef2f3;
    transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.feature-icon {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 16px;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #fff;
}
.ic-teal   { background: var(--teal); }
.ic-coral  { background: var(--coral); }
.ic-yellow { background: var(--yellow); color: var(--ink); }
.ic-green  { background: var(--green); }

.profile-img {
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== GALERIA ===== */
.galeria-item {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.galeria-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.galeria-item:hover img { transform: scale(1.08); }

/* ===== LIGHTBOX ===== */
img:not(.logo-nav):not(.footer-logo):not(.depo-avatar) { cursor: pointer; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    text-align: center;
}
.lightbox-img-view {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
/* ===== FOOTER ===== */
.footer-site { background: var(--teal); color: #fff; }
.footer-logo {
    height: 56px;
    width: auto;
    display: block;
    cursor: default;
}
@media (min-width: 768px) {
    .footer-logo { height: 64px; }
}
.footer-text { color: rgba(255, 255, 255, .92); }
.footer-text-muted { color: rgba(255, 255, 255, .8); }

.lightbox-btn {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    transition: background .2s, transform .2s;
    z-index: 2001;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .25); transform: scale(1.05); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 575.98px) {
    .lightbox-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ===== DEPOIMENTOS ===== */
.depo-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.8rem;
    height: 100%;
    border: 1px solid #eef2f3;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.depo-stars { color: var(--yellow); font-size: 1rem; }
.depo-avatar {
    width: 46px; height: 46px;
    min-width: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: default;
}
.depo-text { color: var(--muted); font-size: .95rem; }

/* ===== CTA ===== */
.cta-band {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: 28px;
    color: #fff;
    padding: 3rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ===== CONTATO ===== */
.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #eef2f3;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform .25s;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-ic {
    width: 48px; height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: var(--teal-light);
    color: var(--teal);
    display: grid; place-items: center;
    font-size: 1.3rem;
}
.map-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
    min-height: 320px;
    border: 0;
    width: 100%;
}

/* ===== FLUTUANTES ===== */
.wpp-float {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 58px; height: 58px;
    background: var(--wpp);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 22px rgba(37,211,102,.45);
    z-index: 1050;
    animation: pulse 2s infinite;
    transition: transform .25s;
}
.wpp-float:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.btn-topo {
    position: fixed;
    right: 24px; bottom: 92px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--teal);
    color: #fff;
    font-size: 1.1rem;
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 1040;
}
.btn-topo.show { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-topo:hover { background: var(--teal-dark); }

/* ===== ANIMAÇÃO REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVO ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 0.85rem 1rem;
        border-radius: 16px;
        margin-top: .75rem;
        box-shadow: 0 12px 30px rgba(0,0,0,.1);
    }
    .navbar .nav-link {
        font-size: 0.92rem;
        padding: 0.45rem 0.85rem;
    }
    .navbar .btn-wpp {
        font-size: 0.88rem;
        padding: 0.45rem 1rem;
    }
    .navbar .nav-link.active { display: inline-block; }
    .hero { padding-top: 6.5rem; padding-bottom: 2.5rem; text-align: center; }
    .hero p { margin-inline: auto; font-size: 0.95rem; }
    .hero h1 { font-size: 1.65rem; }
    .section-title { font-size: 1.45rem; }
    section { padding: 3.25rem 0; }
    .cta-band { padding: 1.75rem 1.25rem; text-align: center; }
    .cta-band .h3, .cta-band h2 { font-size: 1.25rem; }
    .cta-band p { font-size: 0.9rem; }
    .cta-band .btn { font-size: 0.85rem; padding: 0.55rem 1.15rem; white-space: normal; }
}

@media (max-width: 767.98px) {
    body { font-size: 0.94rem; }
    p { font-size: 0.92rem; line-height: 1.65; }

    .hero h1 { font-size: 1.45rem; line-height: 1.2; }
    .hero p { font-size: 0.88rem; }

    .section-title { font-size: 1.3rem; }
    .section-tag { font-size: 0.68rem; padding: 0.3rem 0.7rem; letter-spacing: 1px; }

    .btn-green,
    .btn-outline-teal,
    .btn-teal,
    .btn-coral {
        font-size: 0.86rem;
        padding: 0.6rem 1.15rem;
    }

    .feature-card { padding: 1.25rem; }
    .feature-card h3,
    .feature-card h5 { font-size: 0.98rem; }
    .feature-card p { font-size: 0.88rem; margin-bottom: 0; }
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 0.85rem;
    }

    .check-list li { font-size: 0.88rem; padding-left: 1.65rem; margin-bottom: 0.65rem; }
    .check-list li i { font-size: 1rem; }

    .depo-card { padding: 1.15rem; }
    .depo-text { font-size: 0.86rem; }
    .depo-card h6 { font-size: 0.9rem; }

    .stats-cards .feature-card { padding: 0.85rem 1rem !important; }
    .stats-cards h3 { font-size: 1.15rem; }
    .stats-cards small { font-size: 0.85rem; line-height: 1.35; display: block; }

    .contact-card { padding: 1rem; }
    .contact-card h6 { font-size: 0.9rem; }
    .contact-card span { font-size: 0.82rem; }
    .contact-ic { width: 40px; height: 40px; min-width: 40px; font-size: 1.1rem; }

    .footer-text-muted { font-size: 0.72rem !important; line-height: 1.4; }
    .footer-logo { height: 48px; }

    .wpp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 1.45rem; }
    .btn-topo { right: 18px; bottom: 78px; width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 575.98px) {
    section { padding: 2.75rem 0; }
    .hero { padding-top: 6rem; }

    .feature-card, .depo-card { padding: 1rem; }
    .cta-band { padding: 1.35rem 1rem; border-radius: 18px; }

    #dores .fw-medium { font-size: 0.88rem; }
    #dores .p-3 { padding: 0.75rem !important; }
}
