/* =========================================================
   PÁGINA HOME
   ========================================================= */

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--cinza-escuro) 0%, var(--cinza) 100%);
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(237, 226, 204, 0.08), transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(237, 226, 204, 0.05), transparent 50%);
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bege-escuro);
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: '';
    width: 30px;
    height: 1.5px;
    background: var(--bege-escuro);
}

.hero h1 {
    color: white;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    margin-bottom: 28px;
    font-weight: 400;
}
.hero h1 em {
    font-style: italic;
    color: var(--bege-claro);
    font-weight: 300;
}
.hero h1 strong {
    font-weight: 500;
    color: white;
}

.hero-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

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

.hero-trust {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    flex-direction: column;
}
.trust-num {
    font-family: var(--display);
    font-size: 2.4rem;
    color: var(--bege-claro);
    line-height: 1;
    font-weight: 500;
    margin-bottom: 4px;
}
.trust-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.6);
}

/* Visual da hero — composição com a logo */
.hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    justify-self: center;
}
.hero-visual-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bege-claro) 0%, var(--bege) 100%);
    border-radius: 50%;
    box-shadow: 0 30px 90px rgba(0,0,0,0.3);
    overflow: hidden;
}
.hero-visual-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
}
.hero-visual img {
    position: absolute;
    inset: 0;
    width: 78%;
    height: 78%;
    margin: auto;
    object-fit: contain;
    z-index: 2;
}

.hero-floating-badge {
    position: absolute;
    background: white;
    color: var(--cinza-escuro);
    border-radius: 50px;
    padding: 12px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}
.hero-floating-badge.badge-1 { top: 10%; right: -10%; }
.hero-floating-badge.badge-2 { bottom: 12%; left: -8%; animation-delay: 1.5s; }
.hero-floating-badge svg {
    width: 18px; height: 18px; color: var(--bege-escuro);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hero-scroll::after {
    content: '';
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.4);
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0%, 100% { transform: scaleY(1); transform-origin: top; }
    50% { transform: scaleY(0.3); transform-origin: top; }
}

/* ===== DIFERENCIAIS ===== */
.diferenciais {
    background: var(--bege-claro);
    position: relative;
}
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.diferencial-card {
    text-align: center;
    padding: 14px;
}
.diferencial-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(94, 89, 84, 0.08);
    color: var(--cinza-escuro);
}
.diferencial-icon svg { width: 28px; height: 28px; }

.diferencial-card h4 {
    color: var(--cinza-escuro);
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.diferencial-card p {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== SOBRE - PREVIEW NA HOME ===== */
.sobre-preview {
    background: white;
}
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.sobre-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sobre-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sobre-visual::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--bege-escuro);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.sobre-text .section-eyebrow { color: var(--bege-escuro); }
.sobre-text h2 {
    color: var(--cinza-escuro);
    margin-bottom: 24px;
}
.sobre-text p {
    margin-bottom: 18px;
}
.sobre-text .btn { margin-top: 12px; }

.sobre-quote {
    border-left: 2px solid var(--bege-escuro);
    padding-left: 22px;
    margin: 30px 0;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--cinza-escuro);
    line-height: 1.5;
}

/* ===== ESPECIALIDADES (HOME) ===== */
.especialidades {
    background: var(--bege-claro);
}
.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.especialidade-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}
.especialidade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(94, 89, 84, 0.12);
    border-color: var(--bege);
}
.especialidade-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.especialidade-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}
.especialidade-card:hover .especialidade-img img {
    transform: scale(1.08);
}
.especialidade-content {
    padding: 28px 26px 30px;
}
.especialidade-content h3 {
    color: var(--cinza-escuro);
    font-family: var(--display);
    font-size: 1.55rem;
    margin-bottom: 10px;
}
.especialidade-content p {
    font-size: 0.93rem;
    margin-bottom: 16px;
    line-height: 1.6;
}
.especialidade-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cinza-escuro);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: gap var(--transition);
}
.especialidade-link:hover { gap: 14px; }
.especialidade-link::after {
    content: '→';
    transition: transform var(--transition);
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

/* ===== DEPOIMENTOS ===== */
.depoimentos {
    background: var(--cinza-escuro);
    color: white;
    position: relative;
    overflow: hidden;
}
.depoimentos::before {
    content: '"';
    position: absolute;
    top: -80px;
    right: 60px;
    font-family: var(--display);
    font-size: 28rem;
    line-height: 1;
    color: rgba(237, 226, 204, 0.04);
    z-index: 0;
}
.depoimentos .section-title { color: white; }
.depoimentos .section-eyebrow { color: var(--bege-escuro); }

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}
.depoimento-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all var(--transition);
}
.depoimento-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-4px);
}
.depoimento-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    color: #f5c953;
}
.depoimento-rating svg { width: 18px; height: 18px; }
.depoimento-text {
    font-family: var(--display);
    font-size: 1.18rem;
    font-style: italic;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    margin-bottom: 26px;
}
.depoimento-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.depoimento-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bege-escuro);
    color: var(--cinza-escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 500;
}
.depoimento-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 2px;
}
.depoimento-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ===== CTA FINAL ===== */
.cta-final {
    background: linear-gradient(135deg, var(--bege-claro) 0%, var(--bege) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
    transform: translateX(-50%);
}
.cta-final-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}
.cta-final h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--cinza-escuro);
    margin-bottom: 18px;
}
.cta-final p {
    font-size: 1.1rem;
    color: var(--cinza);
    margin-bottom: 40px;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== FAQ HOME ===== */
.faq-home {
    background: white;
}
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--linha);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--cinza-escuro);
    font-weight: 500;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--bege-escuro); }
.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bege-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 20px;
    transition: all var(--transition);
}
.faq-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}
.faq-item.open .faq-toggle {
    background: var(--cinza-escuro);
    color: white;
}
.faq-item.open .faq-toggle svg {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--easing);
}
.faq-answer-inner {
    padding: 0 0 26px;
    color: var(--texto-suave);
    line-height: 1.7;
    max-width: 720px;
}
.faq-item.open .faq-answer {
    max-height: 400px;
}

/* ===== RESPONSIVO HOME ===== */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-eyebrow,
    .hero-actions,
    .hero-trust { justify-content: center; }
    .hero-eyebrow { align-self: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-visual { max-width: 360px; }
    .hero-scroll { display: none; }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .sobre-visual { max-width: 500px; margin: 0 auto; }

    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }

    .especialidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .depoimentos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero { min-height: auto; padding: 120px 0 70px; }
    .hero-floating-badge.badge-1 { right: 0; top: 5%; font-size: 0.78rem; padding: 10px 14px; }
    .hero-floating-badge.badge-2 { left: 0; bottom: 8%; font-size: 0.78rem; padding: 10px 14px; }
    .hero-trust { gap: 22px; }
    .trust-num { font-size: 1.9rem; }

    .especialidades-grid {
        grid-template-columns: 1fr;
    }
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
}
