/* =====================================================================
   MWWA – Mbube Workers Welfare Association
   style.css  –  the look of the whole website
   ---------------------------------------------------------------------
   Sections:
   1. Colour + font settings (CSS variables, light and dark mode)
   2. Reset and base styles
   3. Layout helpers (container, grid, sections)
   4. Buttons, badges, cards
   5. Header, navigation, mobile menu
   6. Hero (home banner), page banners
   7. Page parts: highlights, timeline, leaders, pricing, forms, FAQ...
   8. Calendar, gallery, lightbox, directory
   9. Footer, floating buttons
   10. Animations
   11. Responsive rules (tablet and phone)
   12. Print rules
   ===================================================================== */

/* ---------- 1. COLOURS AND FONTS ------------------------------------ */
/* Change a colour here and it changes everywhere on the site. */
:root {
  --green: #2f7d32;
  --green-dark: #1f5a23;
  --green-soft: #e3f0e1;
  --red: #b01e22;
  --red-dark: #861519;
  --red-soft: #f8e1e1;
  --cream: #f3e9c6;
  --cream-light: #fbf6e4;
  --ink: #1a1a1a;

  --bg: #fbf6e4;          /* page background */
  --bg-alt: #f3e9c6;      /* alternate section background */
  --card: #ffffff;        /* card background */
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --line: #1a1a1a;        /* outline colour (comic style) */
  --shadow: 5px 5px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);

  --font-head: "Anton", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-sub: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --header-h: 72px;
}

/* Dark mode colours. Applied when the visitor picks dark mode,
   or automatically if their phone/computer is set to dark. */
:root[data-theme="dark"] {
  --bg: #111613;
  --bg-alt: #18211b;
  --card: #1d2820;
  --text: #f1ecd8;
  --text-soft: #b9bfae;
  --line: #f3e9c6;
  --green-soft: #1d3a20;
  --red-soft: #3b1618;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111613;
    --bg-alt: #18211b;
    --card: #1d2820;
    --text: #f1ecd8;
    --text-soft: #b9bfae;
    --line: #f3e9c6;
    --green-soft: #1d3a20;
    --red-soft: #3b1618;
    --shadow: 5px 5px 0 #000;
    --shadow-sm: 3px 3px 0 #000;
  }
}

/* ---------- 2. RESET AND BASE --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  transition: background .3s, color .3s;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:root[data-theme="dark"] a { color: #8fd193; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .02em; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; font-family: var(--font-sub); font-weight: 700; }
h4 { font-size: 1.05rem; font-family: var(--font-sub); font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. LAYOUT HELPERS --------------------------------------- */
.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
/* Halftone dot texture, echoing the logo */
.dots { background-image: radial-gradient(rgba(0,0,0,.12) 1.2px, transparent 1.4px); background-size: 9px 9px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--text-soft); }
.eyebrow { display: inline-block; font-family: var(--font-sub); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; background: var(--red); color: #fff; padding: .2rem .8rem; border: 2px solid var(--line); box-shadow: var(--shadow-sm); transform: rotate(-2deg); margin-bottom: 1rem; }
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- 4. BUTTONS, BADGES, CARDS ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sub); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .8rem 1.5rem; border: 3px solid var(--line); border-radius: 10px;
  background: var(--red); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); color: #fff; background: var(--red-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-block { width: 100%; }

.card {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--line); }
.card .icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem; background: var(--green); color: #fff; border: 3px solid var(--line); border-radius: 50%; margin-bottom: 1rem; }
.card .icon.red { background: var(--red); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.badge { display: inline-block; font-family: var(--font-sub); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .7rem; border: 2px solid var(--line); border-radius: 99px; background: var(--green-soft); color: var(--text); }
.badge.red { background: var(--red-soft); }
.notice { border: 3px dashed var(--red); background: var(--red-soft); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; }
.notice.green { border-color: var(--green); background: var(--green-soft); }

/* ---------- 5. HEADER AND NAVIGATION -------------------------------- */
.topbar { background: var(--ink); color: #f3e9c6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; flex-wrap: wrap; }
.topbar a { color: #f3e9c6; text-decoration: none; margin-right: 1rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 4px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { min-width: 0; display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand img { width: 52px; height: 52px; border: 3px solid var(--line); border-radius: 12px; object-fit: cover; box-shadow: 2px 2px 0 var(--line); }
.brand-text { font-family: var(--font-head); font-size: 1.5rem; line-height: 1; letter-spacing: .04em; }
.brand-text small { display: block; white-space: nowrap; font-family: var(--font-sub); font-size: .62rem; font-weight: 600; letter-spacing: .12em; color: var(--text-soft); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a.nav-link { white-space: nowrap; font-family: var(--font-sub); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .84rem; text-decoration: none; color: var(--text); padding: .45rem .5rem; border-radius: 8px; border: 2px solid transparent; }
.nav a.nav-link:hover { border-color: var(--line); background: var(--cream); color: var(--ink); }
.nav a.nav-link.active { background: var(--green); color: #fff; border-color: var(--line); }
.nav-more { position: relative; }
.nav-more > button { white-space: nowrap; font: inherit; font-family: var(--font-sub); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .84rem; background: none; border: 2px solid transparent; color: var(--text); padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.nav-more > button:hover { border-color: var(--line); background: var(--cream); color: var(--ink); }
.dropdown { display: none; position: absolute; right: 0; top: 100%; min-width: 210px; background: var(--card); border: 3px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; z-index: 50; }
.nav-more:hover .dropdown, .nav-more:focus-within .dropdown, .nav-more.open .dropdown { display: block; }
.dropdown a { display: block; padding: .5rem .8rem; text-decoration: none; color: var(--text); font-weight: 500; border-radius: 8px; }
.dropdown a:hover, .dropdown a.active { background: var(--green-soft); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.25rem; background: var(--card); color: var(--text); border: 3px solid var(--line); border-radius: 10px; cursor: pointer; box-shadow: 2px 2px 0 var(--line); }
.icon-btn:hover { background: var(--cream); color: var(--ink); }
.menu-toggle { display: none; }
.header-cta { padding: .55rem 1rem; font-size: .9rem; }
@media (max-width: 1360px) { .header-cta { display: none; } }
@media (max-width: 1400px) { .brand-text small { display: none; } }

/* Announcement ticker under the header */
.ticker { background: var(--red); color: #fff; border-bottom: 3px solid var(--line); overflow: hidden; font-family: var(--font-sub); letter-spacing: .05em; }
.ticker-inner { display: flex; align-items: center; gap: 1rem; padding: .4rem 0; }
.ticker-label { background: var(--ink); color: var(--cream); padding: .1rem .7rem; font-weight: 700; text-transform: uppercase; font-size: .8rem; white-space: nowrap; border-radius: 4px; }
.ticker-track { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker-text { display: inline-block; padding-left: 100%; animation: scroll-left 28s linear infinite; }
.ticker-track:hover .ticker-text { animation-play-state: paused; }

/* ---------- 6. HERO AND PAGE BANNERS -------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; border-bottom: 5px solid var(--line);
  background: linear-gradient(115deg, var(--green) 0 56%, var(--red) 56% 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.22) 1.3px, transparent 1.5px); background-size: 9px 9px; }
.hero::after { /* comic burst rays */
  content: ""; position: absolute; inset: 0; opacity: .18;
  background: repeating-conic-gradient(from 0deg at 50% 55%, #000 0deg 4deg, transparent 4deg 18deg);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero h1 { color: #fff; text-shadow: 4px 4px 0 var(--ink); margin-bottom: .3em; }
.hero h1 span { color: var(--cream); }
.hero p.lead { font-size: 1.15rem; max-width: 560px; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.motto-tag { display: inline-block; margin-bottom: 1.2rem; font-family: var(--font-sub); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--cream); color: var(--ink); padding: .25rem 1rem; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.hero-art { display: grid; place-items: center; }
.burst {
  width: min(380px, 80vw); aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  background: var(--cream); color: var(--ink); padding: 2.2rem;
  clip-path: polygon(50% 0%, 59% 9%, 71% 4%, 76% 16%, 89% 15%, 90% 28%, 100% 34%, 94% 46%, 100% 58%, 90% 65%, 90% 78%, 77% 80%, 71% 93%, 59% 89%, 50% 100%, 41% 89%, 29% 93%, 23% 80%, 10% 78%, 10% 65%, 0% 58%, 6% 46%, 0% 34%, 10% 28%, 11% 15%, 24% 16%, 29% 4%, 41% 9%);
  filter: drop-shadow(0 0 0 var(--ink));
}
.burst-wrap { filter: drop-shadow(6px 6px 0 var(--ink)); animation: float 5s ease-in-out infinite; }
.burst strong { font-family: var(--font-head); font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.05; text-transform: uppercase; display: block; }
.burst span { font-family: var(--font-sub); font-weight: 600; letter-spacing: .1em; font-size: .85rem; display: block; margin-top: .6rem; }

.page-banner { position: relative; color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 5px solid var(--line); background: linear-gradient(115deg, var(--green) 0 62%, var(--red) 62% 100%); overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.2) 1.3px, transparent 1.5px); background-size: 9px 9px; }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; text-shadow: 3px 3px 0 var(--ink); margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-banner p { margin: .6rem auto 0; max-width: 620px; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.crumbs { font-size: .85rem; margin-bottom: .6rem; opacity: .95; }
.crumbs a { color: #fff; }

/* ---------- 7. PAGE PARTS ------------------------------------------- */
/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.2rem; position: relative; z-index: 5; }
.stat { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 1.2rem .6rem; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--red); line-height: 1.1; font-weight: 400; }
.stat span { font-size: .85rem; color: var(--text-soft); font-weight: 500; }

/* Two column text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-img { border: 4px solid var(--line); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--green); overflow: hidden; background: var(--cream); }
.split-img img { width: 100%; }
.quote-box { border-left: 8px solid var(--red); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.5rem; font-size: 1.1rem; font-style: italic; border-top: 3px solid var(--line); border-right: 3px solid var(--line); border-bottom: 3px solid var(--line); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding: .35rem 0 .35rem 2rem; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: .3rem; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-size: .8rem; color: #fff; background: var(--green); border: 2px solid var(--line); border-radius: 50%; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.2rem 1rem 4.2rem; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.3rem; color: #fff; background: var(--red); border: 3px solid var(--line); border-radius: 50%; }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0 0 0 2rem; list-style: none; border-left: 5px solid var(--green); }
.timeline li { position: relative; margin-bottom: 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: -2.75rem; top: .35rem; width: 1.3rem; height: 1.3rem; background: var(--red); border: 3px solid var(--line); border-radius: 50%; }
.timeline time { font-family: var(--font-sub); font-weight: 700; color: var(--red); letter-spacing: .06em; }

/* Leaders */
.leader { text-align: center; padding: 1.4rem 1rem; }
.leader .avatar { width: 120px; height: 120px; margin: 0 auto 1rem; border: 4px solid var(--line); border-radius: 50%; background: var(--cream); overflow: hidden; display: grid; place-items: center; font-size: 3rem; color: var(--green-dark); box-shadow: 4px 4px 0 var(--red); }
.leader .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.leader h3 { margin: 0; font-size: 1.15rem; }
.leader .role { font-family: var(--font-sub); font-weight: 600; letter-spacing: .06em; color: var(--red); text-transform: uppercase; font-size: .85rem; }
.leader p { font-size: .88rem; color: var(--text-soft); margin: .6rem 0 0; }

/* Pricing / fee boxes */
.fee { text-align: center; }
.fee .amount { font-family: var(--font-head); font-size: 2.6rem; color: var(--red); line-height: 1.1; }
.fee .amount small { font-family: var(--font-body); font-size: .9rem; color: var(--text-soft); }

/* Tables */
.table-wrap { overflow-x: auto; border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 2px solid var(--line); }
th { background: var(--green); color: #fff; font-family: var(--font-sub); letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--green-soft); }

/* Forms */
.form { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2.2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--font-sub); font-weight: 600; letter-spacing: .04em; font-size: .95rem; }
label .req { color: var(--red); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 3px solid var(--line); border-radius: 10px; padding: .7rem .9rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; }
input[type="file"] { padding: .55rem; background: var(--card); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--green); transform: scale(1.2); }
textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .8rem; color: var(--text-soft); }
.error-msg { color: var(--red); font-size: .82rem; font-weight: 600; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: var(--red-soft); }
.check-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.photo-preview { width: 110px; height: 130px; border: 3px dashed var(--line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--bg-alt); font-size: .75rem; text-align: center; color: var(--text-soft); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border: 3px solid var(--line); border-radius: 10px; display: none; font-weight: 500; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-soft); }
.form-status.bad { background: var(--red-soft); }

/* FAQ accordion (uses the built-in <details> tag) */
.faq details { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1rem; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3.2rem 1rem 1.3rem; font-family: var(--font-sub); font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; background: var(--red); color: #fff; border: 2px solid var(--line); border-radius: 50%; }
.faq details[open] summary::after { content: "–"; background: var(--green); }
.faq details[open] summary { border-bottom: 2px solid var(--line); background: var(--green-soft); }
.faq .answer { padding: 1rem 1.3rem; }

/* News and announcements */
.news-card .meta { font-size: .8rem; color: var(--text-soft); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.announce { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 3px solid var(--line); border-left: 10px solid var(--red); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.announce.info { border-left-color: var(--green); }
.announce .a-date { font-family: var(--font-head); text-align: center; line-height: 1; min-width: 56px; }
.announce .a-date b { display: block; font-size: 1.9rem; font-weight: 400; color: var(--red); }
.announce .a-date span { font-size: .8rem; font-family: var(--font-sub); letter-spacing: .1em; }
.announce h4 { margin: 0 0 .2rem; }
.announce p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.event-item { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 2px dashed var(--line); }
.event-item:last-child { border-bottom: none; }
.event-date { flex: 0 0 62px; text-align: center; background: var(--green); color: #fff; border: 3px solid var(--line); border-radius: 10px; padding: .3rem 0; font-family: var(--font-head); line-height: 1; box-shadow: 2px 2px 0 var(--line); }
.event-date b { display: block; font-size: 1.6rem; font-weight: 400; }
.event-date span { font-size: .75rem; letter-spacing: .1em; font-family: var(--font-sub); }
.event-item h4 { margin: 0; }
.event-item p { margin: 0; font-size: .85rem; color: var(--text-soft); }

/* ---------- 8. CALENDAR, GALLERY, LIGHTBOX, DIRECTORY --------------- */
.calendar { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: .5rem; }
.cal-head h3 { margin: 0; font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-family: var(--font-sub); font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--red); padding: .3rem 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; position: relative; border: 2px solid transparent; border-radius: 8px; font-weight: 500; font-size: .92rem; background: var(--bg); }
.cal-day.empty { background: none; }
.cal-day.today { border-color: var(--line); background: var(--cream); color: var(--ink); font-weight: 700; }
.cal-day.has-event { background: var(--green); color: #fff; cursor: pointer; font-weight: 700; border-color: var(--line); }
.cal-day.has-event:hover { background: var(--red); }
.cal-day.selected { outline: 3px solid var(--red); outline-offset: 1px; }
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; margin-top: .9rem; color: var(--text-soft); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { font-family: var(--font-sub); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; background: var(--card); color: var(--text); border: 3px solid var(--line); border-radius: 99px; padding: .4rem 1.1rem; cursor: pointer; box-shadow: 2px 2px 0 var(--line); }
.filter-btn.active, .filter-btn:hover { background: var(--green); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.g-item { position: relative; border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: var(--cream); cursor: pointer; padding: 0; display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.07); }
.g-placeholder { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 1rem; background: linear-gradient(135deg, var(--green) 0 50%, var(--red) 50% 100%); color: #fff; font-family: var(--font-head); font-size: 1.2rem; text-shadow: 2px 2px 0 var(--ink); letter-spacing: .04em; }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.72); color: #fff; padding: .45rem .8rem; font-size: .85rem; }
.g-item.hide { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 500; padding: 1rem; flex-direction: column; gap: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; border: 4px solid var(--cream); border-radius: 10px; }
.lightbox .lb-ph { width: min(640px, 90vw); aspect-ratio: 4/3; }
.lightbox p { color: #fff; margin: 0; text-align: center; }
.lb-close { position: absolute; top: 1rem; right: 1rem; }

.dir-tools { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dir-tools input, .dir-tools select { flex: 1 1 220px; }
.member-card { display: flex; gap: 1rem; align-items: center; }
.member-card .avatar { flex: 0 0 64px; height: 64px; width: 64px; border-radius: 50%; border: 3px solid var(--line); background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.4rem; }
.member-card h3 { margin: 0; font-size: 1.05rem; }
.member-card p { margin: 0; font-size: .85rem; color: var(--text-soft); }
.lock-box { max-width: 460px; margin: 0 auto; text-align: center; }

/* Bank / payment box */
.bank-box { background: var(--green); color: #fff; border: 4px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
.bank-box h3 { color: var(--cream); }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 2px dashed rgba(255,255,255,.4); }
.bank-row:last-of-type { border-bottom: none; }
.bank-row span { opacity: .9; font-size: .9rem; }
.bank-row strong { font-family: var(--font-sub); font-size: 1.25rem; letter-spacing: .05em; }
.copy-btn { font: inherit; font-family: var(--font-sub); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: .2rem .6rem; cursor: pointer; }
.calc-out { font-family: var(--font-head); font-size: 2.2rem; color: var(--red); }

.download-item { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.download-item .file-icon { flex: 0 0 56px; height: 64px; display: grid; place-items: center; background: var(--red); color: #fff; border: 3px solid var(--line); border-radius: 8px; font-family: var(--font-head); font-size: 1rem; }
.download-item .grow { flex: 1 1 220px; }
.download-item h3 { margin: 0; font-size: 1.1rem; }
.download-item p { margin: 0; font-size: .85rem; color: var(--text-soft); }

.map-box { border: 4px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.map-box iframe { width: 100%; height: 380px; border: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 0; border-bottom: 2px dashed var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci { flex: 0 0 44px; height: 44px; display: grid; place-items: center; background: var(--green); color: #fff; border: 3px solid var(--line); border-radius: 50%; font-size: 1.1rem; }
.contact-list small { display: block; color: var(--text-soft); font-size: .8rem; }
.contact-list a { word-break: break-word; }

/* Call to action band */
.cta-band { background: linear-gradient(115deg, var(--red) 0 50%, var(--green) 50% 100%); color: #fff; text-align: center; border-top: 5px solid var(--line); border-bottom: 5px solid var(--line); padding: 3.2rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.2) 1.3px, transparent 1.5px); background-size: 9px 9px; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; text-shadow: 3px 3px 0 var(--ink); }

/* ---------- 9. FOOTER AND FLOATING BUTTONS -------------------------- */
.site-footer { background: var(--ink); color: #e9e3cc; padding-top: 3.2rem; border-top: 6px solid var(--green); }
.site-footer h4 { color: var(--cream); font-size: 1.1rem; letter-spacing: .1em; }
.site-footer a { color: #e9e3cc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid > *, .grid > *, .split > * { min-width: 0; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-brand img { width: 84px; border: 3px solid var(--cream); border-radius: 12px; margin-bottom: .8rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; background: var(--cream); color: var(--ink); border: 2px solid var(--cream); border-radius: 50%; font-weight: 700; font-family: var(--font-sub); }
.socials a:hover { background: var(--red); color: #fff; border-color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2.5rem; padding: 1.1rem 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

.float-actions { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: .7rem; z-index: 90; }
.fab { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--ink); color: #fff; font-size: 1.5rem; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; font-family: var(--font-body); }
.fab:hover { transform: translateY(-3px); color: #fff; }
.fab.wa { background: #1faa59; }
.fab.call { background: var(--red); }
.fab.top { background: var(--cream); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s; }
.fab.top.show { opacity: 1; pointer-events: auto; }

/* ---------- 10. ANIMATIONS ------------------------------------------ */
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 11. RESPONSIVE (tablet and phone) ----------------------- */
@media (max-width: 1200px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(330px, 86vw);
    flex-direction: column; align-items: stretch; gap: .3rem; padding: 5rem 1.2rem 2rem;
    background: var(--bg); border-left: 4px solid var(--line); box-shadow: -8px 0 0 rgba(0,0,0,.25);
    transform: translateX(105%); transition: transform .3s; overflow-y: auto; z-index: 200;
  }
  .nav.open { transform: none; }
  .nav a.nav-link, .nav-more > button { padding: .75rem .9rem; font-size: 1rem; width: 100%; text-align: left; }
  .nav-more .dropdown { display: block; position: static; border: none; box-shadow: none; padding: 0 0 0 .8rem; background: none; }
  .nav-more > button { display: none; }
  .nav-close { position: absolute; top: 1rem; right: 1rem; display: grid !important; }
  /* z-index must stay BELOW the header (100), because the menu lives inside the header */
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99; display: none; }
  .nav-overlay.show { display: block; }
}
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1201px) { .nav-close { display: none !important; } }
@media (max-width: 640px) {
  .brand-text small { display: none; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.25rem; }
  .brand img { width: 44px; height: 44px; }
  .topbar .hide-sm { display: none; }
  .stats { gap: .7rem; }
  .stat b { font-size: 1.7rem; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 100%; }
  .announce { flex-direction: column; gap: .5rem; }
  .cal-day { font-size: .82rem; }
  .fab { width: 50px; height: 50px; }
}

/* ---------- 12. PRINT ----------------------------------------------- */
@media print {
  .topbar, .site-header, .ticker, .float-actions, .site-footer, .cta-band, .nav-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .form { box-shadow: none; }
}

/* ---------- 13. FEATURED LEADERS (home page portrait frames) -------- */
.leaders-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; align-items: start; }
.portrait { text-align: center; margin: 0; }
/* The frame: thick outline, green+red offset shadow, cream mat around the photo */
.portrait-frame {
  position: relative; background: var(--cream); padding: 12px; border: 4px solid var(--line); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--green), 14px 14px 0 var(--line); transition: transform .25s;
}
.portrait:nth-child(2) .portrait-frame { box-shadow: 8px 8px 0 var(--red), 14px 14px 0 var(--line); }
.portrait:hover .portrait-frame { transform: translate(-4px, -4px) rotate(-.6deg); }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 3px solid var(--line); border-radius: 10px; background: #ddd; }
.portrait-frame::after { /* little corner star badge */
  content: "★"; position: absolute; top: -18px; right: -14px; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 3px solid var(--line); border-radius: 50%; font-size: 1.15rem; box-shadow: 2px 2px 0 var(--line);
}
.portrait figcaption { position: relative; margin: -26px 14px 0; padding: 2.1rem .8rem .9rem; }
.nameplate { position: relative; z-index: 2; background: var(--card); border: 3px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: .8rem .6rem; margin-top: 1.7rem; }
.nameplate h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.nameplate .creds { display: block; font-family: var(--font-sub); font-weight: 600; letter-spacing: .08em; font-size: .85rem; color: var(--text-soft); margin-top: .15rem; }
.nameplate .role { display: inline-block; margin-top: .55rem; background: var(--red); color: #fff; font-family: var(--font-sub); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; padding: .15rem .9rem; border: 2px solid var(--line); border-radius: 99px; }
.portrait:nth-child(2) .nameplate .role { background: var(--green); }
/* Photo shape. Add  shape-circle  or  shape-square  to the class of the leaders-feature block.
   With neither, the photos keep the tall portrait shape. */
.shape-square .portrait-frame img, .shape-circle .portrait-frame img { height: auto; aspect-ratio: 1 / 1; }
.shape-circle .portrait-frame { border-radius: 50%; padding: 14px; }
.shape-circle .portrait-frame img { border-radius: 50%; object-position: center 15%; }
.shape-circle .portrait-frame::after { top: 3%; right: 3%; }
@media (max-width: 900px) { .leaders-feature { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .leaders-feature { grid-template-columns: 1fr; gap: 3rem; max-width: 340px; margin-inline: auto; } }

/* ---------- 14. INSTALL-AS-APP BAR ----------------------------------- */
.install-bar { position: fixed; left: 12px; right: 84px; bottom: 16px; z-index: 95; display: flex; align-items: center; gap: .6rem; max-width: 460px;
  background: var(--card); color: var(--text); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: .6rem .7rem .6rem .9rem; font-size: .9rem; line-height: 1.3; }
.install-bar[hidden] { display: none; }
.install-msg { flex: 1; }
.install-go { background: var(--green); color: #fff; border: 2px solid var(--line); border-radius: 99px; padding: .35rem 1rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.install-go[hidden] { display: none; }
.install-close { background: transparent; color: var(--text); border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
@media print { .install-bar { display: none !important; } }
