:root {
    --blue: #0864c7;
    --navy: #061d38;
    --yellow: #ffd500;
    --text: #071b35;
    --muted: #56616f;
    --blue-card: #e7f1fd;
    --yellow-card: #fff7ca;
    --line: #d3dce6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", sans-serif; color: var(--text); line-height: 1.5; background: #fff; }
a { color: inherit; }

.site-header {
    min-height: 88px;
    padding: 16px clamp(28px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .94rem; font-weight: 800; line-height: 1.25; text-decoration: none; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; }
.engagement-nav { display: flex; align-items: center; gap: 10px; }
.engagement-nav a {
    min-width: 130px;
    padding: 10px 20px;
    border: 1px solid #d3dce6;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.engagement-nav a:hover,
.engagement-nav a:focus-visible { border-color: var(--blue); }
.engagement-nav a.active { border-color: var(--blue); color: #fff; background: var(--blue); }

.level-page { padding: 52px clamp(28px, 5vw, 72px) 88px; }
.page-intro { max-width: 760px; margin: 30px auto 40px; text-align: center; }
.page-intro h1 {
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1;
}
.page-intro p { margin: 22px 0 0; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.55; }

.commitment-grid {
    width: min(1248px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 6vw, 88px);
}
.commitment-card {
    min-height: 500px;
    padding: 20px 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
}
.membership-card { background: var(--blue-card); }
.meetings-card { background: var(--yellow-card); }
.card-label {
    min-height: 28px;
    padding: 5px 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
}
.card-label-yellow { color: #111; background: var(--yellow); }
.card-label-blue { color: var(--blue); background: var(--blue-card); }
.commitment-card h2 {
    margin: 20px 0 26px;
    font-size: clamp(2rem, 3.2vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
}
.commitment-card p { margin: 0; color: #414b58; font-size: 1rem; line-height: 1.55; }
.commitment-card ul { margin: 30px 0; padding: 0; list-style: none; font-size: .9rem; line-height: 1.75; }
.commitment-card li::before { content: "• "; }

.button {
    min-height: 50px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease;
}
.button:hover { filter: brightness(.96); transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(8, 100, 199, .28); outline-offset: 3px; }
.button-blue { color: #fff; background: var(--blue); }
.button-yellow { color: #111; background: var(--yellow); }
.commitment-card > .button { width: 100%; margin-top: auto; }
.meeting-link {
    width: 100%;
    margin-top: auto;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(7, 27, 53, .14);
    border-radius: 10px;
    color: var(--text);
    background: rgba(255, 255, 255, .78);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(7, 27, 53, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.meeting-link:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 26px rgba(7, 27, 53, .11);
    transform: translateY(-2px);
}
.meeting-link:focus-visible { outline: 3px solid rgba(8, 100, 199, .28); outline-offset: 3px; }
.meeting-time,
.meeting-address { display: flex; flex-direction: column; }
.meeting-time { color: var(--blue); font-size: .64rem; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.meeting-time strong { color: var(--text); font-size: 1.15rem; font-weight: 900; }
.meeting-address strong { font-size: .88rem; }
.meeting-address small { color: var(--muted); font-size: .72rem; }
.meeting-map-label { color: var(--blue); font-size: .68rem; font-weight: 800; white-space: nowrap; }

.site-footer { padding: 52px clamp(28px, 5vw, 72px) 28px; color: #dfe8f3; background: var(--navy); }
.footer-main { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(130px, .7fr) minmax(110px, .6fr) auto; gap: clamp(30px, 5vw, 80px); align-items: start; }
.footer-brand-heading { display: flex; align-items: center; gap: 16px; }
.footer-brand-heading img { width: 58px; height: 58px; object-fit: contain; }
.footer-brand-heading strong { font-size: .95rem; }
.footer-brand p { margin: 0 0 0 74px; }
.footer-about { max-width: 460px; margin-top: 14px; color: #9cabbc; font-size: .8rem; line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; }
.footer-links strong { margin-bottom: 8px; color: var(--yellow); }
.footer-links a,
.footer-bottom a { text-decoration: none; }
.footer-links a:hover,
.footer-bottom a:hover { text-decoration: underline; }
.donate-button { min-width: 180px; }
.footer-bottom { margin-top: 72px; display: flex; justify-content: space-between; gap: 20px; color: #91a0b1; font-size: .7rem; }

@media (max-width: 820px) {
    .site-header { flex-direction: column; align-items: stretch; gap: 14px; padding-block: 14px; }
    .brand { justify-content: center; }
    .engagement-nav { width: 100%; }
    .engagement-nav a { min-width: 0; flex: 1; padding-inline: 10px; }
    .level-page { padding-top: 40px; }
    .page-intro { margin-top: 42px; }
    .commitment-grid { gap: 28px; }
    .commitment-card { min-height: 470px; padding-inline: 28px; }
    .footer-main { grid-template-columns: 2fr 1fr 1fr; }
    .donate-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
    .site-header { padding-inline: 18px; }
    .brand { justify-content: flex-start; }
    .engagement-nav { overflow-x: auto; padding-bottom: 2px; }
    .engagement-nav a { flex: 0 0 auto; min-width: 112px; font-size: .75rem; }
    .level-page { padding: 32px 18px 64px; }
    .level-kicker { padding-inline: 18px; }
    .page-intro { margin: 38px auto 32px; text-align: left; }
    .commitment-grid { grid-template-columns: 1fr; }
    .commitment-card { min-height: 440px; padding: 20px 24px 24px; }
    .meeting-link { grid-template-columns: 1fr auto; gap: 10px 18px; }
    .meeting-time { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 7px; }
    .site-footer { padding-inline: 22px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { margin-left: 0; }
    .donate-button { width: 100%; }
    .footer-bottom { margin-top: 50px; flex-direction: column; }
}
