/* SignBridge STL — site styles (no framework, no build step) */
:root {
  --primary: #2B2599;
  --primary-dark: #1d1870;
  --accent: #FF9000;
  --accent-dark: #e07e00;
  --ink: #222222;
  --text: #575757;
  --muted: #8a8a8a;
  --bg: #ffffff;
  --soft: #F5F5F5;
  --line: #e6e6ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 37, 153, .08);
  --head: "Barlow", system-ui, sans-serif;
  --body: "Poppins", system-ui, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top bar + header */
.topbar { background: var(--primary); color: #fff; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.social { display: flex; gap: 10px; align-items: center; }
.social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); }
.social a:hover { background: var(--accent); color: #fff; }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand img { width: 230px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--primary); border-radius: 2px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; padding: 13px 28px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: 90px 0; position: relative; overflow: hidden; }
.section.soft { background: var(--soft); }
.section.indigo { background: var(--primary); color: #e9e8ff; }
.section.indigo h2, .section.indigo h3 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--accent); margin-bottom: 8px; }
.center { text-align: center; }
.lead { max-width: 720px; margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dots-bg { position: absolute; pointer-events: none; opacity: .6; z-index: 0; }
.section > .wrap { position: relative; z-index: 1; }
.rounded { border-radius: var(--radius); }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* Hero */
.hero { position: relative; color: #fff; min-height: 640px; display: grid; align-items: center; overflow: hidden; }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slides img { opacity: 0; transition: opacity 1.4s ease; }
.hero-slides img.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,80,.86) 0%, rgba(20,16,80,.55) 55%, rgba(20,16,80,.2) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: 80px 0; }
.hero h1 { color: #fff; max-width: 760px; }
.hero .kicker { font-family: var(--head); font-weight: 600; font-size: 1.3rem; color: var(--accent); margin-bottom: 10px; }
.hero p { font-size: 1.15rem; max-width: 620px; margin-bottom: 28px; }

/* Page banner (inner pages) */
.banner { position: relative; color: #fff; padding: 120px 0 100px; background-size: cover; background-position: center; text-align: center; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,80,.72); }
.banner .wrap { position: relative; z-index: 1; }
.banner h1 { color: #fff; margin: 0; }
.crumbs { margin-top: 10px; font-size: .95rem; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs span { color: var(--accent); }

/* Cards */
.card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h3 { margin-top: 0; }
.card .icon { width: 64px; height: 64px; margin-bottom: 18px; }
.card a.more { font-family: var(--head); font-weight: 600; text-decoration: none; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.feature img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 18px; }
.check-list { display: grid; gap: 22px; }
.check-list .item { display: flex; gap: 18px; align-items: flex-start; }
.check-list .item img { width: 56px; flex: none; }
.check-list h3 { margin-bottom: 4px; }

/* Event teasers */
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.ev-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.ev-card .date-band { background: var(--primary); color: #fff; padding: 16px 22px; display: flex; gap: 16px; align-items: center; }
.ev-card .date-band .d { font-family: var(--head); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.ev-card .date-band .m { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; line-height: 1.2; }
.ev-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ev-card h3 { font-size: 1.2rem; }
.ev-card .meta { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.ev-card .body .btn { margin-top: auto; align-self: flex-start; padding: 9px 20px; font-size: .95rem; }

/* Blog */
.post-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 40px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary); }
.article { max-width: 760px; margin-inline: auto; }
.article img.cover { border-radius: var(--radius); margin-bottom: 32px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article .date { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }

/* About */
.goal { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 5px solid var(--accent); }
.goal ol { padding-left: 0; list-style: none; margin: 0; }
.goal li { margin-bottom: 14px; }
.goal li b { display: block; font-family: var(--head); color: var(--primary); }
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 40px; text-align: center; }
.phase img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 14px; }
.phase h3 { font-size: 1.05rem; }
.phase .n { display: inline-block; font-family: var(--head); font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.pillars p { background: var(--soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 10px 10px 0; }
.prose p:last-child { margin-bottom: 0; }
.quote { font-size: 1.15rem; font-style: italic; color: var(--ink); border-left: 4px solid var(--accent); padding-left: 22px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-family: var(--head); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: 13px 15px; border: 1px solid #d6d6e2; border-radius: 10px; background: #fff; color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }
.form .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.form .checks label { font-family: var(--body); font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.form .checks input { width: auto; }
.form .hint { font-size: .85rem; color: var(--muted); }
.form-status { padding: 12px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #e9f8ee; color: #1e6b3a; }
.form-status.err { display: block; background: #fdecec; color: #8a1f1f; }
.hp { position: absolute; left: -9999px; }
.contact-box { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.contact-box .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; flex: none; }
.contact-box .ic svg { width: 22px; height: 22px; fill: #fff; }
.contact-box b { display: block; font-family: var(--head); color: var(--ink); }
.contact-box a { text-decoration: none; }

/* Footer */
.site-footer { background: #15123f; color: #c9c7e6; padding: 70px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.site-footer a { color: #c9c7e6; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; }
.foot-grid.with-newsletter { grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr; gap: 40px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo { width: 230px; margin-bottom: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border-radius: 999px; border: 0; }
.newsletter button { padding: 11px 18px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding: 20px 0; text-align: center; font-size: .9rem; }

/* Responsive */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff; padding: 90px 28px 28px; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
  .nav.open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 18px; }
  .menu-btn { display: block; position: relative; z-index: 60; }
  .header-donate { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .feature-row, .event-cards { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .topbar .email { display: none; }
  .brand img { width: 180px; }
  .site-header .wrap { min-height: 70px; }
  .hero { min-height: 540px; }
  .grid-3, .feature-row, .event-cards, .phases, .foot-grid, .form .row, .form .checks { grid-template-columns: 1fr; }
  .banner { padding: 80px 0 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Events page ---------- */
.ev-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 34px; }
.ev-toolbar .grp { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 2px solid var(--primary); border-radius: 999px; overflow: hidden; }
.seg button { font: 600 1rem var(--head); border: 0; background: #fff; color: var(--primary); padding: 8px 18px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.ev-toolbar input[type="search"], .ev-toolbar select { font: inherit; padding: 9px 14px; border: 1px solid #d6d6e2; border-radius: 999px; min-width: 0; background: #fff; color: var(--ink); }
.ev-toolbar input[type="search"] { width: 240px; }
.ev-toolbar .past { display: flex; gap: 6px; align-items: center; font-size: .95rem; }
.ev-toolbar .count { font-size: .9rem; color: var(--muted); }
.ev-month-h { font-size: 1.5rem; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.ev-month-h:first-child { margin-top: 0; }
.ev-row { display: grid; grid-template-columns: 86px 1fr auto; gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; transition: box-shadow .2s, border-color .2s; }
.ev-row:hover { box-shadow: var(--shadow); border-color: #cfcdee; }
.ev-row.past { opacity: .6; }
.ev-date { display: grid; justify-items: center; background: var(--primary); color: #fff; border-radius: 12px; padding: 10px 6px; line-height: 1.1; font-family: var(--head); }
.ev-date .wd { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #ffd39a; }
.ev-date .d { font-size: 2rem; font-weight: 600; }
.ev-date .mo { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.ev-main h3 { margin: 0 0 4px; font-size: 1.25rem; }
.ev-main h3 a { color: var(--ink); text-decoration: none; }
.ev-main h3 a:hover { color: var(--primary); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; color: var(--primary); margin: 0 0 6px; }
.ev-meta span + span::before { content: "•"; margin-right: 16px; color: var(--accent); }
.ev-excerpt { margin: 0; font-size: .95rem; }
.ev-act .btn { padding: 9px 20px; font-size: .95rem; }
.ev-empty { text-align: center; padding: 50px 20px; background: var(--soft); border-radius: var(--radius); }
/* month grid */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cal-head h2 { margin: 0; min-width: 230px; text-align: center; font-size: 1.7rem; }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--primary); background: #fff; color: var(--primary); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cal-nav:hover { background: var(--primary); color: #fff; }
.cal-today { margin-left: auto; padding: 8px 18px; font-size: .95rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-wd { background: var(--primary); color: #fff; text-align: center; font: 600 .9rem var(--head); padding: 8px 0; text-transform: uppercase; letter-spacing: .05em; }
.cal-cell { background: #fff; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell.empty { background: #fafafc; }
.cal-cell.before { background: #fbfbfd; }
.cal-cell.before .cal-ev { opacity: .65; }
.cal-cell.today .cal-d { background: var(--accent); color: #fff; }
.cal-d { font: 600 .95rem var(--head); color: var(--ink); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.cal-ev { display: block; width: 100%; text-align: left; font: 500 .78rem/1.3 var(--body); background: #eeedfc; color: var(--primary-dark); border: 0; border-left: 3px solid var(--primary); border-radius: 5px; padding: 4px 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { background: var(--primary); color: #fff; }
.cal-ev .t { font-weight: 600; }
/* dialog */
#ev-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
#ev-dialog::backdrop { background: rgba(20,16,80,.55); }
.dlg-inner { position: relative; padding: 38px 36px 32px; }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.dlg-close:hover { background: var(--primary); color: #fff; }
.ev-facts { display: grid; gap: 12px; margin: 18px 0 22px; padding: 18px 20px; background: var(--soft); border-radius: 12px; }
.ev-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.ev-facts dt { font: 600 .95rem var(--head); color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.ev-facts dd { margin: 0; color: var(--ink); }
.dlg-actions { margin-top: 24px; }
.dlg-actions .btn { padding: 10px 20px; font-size: .95rem; }
@media (max-width: 760px) {
  .ev-row { grid-template-columns: 70px 1fr; }
  .ev-act { grid-column: 1 / -1; }
  .ev-act .btn { width: 100%; text-align: center; }
  .ev-toolbar input[type="search"] { width: 100%; }
  .ev-toolbar .grp { width: 100%; }
  .ev-toolbar select { flex: 1; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 0; padding: 0; height: 8px; border-left: 0; background: var(--primary); }
  .cal-ev .t { display: none; }
  .cal-head h2 { min-width: 0; font-size: 1.3rem; flex: 1; }
  .dlg-inner { padding: 30px 20px 24px; }
}
.ev-badge { display: inline-block; vertical-align: middle; font: 600 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .05em; padding: 5px 8px; border-radius: 6px; margin-left: 6px; }
.ev-badge.cancelled { background: #fdecec; color: #a12020; }
.ev-badge.moved { background: #fff3e0; color: #9a5300; }
.ev-row.is-cancelled h3 a { text-decoration: line-through; color: var(--muted); }
.cal-ev.cancelled { text-decoration: line-through; opacity: .6; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ev-tags span { font-size: .78rem; background: #fff3e0; color: #8a4b00; padding: 2px 10px; border-radius: 999px; }
.ev-facts .ev-tags { margin: 0; }
.ev-img { width: calc(100% + 72px); margin: -38px -36px 24px; max-height: 320px; object-fit: cover; border-radius: 18px 18px 0 0; }
.ev-note { background: #fff3e0; color: #7a4100; padding: 10px 14px; border-radius: 10px; }
.ev-access { margin: 0; padding-left: 18px; }
.hint { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .ev-img { width: calc(100% + 40px); margin: -30px -20px 20px; } }
[hidden] { display: none !important; }
.cal-agenda { display: none; margin-top: 22px; }
.cal-agenda h3 { font-size: 1.1rem; margin: 0 0 10px; }
.cal-agenda button { display: flex; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.cal-agenda button b { font-family: var(--head); color: var(--primary); min-width: 64px; }
.cal-agenda button.cancelled span { text-decoration: line-through; color: var(--muted); }
@media (max-width: 760px) {
  .ev-row { align-items: start; }
  .ev-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cal-agenda { display: block; }
}
@media (max-width: 760px) { .ev-meta { flex-direction: column; } .ev-meta span + span::before { display: none; } }
