/* ============================================================
   SecularM Sacco — public website
   Self-contained stylesheet. Deliberately independent of the
   portal's Tailwind build, which cannot be recompiled on this
   host, so this file owns every style the public pages use.
   ============================================================ */

:root {
    --green-950: #042316;
    --green-900: #06301f;
    --green-800: #084c31;
    --green-700: #0b5a3a;
    --green-600: #0f7048;
    --green-500: #158a59;
    --green-100: #dcefe5;
    --green-50:  #f0f8f4;

    --gold-600: #a07d17;
    --gold-500: #c9a227;
    --gold-400: #e0bd4d;
    --gold-100: #f8eece;

    --ink:      #10201a;
    --body:     #4b5b53;
    --muted:    #7b8a83;
    --line:     #e3e8e5;
    --sand:     #f7f6f1;
    --paper:    #ffffff;

    --radius:   14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(6, 48, 31, .06), 0 1px 3px rgba(6, 48, 31, .04);
    --shadow:    0 4px 6px -1px rgba(6, 48, 31, .07), 0 2px 4px -2px rgba(6, 48, 31, .05);
    --shadow-lg: 0 18px 40px -12px rgba(6, 48, 31, .22);

    --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -.021em;
    font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }

/* ── Layout ───────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.section      { padding: 72px 0; }
.section--tight { padding: 52px 0; }
.section--sand  { background: var(--sand); }
.section--green {
    background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
    color: #cfe3d8;
}
.section--green h2, .section--green h3 { color: #fff; }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: .7rem;
}
.section--green .eyebrow { color: var(--gold-400); }

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

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 11px; flex: none; }
/* Block so the name sits above the descriptor rather than beside it — inline
   spans made the header wider than a phone viewport and pushed the menu
   button off-screen. */
.brand__name { display: block; font-weight: 800; color: var(--ink); font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.2; }
.brand__sub  { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
    padding: 9px 14px; border-radius: 9px;
    color: var(--body); font-weight: 550; font-size: .94rem;
}
.nav a:not(.btn):hover { background: var(--green-50); color: var(--green-800); }
.nav a.is-active:not(.btn) { color: var(--green-800); background: var(--green-50); }

.nav-toggle { display: none; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px; border-radius: 11px;
    font-weight: 650; font-size: .95rem; line-height: 1;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .16s ease, border-color .16s ease, color .16s ease;
    text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); color: #fff; }

.btn--gold { background: var(--gold-500); color: #2b2205; }
.btn--gold:hover { background: var(--gold-400); color: #2b2205; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-800); }

.btn--on-dark { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--on-dark:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

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

.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(155deg, var(--green-950) 0%, var(--green-800) 58%, var(--green-700) 100%);
    color: #cfe3d8;
    padding: 84px 0 92px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(760px 420px at 88% -12%, rgba(201,162,39,.20), transparent 62%),
        radial-gradient(560px 400px at 4% 108%, rgba(21,138,89,.34), transparent 60%);
    pointer-events: none;
}
.hero .wrap { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__lead { font-size: 1.16rem; color: #b9d3c6; max-width: 33em; margin-bottom: 1.9rem; }
.hero .btn-row { margin-bottom: 1.6rem; }

.hero__note { font-size: .87rem; color: #8fb3a2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hero__note svg { width: 15px; height: 15px; flex: none; }

/* Hero side card */
.hero-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; }
.hero-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.hero-steps li {
    counter-increment: s;
    display: grid; grid-template-columns: 30px 1fr; gap: 13px;
    padding: 11px 0; font-size: .93rem; color: #cfe3d8;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-steps li:last-child { border-bottom: 0; }
.hero-steps li::before {
    content: counter(s);
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(201,162,39,.2); color: var(--gold-400);
    display: grid; place-items: center; font-weight: 700; font-size: .82rem;
}
.hero-steps strong { color: #fff; font-weight: 620; display: block; }

/* ── Cards ────────────────────────────────────────────────── */

.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card--hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--green-100); }
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
    width: 48px; height: 48px; border-radius: 13px;
    display: grid; place-items: center; margin-bottom: 16px;
    background: var(--green-50); color: var(--green-700);
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--gold { background: var(--gold-100); color: var(--gold-600); }

/* Loan type cards */
.loan-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.loan-card__top { padding: 28px 28px 22px; }
.loan-card__top--normal { background: linear-gradient(150deg, var(--green-800), var(--green-600)); color: #cfe3d8; }
.loan-card__top--emergency { background: linear-gradient(150deg, #7a4d09, var(--gold-600)); color: #f6ead0; }
.loan-card__top h3 { color: #fff; font-size: 1.4rem; margin-bottom: .3rem; }
.loan-card__top p { margin: 0; font-size: .94rem; }
.loan-card__body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.loan-card__body .btn { margin-top: auto; }

.pill {
    display: inline-block; padding: 4px 11px; border-radius: 999px;
    font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(255,255,255,.18); color: #fff; margin-bottom: .8rem;
}

/* Check / cross lists */
.ticks { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 7px 0; font-size: .95rem; }
.ticks li svg { width: 18px; height: 18px; margin-top: 3px; }
.ticks--yes li svg { color: var(--green-600); }
.ticks--no  li svg { color: #c0796b; }

/* ── Stat strip ───────────────────────────────────────────── */

.stats > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 26px 24px; text-align: center; }
.stat__num { font-size: 2.1rem; font-weight: 800; color: var(--green-700); letter-spacing: -.03em; line-height: 1.1; }
.stat__label { font-size: .87rem; color: var(--muted); margin-top: 4px; }

/* ── Steps ────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 20px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: n; }
.steps li::before {
    content: counter(n);
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--green-700); color: #fff;
    font-weight: 700; margin-bottom: 13px;
}
.steps h3 { font-size: 1rem; margin-bottom: .3rem; }
.steps p { font-size: .93rem; margin: 0; }
.section--green .steps li::before { background: var(--gold-500); color: #2b2205; }
.section--green .steps p { color: #b9d3c6; }

/* ── Table ────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
table.tbl th { background: var(--sand); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td strong { color: var(--ink); }

/* ── People ───────────────────────────────────────────────── */

.person { text-align: center; }
.person__photo {
    width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 14px;
    background: var(--green-50); border: 2px solid var(--green-100);
    display: grid; place-items: center; overflow: hidden;
    color: var(--green-600);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo svg { width: 42px; height: 42px; opacity: .5; }
.person__name { font-weight: 700; color: var(--ink); }
.person__role { font-size: .88rem; color: var(--muted); }

.placeholder-note {
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    background: var(--sand);
    color: var(--muted);
}
.placeholder-note svg { width: 34px; height: 34px; color: var(--green-600); opacity: .55; margin-bottom: 10px; }
.placeholder-note p { margin: 0; font-size: .94rem; }

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

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .89rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #b4503c; }
.field input, .field textarea, .field select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--line); border-radius: 11px;
    font: inherit; font-size: .95rem; color: var(--ink); background: var(--paper);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(15,112,72,.13);
}
.field textarea { resize: vertical; min-height: 118px; }
.field__hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .93rem; border: 1px solid; }
.alert--ok  { background: var(--green-50); border-color: var(--green-100); color: #12603f; }
.alert--err { background: #fdf2f0; border-color: #f3d9d3; color: #8f3a26; }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ── Contact list ─────────────────────────────────────────── */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.contact-list .ic svg { width: 19px; height: 19px; }
.contact-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-list dd { margin: 2px 0 0; color: var(--ink); font-weight: 550; }

/* ── CTA band ─────────────────────────────────────────────── */

.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 46em; margin-inline: auto; font-size: 1.05rem; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

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

.site-footer { background: var(--green-950); color: #8fb3a2; padding: 56px 0 26px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a:not(.btn) { color: #b9d3c6; }
.site-footer a:not(.btn):hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 11px; }
.footer__brand span { color: #fff; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; overflow-wrap: anywhere; }
.footer__bottom {
    margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem;
}

/* ── Page header (inner pages) ────────────────────────────── */

.page-head {
    background: linear-gradient(155deg, var(--green-900), var(--green-700));
    color: #b9d3c6; padding: 60px 0 62px;
}
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .3em; }
.page-head p { font-size: 1.06rem; max-width: 44em; margin: 0; }

/* ── Prose / FAQ ──────────────────────────────────────────── */

.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
    padding: 17px 22px; cursor: pointer; font-weight: 620; color: var(--ink);
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--green-600); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { background: var(--green-50); }
.faq .faq__a { padding: 0 22px 18px; font-size: .95rem; }
.faq .faq__a p:last-child { margin-bottom: 0; }

.notice {
    border-left: 4px solid var(--gold-500);
    background: var(--gold-100);
    padding: 16px 20px; border-radius: 0 12px 12px 0;
    color: #5d4b12; font-size: .95rem;
}
.notice strong { color: #402f00; }

.lede { font-size: 1.1rem; color: var(--body); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; gap: 38px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .steps--4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
    .section { padding: 54px 0; }
    .hero { padding: 62px 0 68px; }

    /* Collapsible nav, no JS required */
    .brand__sub { display: none; }
    .brand img { width: 38px; height: 38px; }
    .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; }
    .nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }
    .nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 12px 22px 18px; box-shadow: var(--shadow);
        display: none;
    }
    .site-header.is-open .nav { display: flex; }
    .nav a { padding: 12px 14px; }
    .nav .btn { margin-top: 8px; }

    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .steps--4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .site-header, .site-footer, .btn { display: none; }
    body { color: #000; }
}

/* ── Member update request form ───────────────────────────── */
.form-narrow { max-width: 780px; margin-inline: auto; }

.fset { border: 0; padding: 0; margin: 0 0 30px; }
.fset > legend { font-size: 1.02rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 4px; }
.fset__hint { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field-grid .field--wide { grid-column: 1 / -1; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.choice {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
    cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--green-100); background: var(--green-50); }
.choice input { margin-top: 3px; flex: none; }
.choice strong { display: block; font-size: .94rem; color: var(--ink); }
.choice small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; cursor: pointer; }
.check input { flex: none; }

.declaration { display: flex; gap: 11px; align-items: flex-start; font-size: .89rem; color: var(--body); margin: 4px 0 22px; }
.declaration input { margin-top: 3px; flex: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-foot { font-size: .82rem; color: var(--muted); margin: 16px 0 0; }

@media (max-width: 620px) {
    .field-grid, .choice-grid, .check-grid { grid-template-columns: 1fr; }
}

/* ── Legal notices ────────────────────────── */
.legal-doc { color: var(--body); }
.legal-doc h2 { font-size: 1.18rem; color: var(--green-700); margin: 2rem 0 .5rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin: .7rem 0; line-height: 1.75; }
.legal-doc ul { margin: .7rem 0; padding-left: 1.3rem; }
.legal-doc li { margin: .35rem 0; line-height: 1.65; }
.legal-doc strong { color: var(--ink); }
