/* ============================================================
   Mid-County Community Center — mccctacoma.org
   Direction: "Warm civic heritage"
   brand teal (their 30-yr identity) · warm cream · copper accent
   Fraunces display serif · Public Sans body
   Built for older eyes: big type, high contrast, calm rhythm.
   ============================================================ */

:root {
  --brand:   #1d5c58;   /* deep teal — headers, footer, headings */
  --brand-2: #14453f;   /* darker teal for deep bands/footer */
  --accent:  #b34a1f;   /* copper — CTAs and small highlights only */
  --accent-d:#933c18;
  --ink:     #24302e;   /* warm near-black body text */
  --muted:   #566764;   /* secondary text on light surfaces */
  --surface: #faf5ec;   /* warm cream page background */
  --card:    #ffffff;
  --line:    #e4dcce;   /* hairlines on cream */
  --tint:    #e8f0ee;   /* pale teal tint for icon chips / alt bands */
  --on-dark: #f3efe6;   /* body text on teal */
  --on-dark-muted: #c2d4d0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(30,50,48,.06), 0 10px 28px -12px rgba(30,50,48,.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;              /* 18px base — senior-friendly */
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 12px 20px; z-index: 99;
  border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.topbar {
  background: var(--brand-2);
  color: var(--on-dark-muted);
  font-size: .9375rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 42px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .addr { letter-spacing: .01em; }

.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand-lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-lockup img { width: 52px; height: auto; border-radius: 6px; }
.brand-lockup .name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.375rem; line-height: 1.15; color: var(--brand);
  letter-spacing: .005em;
}
.brand-lockup .name small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.brand-lockup:hover .name { color: var(--brand); }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; text-decoration: none;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink); border-radius: 8px;
}
.site-nav a:hover { background: var(--tint); color: var(--brand); }
.site-nav a[aria-current="page"] {
  background: var(--brand); color: #fff;
}

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--brand);
  background-image:
    radial-gradient(ellipse 720px 460px at 88% -12%, rgba(255,255,255,.09), transparent 60%),
    radial-gradient(ellipse 600px 420px at -8% 112%, rgba(0,0,0,.16), transparent 60%);
  color: var(--on-dark);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center; padding-top: 80px; padding-bottom: 88px;
}
.hero .kicker {
  display: inline-block; font-size: .9375rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #eed5b9;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08;
  color: #fff; letter-spacing: -.01em; margin-bottom: 22px;
  text-wrap: balance;
}
.hero .lede { font-size: 1.25rem; max-width: 34em; color: var(--on-dark); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-photo { position: relative; }
.hero-cluster { position: relative; aspect-ratio: 10 / 9; }
.hero-cluster img {
  border-radius: var(--r);
  border: 4px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.5);
  width: 100%; height: 100%; object-fit: cover;
}
.hero-cluster .ph-main {
  position: absolute; top: 0; right: 0; width: 82%; height: 62%; margin: 0;
}
.hero-cluster .ph-sub {
  position: absolute; bottom: 0; left: 0; width: 54%; height: 44%; margin: 0;
}
.ph-badge {
  position: absolute; right: 0; bottom: 16%;
  background: var(--surface); color: var(--brand);
  border-radius: var(--r); padding: 18px 22px;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.45);
  display: flex; align-items: center; gap: 12px;
}
.ph-badge .num {
  font-family: var(--font-display); font-weight: 600; font-size: 2.4rem;
  line-height: 1; color: var(--accent);
}
.ph-badge .lbl {
  font-size: .875rem; font-weight: 700; line-height: 1.3;
  letter-spacing: .04em; text-transform: uppercase; color: var(--brand);
}
.hero-photo > figcaption, .hero-photo .cluster-caption {
  margin-top: 16px; font-size: .9375rem; color: var(--on-dark-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }

.kicker {
  font-size: .9375rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
h2.title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15;
  color: var(--brand); margin: 10px 0 18px; text-wrap: balance;
}
.section-intro { max-width: 62ch; color: var(--muted); font-size: 1.1875rem; }

.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

/* ---------- Mission / vision two-up ---------- */

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 36px 34px; box-shadow: var(--shadow);
  border-top: 5px solid var(--brand);
}
.pillar.copper { border-top-color: var(--accent); }
.pillar h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--brand); margin-bottom: 12px;
}
.pillar p { color: var(--ink); }

/* ---------- Program cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.card .chip {
  width: 56px; height: 56px; border-radius: 14px; background: var(--tint);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .chip svg { width: 30px; height: 30px; stroke: var(--brand); }
.card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.375rem;
  color: var(--brand); margin-bottom: 8px;
}
.card p { font-size: 1.0625rem; color: var(--ink); }

a.card-link { text-decoration: none; display: block; color: inherit; height: 100%; }
a.card-link .card { height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
a.card-link:hover .card {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(30,50,48,.07), 0 18px 38px -14px rgba(30,50,48,.26);
  border-color: #d5cdba;
}
a.card-link:hover h3 { color: var(--accent); }

/* ---------- Quote band ---------- */

.quote-band { background: var(--brand); color: #fff; }
.quote-band .wrap { padding-top: 84px; padding-bottom: 84px; text-align: center; }
.quote-band blockquote {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.35; max-width: 26em;
  margin: 0 auto; color: #fff; text-wrap: balance;
}
.quote-band cite {
  display: block; margin-top: 22px; font-family: var(--font-body);
  font-style: normal; font-weight: 600; font-size: 1rem; color: var(--on-dark-muted);
}
.quote-band .actions { margin-top: 36px; }

/* ---------- Visit band ---------- */

.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.visit-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow); text-align: center;
}
.visit-card .chip {
  width: 52px; height: 52px; border-radius: 50%; background: var(--tint);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.visit-card .chip svg { width: 26px; height: 26px; stroke: var(--brand); }
.visit-card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.visit-card p, .visit-card a { font-size: 1.1875rem; font-weight: 600; color: var(--ink); }
.visit-card a { color: var(--brand); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { background: var(--brand); color: var(--on-dark); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 3.6vw, 3rem); color: #fff; margin-top: 10px;
  letter-spacing: -.01em;
}
.page-hero .kicker { color: #eed5b9; }
.page-hero .lede { margin-top: 14px; font-size: 1.1875rem; max-width: 58ch; color: var(--on-dark); }

/* ---------- Prose ---------- */

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.2em; }
.prose .lead { font-size: 1.3125rem; line-height: 1.6; color: var(--brand); font-weight: 500; }

/* ---------- Program rows (programs page) ---------- */

.program-list { display: grid; gap: 24px; margin-top: 48px; }
.program-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 26px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 34px; box-shadow: var(--shadow);
}
.program-row .chip {
  width: 72px; height: 72px; border-radius: 18px; background: var(--tint);
  display: grid; place-items: center;
}
.program-row .chip svg { width: 38px; height: 38px; stroke: var(--brand); }
.program-row h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--brand); margin-bottom: 8px;
}

/* ---------- Resources ---------- */

.resource-list { display: grid; gap: 18px; margin-top: 44px; }
.resource {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 30px; box-shadow: var(--shadow);
}
.resource h3 { font-size: 1.25rem; margin-bottom: 4px; }
.resource h3 a { font-family: var(--font-display); font-weight: 600; color: var(--brand); text-decoration: none; }
.resource h3 a:hover { color: var(--accent); text-decoration: underline; }
.resource .url { font-size: .9375rem; color: var(--muted); word-break: break-all; }
.resource p { margin-top: 10px; font-size: 1.0625rem; }
.resource .tel { font-weight: 600; color: var(--ink); }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.gallery figure {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; box-shadow: var(--shadow);
}
.gallery img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 6px 4px; font-size: .9375rem; color: var(--muted); }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px; box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.375rem;
  color: var(--brand); margin-bottom: 16px;
}
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.contact-card dt { font-weight: 700; color: var(--muted); }
.contact-card dd a { font-weight: 600; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--r); box-shadow: var(--shadow); }

.people-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.people {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; box-shadow: var(--shadow);
}
.people h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  color: var(--brand); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--tint);
}
.people ul { list-style: none; display: grid; gap: 12px; }
.people .role { display: block; font-size: .875rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.people .who { font-weight: 600; font-size: 1.0625rem; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--card); border-top: 1px solid var(--line); }
.cta-band .wrap {
  padding-top: 72px; padding-bottom: 72px; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem); color: var(--brand); text-wrap: balance;
}
.cta-band p { margin-top: 12px; color: var(--muted); font-size: 1.1875rem; }
.cta-band .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-foot { background: var(--brand-2); color: var(--on-dark-muted); }
.site-foot .wrap {
  padding-top: 64px; padding-bottom: 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px;
}
.site-foot .lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-foot .lockup img { width: 44px; border-radius: 6px; }
.site-foot .lockup span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; color: #fff;
}
.site-foot p { font-size: 1rem; max-width: 40ch; }
.site-foot h3 {
  font-size: .9375rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.site-foot ul { list-style: none; display: grid; gap: 10px; }
.site-foot a { color: var(--on-dark); text-decoration: none; font-size: 1.0625rem; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
}
.foot-bottom .wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 26px; font-size: .9375rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 64px; }
  .hero-photo { max-width: 560px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .people-cols { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .site-head .wrap { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  .topbar .wrap { justify-content: center; }
  .pillars, .cards, .visit-grid, .gallery,
  .contact-layout, .people-cols { grid-template-columns: 1fr; }
  .program-row { grid-template-columns: 1fr; }
  .program-row .chip { width: 60px; height: 60px; }
  .site-foot .wrap { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom .wrap { justify-content: center; text-align: center; }
}

/* cards keep left-aligned text even inside centered sections */
.card { text-align: left; }

/* resources: masonry two-up so short link cards pack tight */
.resource-list { display: block; columns: 2; column-gap: 18px; }
.resource { break-inside: avoid; margin-bottom: 18px; }
@media (max-width: 820px) { .resource-list { columns: 1; } }

/* about: center the prose column so the page doesn't lean left */
.prose.centered { margin-inline: auto; }

/* ---------- WordPress compatibility ---------- */
/* WP menu marks the current item on the <li>; mirror the aria-current style */
.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a { background: var(--brand); color: #fff; }
/* native image blocks inside our gallery grid */
.gallery figure.wp-block-image { margin: 0; }
/* keep admin-bar from hiding the sticky-free header */
body.admin-bar .site-head { top: 0; }
/* classic-path failsafe: if WP ever injects the group inner-container wrapper,
   make it transparent to grid/flex layout */
.wp-block-group__inner-container { display: contents; }
