/* landing.css: the front page of IRF for NGOs. Builds on theme.css for colour, type, buttons, cards and pills.
   A navy hero with the numbers in it, three white door cards that overlap its lower edge, a four-step row,
   four small link cards. Mobile first, 16px side gutter. */

/* ---------- hero ---------- */

/* the room under the text is what the door cards climb into */
.masthead { padding-bottom: 120px; }
.name { font-size: var(--fs-hero); }
.what { margin-top: 24px; }
.what + .what { margin-top: 12px; }

.hero-stats {
    margin-top: 40px;
    padding-top: 8px;
    border-top: 1px solid var(--navy-line);
    max-width: 40rem;
}
.hero-stats .stat { flex: 1 1 0; min-width: 6.5rem; padding: 12px 8px 0 0; text-align: left; }
.hero-stats .stat-num { color: var(--amber); font-size: 2.5rem; }
.hero-stats .stat-cap { color: var(--on-navy-muted); }
.stat-link { display: block; color: inherit; text-decoration: none; }
.stat-link .stat-cap { text-decoration: underline; text-decoration-color: rgba(185, 201, 220, 0.6); text-underline-offset: 3px; }
.hero a.stat-link:hover .stat-cap { color: #ffffff; }
.hero a.stat-link:hover .stat-num { color: #ffc857; }

/* ---------- the three doors ---------- */

.doors {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 20px;
    margin: -88px 0 0;
    padding: 0;
    list-style: none;
}

.door {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 22px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.door:hover { transform: translateY(-2px); }

.door-tag { align-self: flex-start; justify-self: start; margin: 0 0 14px; }
.door-name { margin: 0 0 10px; font: 700 1.5rem/1.2 var(--serif); color: var(--navy); }
.door-what { margin: 0 0 20px; color: var(--ink); font-size: 1.02rem; line-height: 1.55; }

/* the discovery door: the big one, the way in for most people */
.door-main { border-top-color: var(--green); }
.door-main .door-tag { background: var(--green); color: #ffffff; border-color: var(--green); }
.door-main .door-name { font-size: 2rem; }
.door-main .door-what { font-size: 1.12rem; }
.door-body, .door-side { display: flex; flex-direction: column; }
.door-side .door-leave { margin-top: 0; }
.door-side .door-go { margin-top: auto; padding-top: 18px; }

.door-leave {
    margin: auto 0 0;
    padding: 14px 16px;
    background: var(--strip-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.door-leave b { display: block; margin-bottom: 2px; color: var(--navy); font-weight: 700; }

.door-go { margin: 18px 0 0; }

/* ---------- continue from a saved file ---------- */

.resume { margin: 28px 0 0; color: var(--muted); font-size: 0.95rem; text-align: center; }
.resume-new { margin-right: 1.25em; }
.file-status { min-height: 1.5rem; margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* ---------- how it decides: four steps in a row ---------- */

.how .steps { display: grid; gap: 26px; max-width: none; counter-reset: none; }
.how .step {
    position: relative;
    display: block;
    padding: 0 0 0 40px;
    border: 0;
}
.how .step:last-child { border: 0; }

/* the marker is a dot on a line; it carries no number */
.how .step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(58, 125, 94, 0.18);
}
.how .step::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: -26px;
    width: 2px;
    background: var(--line-strong);
}
.how .step:last-child::after { display: none; }

.how .step-name { font: 700 1.2rem/1.3 var(--serif); color: var(--navy); }
.how .step-line { margin-top: 4px; color: var(--muted); }

.outcomes {
    margin: 36px 0 0;
    max-width: 46rem;
    padding: 18px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--amber);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

/* ---------- look around first: six small link cards ---------- */

.looks { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.look {
    position: relative;
    padding: 18px 20px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--navy);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transition: border-left-color 0.15s ease, box-shadow 0.15s ease;
}
.look:hover { border-left-color: var(--green); box-shadow: var(--shadow); }
.look:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

.look-link { font: 700 1.05rem/1.3 var(--serif); color: var(--navy); text-decoration: none; }
.look-link:focus-visible { outline: none; }
/* the whole card is the target; the title is the only link */
.look-link::after { content: ""; position: absolute; inset: 0; }
.look-line { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- wider screens ---------- */

@media (min-width: 40rem) {
    .masthead { padding-bottom: 136px; }
    .looks { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 48rem) {
    .how .steps { grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
    .how .step { padding: 40px 0 0; }
    .how .step::before { left: 0; top: 0; }
    .how .step::after { left: 28px; right: -28px; top: 7px; bottom: auto; width: auto; height: 2px; }
}

@media (min-width: 56rem) {
    .hero-text { max-width: none; font-size: 1.25rem; line-height: 1.6; }
    .hero-stats { max-width: none; }
    .doors { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -96px; }
    .door { padding: 28px 28px 26px; }
    .door-main { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 40px; padding: 34px 36px 30px; }
    .door-main .door-body { justify-content: center; }
    .door-main .door-what { margin-bottom: 0; }
    /* six cards: three to a row */
    .looks { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .door { transition: none; }
    .door:hover { transform: none; }
}

@media print {
    .masthead { padding-bottom: 0; }
    .hero-stats .stat-num { color: #000000; }
    .hero-stats .stat-cap, .stat-link .stat-cap { color: #333333; text-decoration-color: #333333; }
    .doors { margin-top: 12pt; }
    .door { box-shadow: none; transition: none; }
}
