/* ==========================================================================
   Detalhe de servico publico — padrao visual compartilhado (prefixo srd-)

   Usado por:
     /servicos-odonto/detalhes/{cdelement}   (Views/Servico/Details.cshtml)
     /servicos-saude/detalhes/{id}           (Views/ServicoSaude/Detalhes.cshtml)

   Estava embutido no <style> do Details do odonto. Foi extraido para ca quando
   a Saude passou a usar o MESMO padrao: duplicar o bloco faria uma tela ganhar
   ajuste que a outra nao ganha, e foi exatamente assim que a tela da Saude
   nasceu destoando.

   Anatomia:
     .srd-hero      capa com imagem desfocada + overlay + titulo
     .srd-body      grid de conteudo (principal | sidebar grudenta)
     .srd-card      bloco branco de conteudo
     .srd-sidebar   coluna da direita, em secoes separadas por linha
     .srd-clientes  seletor de titular/dependentes (foto + nome, 1 selecionado)
     .srd-preco     faixa azul de valor  /  .srd-preco-alerta  faixa de aviso
     .srd-info-list lista rotulo/valor
     .srd-cta       botao principal (pill)  /  .srd-cta-secundario
   ========================================================================== */

    :root {
        --srd-primary: #004c99;
        --srd-primary-dark: #003770;
        --srd-text: #1f2937;
        --srd-muted: #6b7280;
        --srd-border: #e5e7eb;
        --srd-bg: #f7f8fa;
        --srd-accent: #f6be00;
    }

    body { background: var(--srd-bg); }

    /* ============ HERO ============ */
    .srd-hero {
        position: relative;
        min-height: 440px;
        display: flex;
        align-items: flex-end;
        overflow: hidden;
    }
    .srd-hero-bg {
        position: absolute;
        inset: -20px;
        background-size: cover;
        background-position: center;
        filter: blur(6px) brightness(0.5);
        z-index: 0;
    }
    .srd-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,20,60,.85) 0%, rgba(0,76,153,.35) 60%, transparent 100%);
        z-index: 1;
    }
    .srd-hero-inner {
        position: relative;
        z-index: 2;
        padding: 40px 20px 90px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
        gap: 32px;
        align-items: end;
    }
    .srd-hero-info { color: #fff; }
    .srd-hero-back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,0.15);
        color: #fff;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        margin-bottom: 16px;
        backdrop-filter: blur(6px);
        transition: background .2s;
    }
    .srd-hero-back:hover { background: rgba(255,255,255,0.25); color: #fff; text-decoration: none; }
    .srd-hero-badge {
        display: inline-block;
        background: var(--srd-accent);
        color: #1a1a1a;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: .25rem .8rem;
        border-radius: 2rem;
        margin-bottom: .75rem;
    }
    .srd-hero h1 {
        font-size: clamp(1.35rem, 3.2vw, 2.4rem);
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 20px;
        color: #fff;
        word-break: break-word;
    }
    .srd-hero-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 14px 20px;
        font-size: 14px;
        color: rgba(255,255,255,0.92);
    }
    .srd-hero-meta .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .srd-hero-meta i {
        width: 30px; height: 30px;
        background: rgba(255,255,255,0.15);
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
    }
    .srd-hero-img {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        background: rgba(0,0,0,0.25);
        max-height: 320px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .srd-hero-img img {
        width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: contain;
        display: block;
    }

    /* ============ BODY ============ */
    .srd-body {
        margin-top: -40px;
        position: relative;
        z-index: 2;
        padding-bottom: 80px;
    }
    .srd-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .srd-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 28px;
        align-items: start;
    }
    .srd-card {
        background: #fff;
        border-radius: 14px;
        padding: 28px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        margin-bottom: 20px;
    }
    .srd-card h2, .srd-card h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--srd-text);
        margin: 0 0 14px;
    }
    .srd-descricao {
        color: #374151;
        line-height: 1.7;
        font-size: 15px;
        font-family: "Roboto", sans-serif;
    }
    .srd-descricao * {
        font-family: inherit !important;
        font-size: inherit !important;
        color: inherit !important;
        line-height: inherit !important;
    }
    .srd-descricao h1, .srd-descricao h2, .srd-descricao h3 {
        font-weight: bold !important;
        margin-top: 1.4em;
        margin-bottom: 0.5em;
    }
    .srd-descricao p { margin-bottom: 1em; }

    /* ============ SHARE ============ */
    .srd-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .srd-share span { font-size: 13px; color: var(--srd-muted); }
    .srd-share-icons { display: flex; gap: 8px; }
    .srd-share-icons a {
        width: 36px; height: 36px;
        border-radius: 50%;
        background: #f1f3f5;
        color: var(--srd-text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all .2s;
    }
    .srd-share-icons a:hover { background: var(--srd-primary); color: #fff; }

    /* ============ SIDEBAR ============ */
    .srd-sidebar {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        position: sticky;
        top: 20px;
        overflow: hidden;
    }
    .srd-sidebar-section { padding: 22px 24px; }
    .srd-sidebar-section + .srd-sidebar-section { border-top: 1px solid var(--srd-border); }
    .srd-sidebar-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--srd-muted);
        margin-bottom: 12px;
    }

    /* Cliente selector */
    .srd-clientes {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .srd-cliente {
        flex: 0 0 80px;
        text-align: center;
        cursor: pointer;
        padding: 8px;
        border-radius: 10px;
        border: 2px solid transparent;
        transition: all .2s;
        background: #fafbfc;
    }
    .srd-cliente:hover { background: #f1f3f5; }
    .srd-cliente.is-selected {
        border-color: var(--srd-primary);
        background: rgba(0,76,153,0.08);
    }
    .srd-cliente img {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: 0 auto 6px;
    }
    .srd-cliente .nome {
        font-size: 11px;
        font-weight: 600;
        color: var(--srd-text);
        line-height: 1.2;
        display: block;
    }

    /* Preço */
    .srd-preco {
        background: linear-gradient(135deg, var(--srd-primary) 0%, #1f6ec0 100%);
        color: #fff;
        text-align: center;
        padding: 24px;
    }
    .srd-preco-label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .5px;
        opacity: .8;
        margin-bottom: 4px;
    }
    .srd-preco-valor {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1;
        margin: 0;
    }
    .srd-preco-valor .moeda {
        font-size: 1rem;
        font-weight: 600;
        opacity: .85;
        margin-right: 4px;
    }
    .srd-preco-cliente {
        font-size: 12px;
        opacity: .85;
        margin-top: 8px;
    }
    .srd-preco-alerta {
        background: #fff8e1;
        color: #8a6d00;
        text-align: center;
        padding: 16px 20px;
        font-size: 14px;
        font-weight: 500;
        border-left: 4px solid var(--srd-accent);
    }

    /* Form (interesse) */
    .srd-form-group { margin-bottom: 14px; }
    .srd-form-group label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--srd-muted);
        text-transform: uppercase;
        letter-spacing: .3px;
        margin-bottom: 6px;
    }
    .srd-form-group input,
    .srd-form-group select {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid var(--srd-border);
        border-radius: 10px;
        font-size: 14px;
        background: #fff;
        color: var(--srd-text);
        transition: border-color .2s, box-shadow .2s;
    }
    .srd-form-group input:focus,
    .srd-form-group select:focus {
        outline: none;
        border-color: var(--srd-primary);
        box-shadow: 0 0 0 3px rgba(0,76,153,.12);
    }

    .srd-cta {
        display: block;
        width: 100%;
        background: linear-gradient(135deg, #004c99 0%, #0070d4 100%);
        color: #fff;
        border: none;
        padding: 14px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: background .2s;
    }
    .srd-cta:hover { background: var(--srd-primary-dark); color: #fff; text-decoration: none; }
    .srd-cta-secundario {
        display: block;
        width: 100%;
        background: transparent;
        color: var(--srd-primary);
        border: 1px solid var(--srd-primary);
        padding: 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        margin-top: 10px;
        transition: all .2s;
    }
    .srd-cta-secundario:hover { background: var(--srd-primary); color: #fff; text-decoration: none; }

    .srd-info-list { list-style: none; padding: 0; margin: 0; }
    .srd-info-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        font-size: 14px;
        color: var(--srd-text);
        border-bottom: 1px solid var(--srd-border);
    }
    .srd-info-list li:last-child { border-bottom: none; }
    .srd-info-list .label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--srd-muted);
        font-size: 13px;
    }
    .srd-info-list .label i { color: var(--srd-primary); width: 14px; }
    .srd-info-list .value { font-weight: 600; }

    @media (max-width: 991px) {
        .srd-hero { min-height: auto; }
        .srd-hero-inner {
            grid-template-columns: 1fr;
            gap: 18px;
            padding: 32px 20px 80px;
        }
        /* Imagem nítida redundante com bg desfocado em telas pequenas */
        .srd-hero-img { display: none; }
        .srd-grid { grid-template-columns: 1fr; }
        .srd-sidebar { position: static; }
        .srd-body { margin-top: -30px; }
    }
    @media (max-width: 575px) {
        .srd-hero-inner { padding: 28px 16px 72px; }
        .srd-hero h1 { font-size: 1.35rem; margin-bottom: 14px; }
        .srd-hero-meta { font-size: 13px; gap: 10px 16px; }
        .srd-hero-meta i { width: 26px; height: 26px; font-size: 11px; }
        .srd-card { padding: 20px; }
    }
