/**
 * Shared marketing / catalog styles — homepage, tutors, courses catalog.
 * Uses tokens from style.css (--color-navy, --space-*, etc.).
 */

.marketing-page {
    background: var(--color-bg, #f4f6f9);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.mkt-hero {
    background: var(--color-navy, #0f2d5a);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
}

.mkt-hero-compact {
    padding: 3rem 0 2.5rem;
}

.mkt-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0;
}

.mkt-hero .lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.mkt-hero-actions .btn-lg {
    min-width: 10rem;
}

.mkt-hero-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
}

.mkt-hero-link:hover {
    color: #fff;
}

@media (max-width: 575.98px) {
    .mkt-hero { padding: 2.75rem 0 2rem; }
    .mkt-hero-actions { flex-direction: column; align-items: stretch; }
    .mkt-hero-actions .btn { width: 100%; }
}

/* ── Stats strip (below hero — no overlap) ─────────────────────────── */
.mkt-stats {
    padding: 1.5rem 0;
    background: var(--color-bg, #f4f6f9);
    border-bottom: 1px solid var(--color-border, #e9ecef);
}

.mkt-stat-pill {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e9ecef);
    border-radius: var(--radius-md, 12px);
    box-shadow: none;
    padding: 1rem 0.75rem;
    height: 100%;
    text-align: center;
}

.mkt-stat-pill .value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.1;
}

.mkt-stat-pill .label {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-muted, #6c757d);
    margin-top: 0.25rem;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.mkt-section {
    padding: var(--space-2xl, 3rem) 0;
}

.mkt-section-tight {
    padding: var(--space-xl, 2rem) 0;
}

.mkt-section-alt {
    background: #fff;
}

.mkt-section-muted {
    background: var(--color-bg, #f4f6f9);
}

.mkt-container-narrow {
    max-width: 960px;
    margin: 0 auto;
}

.mkt-section-title {
    font-size: var(--font-size-h3, 1.5rem);
    font-weight: 700;
    color: var(--color-text, #1a2e44);
    margin-bottom: 0.5rem;
}

.mkt-section-sub {
    color: var(--color-text-muted);
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}

/* ── How it works steps ─────────────────────────────────────────────── */
.mkt-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mkt-step:last-child {
    margin-bottom: 0;
}

.mkt-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.mkt-step strong {
    display: block;
    margin-bottom: 0.15rem;
}

.mkt-step .text-muted {
    font-size: var(--font-size-sm);
}

/* ── Cards (calm — no hover lift) ───────────────────────────────────── */
.mkt-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mkt-card:hover {
    border-color: rgba(15, 45, 90, 0.25);
    box-shadow: var(--shadow-md);
}

.mkt-card-body {
    padding: 1.25rem;
}

/* ── Grade level chips (courses page) ───────────────────────────────── */
.mkt-level-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0 0;
}

.mkt-level-chip {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-navy);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.mkt-level-chip:hover,
.mkt-level-chip.active {
    background: rgba(15, 45, 90, 0.06);
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.mkt-level-card {
    display: block;
    text-decoration: none;
    color: var(--color-navy);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.35rem 1rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mkt-level-card:hover {
    border-color: var(--color-navy);
    box-shadow: var(--shadow-md);
    color: var(--color-navy);
}

.mkt-level-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.mkt-level-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ── Tutors listing ─────────────────────────────────────────────────── */
.tutors-filter-bar {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.tutors-spotlight-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.tutor-list-card .tutor-avatar-sm {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 0.75rem;
}

.tutor-subject-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 45, 90, 0.08);
    color: var(--color-navy);
    font-size: 0.75rem;
    margin: 0.15rem;
}

/* ── Plans trust line ───────────────────────────────────────────────── */
.plans-trust-line {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.plans-trust-line span + span::before {
    content: " · ";
}

/* ── CTA band ───────────────────────────────────────────────────────── */
.mkt-cta-band {
    background: var(--color-navy);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.mkt-cta-band h2 {
    font-size: var(--font-size-h3);
    margin-bottom: 0.75rem;
}

.mkt-cta-band p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 28rem;
    margin: 0 auto 1.25rem;
}
