/* ==========================================================================
   Resources (hub) page-specific styles
   Uses tokens from css/brand-v1.6.css. Master-brand / cross-platform page,
   so accents stay Navy + Teal — never Indigo or Coral here.
   Mirrors the it-consulting.html hub pattern (hero, intro, card grid,
   closing CTA band) but with three grouped category sections — Industries,
   AI, Learn — instead of one flat grid, matching the Resources dropdown
   in the nav. Detailed content for each of the 13 resource pages lives on
   its own page, not here.
   ========================================================================== */

/* ---- Hero visual: 3-branch resource tree (2026-08-17, Track B Cluster A)
   — grounded in this page's own real structure: the subtitle names exactly
   3 categories (industries, AI capabilities, insights/case studies/
   documentation/news), and the existing float card already says "3
   Categories / 13 Resources to Explore." A root node branching into 3
   category nodes via angular hierarchical lines — the same convention as
   sitemap.html's tree (the reference standard for this whole audit),
   scaled down to this page's own 3 branches instead of a full sitemap.
   Built with the full-size bordered frame + genuine fill from the start
   (see it-consulting.css's comment for the convention this follows). ---- */

.reshv-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.reshv-card-main {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reshv-tree {
    width: 100%;
    height: 100%;
}

.reshv-card-float {
    width: 190px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 16px 40px rgba(8, 25, 47, 0.35);
    background: rgba(15, 46, 90, 0.9);
    top: -20px;
    right: -16px;
}

.reshv-card-float i {
    color: var(--da-teal-400);
    font-size: 1.3rem;
}

.reshv-float-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.reshv-float-text strong {
    display: block;
    color: var(--da-white);
    font-size: 0.85rem;
}

/* ---- Shared section label / title pattern ---- */

.res-section-label {
    color: var(--da-teal-600);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.res-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--da-navy-900);
    margin-bottom: 1.5rem;
    max-width: 720px;
}

/* ---- Who This Is For / intro ---- */

.res-intro {
    padding: 70px 0 40px;
    background: var(--da-white);
}

.res-intro-text {
    font-size: 1.1rem;
    color: var(--da-gray-500);
    line-height: 1.8;
    max-width: 760px;
    margin-bottom: 2rem;
}

/* Quick-jump chips to the three category sections below */

.res-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.res-quicknav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--da-gray-100);
    border: 1.5px solid rgba(1, 76, 67, 0.3);
    color: var(--da-navy-900);
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.res-quicknav-chip i {
    color: var(--da-teal-600);
    transition: color 0.25s ease;
}

.res-quicknav-chip:hover {
    background: var(--da-teal-600);
    border-color: var(--da-teal-600);
    color: var(--da-white);
    transform: translateY(-2px);
}

.res-quicknav-chip:hover i {
    color: var(--da-white);
}

/* ---- Category sections: Industries / AI / Learn ---- */

.res-category {
    padding: 60px 0;
    background: var(--da-gray-100);
    scroll-margin-top: 100px;
}

/* Alternate background so the three stacked sections read as distinct
   groups rather than one long scroll — matches the white/gray banding
   already used between hub sections elsewhere on the site. */
.res-category-alt {
    background: var(--da-white);
}

.res-category-text {
    font-size: 1.05rem;
    color: var(--da-gray-500);
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 2rem;
}

.res-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--da-white);
    border: 1.5px solid var(--da-gray-300);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.res-category-alt .res-card {
    background: var(--da-gray-100);
}

.res-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(8, 25, 47, 0.12);
    border-color: var(--da-teal-600);
}

.res-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--da-teal-600);
    color: var(--da-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.res-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--da-navy-900);
    margin-bottom: 0.6rem;
}

.res-card-text {
    font-size: 0.92rem;
    color: var(--da-gray-500);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.res-card-link {
    color: var(--da-teal-600);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.res-card:hover .res-card-link {
    text-decoration: underline;
}

/* CTA variant: "Enterprise Industries" rollup card — same shape as a
   resource card but visually distinct (dashed border, navy icon) so it
   reads as a gateway to more, not a 5th equal option. */

.res-card-cta {
    border-style: dashed;
    background: var(--da-navy-50);
}

.res-card-cta .res-card-icon {
    background: var(--da-navy-700);
}

.res-card-cta:hover {
    border-color: var(--da-navy-700);
}

/* ---- Closing CTA band ---- */

.res-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.res-cta-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.res-cta-actions a.primary {
    background: var(--da-teal-600);
    color: var(--da-white);
}

.res-cta-actions a.primary:hover {
    background: var(--da-teal-400);
    transform: translateY(-2px);
}

.res-cta-actions a.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--da-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.res-cta-actions a.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {

    .res-hero-title {
        font-size: 2.1rem;
    }

    .res-hero-visual {
        max-width: 380px;
        margin-top: 1rem;
    }

    .res-section-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 575.98px) {
    .res-hero-title {
        font-size: 1.75rem;
    }

    .res-section-title {
        font-size: 1.5rem;
    }

    .res-card {
        padding: 1.75rem;
    }

    .res-cta-title {
        font-size: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .res-card,
    .res-quicknav-chip,
    .res-cta-actions a {
        transition: none;
    }

    .res-card:hover,
    .res-quicknav-chip:hover,
    .res-cta-actions a:hover {
        transform: none;
    }
}
