/* Calculadora IMC Renal — Estilos específicos */

/* ===== HERO ===== */
.imc-hero {
    background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 55%, #24417c 100%);
    padding: 70px 20px 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.imc-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,173,239,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.imc-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.imc-hero-text {
    flex: 1;
    min-width: 300px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    margin-bottom: 20px;
    opacity: 0.75;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb i { font-size: 0.65rem; }

.imc-hero-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.imc-hero-text h1 span {
    color: #7ec8e3;
}

.imc-hero-text p {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 28px;
}

.hero-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
}

.imc-hero-visual {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
}

/* ===== WIDGET DE CALCULADORA ===== */
.calc-widget {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

.calc-widget-header {
    background: linear-gradient(135deg, #24417c, #0078d4);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.calc-widget-header i {
    font-size: 1.1rem;
}

.calc-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 8px;
}

.form-group label small {
    font-weight: 400;
    color: #888;
    font-size: 0.78rem;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2eaf2;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    appearance: none;
}

.form-group select:focus {
    border-color: #24417c;
    outline: none;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e2eaf2;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    border-color: #24417c;
    outline: none;
}

.input-unit {
    position: absolute;
    right: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #24417c;
}

.btn-calcular {
    width: 100%;
    background: linear-gradient(135deg, #24417c, #0078d4);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36,65,124,0.35);
}

/* ===== RESULTADO ===== */
.resultado-box {
    padding: 24px;
}

.resultado-header {
    text-align: center;
    margin-bottom: 24px;
}

.resultado-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 6px;
}

.resultado-valor {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a2b3c;
    line-height: 1;
    margin-bottom: 10px;
}

.resultado-classificacao {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.class-baixo  { background: #fff3cd; color: #856404; }
.class-normal { background: #d1ecf1; color: #0c5460; }
.class-ideal  { background: #d4edda; color: #155724; }
.class-atencao { background: #fff3cd; color: #856404; }
.class-alto   { background: #f8d7da; color: #721c24; }

.resultado-barra-wrapper {
    margin-bottom: 20px;
}

.resultado-barra {
    position: relative;
    height: 14px;
    border-radius: 8px;
    overflow: visible;
    display: flex;
    margin-bottom: 6px;
}

.barra-segmento {
    height: 100%;
    flex: 1;
}

.barra-segmento.baixo   { background: #ffc107; border-radius: 8px 0 0 8px; }
.barra-segmento.ideal   { background: #28a745; }
.barra-segmento.atencao { background: #fd7e14; }
.barra-segmento.alto    { background: #dc3545; border-radius: 0 8px 8px 0; }

.barra-marcador {
    position: absolute;
    top: -4px;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #1a2b3c;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.barra-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #888;
}

.resultado-dica {
    background: #f8fbff;
    border-left: 4px solid #24417c;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.55;
    margin-bottom: 18px;
}

.btn-recalcular {
    width: 100%;
    background: transparent;
    border: 2px solid #24417c;
    color: #24417c;
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-recalcular:hover {
    background: #24417c;
    color: #fff;
}

/* ===== SEÇÃO EDUCATIVA ===== */
.edu-section {
    background: #f8fbff;
    padding: 80px 20px;
}

.dicas-section {
    background: #fff;
    padding: 80px 20px;
}

.faq-section {
    background: #f8fbff;
    padding: 80px 20px;
}

.edu-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #24417c;
    margin-bottom: 12px;
}

.edu-section h2,
.dicas-section h2,
.faq-section h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a2b3c;
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-intro {
    font-size: 1rem;
    color: #555;
    line-height: 1.65;
    max-width: 780px;
    margin-bottom: 40px;
}

/* Tabela IMC */
.tabela-imc {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2eaf2;
    margin-bottom: 32px;
}

.tabela-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr 2fr;
    background: #1a2b3c;
    color: #fff;
    padding: 14px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabela-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 2fr;
    padding: 14px 20px;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #eef2f8;
    align-items: center;
}

.tabela-row:last-child { border-bottom: none; }
.tabela-row.baixo      { background: #fffbea; }
.tabela-row.normal     { background: #f0fbff; }
.tabela-row.ideal-renal { background: #f0fff4; }
.tabela-row.alto       { background: #fff5f5; }

.aviso-box {
    background: #e8f4f8;
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.aviso-box > i {
    font-size: 1.4rem;
    color: #24417c;
    margin-top: 2px;
    flex-shrink: 0;
}

.aviso-box strong {
    display: block;
    color: #1a2b3c;
    font-size: 1rem;
    margin-bottom: 8px;
}

.aviso-box p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Dicas Grid */
.dicas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.dica-card {
    background: #f8fbff;
    border: 1px solid #e2eaf2;
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s ease;
}

.dica-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(36,65,124,0.1);
    border-color: #24417c;
}

.dica-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e8f4f8, #d0eaf5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dica-icon i {
    font-size: 1.3rem;
    color: #24417c;
}

.dica-card h3 {
    font-size: 1rem;
    color: #1a2b3c;
    margin-bottom: 10px;
    font-weight: 700;
}

.dica-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.faq-item {
    margin-bottom: 14px;
    border: 1px solid #e2eaf2;
    border-radius: 12px;
    padding: 20px 24px;
    background: #fff;
}

.faq-item summary {
    font-weight: 700;
    color: #1a2b3c;
    cursor: pointer;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: #24417c;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 14px;
    color: #555;
    line-height: 1.7;
    font-size: 0.92rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .imc-hero-inner { flex-direction: column; gap: 40px; }
    .imc-hero-text { text-align: center; }
    .imc-hero-text p { margin: 0 auto 28px; }
    .hero-chips { justify-content: center; }
    .imc-hero-visual { width: 100%; }
    .calc-widget { max-width: 100%; }
    .tabela-header,
    .tabela-row { grid-template-columns: 1fr 1fr; }
    .tabela-header span:last-child,
    .tabela-row span:last-child { display: none; }
}

@media (max-width: 600px) {
    .imc-hero-text h1 { font-size: 1.9rem; }
    .dicas-grid { grid-template-columns: 1fr; }
    .edu-section h2,
    .dicas-section h2,
    .faq-section h2 { font-size: 1.5rem; }
}
