/* BNI Journey chapter site. Mobile first. BNI red on white, graphite for text. */
:root { --red: #c8102e; --red-d: #a90d26; --red-soft: #fdf0f2; --ink: #1f2123; --muted: #5f6162; --line: #e6e7ea; --bg: #f6f6f7; --card: #fff; --r: 16px; --wrap: 1180px; --gut: clamp(16px, 4vw, 32px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.55 Inter, "Helvetica Neue", Arial, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-d); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / .7); } .btn-ghost:hover { background: rgb(255 255 255 / .12); }
.btn-line { color: var(--ink); border-color: var(--line); background: #fff; } .btn-line:hover { border-color: var(--red); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand img { height: 36px; width: auto; }
.top nav { display: none; gap: 22px; margin-left: auto; font-weight: 600; font-size: .92rem; }
.top nav a { text-decoration: none; color: var(--muted); } .top nav a:hover { color: var(--red); }
.top-cta { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: .88rem; }
@media (min-width: 860px) { .top nav { display: flex; } .top-cta { margin-left: 0; } }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #111; min-height: min(78svh, 680px); display: flex; align-items: flex-end; padding: 120px 0 44px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .15) 0%, rgb(0 0 0 / .35) 40%, rgb(10 10 12 / .88) 100%); }
.hero .kicker { color: #fff; opacity: .9; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 800; max-width: 16ch; }
.lead { margin-top: 14px; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); max-width: 44ch; opacity: .92; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -26px; position: relative; z-index: 2; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: 0 10px 30px -18px rgb(0 0 0 / .35); }
.stats b { display: block; font-size: 1.6rem; color: var(--red); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* next meeting */
.meet { margin-top: 28px; }
.meet-card { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; }
.meet-card h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
.meet-place { font-weight: 700; }
.meet-card > p:not(.kicker):not(.meet-place) { color: var(--muted); max-width: 60ch; }

/* members */
.members { padding: 56px 0 24px; }
.sec-head { margin-bottom: 20px; } .sec-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); } .sec-head p:last-child { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.filter { display: grid; grid-template-columns: 1fr; gap: 10px; position: sticky; top: 64px; z-index: 10; background: var(--bg); padding: 10px 0; }
.filter input, .filter select { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
@media (min-width: 700px) { .filter { grid-template-columns: 1fr 280px; } }
.count { font-size: .9rem; color: var(--muted); margin: 6px 0 12px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.m { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, translate .2s; }
.m:hover { border-color: var(--red); translate: 0 -2px; }
.m[hidden] { display: none; }
.m-open { position: absolute; inset: 0; z-index: 1; background: none; border: 0; cursor: pointer; border-radius: inherit; }
.m-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #f1f1f3, #e3e4e8); display: grid; place-items: center; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.m-ini { font-size: 3rem; font-weight: 800; color: #b9bbc1; }
.m-body { padding: 12px 12px 14px; display: grid; gap: 4px; flex: 1; align-content: start; }
.m-cat { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); line-height: 1.3; }
.m h3 { font-size: 1rem; }
.m-co { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); min-width: 0; }
.m-co img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); flex: none; }
.m-co span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-call { position: relative; z-index: 2; justify-self: start; margin-top: 6px; font-size: .85rem; font-weight: 700; color: var(--red); text-decoration: none; padding: 6px 10px; border-radius: 999px; background: var(--red-soft); }
.empty { padding: 30px 0; color: var(--muted); text-align: center; }

/* about */
.about { background: #fff; border-top: 1px solid var(--line); padding: 56px 0; margin-top: 40px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; align-content: start; }
.how span { font-weight: 800; color: var(--red); }
.how h3 { font-size: 1.05rem; } .how p { color: var(--muted); font-size: .92rem; }
.quote { margin: 28px 0; padding: 26px; border-radius: var(--r); background: #1f2123; color: #fff; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; color: #ff5a6e; }
.quote figcaption { margin-top: 8px; opacity: .85; }
.values-t { font-size: 1.2rem; margin-bottom: 12px; }
.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.values li { padding: 8px 14px; border-radius: 999px; background: var(--red-soft); color: var(--red-d); font-weight: 700; font-size: .88rem; }

/* footer */
.foot { background: #17181b; color: rgb(255 255 255 / .75); padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .92rem; }
.foot-in { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.4fr 1fr; } }
.foot-logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 10px; }
.foot h2 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.foot a { color: #fff; } .foot p + p { margin-top: 6px; }
.copy { grid-column: 1 / -1; font-size: .8rem; opacity: .6; }

/* member detail */
dialog { border: 0; padding: 0; border-radius: 20px; width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgb(10 10 12 / .55); }
.dlg-in { padding: 20px; display: grid; gap: 6px; position: relative; }
.dlg-x { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .55); color: #fff; font-size: 1.4rem; cursor: pointer; z-index: 2; }
.dlg-photo { aspect-ratio: 1; max-height: 300px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #f1f1f3, #e3e4e8); margin-bottom: 10px; display: grid; place-items: center; }
.dlg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
#dlg-name { font-size: 1.4rem; } .dlg-full { color: var(--muted); font-size: .9rem; }
@media (min-width: 760px) { .m-open:hover ~ .m-photo img { scale: 1.02; } }
