/* =========================================================
   AVIDITY CAPITAL — Resources Hub Page Stylesheet
   File: css/resources.css
   Depends on: style.css, case-study.css
   Scope: .rh-* components (resources hub prefix)
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */
.rh-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.rh-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rh-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.rh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7, 30, 51, 0.82) 0%,
        rgba(13, 59, 94, 0.72) 50%,
        rgba(7, 30, 51, 0.65) 100%
    );
}

.rh-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 7rem;
    padding-bottom: 4rem;
    max-width: 760px;
}

.rh-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.12;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.rh-hero-title em {
    font-style: italic;
    color: #E8C97A;
}

.rh-hero-sub {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(248, 246, 241, 0.88);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 1.75rem;
}

.rh-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}

.rh-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(248, 246, 241, 0.75);
}

.rh-hero-trust span i {
    color: #C9A84C;
    font-size: 0.85rem;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */
.rh-breadcrumb {
    background: #FFFFFF;
    border-bottom: 1px solid #EEF0F4;
    padding: 0.75rem 0;
}

.rh-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: #6B7280;
}

.rh-breadcrumb-list li a {
    color: #C9A84C;
    font-weight: 500;
    transition: color 0.2s;
}

.rh-breadcrumb-list li a:hover {
    color: #0D3B5E;
}

.rh-breadcrumb-list li i {
    font-size: 0.55rem;
    color: #CBD5E0;
}

.rh-breadcrumb-list li[aria-current="page"] {
    color: #0A1628;
    font-weight: 500;
}


/* =========================================================
   FEATURED VIDEO SECTION
   ========================================================= */
.rh-video-section {
    background: #F8F6F1;
    border-top: 1px solid #EEF0F4;
    border-bottom: 1px solid #EEF0F4;
}

.rh-video-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* 16:9 responsive iframe wrapper */
.rh-video-wrap {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(13, 59, 94, 0.14);
}

.rh-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.rh-video-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rh-video-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    line-height: 1.15;
    color: #0A1628;
    margin-bottom: 1rem;
}

.rh-video-title em {
    font-style: italic;
    color: #0D3B5E;
}

.rh-video-desc {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.rh-video-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C9A84C;
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.rh-video-cta:hover {
    gap: 1rem;
    color: #0D3B5E;
}

@media (max-width: 820px) {
    .rh-video-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* =========================================================
   FEATURED CARD
   ========================================================= */
.rh-featured {
    background: #FFFFFF;
}

.rh-featured .section-header {
    margin-bottom: 2rem;
}

.rh-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #EEF0F4;
    box-shadow: 0 8px 32px rgba(13, 59, 94, 0.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, transform 0.3s;
}

.rh-featured-card:hover {
    box-shadow: 0 16px 48px rgba(13, 59, 94, 0.14);
    transform: translateY(-3px);
}

.rh-featured-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.rh-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.rh-featured-card:hover .rh-featured-img {
    transform: scale(1.04);
}

.rh-featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 30, 51, 0.55) 0%, rgba(13, 59, 94, 0.3) 100%);
}

.rh-featured-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #C9A84C;
    color: #071E33;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 2px;
    z-index: 1;
}

.rh-featured-body {
    background: linear-gradient(160deg, #0D3B5E 0%, #071E33 100%);
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rh-featured-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #E8C97A;
    margin-bottom: 0.75rem;
}

.rh-featured-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.rh-featured-desc {
    font-size: 0.95rem;
    color: rgba(248, 246, 241, 0.82);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.rh-featured-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.rh-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rh-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #E8C97A;
    line-height: 1;
}

.rh-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 246, 241, 0.55);
}

.rh-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E8C97A;
    transition: gap 0.2s;
    align-self: flex-start;
}

.rh-featured-card:hover .rh-featured-cta {
    gap: 1rem;
}


/* =========================================================
   FILTER BAR
   ========================================================= */
.rh-filter-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #EEF0F4;
    position: sticky;
    top: 68px;
    z-index: 40;
}

.rh-filter-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.875rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rh-filter-inner::-webkit-scrollbar {
    display: none;
}

.rh-filter-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6B7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.rh-filter-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.rh-filter-tab {
    background: transparent;
    border: 1px solid #EEF0F4;
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #4A5568;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rh-filter-tab:hover {
    background: #F8F6F1;
    border-color: #C9A84C;
    color: #0D3B5E;
}

.rh-filter-tab.active {
    background: #0D3B5E;
    border-color: #0D3B5E;
    color: #FFFFFF;
}


/* =========================================================
   RESOURCE GRID
   ========================================================= */
.rh-grid-section {
    background: #F8F6F1;
}

.rh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* ── Individual card ── */
.rh-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #EEF0F4;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.rh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(13, 59, 94, 0.11);
    border-color: rgba(201, 168, 76, 0.4);
}

/* Image wrapper */
.rh-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
    background: #EEF0F4;
}

.rh-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.rh-card:hover .rh-card-img {
    transform: scale(1.05);
}

/* Type badge */
.rh-card-type {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: rgba(7, 30, 51, 0.82);
    color: #E8C97A;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 2px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rh-card-type--soon {
    background: rgba(201, 168, 76, 0.15);
    color: #C9A84C;
    border: 1px solid rgba(201, 168, 76, 0.35);
}

/* Card body */
.rh-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rh-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #0D3B5E;
    line-height: 1.25;
    margin-bottom: 0.7rem;
}

.rh-card-desc {
    font-size: 0.88rem;
    color: #4A5568;
    line-height: 1.72;
    flex: 1;
    margin-bottom: 1.25rem;
}

.rh-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #EEF0F4;
    font-size: 0.78rem;
}

.rh-card-read {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6B7280;
}

.rh-card-read i {
    color: #C9A84C;
}

.rh-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0D3B5E;
    transition: color 0.2s, gap 0.2s;
}

.rh-card:hover .rh-card-arrow {
    color: #C9A84C;
    gap: 0.65rem;
}

/* ── Coming-soon card variant ── */
.rh-card--coming-soon {
    opacity: 0.88;
    cursor: default;
}

.rh-card--coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #EEF0F4;
}

.rh-card--coming-soon .rh-card-img {
    filter: grayscale(30%);
}

.rh-coming-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 0.5rem;
    display: block;
}

.rh-card-meta--soon {
    border-top-color: #EEF0F4;
}

.rh-card-notify {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #6B7280;
    font-style: italic;
}

.rh-card-notify i {
    color: #C9A84C;
    font-size: 0.72rem;
}

/* ── Empty state ── */
.rh-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6B7280;
}

.rh-empty i {
    font-size: 2.5rem;
    color: #CBD5E0;
    margin-bottom: 1rem;
    display: block;
}

.rh-empty p {
    font-size: 1rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.7;
}

.rh-empty a {
    color: #C9A84C;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .rh-featured-card {
        grid-template-columns: 1fr;
    }

    .rh-featured-img-wrap {
        min-height: 280px;
    }

    .rh-featured-body {
        padding: 2rem 2.25rem;
    }

    .rh-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rh-hero {
        min-height: 60vh;
    }

    .rh-hero-content {
        padding-top: 6rem;
    }

    .rh-hero-trust {
        gap: 1rem 1.5rem;
    }

    .rh-featured-stats {
        gap: 1.25rem;
    }

    .rh-stat-value {
        font-size: 1.4rem;
    }

    .rh-filter-bar {
        top: 60px;
    }

    .rh-grid {
        grid-template-columns: 1fr;
    }

    .rh-card-img-wrap {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .rh-featured-body {
        padding: 1.5rem;
    }

    .rh-featured-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .rh-filter-inner {
        gap: 1rem;
    }
}
