/* =========================================================
   Dr. Lucas Nascimento — Estilos customizados
   Abordagem: Mobile-first · Bootstrap 5 como base
   =========================================================
   PALETA
   - Fundo claro / branco
   - Texto cinza escuro
   - Destaque / cabeçalhos: Azul Marinho / Royal
   - CTA: Verde vibrante (conversão / WhatsApp)
   ========================================================= */

:root {
    --navy: #0b2447;        /* azul marinho principal */
    --royal: #19376d;       /* azul royal (variação) */
    --green: #25a244;       /* verde CTA */
    --green-dark: #1c8035;  /* verde hover */
    --ink: #1f2933;         /* texto principal */
    --muted: #5b6b7b;       /* texto secundário */
    --bg: #ffffff;          /* fundo primário */
    --bg-alt: #f5f8fc;      /* fundo alternado de seção */
    --border: #e6ecf2;
    --shadow: 0 12px 40px rgba(11, 36, 71, 0.10);
    --radius: 16px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

/* Mobile-first: trava qualquer rolagem horizontal no nível raiz */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    /* compensa o header fixo em rolagens de âncora */
    scroll-padding-top: 80px;
    /* Quebra palavras/URLs longas (ex.: e-mail no rodapé) em telas pequenas */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Garante que nenhuma imagem/elemento ultrapasse a largura da tela */
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-weight: 700; color: var(--navy); }

.text-navy  { color: var(--navy) !important; }
.text-green { color: var(--green) !important; }

/* ---------- BOTÕES ---------- */
.btn-whatsapp {
    background: var(--green);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    box-shadow: 0 6px 18px rgba(37, 162, 68, 0.30);
}
.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: var(--green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 162, 68, 0.40);
}
.btn-whatsapp .bi-whatsapp { font-size: 1.1em; }

/* CTA "gigante" */
.btn-cta {
    font-size: 1.15rem;
    padding: 0.95rem 2rem;
}

/* Animação pulsante do CTA principal */
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 162, 68, 0.55); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 162, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 162, 68, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-pulse { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- HEADER ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 36, 71, 0.08); }

.navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

/* Logo + tagline sempre lado a lado (logo | Especialista em ...) */
.brand-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
}
.brand-tagline {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    margin-left: 0.45rem;
    padding-left: 0.45rem;
    border-left: 1px solid var(--border);
    font-size: 0.58rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
}
/* Em telas muito estreitas não cabe logo + tagline + hamburger: mostra só a logo */
@media (max-width: 359.98px) {
    .brand-tagline { display: none; }
}
@media (min-width: 400px) {
    .brand-tagline { font-size: 0.68rem; gap: 0.35rem; margin-left: 0.6rem; padding-left: 0.6rem; }
}
@media (min-width: 1200px) {
    .brand-tagline { font-size: 0.82rem; gap: 0.45rem; margin-left: 0.95rem; padding-left: 0.95rem; }
}
.bt-label { white-space: nowrap; }
.bt-rotate {
    height: 1.3em;
    overflow: hidden;
    display: inline-block;
}
.bt-words {
    display: flex;
    flex-direction: column;
    animation: rotateWords 13s infinite;
}
.bt-words span {
    height: 1.3em;
    line-height: 1.3em;
    white-space: nowrap;
    color: var(--green-dark);
    font-weight: 600;
}
/* 5 itens (o 1º repetido no fim) => passos de 20% para loop contínuo */
@keyframes rotateWords {
    0%, 16%   { transform: translateY(0); }
    20%, 36%  { transform: translateY(-20%); }
    40%, 56%  { transform: translateY(-40%); }
    60%, 76%  { transform: translateY(-60%); }
    80%, 100% { transform: translateY(-80%); }
}
@media (prefers-reduced-motion: reduce) {
    .bt-words { animation: none; }
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 1rem;
}
.navbar .nav-link {
    color: var(--ink);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}
.navbar .nav-link:hover { color: var(--green); }
.navbar-toggler { border: none; font-size: 1.6rem; color: var(--navy); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- HERO ---------- */
.hero-section {
    padding: 120px 0 70px;
    background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
}
.badge-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e7f7ec;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.1rem;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.1rem;
}
.hero-subtitle {
    font-size: 1.12rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    max-width: 540px;
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; }
.hero-trust li { color: var(--muted); font-weight: 500; }
.hero-trust .bi { color: var(--green); margin-right: 0.35rem; }
.hero-img {
    border-radius: 24px;
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
    max-height: 520px;
}

/* Colagem diagonal de 2 fotos do profissional + etiqueta flutuante */
.hero-collage {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}
.collage-img {
    position: absolute;
    width: 66%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    border: 5px solid #fff;
    box-shadow: 0 16px 40px rgba(11, 36, 71, 0.20);
    background: #fff;
}
.collage-back {
    top: 0; left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}
.collage-front {
    bottom: 0; right: 0;
    transform: rotate(4deg);
    z-index: 2;
}
/* Etiqueta reposicionada: pílula flutuante sobre a colagem */
.collage-label {
    position: absolute;
    z-index: 3;
    left: 4%;
    bottom: 6%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #fff;
    border-radius: 50px;
    padding: 0.5rem 0.9rem 0.5rem 0.55rem;
    box-shadow: 0 12px 30px rgba(11, 36, 71, 0.25);
}
.cl-ic {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #e7f7ec;
    color: var(--green-dark);
    font-size: 1.05rem;
}
.cl-txt { display: flex; flex-direction: column; line-height: 1.15; }
.cl-txt strong { color: var(--navy); font-size: 0.9rem; }
.cl-txt span { color: var(--green-dark); font-size: 0.72rem; font-weight: 600; }

/* ---------- CARROSSEL DE ATENDIMENTOS ---------- */
.gallery-carousel {
    max-width: 480px;               /* fotos verticais (celular) ficam bem em formato retrato */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0a1c38;
}
.gallery-carousel .carousel-item img {
    height: 580px;
    object-fit: cover;
    object-position: center top;
}
.gallery-carousel .carousel-caption {
    display: block;   /* Bootstrap esconde no mobile por padrão; aqui mantemos visível */
    left: 5%;
    right: 5%;
    bottom: 1.2rem;
    text-align: left;
    background: linear-gradient(to top, rgba(10, 28, 56, 0.85), rgba(10, 28, 56, 0));
    padding: 2.2rem 1.2rem 0.9rem;
    border-radius: 12px;
}
.gallery-carousel .carousel-caption h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.gallery-carousel .carousel-caption p {
    color: #dbe6f2;
    font-size: 0.92rem;
    margin: 0;
}
/* Setas em botão circular verde p/ contraste e toque no mobile */
.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
    width: 48px;
    align-items: center;
    opacity: 1;
}
.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
    background-color: var(--green);
    border-radius: 50%;
    padding: 1.1rem;
    background-size: 45%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.gallery-carousel .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
}

/* ---------- SEÇÕES GENÉRICAS ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.lead-muted { font-size: 1.1rem; color: var(--muted); }

/* ---------- SOBRE ---------- */
.about-img { object-fit: cover; }
.stat-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    height: 100%;
}
.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}
.stat-label { font-size: 0.82rem; color: var(--muted); }

/* ---------- ESPECIALIDADES (CARDS) ---------- */
.feature-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(11, 36, 71, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: #cfe9d6;
}
.feature-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: #e7f7ec;
    color: var(--green-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-text { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- CARDS DE SITUAÇÃO (PARA QUEM É) ---------- */
.situation-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.6rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;   /* mantém os cards alinhados mesmo com a seção centralizada */
}
.situation-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 14px rgba(11, 36, 71, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.situation-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
    border-color: #cfe9d6;
}
.situation-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7f7ec;
    color: var(--green-dark);
    font-size: 1.35rem;
}
.situation-body { min-width: 0; } /* permite a quebra de texto dentro do flex */
.situation-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 2px;
}
.situation-text {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}

/* ---------- DEPOIMENTOS ---------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: 0 4px 16px rgba(11, 36, 71, 0.05);
}
.stars { color: #f5b301; margin-bottom: 0.8rem; }
.testimonial-text { color: var(--ink); font-style: italic; margin-bottom: 1rem; }
.testimonial-author strong { display: block; color: var(--navy); }
.testimonial-author span { font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 0.8rem;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--navy);
    background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--green-dark);
    background: #e7f7ec;
    box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--border); }
.faq-accordion .accordion-body { color: var(--muted); }

/* ---------- FAIXA CTA FINAL ---------- */
.cta-band {
    padding: 70px 0;
    background: linear-gradient(120deg, var(--navy) 0%, var(--royal) 100%);
    color: #fff;
    text-align: center;
}
.cta-band-title { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.8rem; }
.cta-band-sub { color: #d3e0f0; margin-bottom: 1.8rem; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: #0a1c38;
    color: #c8d3e0;
    padding: 44px 0 26px;   /* mais compacto */
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.footer-logo-img {
    height: 46px;
    width: auto;
    display: block;
}
.footer-text { color: #9fb0c4; font-size: 0.92rem; margin-bottom: 1rem; max-width: 340px; }
.footer-cta { margin-top: 0.2rem; }
.footer-heading { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }

/* Navegação em linha (chips horizontais) — ocupa menos altura */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    margin: 0;
    padding-left: 0;
    list-style: none;   /* garante ausência de marcadores mesmo sem o Bootstrap */
}
.footer-nav li { margin: 0; }
.footer-nav a {
    color: #c8d3e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .15s ease;
}
.footer-nav a:hover { color: var(--green); }

/* Contato: ícone e texto alinhados na mesma linha (o texto quebra sob si mesmo) */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.4;
}
.footer-contact .bi {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 0.95rem;
}
.footer-contact span { min-width: 0; word-break: break-word; }
.footer-contact a { color: #c8d3e0; text-decoration: none; transition: color .15s ease; }
.footer-contact a:hover { color: var(--green); }

.footer-divider { border-color: rgba(255,255,255,0.12); margin: 1.8rem 0 1.1rem; }
.footer-copy { color: #8395ab; font-size: 0.82rem; line-height: 1.6; }

/* ---------- BOTÃO FLUTUANTE ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px; height: 58px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37, 162, 68, 0.45);
    z-index: 1030;
    transition: transform .2s ease, background .2s ease;
    animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { background: var(--green-dark); color: #fff; transform: scale(1.08); }

/* ---------- AJUSTES RESPONSIVOS ---------- */

/* Tablet e abaixo (< 992px) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: 0.6rem;
        box-shadow: var(--shadow);
    }
    /* Itens do menu hamburger centralizados */
    #navMenu .navbar-nav { align-items: center; text-align: center; }
    /* Respiro do cabeçalho e da logo nas bordas / topo */
    .site-header .navbar { padding-top: 0.6rem; padding-bottom: 0.6rem; }
    .site-header .container,
    .site-header .container-fluid { padding-left: 0.9rem; padding-right: 0.9rem; }
    .brand-logo { height: 32px; }

    .hero-section { padding-top: 100px; text-align: center; }
    .hero-subtitle, .hero-content { margin-left: auto; margin-right: auto; }
    .hero-trust { justify-content: center; }
}

/* Celular (< 768px): foco mobile-first */
@media (max-width: 767.98px) {
    /* Reduz os gutters grandes (g-5) que causavam rolagem horizontal */
    .row { --bs-gutter-x: 1.5rem; }

    /* Garante respiro lateral consistente em todas as seções */
    .container { padding-left: 1.1rem; padding-right: 1.1rem; }

    /* Cards de especialidade: ícone e texto centralizados ao empilhar */
    .feature-card .card-body { text-align: center; }
    .feature-icon { margin-left: auto; margin-right: auto; }

    /* Depoimentos: cards 2 por linha, mais compactos */
    .testimonial-card { text-align: center; padding: 1.1rem 0.9rem; }
    .testimonial-text { font-size: 0.85rem; line-height: 1.45; }
    .stars { text-align: center; font-size: 0.9rem; margin-bottom: 0.5rem; }
    .testimonial-author strong { font-size: 0.9rem; }
    .testimonial-author span { font-size: 0.76rem; }

    /* Colagem do hero em tablet */
    .hero-collage { max-width: 360px; }

    /* Footer centralizado e enxuto no mobile */
    .footer-brand-col,
    .footer-nav-col,
    .footer-contact-col { text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-text { margin-left: auto; margin-right: auto; }
    .footer-nav { justify-content: center; }
    .footer-contact li { justify-content: center; }
    .footer-cta { display: inline-flex; }
}

/* Celular pequeno (< 576px) — iPhone SE e similares */
@media (max-width: 575.98px) {
    .section { padding: 52px 0; }
    .hero-section { padding: 96px 0 48px; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1.02rem; }
    /* CTA um pouco mais compacto no celular (não estoura o container) */
    .btn-cta { width: 100%; justify-content: center; font-size: 1.04rem; padding: 0.8rem 1.1rem; }
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 16px; right: 16px; }

    /* Colagem compacta no celular (mantém as fotos em tamanho reduzido) */
    .hero-collage { max-width: 300px; }
    .cl-ic { width: 30px; height: 30px; font-size: 0.95rem; }
    .cl-txt strong { font-size: 0.82rem; }
    .cl-txt span { font-size: 0.68rem; }
    /* Foto do Sobre reduzida no celular */
    .about-img { max-width: 210px; }

    /* Carrossel: altura de retrato adequada ao celular */
    .gallery-carousel .carousel-item img { height: 460px; }
    .gallery-carousel .carousel-caption h3 { font-size: 1.1rem; }
    .gallery-carousel .carousel-caption p { font-size: 0.85rem; }
}
