﻿/* =========================================
   Forrest Ministries – Start Here (RATIONALISED)
   Single background image across the container
   ========================================= */

/* ---------- Base & utilities ---------- */
#fm-start {
    font-size: 18px;
    line-height: 1.7;
    color: #111;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    z-index: 0;
    padding-bottom: .8rem; /* breathing room below footer */
}

    #fm-start * {
        box-sizing: border-box;
    }

    #fm-start img {
        max-width: 100%;
        height: auto;
    }

    /* Neutralise portal paragraph indent inside this container */
    #fm-start p {
        text-indent: 0 !important;
    }

@media (prefers-reduced-motion: reduce) {
    #fm-start * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- One background image + top→bottom overlay ---------- */
#fm-start::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,.24) 40%, rgba(0,0,0,.10) 100%), url('/Portals/0/fm-bg-sky.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* ---------- Layout & skip link ---------- */
#fm-start .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.65rem 1.1rem;
}

#fm-start header, #fm-start footer, #fm-start main, #fm-start [role="main"] {
    width: 100%;
}

#fm-start .skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    #fm-start .skip-link:focus {
        position: fixed;
        left: 1.1rem;
        top: 1.1rem;
        width: auto;
        height: auto;
        padding: .6rem .9rem;
        background: #8DC63F;
        color: #000;
        text-decoration: none;
        border-radius: .25rem;
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
        z-index: 9999;
    }

/* ---------- Links & focus ---------- */
#fm-start a {
    color: #2E7D32;
    text-decoration: underline;
    text-underline-offset: .15em;
}

    #fm-start a:visited {
        color: #1B5E20;
    }

    #fm-start a:hover {
        text-decoration-thickness: .15em;
    }

#fm-start :focus-visible {
    outline: 3px solid #2E7D32;
    outline-offset: 3px;
}

/* ---------- Typography ---------- */
#fm-start h1, #fm-start h2, #fm-start h3 {
    line-height: 1.25;
    margin: 0 0 .4rem;
}

#fm-start h1 {
    font-size: clamp(2rem,4vw,2.75rem);
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

#fm-start h2 {
    font: 900 1.2em/1.25 "Times New Roman",Times,serif;
    color: #000000;
    margin-top: 1.2rem;
    letter-spacing: .2px;
}

#fm-start h3 {
    font: normal 1em/1.25 "Times New Roman",Times,serif;
    text-decoration: underline;
    margin-top: 1rem;
}

/* =========================================
   HERO (transparent wrapper; uses container image)
   ========================================= */
#fm-start .hero {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,.06);
    color: #fff;
}

    #fm-start .hero .wrap {
        display: grid;
        gap: 1.1rem;
    }

    #fm-start .hero .brand-line {
        color: #fff;
        opacity: .98;
    }

    #fm-start .hero a {
        color: #803100;
        font-weight: bold;
    }

        #fm-start .hero a:visited {
            color: #EAEAEA;
        }

/* Scripture callout */
#fm-start .scripture {
    font-style: italic;
    padding: .75rem 1rem;
    max-width: 78ch;
    background: rgba(0,0,0,.25);
    color: #fff;
    border-left: .35rem solid #fff;
    border-radius: .25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Hero actions & buttons */
#fm-start .actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .6rem;
}

#fm-start .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem;
    border-radius: .4rem;
    line-height: 1.2;
    white-space: normal;
    border: 2px solid #1B5E20;
    background: #1B5E20;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

    #fm-start .btn:hover {
        filter: brightness(1.05);
    }

    #fm-start .btn:focus-visible {
        outline-color: #000;
    }

#fm-start .btn--ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* =========================================
   THREE PILLARS (solid white cards over image)
   ========================================= */
#fm-start .fm-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
}

#fm-start .fm-card {
    flex: 1 1 100%;
    min-width: 0;
    position: relative;
    background: #fff;
    background-clip: padding-box;
    border: 2px solid rgba(0,0,0,.12);
    border-radius: .6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 1.1rem;
    display: block;
    text-align: left;
}

    #fm-start .fm-card h3 {
        color: #0C0C0C;
        margin: 0 0 .4rem;
    }

    #fm-start .fm-card p {
        font-size: 1.08em;
        line-height: 1.8;
        color: #111;
        margin: .4rem 0 .8rem;
    }

        #fm-start .fm-card p:last-child {
            text-align: center;
        }

#fm-start .fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    padding: .85rem 1.05rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: .4rem;
    border: 2px solid #1B5E20;
    background: #1B5E20;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}

#fm-start .fm-btn-ghost {
    background: transparent;
    color: #1B5E20;
}

#fm-start .fm-btn:hover {
    filter: brightness(1.05);
}

#fm-start .fm-btn:focus-visible {
    outline: 3px solid #1B5E20;
    outline-offset: 3px;
}

/* Responsive steps */
@media (min-width:600px) {
    #fm-start .fm-card {
        flex: 1 1 calc(50% - .55rem);
    }
}

@media (min-width:900px) {
    #fm-start .fm-card {
        flex: 1 1 calc(33.333% - .74rem);
    }
}

/* Grid upgrade */
@supports (display:grid) {
    #fm-start .fm-pillars {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
        gap: 1.1rem;
    }

    #fm-start .fm-card {
        flex: initial;
    }
}

/* Fallback links hidden */
#fm-start .fm-pillars-fallback {
    display: none;
}

/* =========================================
   START HERE (tabbed compact card)
   ========================================= */
#fm-start .reading {
    background: transparent !important;
    border: 0 !important;
}

    #fm-start .reading .wrap {
        text-align: center;
    }

    #fm-start .reading .reading-tabs {
        display: inline-block;
        text-align: left;
        background: #fff;
        background-clip: padding-box;
        border: 2px solid rgba(0,0,0,.12);
        border-radius: .6rem;
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
        padding: 1rem 1.2rem;
        max-width: 72ch;
    }

        #fm-start .reading .reading-tabs h2 {
            margin: .2rem 0 .6rem;
        }

    /* Tabs */
    #fm-start .reading .tablist {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin: .2rem 0 .8rem;
    }

    #fm-start .reading [role="tab"] {
        border: 2px solid #1B5E20;
        background: #fff;
        color: #1B5E20;
        padding: .5rem .75rem;
        border-radius: .4rem;
        font-weight: 700;
        cursor: pointer;
    }

        #fm-start .reading [role="tab"][aria-selected="true"] {
            background: #1B5E20;
            color: #fff;
        }

        #fm-start .reading [role="tab"]:focus-visible {
            outline: 3px solid #1B5E20;
            outline-offset: 3px;
        }

    /* Panels & list */
    #fm-start .reading [role="tabpanel"] {
        margin: 0;
    }

        #fm-start .reading [role="tabpanel"][hidden] {
            display: none;
        }

    #fm-start .reading .reading-list {
        padding-left: 1.2rem;
        margin: 0;
    }

        #fm-start .reading .reading-list li {
            font-size: 1.06em;
            line-height: 1.85;
            margin-bottom: .55rem;
        }

        /* Start-Here link treatment (and stop uppercase anywhere on these links) */
        #fm-start .reading .reading-list a {
            color: #1B5E20;
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: .18em;
            text-transform: none;
        }

            #fm-start .reading .reading-list a:hover {
                text-decoration-thickness: 3px;
                text-transform: none;
            }

            #fm-start .reading .reading-list a:focus-visible {
                outline: 3px solid #1B5E20;
                outline-offset: 3px;
            }

            #fm-start .reading .reading-list a:active,
            #fm-start .reading .reading-list a:visited {
                text-transform: none;
            }

/* =========================================
   ABOUT & FOOTER (compact 80% cards; background shows around)
   ========================================= */
#fm-start .about, #fm-start footer {
    background: transparent !important;
    border: 0 !important;
}

    #fm-start .about .wrap, #fm-start footer.wrap {
        text-align: center;
    }

#fm-start .about-card, #fm-start .footer-card {
    display: inline-block;
    width: min(80%, 80ch);
    text-align: left;
    background: #FFFFFF;
    background-clip: padding-box;
    border: 2px solid rgba(0,0,0,.12);
    border-radius: .6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 1rem 1.2rem;
    margin-left: auto;
    margin-right: auto;
}

#fm-start .about-card {
    margin-bottom: .9rem;
}

#fm-start .footer-card {
    margin-top: .9rem;
    margin-bottom: 1.4rem;
}

#fm-start .about-card h2 {
    margin: .2rem 0 .6rem;
}

#fm-start .footer-card p {
    margin: 0;
}

@media (max-width:480px) {
    #fm-start .about-card, #fm-start .footer-card {
        width: 92%;
    }
}

/* =========================================
   HIGH-CONTRAST MODE
   ========================================= */
#fm-start.hc {
    color: #000;
    background: #fff;
}

    #fm-start.hc::before {
        background: none !important;
    }

    #fm-start.hc .hero {
        background: #fff !important;
        color: #111 !important;
    }

    #fm-start.hc h1 {
        color: #111 !important;
        text-shadow: none !important;
        font-size: clamp(2.125rem,4.2vw,3rem) !important;
    }

    #fm-start.hc .hero .brand-line {
        color: #111 !important;
        opacity: 1 !important;
    }

    #fm-start.hc .reading .reading-tabs {
        background: #fff;
        border-color: rgba(0,0,0,.18);
    }

    #fm-start.hc .reading [role="tab"] {
        border-color: #1B5E20;
        color: #1B5E20;
        background: #fff;
    }

        #fm-start.hc .reading [role="tab"][aria-selected="true"] {
            background: #1B5E20;
            color: #fff;
        }

    #fm-start.hc .reading .reading-list a,
    #fm-start.hc .about a {
        color: #1B5E20 !important;
    }

    #fm-start.hc .actions .btn--ghost {
        color: #1B5E20 !important;
        border-color: #1B5E20 !important;
        background: transparent !important;
    }

        #fm-start.hc .actions .btn--ghost:hover {
            filter: none !important;
            text-decoration: underline !important;
        }

        #fm-start.hc .actions .btn--ghost:focus-visible {
            outline: 3px solid #1B5E20 !important;
            outline-offset: 3px !important;
        }
