/* ============================================
   TRAIN YOUR TEAM — Workshop page
   Page-specific styles. Depends on styles.css tokens.
   ============================================ */

/* Hero */
.wk-hero {
    padding-top: 160px;
    padding-bottom: 80px;
}

.wk-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.wk-hero .hero-badge {
    margin: 0 auto 28px;
}

.wk-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    color: var(--text-white);
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.wk-hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 32px;
}

.wk-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.wk-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--blue-primary);
    background: var(--blue-glow);
    border: 1px solid var(--blue-border);
    padding: 7px 14px;
    border-radius: 6px;
}

.wk-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Curriculum grid */
.wk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.wk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 30px;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                border-color var(--duration-fast),
                box-shadow var(--duration-fast);
}

.wk-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue-border);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.wk-card-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--blue-primary);
    margin-bottom: 12px;
}

.wk-card-title {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.wk-card-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Build phases */
.wk-phases {
    margin-top: 64px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.wk-phase {
    display: flex;
    gap: 28px;
    padding-bottom: 40px;
    position: relative;
}

.wk-phase:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 60px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--blue-border), transparent);
}

.wk-phase-marker {
    flex: 0 0 auto;
}

.wk-phase-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-glow);
    border: 1px solid var(--blue-border);
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--blue-light);
}

.wk-phase-body {
    flex: 1;
    padding-top: 4px;
}

.wk-phase-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.wk-phase-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.wk-phase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Format */
.wk-format-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.wk-format-item {
    text-align: center;
    padding: 8px;
}

.wk-format-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    margin: 0 auto 18px;
}

.wk-format-icon i {
    width: 24px;
    height: 24px;
}

.wk-format-title {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.wk-format-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Environment */
.wk-env-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.wk-env-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 34px 32px;
}

.wk-env-card--featured {
    border-color: var(--blue-border);
    background: linear-gradient(180deg, rgba(43, 136, 216, 0.06), var(--bg-card) 60%);
}

.wk-env-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.wk-env-label--featured {
    color: var(--blue-primary);
}

.wk-env-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.wk-env-price {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.wk-env-price--featured {
    color: var(--blue-light);
}

.wk-env-price span {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.wk-env-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.wk-env-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wk-env-list li {
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.wk-env-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-primary);
    opacity: 0.7;
}

/* Pricing */
.wk-price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.wk-price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 26px;
    text-align: center;
    position: relative;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                border-color var(--duration-fast);
}

.wk-price-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue-border);
}

.wk-price-card--floor {
    border-color: var(--blue-border);
    background: linear-gradient(180deg, rgba(43, 136, 216, 0.07), var(--bg-card) 65%);
}

.wk-price-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--bg-primary);
    background: var(--blue-primary);
    padding: 3px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.wk-price-amount {
    font-family: var(--font-heading);
    font-size: 38px;
    color: var(--text-white);
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.wk-price-card--floor .wk-price-amount {
    color: var(--blue-light);
}

.wk-price-name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

.wk-price-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Terms */
.wk-terms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.wk-term {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 24px;
}

.wk-term-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
}

.wk-term-icon i {
    width: 19px;
    height: 19px;
}

.wk-term-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 7px;
}

.wk-term-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-muted);
}

.wk-terms-note {
    text-align: center;
    max-width: 700px;
    margin: 36px auto 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
    font-style: italic;
}

/* Syllabus section. Tinted so the eye catches it between
   the curriculum and the build. */
.wk-syllabus-section {
    background:
        linear-gradient(180deg, rgba(43, 136, 216, 0.08), rgba(43, 136, 216, 0.025));
    border-top: 1px solid var(--blue-border);
    border-bottom: 1px solid var(--blue-border);
}

.wk-syllabus {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.wk-syllabus-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.4vw, 38px);
    color: var(--text-white);
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.wk-syllabus-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.wk-syllabus-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- PDF preview modal ----
   Sized to 80% of the viewport height, which the flex centering on
   .service-modal turns into an even 10% above and below. The frame
   takes the leftover space so nothing scrolls. */
.service-modal--wide .service-modal-content {
    max-width: 1200px;
    width: 92%;
    padding: 26px 30px 24px;
}

/* Title and buttons share one row, so the preview gets the height
   that a stacked header would otherwise consume. */
.pdf-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-right: 44px;
}

.service-modal--wide .service-modal-title {
    font-size: 26px;
    margin-bottom: 2px;
}

.service-modal--wide .service-modal-tagline {
    margin-bottom: 0;
}

.pdf-frame {
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1d;
    height: 55vh;
}

.pdf-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Shown only where an inline preview will not work */
.pdf-fallback {
    display: none;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
}

.pdf-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Where the inline preview actually renders, lock the modal to 80vh
   and let the frame absorb the remaining height. */
@media (min-width: 901px) {
    .service-modal--wide .service-modal-content {
        height: 80vh;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* The frame absorbs the height left over by the title and buttons,
       so the modal never scrolls. */
    .service-modal--wide .pdf-frame {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }
}

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

/* Mobile browsers render PDFs in iframes poorly or not at all,
   so swap the preview for the download prompt. */
@media (max-width: 900px) {
    .pdf-frame { display: none; }
    .pdf-fallback { display: block; }
    .service-modal--wide .service-modal-content { padding: 32px 24px 26px; }
    .pdf-head {
        flex-direction: column;
        gap: 18px;
        padding-right: 36px;
    }
    .pdf-actions {
        justify-content: stretch;
        width: 100%;
    }
    .pdf-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 768px) {
    .wk-syllabus-actions .btn { width: 100%; justify-content: center; }

    .wk-hero { padding-top: 120px; padding-bottom: 56px; }
    .wk-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
    .wk-card { padding: 24px 22px; }
    .wk-env-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 44px; }
    .wk-price-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
    .wk-terms { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
    .wk-format-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
    .wk-phases { margin-top: 44px; }
    .wk-phase { gap: 18px; padding-bottom: 32px; }
    .wk-phase:not(:last-child)::before { left: 22px; top: 50px; }
    .wk-phase-num { width: 46px; height: 46px; font-size: 20px; }
    .wk-phase-title { font-size: 19px; }
    .wk-hero-ctas .btn { width: 100%; justify-content: center; }
}
