/* ============================================
   INSIGHTRIX — Inner Pages Styles
   ============================================ */

/* --- Active nav link --- */
.nav-link.active {
    color: var(--green) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* --- Page Hero --- */
.page-hero {
    padding: 140px 0 80px;
    background: var(--bg);
    position: relative;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.page-hero-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.3s;
    cursor: none;
}

.page-hero-breadcrumb a:hover {
    color: var(--green);
}

.page-hero-breadcrumb svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.page-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

/* --- Featured Case Study --- */
.case-featured {
    padding: 0 0 80px;
    background: var(--bg);
}

.case-featured-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.4s;
}

.case-featured-card:hover {
    box-shadow: var(--shadow-lg);
}

.case-featured-visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-featured-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    opacity: 0.85;
}

.case-featured-metric {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.case-featured-metric-number {
    display: block;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.case-featured-metric-label {
    display: block;
    font-size: 0.9375rem;
    opacity: 0.8;
}

.case-featured-content {
    padding: 48px;
}

.case-featured-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
}

.case-featured-content > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Tags */
.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.case-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: var(--mint);
    color: var(--green-dark);
    border-radius: 6px;
}

/* Approach */
.case-approach {
    margin-bottom: 24px;
}

.case-approach h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 12px;
}

.case-approach ul {
    list-style: none;
    padding: 0;
}

.case-approach li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.case-approach li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* Results Grid */
.case-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.case-result {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.case-result strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 4px;
}

.case-result span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* --- Case Grid --- */
.case-grid-section {
    padding: 0 0 80px;
    background: var(--bg);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: none;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.4s, transform 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(30px);
}

.case-card:hover {
    border-color: rgba(16,185,129,0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.case-card-visual {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    opacity: 0.8;
    transition: opacity 0.4s, transform 0.6s var(--ease-out-expo);
}

.case-card:hover .case-card-gradient {
    opacity: 1;
    transform: scale(1.05);
}

.case-card-metric {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.case-card-content {
    padding: 28px;
}

.case-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
}

.case-card-content > p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Inline Results */
.case-results-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.case-result-inline {
    display: flex;
    flex-direction: column;
}

.case-result-inline strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--green);
}

.case-result-inline span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Services Used */
.case-services-used {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-services-used span {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
}

/* --- NDA Notice --- */
.case-nda {
    padding: 0 0 80px;
    background: var(--bg);
}

.case-nda-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.case-nda-inner svg {
    flex-shrink: 0;
    color: var(--green);
    margin-top: 2px;
}

.case-nda-inner h4 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.case-nda-inner p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Services Detail --- */
.services-detail {
    padding: 0 0 40px;
    background: var(--bg);
}

.service-detail-block {
    margin-bottom: 48px;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.service-detail-block:hover {
    border-color: rgba(16,185,129,0.12);
    box-shadow: var(--shadow-md);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.service-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    flex-shrink: 0;
}

.service-detail-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 4px;
}

.service-detail-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.service-detail-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
}

.service-detail-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-detail-text h4 {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 16px;
}

.service-detail-text ul {
    list-style: none;
    padding: 0;
}

.service-detail-text li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-detail-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.service-detail-meta {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
    align-self: start;
}

.service-meta-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.service-meta-item:last-of-type {
    margin-bottom: 24px;
}

.service-meta-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.service-meta-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

/* --- Responsive Inner Pages --- */
@media (max-width: 1024px) {
    .case-featured-card {
        grid-template-columns: 1fr;
    }

    .case-featured-visual {
        min-height: 240px;
    }

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

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

    .service-detail-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .case-featured-content {
        padding: 28px;
    }

    .case-results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .case-results-inline {
        flex-wrap: wrap;
        gap: 12px;
    }

    .service-detail-block {
        padding: 28px;
    }

    .service-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .case-nda-inner {
        flex-direction: column;
        gap: 12px;
    }
}
