﻿:root {
  --ink: #12312b;
  --ink-soft: #294640;
  --brand: #2f7f74;
  --brand-deep: #205e54;
  --accent: #f2a646;
  --bg: #f6f8f4;
  --paper: #ffffff;
  --line: #d8e1db;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  line-height: 1.55;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #d7efe6 0%, transparent 45%), linear-gradient(180deg, #f4fbf8 0%, var(--bg) 60%);
}

a { color: var(--brand-deep); }
h1, h2, h3, .eyebrow { font-family: "Manrope", sans-serif; line-height: 1.2; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 3.5rem 0; }
.section-tight { margin-top: 1rem; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-wrap { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand a,
.brand .custom-logo-link { display: block; }
.brand img,
.brand .custom-logo { width: clamp(180px, 26vw, 320px); height: auto; display: block; }
.menu-toggle { display: none; background: var(--brand); color: #fff; border: 0; padding: .6rem 1rem; border-radius: .45rem; font-size: 1rem; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-radius: .55rem;
  font-weight: 800;
  padding: .72rem 1rem;
  min-height: 46px;
  border: 1px solid transparent;
}
.main-nav .menu { display: flex; gap: .75rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.main-nav .menu a { text-decoration: none; font-weight: 700; color: var(--ink-soft); padding: .45rem .4rem; border-radius: .4rem; }
.main-nav .menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.main-nav .current-menu-item > a { color: var(--brand-deep); }
.main-nav .menu > li { position: relative; }
.main-nav .menu .menu-item-has-children > a::after {
  content: " \25BE";
  font-size: .75rem;
  vertical-align: middle;
}
.main-nav .menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 220px;
  list-style: none;
  margin: .35rem 0 0;
  padding: .45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(20, 46, 40, .12);
}
.main-nav .menu .sub-menu li { margin: 0; }
.main-nav .menu .sub-menu a { display: block; padding: .5rem .55rem; border-radius: .35rem; }
.main-nav .menu .sub-menu a:hover { background: #f2f8f6; }
.main-nav .menu > li:hover > .sub-menu,
.main-nav .menu > li:focus-within > .sub-menu { display: block; }

.hero { padding: 4rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; color: var(--brand-deep); font-size: .85rem; margin-bottom: .3rem; }
h1 { margin-top: 0; font-size: clamp(1.9rem, 4vw, 2.9rem); }

.card, .info-card { background: var(--paper); border: 1px solid var(--line); border-radius: .8rem; padding: 1.1rem; box-shadow: 0 8px 24px rgba(20, 46, 40, .08); }
.grid-2, .grid-3 { display: grid; gap: 1rem; }
.grid-2 > .wp-block-group__inner-container,
.grid-3 > .wp-block-group__inner-container {
  display: grid;
  gap: 1rem;
}
.grid-2 > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.afl-panel-row { gap: 1rem; align-items: stretch; }
.afl-panel-row > .wp-block-column { display: flex; }
.afl-panel-row > .wp-block-column > .wp-block-group { width: 100%; }

.btn, .btn-link { display: inline-block; text-decoration: none; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; padding: .7rem 1rem; border-radius: .5rem; font-weight: 700; min-height: 42px; }
.wp-block-button__link { display: inline-block; text-decoration: none; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; padding: .7rem 1rem; border-radius: .5rem; font-weight: 700; min-height: 42px; }
.muted { color: #4f635e; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible,
.header-cta:focus-visible {
  outline: 3px solid #f2a646;
  outline-offset: 2px;
}

/* Home page redesign */
body.home {
  background: radial-gradient(circle at top left, #e8f5ef 0%, transparent 38%), radial-gradient(circle at top right, #d9efe6 0%, transparent 42%), linear-gradient(180deg, #f9fcfa 0%, var(--bg) 70%);
}
body.home .home-hero {
  padding-top: 0;
  padding-bottom: 2.2rem;
  position: relative;
  z-index: 1;
}
body.home .home-hero-banner-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1.4rem;
}
body.home .home-hero-banner-wrap .afl-home-main-banner,
body.home .home-hero-banner-wrap .wp-block-image {
  margin: 0;
}
body.home .home-hero-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
body.home .home-hero-wrap {
  overflow: hidden;
}
body.home .home-hero-wrap > .wp-block-group__inner-container > * + * {
  margin-top: 1.4rem;
}
body.home .home-hero-primary {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
body.home .home-hero-primary h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
  letter-spacing: -.01em;
}
body.home .home-hero-primary p {
  font-size: clamp(1.06rem, 1.9vw, 1.26rem);
}
body.home .home-hero-actions {
  justify-content: center;
  gap: .8rem;
}
body.home .home-hero-actions .wp-block-button__link {
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  padding: .86rem 1.28rem;
}
body.home .home-hero-actions .wp-block-button:nth-child(2) .wp-block-button__link {
  background: #fff;
  color: var(--brand-deep);
  border: 2px solid #9cc7be;
}
body.home .home-hero-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  width: min(900px, 100%);
  margin: 0 auto;
}
body.home .home-hero-secondary > * {
  min-width: 0;
}
body.home .mission-section { padding: 3rem 0 4rem; }
body.home .mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
body.home .mission-panel {
  width: min(900px, 100%);
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
body.home .hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
body.home .hero-grid > * {
  min-width: 0;
}
body.home .home-mission-card,
body.home .home-heart-card {
  height: auto;
  min-height: 0;
}
body.home .home-mission-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 46, 40, .08);
  background: #fff;
}
body.home .mission-copy h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin: 0 0 1rem;
}
body.home .mission-copy .mission-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink);
  max-width: 620px;
}
body.home .mission-divider {
  width: 72px;
  height: 4px;
  background: var(--brand);
  border-radius: 999px;
  margin: 1.5rem 0;
}
body.home .mission-copy h3 {
  font-size: 1.5rem;
  margin: 0 0 .5rem;
}
body.home .mission-copy p:last-child {
  margin-bottom: 0;
}
body.home .mission-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  min-height: auto;
  background: #fff;
  border-radius: .8rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 46, 40, .08);
}
body.home .home-heart-card .afl-home-photo {
  margin: 0;
  width: 100%;
}
body.home .home-heart-card .wp-block-image,
body.home .home-heart-card .wp-block-image[class*="align"] {
  float: none !important;
  clear: both;
  display: block;
  margin: 0;
}
body.home .home-heart-card .afl-home-photo img {
  width: 100% !important;
  max-width: 560px;
  max-height: none;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
body.home .home-heart-card .wp-block-image,
body.home .home-heart-card figure,
body.home .home-heart-card img {
  width: 100% !important;
  max-width: 100% !important;
}
body.home .home-resource-section,
body.home .home-stats-section {
  clear: both;
  position: relative;
  z-index: 2;
}
body.home .entry-content > section,
body.home .entry-content > .wp-block-group {
  clear: both;
}
body.home .entry-content .wp-block-image,
body.home .entry-content figure.wp-block-image,
body.home .entry-content img[class*="align"] {
  float: none !important;
  clear: both;
}
body.home .entry-content .wp-block-image.alignleft,
body.home .entry-content .wp-block-image.alignright {
  float: none;
  margin-left: 0;
  margin-right: 0;
}
body.home .entry-content .wp-block-image.alignleft img,
body.home .entry-content .wp-block-image.alignright img {
  width: 100%;
  max-width: 100%;
}
body.home .hero-grid .afl-page-photo,
body.home .hero-grid .afl-home-photo {
  margin-top: 0;
}
body.home .home-resource-section {
  padding-top: 1.4rem;
}
body.home .home-resource-wrap > .wp-block-group__inner-container > h2,
body.home .home-stats-wrap > .wp-block-group__inner-container > h2 {
  margin-bottom: .5rem;
}
body.home .home-resource-row .home-resource-card {
  min-height: 220px;
}
body.home .home-resource-row .home-resource-card h3 {
  font-size: 1.4rem;
}
body.home .home-stats-section {
  padding-top: 1.6rem;
  padding-bottom: 4rem;
}
body.home .home-stat-card {
  text-align: center;
}
body.home .home-stat-value {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--brand-deep);
}
body.home .home-stat-value strong {
  font-weight: 800;
}
body.home .home-stat-label {
  margin: .25rem 0;
}
body.home .home-stat-copy {
  margin: .2rem 0 0;
  color: #3f5a55;
}

.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content .alignwide {
  width: min(1200px, 96vw);
  max-width: 1200px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.entry-content ul, .entry-content ol { padding-left: 1.2rem; }
.entry-content .grid-2, .entry-content .grid-3 { margin-top: 1rem; }
.entry-content .grid-2, .entry-content .grid-3 { align-items: start; }
.entry-content .grid-2 > .wp-block-group__inner-container > *,
.entry-content .grid-3 > .wp-block-group__inner-container > * { min-width: 0; }
.entry-content .card, .entry-content .info-card { overflow: hidden; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.entry-content p, .entry-content li, .entry-content h1, .entry-content h2, .entry-content h3 { overflow-wrap: anywhere; }
.entry-content .wp-block-columns { margin-top: 1rem; margin-bottom: 0; }
.entry-content .wp-block-buttons { margin-top: 1rem; }
.entry-content .wp-block-column > .card,
.entry-content .wp-block-column > .info-card { height: 100%; }
.entry-content .wp-block-image img,
.entry-content .wp-block-media-text__media img { border-radius: .8rem; height: auto; }
.afl-page-photo { margin-top: 1.25rem; }
.afl-page-photo img { width: 100%; object-fit: cover; }
.afl-home-photo img { max-height: 480px; }
.afl-card-link a { font-weight: 700; text-decoration: none; }
.needs-form { display: grid; gap: .9rem; }

/* Dementia Resources: make live layout match editor (stacked, full-width cards). */
.entry-content .dementia-top-grid {
  max-width: 900px;
  margin: 0 auto 3rem;
  width: 100%;
}
.entry-content .dementia-top-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.entry-content .dementia-top-grid > .wp-block-group__inner-container > * {
  min-width: 0;
  width: 100%;
}
.entry-content .dementia-top-grid .card,
.entry-content .dementia-top-grid .info-card {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
}
.entry-content .dementia-top-grid .wp-block-image,
.entry-content .dementia-top-grid img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.entry-content .large-image-section {
  max-width: 900px;
  margin: 0 auto;
}
.entry-content .dementia-full-width-section {
  grid-column: 1 / -1;
  margin-top: 2rem;
  clear: both;
}
.entry-content .afl-panel-row > .wp-block-column > .wp-block-group.info-card {
  height: 100%;
}
.entry-content .afl-panel-row > .wp-block-column > .wp-block-group.info-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.entry-content .afl-panel-row .card-meta {
  white-space: pre-line;
}
.entry-content .afl-panel-row .afl-card-link {
  margin-top: auto;
  padding-top: .4rem;
}

.partner-tools { margin-top: 1.2rem; }
.partner-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.partner-count { margin: .8rem 0 0; color: #4f635e; font-size: .95rem; }
.partner-results { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.partner-preview { margin-top: .8rem; padding: .9rem; border-radius: .6rem; background: #f9fcfb; border: 1px solid var(--line); }
.partner-preview-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 1rem; align-items: start; }
.partner-logo-wrap { background: #fff; border: 1px solid var(--line); border-radius: .6rem; min-height: 160px; display: flex; align-items: center; justify-content: center; padding: .75rem; }
.partner-logo { max-width: 100%; max-height: 120px; object-fit: contain; }
.partner-item,
.partner-preview {
  text-align: left !important;
}
.tag-list { list-style: none; margin: .3rem 0 .7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-chip { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #e5f2ee; color: #1f5e53; border: 1px solid #c8e3db; }
.partner-item .tag-list,
.partner-preview .tag-list {
  justify-content: flex-start !important;
  align-items: center;
  margin-left: 0;
}
body.page-template-page-partners .entry-content .partner-item ul.tag-list,
body.page-template-page-partners .entry-content .partner-preview ul.tag-list,
body.page-partners .entry-content .partner-item ul.tag-list,
body.page-partners .entry-content .partner-preview ul.tag-list {
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100%;
  margin-left: 0 !important;
}
select, input, textarea { width: 100%; padding: .65rem; border: 1px solid #bfcfc7; border-radius: .4rem; font: inherit; font-size: 1rem; }
.card .wpcf7 form { max-width: 720px; margin: 0 auto; }

/* Happenings + Partners + Contact + Dementia Resources + Digital Connectivity: hero-style backgrounds. */
body.page-template-page-happenings main,
body.page-template-page-partners main,
body.page-template-page-contact main,
body.page-contact main,
body.page-template-page-dementia-resources main,
body.page-dementia-resources main,
body.page-template-page-digital-connectivity main,
body.page-digital-connectivity main {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.page-template-page-happenings main {
  background-image:
    linear-gradient(rgba(246, 248, 244, .75), rgba(246, 248, 244, .80)),
    url("../images/free/rsw_1920m.jpg");
}
body.page-template-page-partners main {
  background-image:
    linear-gradient(rgba(246, 248, 244, .75), rgba(246, 248, 244, .80)),
    url("../images/free/2149356578.jpg");
}
body.page-template-page-contact main,
body.page-contact main {
  background-image:
    linear-gradient(rgba(246, 248, 244, .75), rgba(246, 248, 244, .80)),
    url("../images/free/40955.jpg");
}
body.page-template-page-dementia-resources main,
body.page-dementia-resources main {
  background-image:
    linear-gradient(rgba(246, 248, 244, .76), rgba(246, 248, 244, .82)),
    url("../images/free/40955.jpg");
}
body.page-template-page-digital-connectivity main,
body.page-digital-connectivity main {
  background-image:
    linear-gradient(rgba(246, 248, 244, .75), rgba(246, 248, 244, .82)),
    url("../images/free/14830.jpg");
}
body.page-template-page-happenings .entry-content > .wp-block-image:first-of-type,
body.page-template-page-partners .entry-content > .wp-block-image:first-of-type,
body.page-template-page-contact .entry-content > .wp-block-image:first-of-type,
body.page-template-page-dementia-resources .entry-content > .wp-block-image:first-of-type,
body.page-dementia-resources .entry-content > .wp-block-image:first-of-type,
body.page-template-page-digital-connectivity .entry-content > .wp-block-image:first-of-type,
body.page-digital-connectivity .entry-content > .wp-block-image:first-of-type,
body.page-contact .entry-content > .wp-block-image:first-of-type,
body.page-template-page-happenings .entry-content > .afl-page-photo:first-of-type,
body.page-template-page-partners .entry-content > .afl-page-photo:first-of-type,
body.page-template-page-contact .entry-content > .afl-page-photo:first-of-type,
body.page-template-page-dementia-resources .entry-content > .afl-page-photo:first-of-type,
body.page-dementia-resources .entry-content > .afl-page-photo:first-of-type,
body.page-template-page-digital-connectivity .entry-content > .afl-page-photo:first-of-type,
body.page-digital-connectivity .entry-content > .afl-page-photo:first-of-type,
body.page-contact .entry-content > .afl-page-photo:first-of-type {
  display: none;
}

.calendar-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.calendar-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.calendar-head button { border: 1px solid var(--line); background: #f3faf8; padding: .65rem .95rem; border-radius: .45rem; font-size: 1rem; min-height: 42px; }
.calendar-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: .55rem; }
.day-label { font-weight: 800; text-align: center; padding: .5rem 0; font-size: 1rem; color: var(--brand-deep); }
.day { min-height: 138px; border: 1px solid var(--line); border-radius: .45rem; padding: .6rem; background: #fff; }
.day.has-events { outline: 2px solid var(--accent); background: #fff8ed; cursor: pointer; }
.day-num { font-weight: 800; margin-bottom: .3rem; font-size: 1.08rem; }
.day-summary { margin: 0; font-size: .86rem; line-height: 1.3; color: #27433d; }
.day-summary strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #1d6155; }

.event-list { margin: 0; display: grid; gap: .8rem; }
.event-item { border-left: 4px solid #bcdcd1; padding: .55rem .75rem; background: #fbfefd; border-radius: .35rem; }
.event-item h3 { margin: 0 0 .2rem; font-size: 1.04rem; }
.event-meta { color: #45635d; font-size: .92rem; margin: 0 0 .25rem; }
.event-copy { margin: 0; font-size: .95rem; }
.happenings-tools {
  display: grid;
  gap: .6rem;
}
.happenings-tools h2 {
  margin: 0;
}
.happenings-subscribe-btn {
  width: fit-content;
  min-height: 46px;
}
.event-calendar-actions {
  margin-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.event-calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #aacfc5;
  background: #f1faf7;
  color: #184a41;
  padding: .5rem .72rem;
  border-radius: .45rem;
  font-weight: 700;
  min-height: 42px;
  font-size: .92rem;
}
.event-calendar-btn:hover {
  background: #e6f4f0;
}

.event-modal { position: fixed; inset: 0; background: rgba(15,35,31,.58); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 30; }
.event-modal.is-open { display: flex; }
.event-modal__dialog { width: min(680px, 96vw); max-height: 84vh; overflow: auto; background: #fff; border-radius: .75rem; border: 1px solid var(--line); box-shadow: 0 20px 55px rgba(10,24,22,.3); }
.event-modal__head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.event-modal__head button { border: 1px solid var(--line); background: #f3faf8; padding: .5rem .8rem; border-radius: .4rem; }
.event-modal__body { padding: 1rem; }
.event-modal__item { border: 1px solid var(--line); border-radius: .55rem; padding: .8rem; margin-bottom: .75rem; }

.newsletter-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 49, 43, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 40;
  opacity: 0;
  transition: opacity .15s ease;
}
.newsletter-modal.is-open {
  display: flex;
  opacity: 1;
}
.newsletter-modal__dialog {
  width: min(560px, 96vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.1rem;
  box-shadow: 0 20px 45px rgba(10,24,22,.28);
  position: relative;
}
.newsletter-modal__dialog h2 {
  margin: .2rem 0 .55rem;
}
.newsletter-modal__dialog p {
  margin: 0 0 .85rem;
}
.newsletter-modal__close {
  position: absolute;
  top: .5rem;
  right: .6rem;
  border: 0;
  background: transparent;
  font-size: 1.65rem;
  line-height: 1;
  color: #486660;
  cursor: pointer;
}
.newsletter-modal__actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.newsletter-modal__later {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: .5rem;
  padding: .7rem .95rem;
  font-weight: 700;
  min-height: 42px;
  cursor: pointer;
}

.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #eef6f2 0%, #e6f1ec 100%); }
.footer-grid {
  padding: 2.1rem 0 1.4rem;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.2rem;
}
.footer-column h2,
.footer-column h3 { margin: 0 0 .55rem; font-size: 1.2rem; }
.footer-column p { margin: 0; color: #35534d; }
.footer-contact { margin-top: .55rem; }
.footer-connect {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-connect h3 {
  margin: 0;
}
.footer-newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 46px;
  padding: .72rem 1rem;
  border-radius: .55rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
}
.footer-socials { margin-top: 0; display: flex; gap: .65rem; align-items: center; }
.footer-facebook { display: inline-flex; width: 38px; height: 38px; border-radius: 999px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: #1877f2; }
.footer-facebook svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid #cfe2dc;
  padding: .9rem 0 1.3rem;
}
.footer-bottom p {
  margin: 0;
  color: #3f5954;
}

@media (max-width: 1024px) {
  .container { width: min(980px, 94vw); }
  .day { min-height: 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .partner-controls, .partner-preview-grid { grid-template-columns: 1fr; }
  .grid-2 > .wp-block-group__inner-container,
  .grid-3 > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  body.home .mission-panel { padding: 0; }
  body.home .mission-grid { grid-template-columns: 1fr; }
  body.home .mission-image-card { min-height: auto; }
  .page-template-page-dementia-resources .entry-content .grid-2 > .wp-block-group__inner-container,
  .page-dementia-resources .entry-content .grid-2 > .wp-block-group__inner-container { grid-auto-rows: auto; }
  body.home .home-hero-secondary { grid-template-columns: 1fr; }
  .header-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .header-cta { order: 3; width: 100%; }
  body.page-template-page-happenings main,
  body.page-template-page-partners main,
  body.page-template-page-contact main,
  body.page-template-page-dementia-resources main,
  body.page-dementia-resources main,
  body.page-template-page-digital-connectivity main,
  body.page-digital-connectivity main,
  body.page-contact main { background-attachment: scroll; }
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav .menu { flex-direction: column; align-items: flex-start; margin-top: .75rem; }
  .main-nav .menu .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-top: .2rem;
    min-width: 0;
  }
  .calendar-grid { gap: .35rem; }
  .day { min-height: 105px; padding: .45rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-connect {
    justify-content: flex-start;
    gap: .75rem;
  }
  .newsletter-modal__actions { flex-direction: column; }
  .newsletter-modal__actions .btn,
  .newsletter-modal__actions .newsletter-modal__later { width: 100%; }
}

@media (max-width: 768px) {
  .entry-content .dementia-top-grid {
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .container { width: 94vw; }
  .day-label { font-size: .82rem; }
  .day-summary { font-size: .74rem; }
  .day { min-height: 88px; }
  .btn, .btn-link, .calendar-head button, .menu-toggle, .header-cta, .footer-newsletter-btn, .event-calendar-btn { min-height: 46px; }
}
