/* ==========================================================================
   Nexix Academy — For Corporates (for-corporates.html)
   Depends on base.css for tokens, background, navbar, footer, buttons, FAQ.
   ========================================================================== */

/* --- Page hero --- */
.corp-hero {
    position: relative;
    padding: calc(var(--nav-h) + 6rem) 0 5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.corp-hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.corp-hero__shapes .shape { position: absolute; border-radius: 50%; filter: blur(90px); }
.corp-hero__shapes .shape--a {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(0, 86, 210, 0.14) 0%, transparent 70%);
    top: -14%; right: -6%;
}
.corp-hero__shapes .shape--b {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(26, 172, 172, 0.12) 0%, transparent 70%);
    bottom: -20%; left: -8%;
}

.corp-hero__inner { position: relative; z-index: 1; max-width: 48rem; }
.corp-hero .badge { margin-bottom: 1.5rem; }
.corp-hero__title {
    font-family: var(--font-h);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.corp-hero__title em {
    font-style: italic;
    font-weight: 500;
    background: var(--gradient-img);
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.corp-hero__desc {
    color: var(--grey);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 40rem;
    margin-bottom: 2.25rem;
}
.corp-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }

.corp-hero__scope {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}
.corp-hero__scope li {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-deep);
    background: var(--primary-soft);
    border: 1px solid rgba(0, 86, 210, 0.18);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
}

/* --- Problem cards --- */
.problem-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.problem-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.problem-card__icon {
    width: 2.6rem; height: 2.6rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.8rem;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 86, 210, 0.16);
    color: var(--primary);
    margin-bottom: 0.95rem;
}
.problem-card__icon svg { width: 20px; height: 20px; }
.problem-card h3 { font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.45rem; }
.problem-card p { color: var(--grey); font-size: 0.9rem; line-height: 1.6; }

/* --- Capability blocks --- */
.cap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.cap + .cap { margin-top: 5.5rem; }
.cap--flip .cap__media { order: -1; }

.cap__title {
    font-family: var(--font-h);
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0.4rem 0 0.9rem;
}
.cap__title em {
    font-style: italic;
    font-weight: 500;
    background: var(--gradient-img);
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.cap__copy > p { color: var(--grey); line-height: 1.7; margin-bottom: 1.2rem; }
.cap__copy .btn-ghost, .cap__copy .btn-primary { margin-top: 0.4rem; }

/* Lab screenshot + caption above the detail panel. .lab-shot itself lives in
   base.css; this only handles the spacing in the media column. */
.cap__figure { margin-bottom: 1.5rem; }
.cap__figure .shot-note { text-align: center; max-width: 34rem; margin-inline: auto; }

/* Detail panel. On #assessment it sits under the lab screenshot and carries
   the specifics the image cannot show (isolation, reset, time box). */
.cap__panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}
.cap__panel-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-h);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--grey-dim);
}
.cap__panel-head svg { width: 16px; height: 16px; color: var(--primary); }
.cap__panel-list { list-style: none; display: grid; gap: 0.9rem; }
.cap__panel-list li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--grey);
    font-size: 0.92rem;
    line-height: 1.55;
}
.cap__panel-list li::before {
    content: '\2713';
    position: absolute; left: 0; top: 0.05rem;
    width: 1.25rem; height: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
    color: var(--teal-ink);
    background: rgba(26, 172, 172, 0.12);
    border: 1px solid rgba(11, 110, 110, 0.25);
    border-radius: 50%;
}
.cap__panel-list li strong { color: var(--ink); font-weight: 600; display: block; }

/* --- How it works --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem; height: 2.1rem;
    border-radius: 50%;
    background: var(--gradient-img);
    background-size: cover;
    color: var(--on-brand);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}
.step h3 { font-family: var(--font-h); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 0.4rem; }
.step p { color: var(--grey); font-size: 0.88rem; line-height: 1.55; }

/* --- Scope note: what this page does NOT claim --- */
.scope-note {
    max-width: 46rem;
    margin: 3rem auto 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal-ink);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.scope-note p { color: var(--grey); font-size: 0.9rem; line-height: 1.65; }
.scope-note strong { color: var(--ink); font-weight: 600; }

/* --- Hiring enquiry form --- */
.hiring {
    max-width: 46rem;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.hiring__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.hiring__group { display: flex; flex-direction: column; }
.hiring__group--full { grid-column: 1 / -1; }

.hiring__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.hiring__label .required { color: #c2410c; }

.hiring__input, .hiring__select, .hiring__textarea {
    font-family: var(--font-b);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.hiring__textarea { resize: vertical; min-height: 6rem; }
.hiring__input::placeholder, .hiring__textarea::placeholder { color: var(--grey-dim); }
.hiring__input:focus, .hiring__select:focus, .hiring__textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.hiring__input[aria-invalid="true"], .hiring__select[aria-invalid="true"] { border-color: #c2410c; }

.hiring__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.5rem 0 1.5rem;
}
.hiring__consent input { margin-top: 0.2rem; width: 1rem; height: 1rem; accent-color: var(--primary); flex: none; }
.hiring__consent label { font-size: 0.85rem; color: var(--grey); line-height: 1.55; }
.hiring__consent a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }

.hiring__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--gradient-img);
    background-size: 150% 150%;
    background-position: center center;
    color: var(--on-brand);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.2s;
}
.hiring__submit:hover:not(:disabled) { box-shadow: var(--shadow-brand); transform: translateY(-2px); }
.hiring__submit:disabled { cursor: not-allowed; opacity: 0.75; }
.hiring__submit svg { width: 16px; height: 16px; }

.hiring__note { font-size: 0.8rem; color: var(--grey-dim); text-align: center; margin-top: 1rem; }

.hiring__success, .hiring__error {
    display: none;
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.hiring__success.is-visible, .hiring__error.is-visible { display: block; }
.hiring__success-icon { width: 3rem; height: 3rem; color: var(--teal-ink); margin: 0 auto 1rem; }
.hiring__error-icon { width: 3rem; height: 3rem; color: #c2410c; margin: 0 auto 1rem; }
.hiring__success h3, .hiring__error h3 {
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.hiring__success p, .hiring__error p { color: var(--grey); font-size: 0.95rem; line-height: 1.6; }
.hiring__error a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 900px) {
    .cap { grid-template-columns: 1fr; gap: 2rem; }
    .cap--flip .cap__media { order: 0; }
    .cap + .cap { margin-top: 4rem; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .corp-hero { padding-top: calc(var(--nav-h) + 3.5rem); }
    .corp-hero__actions { flex-direction: column; align-items: stretch; }
    .corp-hero__actions .btn-primary, .corp-hero__actions .btn-ghost { width: 100%; }
    .steps { grid-template-columns: 1fr; }
    .hiring { padding: 1.5rem; }
    .hiring__row { grid-template-columns: 1fr; }
}
