/* ============================================================
   NORBURN DESIGN - process.css
   Page-specific styles for process.html
   Requires: ../css/style.css (base variables & components)
   ============================================================ */


/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
    min-height: 52vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: calc(var(--nav-height) + 60px) 32px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background texture */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 110%, rgba(199,50,0,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 0%,   rgba(199,50,0,0.10) 0%, transparent 55%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-hero__title {
    /* override global h1 colour - already white, but let's be explicit */
    color: var(--white);
    margin-bottom: 20px;
}

.page-hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

.page-hero__scroll-hint {
    margin-top: 48px;
    font-size: 1.4rem;
    color: var(--brand);
    animation: bounce 2s ease infinite;
    padding-bottom: 28px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0);    opacity: 0.6; }
    50%       { transform: translateY(8px); opacity: 1;   }
}


/* ── Process Main Layout ───────────────────────────────────── */
.process-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 32px 60px;
}


/* ── Individual Step ───────────────────────────────────────── */
/*
   Layout: three explicit columns - number | body | spacer
   Right steps: swap via   number-col → col 3, body → col 2, spacer → col 1
   No direction:rtl hacks. Every column has a real, stable width.
*/
.process-step {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    grid-template-areas: "num body spacer";
    gap: 0 36px;
    align-items: start;
    opacity: 0;
    transform: translateY(28px);
    animation: stepReveal 0.55s ease forwards;
    animation-timeline: view();
    animation-range: 60px 40%;
}

/* Right-offset variant: body stays centred, number moves to right column */
.process-step--right {
    grid-template-areas: "spacer body num";
}

@keyframes stepReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Step number */
.process-step__number {
    grid-area: num;
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--brand);
    opacity: 0.22;
    text-align: right;
    padding-top: 6px;
    letter-spacing: -2px;
    user-select: none;
}

.process-step--right .process-step__number {
    text-align: left;
}

/* Step body - always the centre column */
.process-step__body {
    grid-area: body;
    padding: 4px 0 52px;
    border-left: 2px solid rgba(199,50,0,0.18);
    padding-left: 36px;
    position: relative;
}

.process-step--right .process-step__body {
    border-left: none;
    border-right: 2px solid rgba(199,50,0,0.18);
    padding-left: 0;
    padding-right: 36px;
    text-align: right;
}

/* Diamond accent on the rule */
.process-step__icon {
    position: absolute;
    left: -7px;
    top: 6px;
    font-size: 0.6rem;
    color: var(--brand);
    line-height: 1;
    background-color: var(--bg);
    padding: 1px 0;
}

.process-step--right .process-step__body .process-step__icon {
    left: auto;
    right: -7px;
}

.process-step__body h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    color: var(--ink);
    margin-bottom: 16px;
}

.process-step__body p {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* Tag pills */
.process-step__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.process-step--right .process-step__tags {
    justify-content: flex-end;
}

.process-step__tags li {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 2px;
    padding: 4px 10px;
    opacity: 0.85;
}


/* ── Connector between steps ───────────────────────────────── */
.process-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    margin: -24px 0 -12px;
    position: relative;
    z-index: 1;
}

    .process-connector span {
        display: block;
        /*width: 2px;
            
        background: linear-gradient(to bottom, rgba(199,50,0,0.35), rgba(199,50,0,0.06));
        */
        height: 100%;
    }


/* ── Discipline intro strip (below hero) ───────────────────── */
.discipline-intro {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 40px 70px;
}

.discipline-intro__inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    gap: 72px;
    align-items: flex-start;
}

.discipline-intro__text {
    /*lex: 1 1 500px;*/
}

    .discipline-intro__text p {
        font-size: 1.05rem;
        color: rgba(255,255,255,0.70);
        line-height: 1.82;
        margin-bottom: 16px;
    }

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

.discipline-intro__tags {
    flex: 0 0 280px;
  display: flex;
    flex-direction: column;
    gap: 0;
    align-self: center;
    border-left: 2px solid rgba(199,50,0,0.30);
    padding-left: 28px;
}

    .discipline-intro__tags li {
        list-style: none;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(255,255,255,0.45);
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: color 0.2s ease;
    }

        .discipline-intro__tags li:last-child {
            border-bottom: none;
        }

        .discipline-intro__tags li::before {
            content: '◆ ';
            color: var(--brand);
            font-size: 0.5rem;
            vertical-align: middle;
            margin-right: 4px;
        }

/* ── Process Summary Strip ─────────────────────────────────── */
.process-summary {
    background-color: var(--ink);
    padding: 40px 32px;
    overflow-x: auto;
}

.process-summary__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    min-width: 560px;          /* allow horizontal scroll on small screens */
}

.summary-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.summary-step__num {
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    color: var(--brand);
    line-height: 1;
}

.summary-step__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-align: center;
}

.summary-arrow {
    font-size: 1rem;
    color: rgba(199,50,0,0.45);
    padding: 0 4px;
    flex-shrink: 0;
    padding-bottom: 18px;      /* align with numbers */
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .discipline-intro__inner {
        flex-direction: column;
        gap: 40px;
    }

    .discipline-intro__tags {
        border-left: none;
        border-top: 2px solid rgba(199,50,0,0.30);
        padding-left: 0;
        padding-top: 24px;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0 32px;
    }
   

        .discipline-intro__tags li {
            border-bottom: none;
            padding: 6px 0;
        }
    }

@media (max-width: 720px) {

    .discipline-intro {
        padding: 48px 24px 56px;
    }

    .page-hero {
        min-height: 56vh;
        padding-top: calc(var(--nav-height) + 40px);
    }

    .page-hero__title {
        font-size: 2.2rem;
    }

    .page-hero__sub {
        font-size: 0.95rem;
    }

    .process-main {
        padding: 60px 20px 40px;
    }

    /* Collapse zigzag - all steps left-aligned on mobile */
    .process-step,
    .process-step--right {
        grid-template-columns: 60px 1fr;
        grid-template-areas: "num body";
        gap: 0 20px;
    }

    .process-step--right .process-step__number {
        text-align: right;
    }

    .process-step--right .process-step__body {
        text-align: left;
        border-left: 2px solid rgba(199,50,0,0.18);
        border-right: none;
        padding-left: 24px;
        padding-right: 0;
    }

    .process-step--right .process-step__body .process-step__icon {
        left: -7px;
        right: auto;
    }

    .process-step--right .process-step__tags {
        justify-content: flex-start;
    }

    .process-step__number {
        font-size: 2.4rem;
        text-align: right;
    }

    .process-step__body {
        padding-left: 24px;
        padding-bottom: 36px;
    }

    .process-summary__inner {
        gap: 0;
    }

    .summary-step__label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {

    .process-step,
    .process-step--right {
        grid-template-columns: 44px 1fr;
        grid-template-areas: "num body";
        gap: 0 14px;
    }

    .process-step__number {
        font-size: 1.8rem;
    }
}
