/* AU Type C Cross-Industry Landing Page Styles — Konnex Explorer */
/* Matches Explorer design system: warm palette, terracotta accents */

/* ===== LIGHT THEME (default) ===== */
:root {
    --bg: #F5F0EB;
    --surface: #EDE7E0;
    --surface-elevated: #E8E2DB;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --text: #1A1A1A;
    --text-secondary: #52525B;
    --text-tertiary: #71717A;
    --terracotta: #E8703A;
    --accent: #E8703A;
    --accent-deep: #C4581F;
    --accent-glow: rgba(232, 112, 58, 0.12);
    --accent-surface: rgba(232, 112, 58, 0.06);
    --nav-bg: rgba(245, 240, 235, 0.92);
    --radius: 12px;
    --radius-lg: 16px;
    --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ========== NAV ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text);
    font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.1rem;
}
.nav-logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-link {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ========== CONTAINER ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto; padding: 80px 24px 40px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 0.8rem; color: var(--text-tertiary);
    margin-bottom: 24px;
}
.breadcrumb a {
    color: var(--text-secondary); text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-tertiary); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ========== H1 ========== */
h1 {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem; font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* ========== INTRO TEXT ========== */
.intro-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 700px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ========== STAT GRID ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.stat-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.stat-value {
    font-family: 'Lexend', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    word-break: break-word;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========== SECTIONS ========== */
.section {
    margin-bottom: 40px;
}
.section h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem; font-weight: 600;
    margin-bottom: 16px;
}

/* ========== TYPE C CARD GRID ========== */
.type-c-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.type-c-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.type-c-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 16px var(--accent-glow);
}

.tc-card-header {
    margin-bottom: 8px;
}

.tc-card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.tc-card-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.tc-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.tc-card-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.tc-card-cta:hover {
    color: var(--accent-deep);
}

/* ========== RELATIONSHIP BADGES ========== */
.ri-badge {
    display: inline-block; font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    padding: 2px 8px; border-radius: 4px; align-self: flex-start;
}
.badge-complementary { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.badge-subcontract { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.badge-related { background: rgba(34, 197, 94, 0.1); color: #15803d; }
.badge-referral { background: rgba(232, 112, 58, 0.1); color: var(--accent-deep); }
.badge-upstream { background: rgba(245, 158, 11, 0.1); color: #b45309; }
.badge-colocated { background: rgba(99, 102, 241, 0.1); color: #4338ca; }

/* ========== LINK GRIDS ========== */
.link-grid {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.sibling-link {
    display: inline-block;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.sibling-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== FAQ SECTION ========== */
.faq-section {
    margin-bottom: 40px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--surface);
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--border-strong);
}
.faq-question {
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-tertiary);
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
    content: '\2212';
}
.faq-answer {
    padding: 0 18px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--accent-deep) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    margin: 48px 0;
}
.cta-section h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: var(--accent-deep);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ========== BACK LINKS ========== */
.back-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--accent);
}

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 40px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-tertiary);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .type-c-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.5rem; }
    .cta-section { padding: 32px 24px; }
    .cta-section h2 { font-size: 1.25rem; }
    .nav-links { gap: 16px; }
    .nav-link { font-size: 0.8rem; }
    .stat-value { font-size: 1.3rem; }
    .back-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .container { padding: 70px 16px 32px; }
    .stat-grid { gap: 10px; }
    .stat-value { font-size: 1.1rem; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .breadcrumb { font-size: 0.75rem; }
    .tc-card-title { font-size: 0.95rem; }
}
