/* Developer AI training page. Builds on style.css (header, nav, palette). */

.training {
    padding-bottom: 0;
    color: #2b2530;
    background: #fffaf5;
}

.training .site-footer {
    position: static;
    height: auto;
    padding: 1.25rem 2rem;
}

.training .legal-links {
    padding-top: 0;
}

.t-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Hero */
.t-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 3rem) 0 4rem;
    background:
        linear-gradient(180deg, rgba(42, 12, 36, 0.78) 0%, rgba(74, 28, 64, 0.62) 55%, rgba(42, 12, 36, 0.85) 100%),
        url('../images/hero-bg.jpg') center 60% / cover no-repeat;
    color: var(--white);
}

.t-eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(249, 160, 63, 0.18);
    border: 1px solid rgba(249, 160, 63, 0.5);
    color: var(--accent-color);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.t-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 1.25rem;
    max-width: 14ch;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.t-hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.6;
    max-width: 44rem;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.92);
}

.t-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Buttons */
.t-btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.t-btn:hover {
    transform: translateY(-1px);
}

.t-btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
}

.t-btn-primary:hover {
    background: #d45203;
    color: var(--white);
}

.t-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.t-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

/* Sections */
.t-section {
    padding: 4.5rem 0;
    scroll-margin-top: calc(var(--header-height) - 1.5rem);
}

.t-alt {
    background: #f6ece4;
}

.t-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 1rem;
}

.t-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 46rem;
    margin: 0 0 2rem;
}

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

.t-card {
    background: var(--white);
    border: 1px solid #efe2d8;
    border-top: 4px solid var(--primary-color);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(74, 28, 64, 0.06);
}

.t-card h3,
.t-learn-item h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem;
}

.t-card p,
.t-learn-item p {
    margin: 0;
    line-height: 1.6;
}

.t-learn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2.5rem;
}

.t-learn-item {
    padding-left: 1.1rem;
    border-left: 3px solid var(--contrast-color);
}

.t-instructor p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 46rem;
}

/* Waitlist form */
.t-form-wrap {
    max-width: 760px;
}

.t-form {
    background: var(--white);
    border: 1px solid #efe2d8;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(74, 28, 64, 0.08);
}

.t-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.t-field {
    margin-bottom: 1.1rem;
}

.t-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
}

.t-field input,
.t-field select,
.t-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.85rem;
    border: 1px solid #d9cbc0;
    border-radius: 8px;
    background: #fffdfb;
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
}

.t-field input:focus,
.t-field select:focus,
.t-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.18);
}

.t-req {
    color: var(--primary-color);
}

.t-opt {
    font-weight: 400;
    color: #7a6d74;
}

.t-fine {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: #7a6d74;
}

.t-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.t-error {
    background: #fdecea;
    border: 1px solid #f5c2bc;
    color: #8a1c12;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.t-error p {
    margin: 0.2rem 0;
}

.t-success {
    background: var(--white);
    border: 1px solid #cfe9e5;
    border-top: 4px solid var(--contrast-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(42, 157, 143, 0.12);
    animation: t-pop 0.4s ease-out;
}

.t-success p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@keyframes t-pop {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
    .t-grid-3,
    .t-learn,
    .t-row {
        grid-template-columns: 1fr;
    }

    .t-row {
        gap: 0;
    }
}

@media (max-width: 768px) {
    .training .site-footer {
        padding: 1rem;
    }

    .t-section {
        padding: 3rem 0;
    }

    .t-form {
        padding: 1.25rem;
    }
}
