/* IAAP Content Hub — Unified Design System
   Theme: Professional Minimalist White
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== Design Tokens ===== */
:root {
    /* Colors */
    --primary: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #e6f0ff;
    --primary-color: #0052cc;
    /* alias for sub-page compat */
    --primary-dark-alias: #003d99;
    --success-color: #16a34a;
    --secondary-color: #0ea5e9;

    /* Typography */
    --text: #1e293b;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --text-primary: #1e293b;
    /* alias */
    --text-secondary: #475569;
    /* alias */

    /* Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-gray: #f8fafc;
    /* alias */

    /* Borders */
    --border: #e2e8f0;
    --border-color: #e2e8f0;
    /* alias */

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition: all 0.25s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Header ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cta {
    display: flex;
    align-items: center;
}

/* ===== Language Selector ===== */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.language-btn:hover {
    border-color: var(--primary);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    display: none;
    overflow: hidden;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.language-dropdown a:hover,
.language-dropdown a.active {
    background: var(--bg-alt);
    color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.18);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 0.25rem;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a,
.mobile-menu-nav a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu-nav a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.mobile-language {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ===== Hero Section ===== */
.hero {
    padding: 7rem 0 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.hero-search {
    display: flex;
    max-width: 580px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--text);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ===== Section Cards Grid (Pain Points) ===== */
.content-sections,
.pain-points-section {
    padding: 6rem 0;
    background: var(--bg);
}

.pain-points-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.pain-points-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.pain-points-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.section-card {
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    background: var(--bg);
}

.section-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.section-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-desc {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.section-links {
    list-style: none;
    margin-bottom: 1.5rem;
}

.section-links li {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.section-links li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.section-more {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.section-more:hover {
    opacity: 0.8;
}

/* ===== Services Preview ===== */
.services-preview {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.services-preview .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-preview .service-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.services-preview .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===== Featured Content ===== */
.featured {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

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

.featured-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.featured-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.featured-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.featured-title a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.featured-title a:hover {
    color: var(--primary);
}

.featured-excerpt {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.featured-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 4.5rem 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

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

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-item p {
    font-size: 1.0625rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ===== Assessment CTA ===== */
.assessment-cta {
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta-desc,
.cta-description {
    color: var(--text-light);
    margin-bottom: 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* CTA Section (sub-pages) */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-alt);
    text-align: center;
}

.cta-section .cta-title {
    font-size: 1.75rem;
}

.cta-section .cta-description {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.18);
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand h3,
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-brand p,
.footer-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-column h4,
.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-column .footer-links {
    list-style: none;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-column .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-languages {
    display: flex;
    gap: 1rem;
}

.footer-languages a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-languages a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p,
.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Page Header (sub-pages) ===== */
.page-header {
    padding: 7rem 0 3.5rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
}

.page-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle,
.page-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .nav,
    .header-actions,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-inner {
        height: 64px;
    }

    .hero {
        padding: 5rem 0 3.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .search-btn {
        border-radius: 0;
    }

    .sections-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stat-item h3 {
        font-size: 2.25rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header {
        padding: 5.5rem 0 2.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .pain-points-header h2,
    .section-heading {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}