/* ════════════════════════════════════════════════════════
   HECT CONTABILIDADE FORENSE — Frontend
   Menu lateral afixado (affix) + conteúdo à direita
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

.hect-rd-wrap {
    --hrd-ink: #14171f;
    --hrd-ink-soft: #565c6c;
    --hrd-ink-faint: #8b90a0;
    --hrd-surface: #ffffff;
    --hrd-surface-border: #e2e6ec;
    --hrd-accent: #36A9E1;
    --hrd-accent-tint: #eaf6fd;

    box-sizing: border-box;
    padding: 60px 0;
    width: 100%;
}

.hect-rd-wrap *,
.hect-rd-wrap *::before,
.hect-rd-wrap *::after {
    box-sizing: border-box;
}

.hect-rd-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* ── Menu lateral afixado ────────────────────────────── */
.hect-rd-side {
    position: sticky;
    top: 24px;
}

.hect-rd-menu {
    list-style: none !important;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.hect-rd-item {
    display: block;
    width: 100%;
    padding: 14px 16px 14px 17px;
    border: 0;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--hrd-surface-border);
    background: var(--hrd-surface);
    color: var(--hrd-ink) !important;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hect-rd-menu li:last-child .hect-rd-item { border-bottom: 0; }

.hect-rd-item:hover {
    background: #f4f6f8;
}

.hect-rd-item[aria-selected="true"] {
    background: var(--hrd-accent-tint);
    border-left-color: var(--hrd-accent);
    color: var(--hrd-accent) !important;
}

.hect-rd-item:focus-visible {
    outline: 2px solid var(--hrd-accent);
    outline-offset: -2px;
}

/* ── Conteúdo ────────────────────────────────────────── */
.hect-rd-content {
    background: var(--hrd-surface);
    border: 1px solid var(--hrd-surface-border);
    border-radius: 12px;
    padding: 56px clamp(24px, 4vw, 56px);
    min-height: 420px;
}

.hect-rd-content h2 {
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700 !important;
    font-size: clamp(24px, 3vw, 30px) !important;
    letter-spacing: -0.01em;
    color: var(--hrd-ink) !important;
    margin: 0 0 6px !important;
}

.hect-rd-content h3.kicker {
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700 !important;
    font-size: 1.5em !important;
    line-height: 1.25 !important;
    color: var(--hrd-accent) !important;
    margin: 6px 0 0 !important;
}

.hect-rd-content .hect-rd-separador {
    width: 50px;
    border: 0;
    border-top: 2px solid var(--hrd-accent);
    margin: 20px 0 28px;
}

.hect-rd-content .lead {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: var(--hrd-ink) !important;
    margin: 0 0 16px !important;
}

.hect-rd-content .summary {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: var(--hrd-ink-soft) !important;
    margin: 0 0 16px !important;
}
.hect-rd-content .summary:last-child { margin-bottom: 0 !important; }

.hect-rd-content .hect-rd-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--hrd-surface-border);
    margin-top: 32px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 820px) {
    .hect-rd-layout {
        /* minmax(0, 1fr): com 1fr a linha de abas (nowrap) alargava a coluna além da tela */
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .hect-rd-side {
        position: static;
    }
    .hect-rd-menu {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        border: 1px solid var(--hrd-surface-border, #e2e6ec);
        border-radius: 10px;
    }
    .hect-rd-menu::-webkit-scrollbar { display: none; }
    .hect-rd-menu li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .hect-rd-item {
        border-bottom: 0;
        border-left: 0;
        border-top: 3px solid transparent;
        border-right: 1px solid var(--hrd-surface-border);
        white-space: nowrap;
    }
    .hect-rd-item[aria-selected="true"] {
        border-left: 0;
        border-top-color: var(--hrd-accent);
    }
    .hect-rd-menu li:last-child .hect-rd-item { border-right: 0; }
    .hect-rd-content { padding: 32px 20px; min-height: 0; }
    .hect-rd-content h3.kicker { font-size: 1.15em !important; }
    .hect-rd-wrap { padding: 32px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hect-rd-item { transition: none; }
}
