/* ============================================================
   THEME: SAUDE (Hive Saúde)
   Inclui estilos do hero, landing page e componentes específicos.
   Carregado via @push('head-links') em products/saude/landing.blade.php
   ============================================================ */

/* ── Variáveis do tema ───────────────────────────────────────
   Sobrescreve as variáveis globais dentro do escopo .health-theme
   ──────────────────────────────────────────────────────────── */

.health-theme {
    --primary: #22a06b;
    --primary-dark: #177851;
    --primary-light: #c7eedc;
    --primary-contrast: #072317;
}

/* ── Hero (health-hero) ──────────────────────────────────────
   Antes definido inline em hero-saude.blade.php
   ──────────────────────────────────────────────────────────── */

.health-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 56%, #0b1f27 100%);
}

.health-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 45%, rgba(95, 224, 177, 0.2), transparent 35%);
    pointer-events: none;
}

.health-left {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.health-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.health-title {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    line-height: 1.08;
    font-weight: 800;
    color: #0f1f19;
    max-width: 760px;
}

.health-description {
    margin-top: 1.5rem;
    max-width: 660px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(8, 36, 28, 0.74);
}

.health-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.health-right {
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.health-stage {
    position: relative;
    min-height: 620px;
    border-radius: 1.75rem;
    background: linear-gradient(160deg, rgba(6, 42, 31, 0.98), rgba(3, 59, 42, 0.94));
    border: 1px solid rgba(95, 224, 177, 0.32);
    box-shadow: 0 2rem 4rem rgba(5, 30, 22, 0.42);
    overflow: hidden;
}

.health-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.health-dashboard-frame {
    position: absolute;
    inset: 3rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(109, 233, 189, 0.34);
    background: rgba(5, 39, 28, 0.7);
    box-shadow: 0 1.5rem 3rem rgba(3, 21, 15, 0.45);
    z-index: 3;
    overflow: hidden;
}

.health-dashboard-image {
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.health-orbit-item {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: #d6ffee;
    animation: healthFloat 6s ease-in-out infinite;
}

.health-orbit-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 1px;
    background: linear-gradient(90deg, rgba(154, 255, 219, 0.68), rgba(154, 255, 219, 0));
    transform-origin: left center;
    pointer-events: none;
    opacity: 0.65;
}

.health-orbit-item--psicologia { top: 8%;  left: 10%;  animation-delay: 0s; }
.health-orbit-item--nutricao   { top: 13%; right: 8%;  animation-delay: 0.5s; }
.health-orbit-item--odontologia{ top: 48%; right: 1%;  animation-delay: 1s; }
.health-orbit-item--mel        { bottom: 8%;  right: 14%; animation-delay: 1.4s; }
.health-orbit-item--pacientes  { bottom: 11%; left: 8%;  animation-delay: 1.8s; }
.health-orbit-item--automacao  { top: 46%; left: 0%;   animation-delay: 2.2s; }

.health-orbit-item--psicologia::after,
.health-orbit-item--automacao::after,
.health-orbit-item--pacientes::after {
    transform: rotate(18deg);
}

.health-orbit-item--nutricao::after,
.health-orbit-item--odontologia::after,
.health-orbit-item--mel::after {
    transform: rotate(198deg);
}

.health-orbit-hex {
    width: 76px;
    height: 84px;
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    border: 1px solid rgba(154, 255, 219, 0.72);
    background: linear-gradient(180deg, rgba(8, 64, 46, 0.95), rgba(4, 41, 29, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(154, 255, 219, 0.2);
}

.health-orbit-icon {
    width: 28px;
    height: 28px;
    color: #9affdb;
}

.health-orbit-label {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.66rem;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(12, 71, 51, 0.92);
    border: 1px solid rgba(154, 255, 219, 0.35);
    color: #defff2;
}

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

/* ── Landing page — componentes visuais ──────────────────────
   Antes definido inline em products/saude/landing.blade.php
   ──────────────────────────────────────────────────────────── */

.health-theme .health-section-title {
    color: var(--primary-contrast);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.health-theme .health-card {
    border: 1px solid rgba(34, 160, 107, 0.24);
    border-radius: 1rem;
}

.health-theme .health-card:hover {
    box-shadow: 0 1rem 2rem rgba(7, 35, 23, 0.1);
}

.health-theme .health-muted {
    color: #556c61;
}

.health-theme .health-cta {
    background: linear-gradient(135deg, #ddf7eb 0%, var(--primary) 100%);
    color: var(--primary-contrast);
}

.health-theme .health-cta .text-white-50 {
    color: rgba(7, 35, 23, 0.74) !important;
}

.health-theme .health-step-number {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    background: rgba(34, 160, 107, 0.18);
    color: var(--primary-dark);
}

.health-theme .btn-outline-health {
    border-color: rgba(7, 35, 23, 0.25);
    color: #0b2f1f;
}

.health-theme .btn-outline-health:hover,
.health-theme .btn-outline-health:focus {
    border-color: var(--primary);
    color: var(--primary);
}

.health-theme .health-entry-card {
    border: 1px solid rgba(34, 160, 107, 0.3);
    border-radius: 1rem;
}

.health-theme .health-entry-actions .btn,
.health-theme .health-entry-actions .btn-link {
    min-height: 3rem;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .health-hero {
        background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 58%, #0b1f27 100%);
    }

    .health-left  { padding-top: 4rem; padding-bottom: 2rem; }
    .health-right { padding-top: 0.5rem; padding-bottom: 2.5rem; }
    .health-stage { min-height: 610px; }
    .health-dashboard-frame { inset: 2.2rem 1.2rem; }
    .health-orbit-item { transform: scale(0.88); }
    .health-orbit-item::after { width: 90px; }

    .health-orbit-item--automacao,
    .health-orbit-item--odontologia { display: none; }
}

@media (max-width: 575.98px) {
    .health-title       { font-size: clamp(1.9rem, 10vw, 2.5rem); }
    .health-description { font-size: 1rem; }
    .health-actions .btn { width: 100%; }
    .health-stage { min-height: 560px; }
    .health-dashboard-frame { inset: 1.3rem 0.85rem; }
    .health-orbit-item  { display: none; }

    .health-theme .health-entry-actions .btn,
    .health-theme .health-entry-actions .btn-link { width: 100%; justify-content: center; }
}
