/* ============================================================
   insights.css — Noventra Advisory Global
   Depends on: css/index.css for design tokens
   ============================================================ */

/* ── Page-level resets & base ── */
.insights-page-body {
    background: var(--white);
}

/* ============================================================
   INSIGHTS HERO / HEADER
   ============================================================ */
.insights-page-hero {
    padding: 130px 0 72px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 100, 0, 0.08);

    background:
        linear-gradient(168deg,
            rgba(247, 251, 247, 0.65),
            rgba(238, 247, 238, 0.70),
            rgba(255, 255, 255, 0.75)),
        url("https://plus.unsplash.com/premium_photo-1671920586446-9f9abc43248f?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTN8fGxhbmRpbmclMjBwYWdlJTIwZ3JlZW58ZW58MHx8MHx8fDA%3D");

    background-size: cover;
    background-position: center;
}

.insights-page-hero::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -100px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 100, 0, 0.055) 0%, transparent 68%);
    pointer-events: none;
}

.insights-page-hero::after {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 100, 0, 0.035) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 20px;
    background: rgba(0, 100, 0, 0.06);
    border: 1px solid rgba(0, 100, 0, 0.12);
    padding: 5px 14px 5px 10px;
    border-radius: 50px;
    opacity: 0;
    animation: fadeUp 0.65s ease forwards 0.1s;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-600);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(26, 125, 26, 0.18);
}

.insights-page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.65s ease forwards 0.25s;
}

.insights-page-hero h1 em {
    color: var(--green-700);
    font-style: italic;
}

.insights-page-hero .hero-sub {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.82;
    color: var(--ink-muted);
    max-width: 560px;
    margin: 0 0 36px;
    opacity: 0;
    animation: fadeUp 0.65s ease forwards 0.4s;
}

/* ── Category filter tabs ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.65s ease forwards 0.55s;
}

.filter-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-right: 4px;
    flex-shrink: 0;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--border-mid);
    border-radius: 50px;
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-mid);
    cursor: pointer;
    transition: all 0.22s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--green-500);
    color: var(--green-700);
    background: rgba(0, 100, 0, 0.03);
}

.filter-btn.active {
    background: var(--green-700);
    border-color: var(--green-700);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 80, 0, 0.22);
}

.filter-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
}

.filter-btn:not(.active) .filter-count {
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink-muted);
}

/* ============================================================
   INSIGHTS GRID SECTION
   ============================================================ */
.insights-grid-section {
    padding: 80px 0 100px;
    background: var(--white);
}

/* ── Results meta ── */
.grid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 1rem;
    flex-wrap: wrap;
}

.grid-meta-count {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-weight: 500;
}

.grid-meta-count strong {
    color: var(--ink);
    font-weight: 700;
}

.grid-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--green-100), transparent 70%);
    margin-bottom: 48px;
}

/* ── Insights Grid ── */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
}

/* ── Individual Card ── */
.insight-card-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.insight-card-item:focus-visible {
    outline: 3px solid var(--green-500);
    outline-offset: 3px;
}

.insight-card-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 48px -12px rgba(0, 58, 0, 0.13),
        0 6px 16px -6px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 100, 0, 0.14);
}

/* Bottom accent line on hover */
.insight-card-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green-800), var(--green-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 0 0 16px 16px;
}

.insight-card-item:hover::after {
    transform: scaleX(1);
}

/* ── Card image band ── */
.card-image-band {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--green-900);
    flex-shrink: 0;
}

.card-image-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.78;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.insight-card-item:hover .card-image-band img {
    transform: scale(1.05);
    opacity: 0.88;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 30, 0, 0.1) 0%,
            rgba(0, 40, 0, 0.55) 100%);
    pointer-events: none;
}

.card-category-badge {
    position: absolute;
    bottom: 14px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(0, 70, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

.card-category-badge::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-400);
    flex-shrink: 0;
}

/* ── Card body ── */
.card-body-inner {
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    transition: color 0.22s ease;
}

.insight-card-item:hover .card-title {
    color: var(--green-800);
}

.card-rule {
    width: 28px;
    height: 1.5px;
    background: var(--border-mid);
    margin-bottom: 12px;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.insight-card-item:hover .card-rule {
    width: 44px;
    background: var(--green-500);
}

.card-excerpt {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    line-height: 1.76;
    color: var(--ink-muted);
    margin: 0 0 20px;
    flex: 1;
}

/* ── Card footer ── */
.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 10px;
}

.card-meta-info {
    font-family: var(--font-sans);
    font-size: 0.73rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-meta-info i {
    font-size: 0.65rem;
    color: var(--green-600);
}

.card-read-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-700);
    white-space: nowrap;
    transition: gap 0.22s ease, color 0.22s ease;
    flex-shrink: 0;
}

.card-read-link .arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 0.58rem;
    transition:
        transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.insight-card-item:hover .card-read-link {
    gap: 10px;
    color: var(--green-600);
}

.insight-card-item:hover .card-read-link .arrow-circle {
    transform: translateX(2px);
    background: var(--green-700);
    border-color: var(--green-700);
    color: var(--white);
}

/* ── Featured / wide card variant ── */
.insight-card-item.card-featured {
    grid-column: span 2;
    flex-direction: row;
}

.insight-card-item.card-featured .card-image-band {
    width: 42%;
    height: auto;
    min-height: 260px;
    flex-shrink: 0;
}

.insight-card-item.card-featured .card-body-inner {
    padding: 32px 28px 26px;
    justify-content: center;
}

.insight-card-item.card-featured .card-title {
    font-size: 1.28rem;
    margin-bottom: 14px;
}

.insight-card-item.card-featured .card-excerpt {
    font-size: 0.9rem;
}

/* ── No-results state ── */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-muted);
}

.no-results i {
    font-size: 2.2rem;
    color: var(--green-200, #c8e6c9);
    margin-bottom: 16px;
    display: block;
}

.no-results p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

/* ── Hidden state for filtered cards ── */
.insight-card-item.hidden {
    display: none;
}

/* ============================================================
   SECTION SEPARATOR / DIVIDER
   ============================================================ */
.section-sep {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 60px 0 0;
}

.section-sep::before,
.section-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-sep-label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
}

/* ============================================================
   NEWSLETTER / CTA STRIP (optional section)
   ============================================================ */
.insights-cta-strip {
    background: linear-gradient(140deg, var(--green-900) 0%, #013a01 50%, #005200 100%);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.insights-cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(74, 181, 74, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.insights-cta-strip .container {
    position: relative;
    z-index: 1;
}

.insights-cta-strip h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.insights-cta-strip h3 em {
    color: var(--green-400);
    font-style: italic;
}

.insights-cta-strip p {
    font-family: var(--font-sans);
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    max-width: 440px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.strip-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--green-800) !important;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.strip-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
    color: var(--green-800) !important;
}

.strip-cta-btn i {
    font-size: 0.8rem;
    transition: transform 0.22s ease;
}

.strip-cta-btn:hover i {
    transform: translateX(3px);
}

/* ============================================================
   FOOTER (page-specific overrides if needed)
   ============================================================ */
/* Reuses global footer from index.css */

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-card-item.card-featured {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .insights-page-hero {
        padding: 110px 0 56px;
    }

    .insight-card-item.card-featured {
        flex-direction: column;
        grid-column: span 1;
    }

    .insight-card-item.card-featured .card-image-band {
        width: 100%;
        height: 180px;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .insights-page-hero {
        padding: 100px 0 48px;
    }

    .insights-grid-section {
        padding: 56px 0 72px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-card-item.card-featured {
        grid-column: span 1;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .grid-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .insights-cta-strip {
        padding: 52px 0;
    }
}

@media (max-width: 575px) {
    .card-image-band {
        height: 160px;
    }

    .filter-btn {
        font-size: 0.73rem;
        padding: 6px 12px;
    }
}