/* Transforming People Academy — design tokens as source of truth */

:root {
    --primary: #b183b6;
    --primary-dark: #89608c;
    --primary-deeper: #6c3772;
    --primary-soft: #9d7ba0;
    --ink: #3a3a3a;
    --ink-muted: #5c5c5c;
    --bg: #f7f4f8;
    --bg-card: #ffffff;
    --surface: #eeeeee;
    --nav-bg: #6c3772;
    --white: #ffffff;
    --font-display: 'Lato', 'Roboto', system-ui, sans-serif;
    --font: 'Lato', 'Roboto', system-ui, sans-serif;
    --font-body: 'Roboto', 'Lato', system-ui, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 28px rgba(108, 55, 114, 0.10);
    --shadow-soft: 0 4px 16px rgba(58, 58, 58, 0.06);
    --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 1.05rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--primary-deeper); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

/* --- nav ------------------------------------------------------------- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 28px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

header.nav .brand {
    font-weight: 700;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

header.nav .brand img {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

header.nav .links {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    align-items: center;
}

header.nav .item { position: relative; }

header.nav .item > a {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    opacity: .88;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .01em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: opacity .15s ease, background .15s ease;
}

header.nav .item > a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

.nt { display: none; }

.hamb {
    display: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.55rem;
    line-height: 1;
    user-select: none;
    padding: 4px 6px;
}

@media (max-width: 820px) {
    .hamb { display: block; }
    header.nav .links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 4px;
        padding-bottom: 8px;
    }
    .nt:checked ~ .links { display: flex; }
    header.nav .item > a { padding: 10px 12px; }
}

/* --- hero ------------------------------------------------------------ */
.hero {
    background:
        linear-gradient(135deg, rgba(108, 55, 114, 0.94) 0%, rgba(137, 96, 140, 0.90) 45%, rgba(177, 131, 182, 0.88) 100%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.12), transparent 50%);
    color: var(--white);
    padding: 96px 24px 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 48px;
    background: linear-gradient(to top, var(--bg), transparent);
}

.hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero .eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: 1rem;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    margin: 0 0 .75rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero .lede {
    opacity: .95;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    margin: 0 auto 1.75rem;
    max-width: 540px;
    font-weight: 400;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- buttons --------------------------------------------------------- */
.btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    cursor: pointer;
}

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

.btn-primary {
    background: var(--white);
    color: var(--primary-deeper);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background: var(--surface);
    color: var(--primary-deeper);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

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

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

.btn-solid {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-solid:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-deeper);
    border-color: var(--primary);
}

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

/* --- page head ------------------------------------------------------- */
.page-head {
    background:
        linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    color: var(--white);
    padding: 56px 24px 52px;
    text-align: center;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--white);
}

.page-head p {
    margin: .6rem auto 0;
    max-width: 520px;
    opacity: .9;
    font-size: 1.05rem;
}

/* --- sections / layout ----------------------------------------------- */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 24px;
}

.section-tight {
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-alt {
    background: var(--white);
    border-top: 1px solid rgba(177, 131, 182, 0.15);
    border-bottom: 1px solid rgba(177, 131, 182, 0.15);
}

.section-alt .section,
.section-cta .section {
    /* nested reset when section wraps content */
}

.band {
    background: var(--white);
    border-top: 1px solid rgba(177, 131, 182, 0.12);
    border-bottom: 1px solid rgba(177, 131, 182, 0.12);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-head h2 {
    margin: 0 0 .6rem;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    color: var(--primary-deeper);
}

.section-head p {
    margin: 0;
    color: var(--ink-muted);
}

/* --- program cards --------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 860px) {
    .card-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(177, 131, 182, 0.18);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .02em;
}

.card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-deeper);
}

.card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: .98rem;
    flex: 1;
}

/* --- prose ----------------------------------------------------------- */
.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px;
}

.prose h2 {
    margin-top: 0;
    color: var(--primary-deeper);
}

.prose p {
    color: var(--ink);
    margin: 0 0 1.1rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose a { color: var(--primary-deeper); font-weight: 500; }

.prose-wide {
    max-width: var(--max);
}

/* --- about / content blocks ------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 800px) {
    .split { grid-template-columns: 1fr; gap: 28px; }
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ink);
}

.feature-list .tick {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(177, 131, 182, 0.2);
    color: var(--primary-deeper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    margin-top: 2px;
}

.panel {
    background: linear-gradient(160deg, var(--primary-deeper), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.panel h3 {
    color: var(--white);
    margin: 0 0 .75rem;
    font-size: 1.35rem;
}

.panel p {
    margin: 0;
    opacity: .92;
    font-size: 1rem;
}

/* --- enrol / membership forms look ----------------------------------- */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(177, 131, 182, 0.18);
    max-width: 480px;
    margin: 0 auto;
}

.form-card h2 {
    margin: 0 0 .4rem;
    font-size: 1.4rem;
    color: var(--primary-deeper);
    text-align: center;
}

.form-card .form-sub {
    text-align: center;
    color: var(--ink-muted);
    margin: 0 0 1.5rem;
    font-size: .95rem;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid rgba(177, 131, 182, 0.35);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(177, 131, 182, 0.2);
}

.field textarea { min-height: 100px; resize: vertical; }

.form-card .btn {
    width: 100%;
    text-align: center;
    margin-top: .5rem;
}

.program-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 2rem;
}

.pill {
    background: rgba(177, 131, 182, 0.15);
    color: var(--primary-deeper);
    font-weight: 600;
    font-size: .88rem;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
}

/* --- testimonials ---------------------------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 700px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(177, 131, 182, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-top img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(177, 131, 182, 0.35);
}

.testimonial-top .who {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-deeper);
    font-size: 1rem;
}

.testimonial-top .role {
    font-size: .85rem;
    color: var(--ink-muted);
}

.testimonial blockquote {
    margin: 0;
    font-style: italic;
    color: var(--ink);
    font-size: .98rem;
    line-height: 1.6;
    position: relative;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

/* --- CTA band -------------------------------------------------------- */
.cta-band {
    background:
        linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 64px 24px;
}

.cta-band h2 {
    color: var(--white);
    margin: 0 0 .6rem;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.cta-band p {
    margin: 0 auto 1.5rem;
    max-width: 480px;
    opacity: .92;
}

/* --- membership note ------------------------------------------------- */
.notice {
    background: rgba(177, 131, 182, 0.12);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 1.25rem 0 0;
    font-size: .92rem;
    color: var(--ink-muted);
}

/* --- footer ---------------------------------------------------------- */
footer.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 28px 28px;
    background: var(--nav-bg);
    color: rgba(255, 255, 255, 0.75);
    font-size: .85rem;
    flex-wrap: wrap;
}

footer.foot .tag {
    opacity: .85;
}
