/* ==========================================================================
   Public site styles.

   Layered on top of the Bootstrap 4 already shipped in public/css, so this file
   only defines what Bootstrap does not: the palette, the hero, cards, the
   footer and the sign-in panel. Everything here is namespaced under .fe- or a
   page wrapper so nothing can leak into the admin theme, which loads its own
   Bootstrap build on other pages.
   ========================================================================== */

:root {
    --fe-green: #2e7d4f;
    --fe-green-dark: #21603b;
    --fe-green-light: #e8f3ec;
    --fe-ink: #1d2b23;
    --fe-body: #4a5a51;
    --fe-line: #dfe6e1;
    --fe-bg-soft: #f6f9f7;
    --fe-radius: 10px;
    --fe-shadow: 0 2px 14px rgba(29, 43, 35, .07);
}

body.fe-body {
    color: var(--fe-body);
    background: #fff;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    /* Sticky footer: the page fills the viewport even when the content is short. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.fe-main { flex: 1 0 auto; }

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

.fe-body a { color: var(--fe-green); }
.fe-body a:hover { color: var(--fe-green-dark); }

/* ── Header ───────────────────────────────────────────────────────────── */

.fe-header {
    background: #fff;
    border-bottom: 1px solid var(--fe-line);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.fe-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--fe-ink) !important;
    text-decoration: none !important;
}

.fe-brand img { height: 38px; width: auto; margin-right: 10px; }

.fe-nav .nav-link {
    color: var(--fe-body);
    font-weight: 500;
    padding: .5rem .9rem;
}

.fe-nav .nav-link:hover { color: var(--fe-green); }

.fe-nav .nav-link.active {
    color: var(--fe-green);
    /* Marks the current page for anyone not relying on colour alone. */
    box-shadow: inset 0 -2px 0 var(--fe-green);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.fe-btn {
    display: inline-block;
    padding: .6rem 1.5rem;
    border-radius: var(--fe-radius);
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.fe-btn-primary { background: var(--fe-green); color: #fff !important; }
.fe-btn-primary:hover { background: var(--fe-green-dark); color: #fff !important; }

.fe-btn-outline { border-color: var(--fe-green); color: var(--fe-green) !important; background: transparent; }
.fe-btn-outline:hover { background: var(--fe-green); color: #fff !important; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.fe-hero {
    background: linear-gradient(160deg, var(--fe-green-light) 0%, #fff 70%);
    padding: 5rem 0 4.5rem;
    border-bottom: 1px solid var(--fe-line);
}

.fe-hero h1 { font-size: 2.7rem; margin-bottom: 1rem; }
.fe-hero p.lead { font-size: 1.15rem; color: var(--fe-body); max-width: 34rem; }

.fe-eyebrow {
    display: inline-block;
    background: var(--fe-green);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* ── Sections and cards ───────────────────────────────────────────────── */

.fe-section { padding: 4rem 0; }
.fe-section-soft { background: var(--fe-bg-soft); }

.fe-section-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.fe-section-head h2 { font-size: 2rem; margin-bottom: .75rem; }

.fe-card {
    background: #fff;
    border: 1px solid var(--fe-line);
    border-radius: var(--fe-radius);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--fe-shadow);
}

.fe-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.fe-card p { margin-bottom: 0; font-size: .95rem; }

.fe-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--fe-radius);
    background: var(--fe-green-light);
    color: var(--fe-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

/* ── Prose (about, privacy) ───────────────────────────────────────────── */

.fe-prose { max-width: 48rem; }
.fe-prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.fe-prose h2:first-child { margin-top: 0; }
.fe-prose ul { padding-left: 1.15rem; }
.fe-prose li { margin-bottom: .4rem; }

.fe-page-head {
    background: var(--fe-bg-soft);
    border-bottom: 1px solid var(--fe-line);
    padding: 3rem 0 2.5rem;
}

.fe-page-head h1 { font-size: 2.1rem; margin-bottom: .4rem; }
.fe-page-head p { margin-bottom: 0; }

/* ── Forms ────────────────────────────────────────────────────────────── */

.fe-form .form-control {
    border: 1px solid var(--fe-line);
    border-radius: var(--fe-radius);
    padding: .65rem .9rem;
    height: auto;
    color: var(--fe-ink);
}

.fe-form .form-control:focus {
    border-color: var(--fe-green);
    box-shadow: 0 0 0 .2rem rgba(46, 125, 79, .15);
}

.fe-form label { font-weight: 600; color: var(--fe-ink); font-size: .9rem; margin-bottom: .35rem; }

/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs but happily fill anything still in the layout. aria-hidden and
   tabindex=-1 on the field itself keep it away from assistive tech. */
.fe-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Sign-in ──────────────────────────────────────────────────────────── */

.fe-auth { padding: 3.5rem 0; background: var(--fe-bg-soft); }

.fe-auth-card {
    max-width: 26rem;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--fe-line);
    border-radius: var(--fe-radius);
    box-shadow: var(--fe-shadow);
    padding: 2.25rem;
}

.fe-auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; text-align: center; }
.fe-auth-card .fe-auth-sub { text-align: center; font-size: .92rem; margin-bottom: 1.75rem; }

/* ── Contact details ──────────────────────────────────────────────────── */

.fe-contact-item { display: flex; align-items: flex-start; margin-bottom: 1.35rem; }
.fe-contact-item .fe-icon { flex: 0 0 44px; margin-bottom: 0; margin-right: .9rem; }
.fe-contact-item strong { display: block; color: var(--fe-ink); font-size: .9rem; }
.fe-contact-item a, .fe-contact-item span { font-size: .95rem; word-break: break-word; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.fe-footer {
    flex-shrink: 0;
    background: var(--fe-ink);
    color: #b9c7bf;
    padding: 3rem 0 1.5rem;
    font-size: .92rem;
}

.fe-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.fe-footer a { color: #b9c7bf; }
.fe-footer a:hover { color: #fff; text-decoration: none; }
.fe-footer ul { list-style: none; padding: 0; margin: 0; }
.fe-footer li { margin-bottom: .5rem; }


.fe-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    font-size: .85rem;
}

/* ── Small screens ────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .fe-hero { padding: 3rem 0; text-align: center; }
    .fe-hero h1 { font-size: 2rem; }
    .fe-hero p.lead { margin-left: auto; margin-right: auto; }
    .fe-section { padding: 2.75rem 0; }
    .fe-footer { text-align: center; }
}
