/*
 * Process Page — Styles
 * Font sizes inherit from theme throughout.
 */

/* ── Tokens ──────────────────────────────────────── */
:root {
    --proc-green:      #3a4a35;
    --proc-gold:       #c9b97a;
    --proc-cream:      #faf8f5;
    --proc-white:      #ffffff;
    --proc-text:       #3a3228;
    --proc-text-mid:   #6b5f50;
    --proc-text-muted: #9a8c6e;
    --proc-border:     #e0d8cc;
    --proc-px:         80px;
    --proc-stage-gap:  80px;
}

/* ── Wrapper breakout ────────────────────────────── */
.proc-page-template .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* ── Base ────────────────────────────────────────── */
.proc-page {
    background: var(--proc-cream);
    color: var(--proc-text);
    width: 100%;
    max-width: none;
}

.proc-eyebrow {
    display: block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--proc-text-muted);
    margin-bottom: 16px;
}

/* ── Hero ────────────────────────────────────────── */
.proc-hero {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 520px;
    width: 100%;
}

.proc-hero__text {
    background: var(--proc-white);
    padding: 80px var(--proc-px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.proc-hero__heading {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 22px;
}

.proc-hero__body p {
    color: var(--proc-text-mid);
    line-height: 1.85;
    margin-bottom: 14px;
}

.proc-hero__media {
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.proc-hero__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* ── Intro ───────────────────────────────────────── */
.proc-intro {
    background: var(--proc-white);
    padding: 64px var(--proc-px);
    border-top: 0.5px solid var(--proc-border);
    border-bottom: 0.5px solid var(--proc-border);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.proc-intro p {
    color: var(--proc-text-mid);
    line-height: 1.85;
    margin-bottom: 14px;
}

/* ── Timeline ────────────────────────────────────── */
.proc-timeline {
    position: relative;
    padding: 0 0 80px;
    background: var(--proc-cream);
    margin: 50px;
}

/* Vertical line — background track */
.proc-timeline__line-bg {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--proc-border);
    transform: translateX(-50%);
    z-index: 0;
}

/* Vertical line — green fill driven by JS */
.proc-timeline__line-fill {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    background: var(--proc-green);
    transform: translateX(-50%);
    z-index: 1;
    height: 0;
    transition: height 0.08s linear;
    will-change: height;
}

/* ── Stage row ───────────────────────────────────── */
.proc-stage {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    min-height: 380px;
    position: relative;
    z-index: 2;
    margin-bottom: var(--proc-stage-gap);
}

.proc-stage:last-child { margin-bottom: 0; }

.proc-stage__text {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--proc-white);
    min-width: 0;
}

.proc-stage__image {
    overflow: hidden;
    min-height: 380px;
    min-width: 0;
    background: var(--proc-border);
}

.proc-stage__image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.proc-stage__dot-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* ── Dot ─────────────────────────────────────────── */
.proc-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--proc-border);
    border: 3px solid var(--proc-cream);
    flex-shrink: 0;
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 4;
}

.proc-dot--active {
    background: var(--proc-green);
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(58, 74, 53, 0.15);
}

/* ── Stage text elements ─────────────────────────── */
.proc-stage__label {
    display: block;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--proc-text-muted);
    margin-bottom: 10px;
}

.proc-stage__heading {
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--proc-text);
}

.proc-stage__body p {
    color: var(--proc-text-mid);
    line-height: 1.85;
    margin-bottom: 12px;
}

/* ── CTA strip ───────────────────────────────────── */
.proc-cta {
    background: var(--proc-green);
    padding: 80px var(--proc-px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.proc-cta__heading {
    font-weight: 400;
    color: #e8dfc8;
    margin-bottom: 10px;
}

.proc-cta__body {
    color: rgba(232, 223, 200, 0.65);
    line-height: 1.7;
    margin: 0;
}

.proc-cta__btn {
    background: var(--proc-gold);
    color: #2a2018;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.proc-cta__btn:hover { opacity: 0.88; }

/* ── Responsive ──────────────────────────────────── */
@media ( max-width: 900px ) {
    :root { --proc-px: 40px; --proc-stage-gap: 48px; }
    .proc-stage__image { min-height: 280px; }
}

@media ( max-width: 768px ) {
    :root { --proc-px: 20px; --proc-stage-gap: 32px; }

    .proc-hero { grid-template-columns: 1fr; }
    .proc-hero__media { aspect-ratio: 4 / 3; }
    .proc-hero__text { padding: 48px 20px; }

    .proc-intro { padding: 40px 20px; }

    /* Stack stages on mobile — hide centre line */
    .proc-timeline__line-bg,
    .proc-timeline__line-fill { display: none; }

    .proc-stage {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        margin-bottom: var(--proc-stage-gap);
    }

    /* Always show: image top, text below, hide dot col */
    .proc-stage__image   { order: 1; min-height: 220px; }
    .proc-stage__dot-col { display: none; }
    .proc-stage__text    { order: 2; padding: 32px 20px; }

    /* Override image side since we stack vertically */
    .proc-stage--img-left .proc-stage__image,
    .proc-stage--img-right .proc-stage__image { order: 1; }
    .proc-stage--img-left .proc-stage__text,
    .proc-stage--img-right .proc-stage__text  { order: 2; }

    .proc-cta { grid-template-columns: 1fr; gap: 24px; }
}