/* ============================================================
   Dra. Bruna Marcandali — Customizações de tema
   ============================================================ */

:root {
    --primary:       #1a7f8e;
    --primary-dark:  #115a66;
    --primary-light: #e6f5f7;
    --accent:        #f0a500;
    --text:          #2c3e50;
    --text-muted:    #6b7280;
    --bg-light:      #f8fafb;
    --white:         #ffffff;
    --radius:        0.75rem;
    --shadow:        0 4px 24px rgba(26, 127, 142, 0.10);
    --transition:    0.3s ease;
}

/* ── Base ────────────────────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    scroll-behavior: smooth;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
    transition: background var(--transition), box-shadow var(--transition);
    padding: 1rem 0;
}

#navbar.scrolled {
    background: var(--white) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white) !important;
    letter-spacing: -0.02em;
}

#navbar.scrolled .navbar-brand { color: var(--primary) !important; }
#navbar.scrolled .nav-link      { color: var(--text) !important; }
#navbar.scrolled .nav-link:hover { color: var(--primary) !important; }
#navbar.scrolled .btn-contato   { color: var(--white) !important; }

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 1rem !important;
    transition: color var(--transition);
}

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

.btn-contato {
    background: var(--white);
    color: var(--primary) !important;
    border-radius: 50px;
    padding: 0.4rem 1.4rem !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background var(--transition), transform var(--transition);
}

.btn-contato:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

#navbar.scrolled .btn-contato { background: var(--primary); }
#navbar.scrolled .btn-contato:hover { background: var(--primary-dark); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #22a5b8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Overlay de pontos — pointer-events: none para não bloquear cliques */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 480px;
}

.hero-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-photo-wrap::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 60% 40% 60% 40% / 50% 60% 40% 50%;
    background: rgba(255,255,255,0.12);
    top: 7%;
    left: 7%;
    animation: morphBlob 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 60% 40% / 50% 60% 40% 50%; }
    50%       { border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%; }
}

.hero-photo {
    width: 100%;
    max-width: 380px;
    border-radius: 60% 40% 60% 40% / 50% 60% 40% 50%;
    object-fit: cover;
    aspect-ratio: 4/5;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: morphPhoto 8s ease-in-out infinite;
}

@keyframes morphPhoto {
    0%, 100% { border-radius: 60% 40% 60% 40% / 50% 60% 40% 50%; }
    50%       { border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%; }
}

.btn-hero-wpp {
    background: #25D366;
    color: var(--white) !important;
    border-radius: 50px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    position: relative;
    z-index: 2;
}

.btn-hero-wpp:hover {
    background: #1ebe59;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.btn-hero-outline {
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* ── Seção genérica ──────────────────────────────────────── */
section { padding: 90px 0; }

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title span { color: var(--primary); }

.section-divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 1.2rem 0 1.8rem;
}

/* ── Sobre ───────────────────────────────────────────────── */
#sobre { background: var(--bg-light); }

.sobre-photo {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow);
}

.crm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-top: 1rem;
}

/* ── Serviços — cards com animação ──────────────────────── */
#servicos { background: var(--white); }

.card-servico {
    border-radius: var(--radius);
    height: 100%;
    perspective: 800px;
    cursor: default;
}

.card-servico-inner {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.4s ease,
        background 0.3s ease;
    will-change: transform;
    border: 1.5px solid transparent;
}

/* Linha de destaque na base */
.card-servico-inner::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.35s ease;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Reflexo brilhante que varre o card */
.card-servico-inner::after {
    content: '';
    position: absolute;
    top: -60%; left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.45) 50%,
        transparent 70%
    );
    transform: skewX(-15deg);
    transition: none;
    pointer-events: none;
}

.card-servico:hover .card-servico-inner {
    background: var(--white);
    box-shadow: 0 24px 56px rgba(26, 127, 142, 0.18);
    border-color: var(--primary-light);
}

.card-servico:hover .card-servico-inner::before {
    transform: scaleX(1);
}

.card-servico:hover .card-servico-inner::after {
    animation: cardShimmer 0.55s ease forwards;
}

@keyframes cardShimmer {
    to { left: 140%; }
}

/* Ícone */
.card-servico .icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    font-size: 1.7rem;
    color: var(--primary);
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-servico:hover .icon-wrap {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.15) rotate(-6deg);
}

.card-servico h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.card-servico:hover h4 { color: var(--primary); }

.card-servico p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Prova Social (Antes & Depois) ────────────────────────── */
#prova-social { background: var(--bg-light); }

.section-desc {
    max-width: 620px;
    margin: 0.5rem auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.prova-social-carousel {
    max-width: 720px;
    margin: 0 auto;
}

.prova-social-carousel .carousel-item img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.prova-social-carousel .carousel-control-prev,
.prova-social-carousel .carousel-control-next {
    width: 8%;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.prova-social-carousel .carousel-control-prev-icon,
.prova-social-carousel .carousel-control-next-icon {
    filter: invert(38%) sepia(64%) saturate(534%) hue-rotate(141deg) brightness(94%) contrast(92%);
    width: 1.8rem;
    height: 1.8rem;
}

.prova-social-indicators {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.prova-social-indicators [data-bs-target] {
    background-color: var(--primary-light);
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 1;
}

.prova-social-indicators .active {
    background-color: var(--primary);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-circles { position: absolute; inset: 0; pointer-events: none; }

.cta-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.10);
}

.cta-circle.c1 { width: 340px; height: 340px; top: -100px; right: -80px; }
.cta-circle.c2 { width: 200px; height: 200px; bottom: -60px; left: 5%; }
.cta-circle.c3 { width: 120px; height: 120px; top: 30%; left: 38%; opacity: 0.5; }

.cta-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
}

.cta-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    max-width: 580px;
    margin: 0 auto 2.4rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--primary-dark) !important;
    padding: 1rem 2.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px rgba(0,0,0,0.24);
    color: var(--primary) !important;
}

/* ── Contato ─────────────────────────────────────────────── */
#contato { background: var(--bg-light); }

.contato-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contato-info-item .icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contato-info-item .text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.contato-info-item .text span {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
}

.form-control, .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,127,142,0.12);
    outline: none;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--transition), transform var(--transition);
    width: 100%;
}

.btn-submit:hover  { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

#form-feedback {
    border-radius: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

/* ── WhatsApp flutuante ──────────────────────────────────── */
#btn-wpp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

#btn-wpp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,0.6);
    color: var(--white);
}

#btn-wpp-float .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37,211,102,0.4);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 2rem 0;
    font-size: 0.88rem;
    text-align: center;
}

footer a {
    color: rgba(255,255,255,0.75);
    margin: 0 0.5rem;
    font-size: 1.1rem;
    transition: color var(--transition);
}

footer a:hover { color: var(--white); }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    section { padding: 60px 0; }
    .cta-section { padding: 70px 0; }
    .hero-photo-wrap { margin-top: 2.5rem; }
    .hero-photo { max-width: 260px; }
    #btn-wpp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
}
