/* =============================================================================
   CASA DE REPOUSO 2026 — ESTILOS
   As cores vêm do painel (Configurações → Cores e Conteúdo da Home → cor escura)
   e chegam aqui como variáveis CSS definidas no <head> do index.php.
   ============================================================================= */
:root {
    --primary-dark: color-mix(in srgb, var(--primary) 72%, black);
    --primary-soft: color-mix(in srgb, var(--primary) 10%, white);
    --primary-soft-2: color-mix(in srgb, var(--primary) 22%, white);
    --dark-2: color-mix(in srgb, var(--dark) 80%, var(--primary));
}
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f9fafb;
    color: #334155;
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
}

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

/* Proteção contra plgio */
.protected-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Cabeçalho / Logo */
.logo-container { display: flex; align-items: center; gap: 12px; }

.logo-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 25%, transparent);
}

.logo-circle i { color: white; font-size: 26px; }

.doctor-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.15) translateY(2px);
    transform-origin: bottom center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text { display: flex; flex-direction: column; }

.logo-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

.location-badge {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-badge:hover { background-color: #e2e8f0; transform: translateY(-1px); }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--primary) 20%, transparent) 0%, transparent 55%);
    pointer-events: none;
}

/* Ícone central no mobile */
.hero-mobile-logo-container { display: none; }

@media (max-width: 991.98px) {
    .hero-mobile-logo-container {
        display: flex;
        justify-content: center;
        margin-bottom: 25px;
        margin-top: 10px;
        width: 100%;
    }
    .hero-mobile-logo-wrapper {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 35%, transparent);
    }
    .hero-mobile-logo-wrapper i { color: white; font-size: 90px; }
    .hero-mobile-logo-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Botes de conversão */
.btn-whatsapp {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: pulse-green 2s infinite;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-phone {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-phone:hover { background-color: rgba(255,255,255,0.2); color: white; transform: translateY(-2px); }

/* Animações de Converso */
@keyframes pulse-green {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70%  { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes pulse-amber {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 color-mix(in srgb, var(--secondary) 60%, transparent); }
    70%  { transform: scale(1.05); box-shadow: 0 0 0 12px color-mix(in srgb, var(--secondary) 0%, transparent); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 color-mix(in srgb, var(--secondary) 0%, transparent); }
}

.btn-pulse-trigger { animation: pulse-green 2s infinite !important; }

/* Cards de Serviços */
.card-service {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card-service:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.card-service-img { width: 100%; height: 220px; object-fit: cover; }

.card-service-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Cards de Planos / Mensalidades */
.unit-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.unit-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.unit-card.featured { border-color: var(--secondary); }

.unit-header { padding: 24px 24px 15px 24px; text-align: center; border-bottom: 1px solid #f1f5f9; }

.unit-badge {
    font-size: 11px; font-weight: 800; padding: 5px 12px;
    border-radius: 50px; text-transform: uppercase; margin-bottom: 10px; display: inline-block;
}

.unit-badge.basic    { background-color: #f1f5f9; color: #475569; }
.unit-badge.standard { background-color: var(--primary-soft); color: var(--primary); }
.unit-badge.comfort  { background-color: #fff8e1; color: var(--secondary); }
.unit-badge.premium  { background-color: #fce4ec; color: #c62828; }

.unit-price { font-size: 28px; font-weight: 800; color: var(--dark); margin: 10px 0; }
.unit-price span { font-size: 14px; font-weight: 500; color: #64748b; }
.unit-body { padding: 24px; flex-grow: 1; }

.unit-features { list-style: none; padding: 0; margin: 0 0 24px 0; }
.unit-features li { font-size: 13px; color: #475569; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.unit-features li i { color: var(--primary); font-size: 14px; }

/* Convênios */
.insurance-badge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 768px)  { .insurance-badge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .insurance-badge-grid { grid-template-columns: repeat(3, 1fr); } }

.insurance-logo-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.insurance-logo-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transform: translateY(-1px); }
.insurance-info { display: flex; align-items: center; gap: 10px; }
.insurance-heart-icon { color: #ef4444; font-size: 16px; }
.insurance-name { font-weight: 700; font-size: 14px; color: #334155; }

.insurance-direct-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background-color: #25d366; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; border: none; transition: all 0.3s ease;
    text-decoration: none; animation: pulse-green 2.5s infinite;
}

.insurance-direct-btn:hover { background-color: #128c7e; color: white; transform: scale(1.1); }
.insurance-direct-btn.others { background-color: var(--primary); animation: none; }
.insurance-direct-btn.others:hover { background-color: var(--primary-dark); }

.insurance-alert-banner {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 12px 16px;
    color: #b45309;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Seço de Urgência/Transferência */
.rescue-section {
    background-color: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.rescue-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--secondary) 12%, transparent) 0%, transparent 50%);
    pointer-events: none;
}

.backdrop-blur { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Botão Flutuante WhatsApp */
.wpp-floating-container {
    position: fixed; bottom: 30px; right: 10px;
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; pointer-events: auto; cursor: pointer;
}

@media (max-width: 575.98px) { .wpp-floating-container { right: 5px; bottom: 25px; } }

.wpp-floating-svg {
    position: absolute; top: -10px; left: -10px;
    width: 110px; height: 110px;
    pointer-events: none;
    animation: rotate-slow 12s linear infinite reverse;
}

.wpp-svg-text { font-size: 8px; font-weight: 900; fill: #25d366; text-transform: uppercase; letter-spacing: 1.5px; }

.wpp-floating-btn {
    width: 60px; height: 60px;
    background-color: #25d366; color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 25px rgba(37,211,102,0.4);
    border: 3px solid #ffffff;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.wpp-floating-btn:hover { transform: scale(1.1); background-color: #128c7e; }

/* Botão Flutuante Urgncia (canto esquerdo) */
.rescue-floating-container {
    position: fixed; bottom: 30px; left: 10px;
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; pointer-events: auto; cursor: pointer;
}

@media (max-width: 575.98px) { .rescue-floating-container { left: 5px; bottom: 25px; } }

.rescue-floating-svg {
    position: absolute; top: -10px; left: -10px;
    width: 110px; height: 110px;
    pointer-events: none;
    animation: rotate-slow 15s linear infinite;
}

.rescue-svg-text { font-size: 8px; font-weight: 900; fill: var(--secondary); text-transform: uppercase; letter-spacing: 1.2px; }

.rescue-floating-btn {
    width: 60px; height: 60px;
    background-color: #ffffff;
    border: 3px solid var(--secondary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 25px color-mix(in srgb, var(--secondary) 30%, transparent);
    transition: all 0.3s ease;
    animation: pulse-amber 2.5s infinite;
}

.rescue-floating-btn:hover { transform: scale(1.1); background-color: var(--secondary); color: white; }

@keyframes rotate-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Modais */
.filter-modal-content { border-radius: 24px; border: none; overflow: hidden; box-shadow: 0 15px 50px rgba(15,23,42,0.15); }

.filter-modal-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: white; border: none; padding: 24px; position: relative;
}

.filter-modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); position: absolute; top: 24px; right: 24px; opacity: 0.8; }

.filter-modal-body { padding: 30px 24px; background-color: white; }

.filter-alert-box {
    background-color: var(--primary-soft);
    border: 1px solid var(--primary-soft-2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-alert-icon { color: var(--primary); font-size: 20px; }

.filter-alert-text { margin: 0; font-size: 13px; color: var(--primary-dark); font-weight: 500; line-height: 1.4; }

.filter-btn-group { display: flex; flex-direction: column; gap: 12px; }

.filter-btn-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-radius: 16px;
    font-weight: 700; font-size: 15px;
    text-decoration: none; transition: all 0.3s ease;
}

.filter-btn-option.private { background-color: #25d366; color: white; border: 1px solid #20ba5a; box-shadow: 0 4px 15px rgba(37,211,102,0.2); }
.filter-btn-option.private:hover { background-color: #128c7e; transform: translateX(3px); }

.filter-btn-option.insurance { background-color: var(--primary); color: white; border: 1px solid var(--primary-dark); box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 20%, transparent); }
.filter-btn-option.insurance:hover { background-color: var(--primary-dark); transform: translateX(3px); }

.filter-btn-option.public { background-color: #fff8e1; color: #e65100; border: 1px solid #ffe0b2; box-shadow: 0 4px 15px color-mix(in srgb, var(--secondary) 10%, transparent); }
.filter-btn-option.public:hover { background-color: #ffe0b2; color: #e65100; transform: translateX(3px); }

.filter-btn-option.info { background-color: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; box-shadow: 0 4px 15px rgba(29,78,216,0.08); }
.filter-btn-option.info:hover { background-color: #dbeafe; color: #1e40af; transform: translateX(3px); }

/* Diferenciais visuais */
.diferencial-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.diferencial-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }

.diferencial-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-soft-2) 100%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px auto;
}

.diferencial-icon i { color: var(--primary); font-size: 28px; }

/* Seção Depoimentos */
.depoimento-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    height: 100%;
}

.depoimento-stars { color: var(--secondary); font-size: 18px; margin-bottom: 12px; }

/* =============================================================================
   EXTRAS DA VERSÃO EDITÁVEL
   ============================================================================= */
.fw-extrabold { font-weight: 800; }
.txt-primary { color: var(--primary) !important; }
.txt-secondary { color: var(--secondary) !important; }
.txt-accent { color: var(--accent) !important; }
.txt-dark { color: var(--dark) !important; }
.bg-soft { background-color: color-mix(in srgb, var(--primary) 6%, white); }
.bg-light-gray { background-color: #f9fafb; }
.bg-brand-secondary { background-color: var(--secondary) !important; }
.section-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-size: 14px; }

.hero-section { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); }
.hero-section::before { background-image: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--primary) 20%, transparent) 0%, transparent 55%); }
.hero-section .container { position: relative; z-index: 1; }
.hero-badge { background-color: color-mix(in srgb, var(--primary) 80%, transparent); color: #fff; white-space: normal; }
.hero-box { background-color: color-mix(in srgb, var(--dark) 95%, transparent); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.hero-box-text { color: color-mix(in srgb, var(--accent) 25%, white) !important; font-weight: 500; line-height: 1.6; }

/* Logo livre (retangular) */
.logo-livre { max-height: 60px; max-width: 200px; width: auto; object-fit: contain; }
.hero-mobile-logo-wrapper.livre { background: #fff; border-radius: 24px; width: auto; max-width: 280px; height: auto; padding: 18px; }
.hero-mobile-logo-wrapper.livre img { object-fit: contain; height: auto; max-height: 140px; }
@media (max-width: 575.98px) {
    .logo-title { font-size: 15px; }
    .logo-subtitle { font-size: 10px; }
    .location-badge { padding: 6px 10px; font-size: 12px; }
}

/* Botões com as cores do painel */
.btn-brand { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background-color: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-brand-secondary { background-color: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-brand-secondary:hover, .btn-brand-secondary:focus { background-color: color-mix(in srgb, var(--secondary) 80%, black); border-color: color-mix(in srgb, var(--secondary) 80%, black); color: #fff; }
.btn-outline-brand { color: var(--primary); border: 2px solid var(--primary); background: transparent; }
.btn-outline-brand:hover, .btn-outline-brand:focus { background-color: var(--primary); color: #fff; }
.btn-pulse { animation: pulse-green 2s infinite; }
.btn-urgente { background-color: var(--secondary); color: #fff; border: none; padding: 16px 28px; border-radius: 50px; font-size: 15px; animation: pulse-amber 2s infinite; }
.btn-urgente:hover { color: #fff; filter: brightness(.95); }
.aviso-brand { background-color: color-mix(in srgb, var(--primary) 8%, white); border-left: 4px solid var(--primary) !important; }
.estadia-card { transition: all .3s ease; }
.estadia-card:hover { transform: translateY(-4px); }
.unit-card.featured { border-width: 2px; }
.avatar-dep { width: 44px; height: 44px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.urg-icon-box { background-color: rgba(255,255,255,0.05); }
.urg-icon-box i { font-size: 140px; color: color-mix(in srgb, var(--secondary) 40%, transparent); }
a.card-service { color: inherit; }

/* Galeria */
.gallery-item { display: block; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-more { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Janela de filtro */
.filter-destaque { font-size: 15px; color: var(--primary-dark); font-weight: 700; }
.filter-btn-option.info { width: 100%; text-align: left; }
.filter-resposta { margin-top: 16px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }

/* Rodapé */
.site-footer { background: color-mix(in srgb, var(--dark) 85%, black); }
.footer-socials { display: flex; gap: 10px; justify-content: center; }
@media (min-width: 768px) { .footer-socials { justify-content: flex-start; } }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .3s; }
.footer-socials a:hover { background: var(--primary); }
body { padding-bottom: 0; }
@media (max-width: 575.98px) { .site-footer { padding-bottom: 110px !important; } }

/* Topo no celular: nome não empurra o selo de cidade */
.navbar .navbar-brand { min-width: 0; flex: 1 1 auto; }
.logo-container { min-width: 0; }
.logo-circle { flex-shrink: 0; }
.logo-text { min-width: 0; }
.logo-title, .logo-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-badge { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 575.98px) {
    .logo-circle { width: 44px; height: 44px; }
    .logo-livre { max-height: 44px; max-width: 120px; }
    .location-badge .fa-pen { display: none; }
    .location-badge { gap: 5px; }
}
