:root {
  --navy: #073a64;
  --blue: #094677;
  --sky: #2196f3;
  --sky-dark: #0c78ce;
  --yellow: #ffd719;
  --ink: #122333;
  --muted: #5c6b78;
  --line: #dce5ec;
  --soft: #f3f7fa;
  --white: #fff;
  --shadow: 0 18px 54px rgba(7, 58, 100, .12);
  --radius: 22px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--sky-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .7em; color: var(--ink); font-weight: 800; line-height: 1.13; letter-spacing: -.03em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1.35em; }
::selection { color: var(--navy); background: var(--yellow); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.content-narrow { max-width: 820px; }
.section { padding: clamp(70px, 9vw, 124px) 0; }
.section--soft { background: var(--soft); }
.section--announcement { padding: 0; background: var(--soft); }
.center { display: flex; justify-content: center; margin-top: 42px; }
.screen-reader-text, .skip-link:not(:focus), .hp-field {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 12px 18px; color: var(--white); background: var(--navy); border-radius: 8px; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -.18em; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--sky-dark); font-size: .77rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--light { color: #92d0ff; }
.lead { color: #3c4e5e; font-size: 1.18rem; line-height: 1.7; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 2px solid var(--sky); border-radius: 999px;
  color: var(--white); background: var(--sky); font-size: .94rem; font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { color: var(--white); background: var(--sky-dark); border-color: var(--sky-dark); box-shadow: 0 12px 28px rgba(33, 150, 243, .24); transform: translateY(-2px); }
.button--small { min-height: 44px; padding: 9px 18px; font-size: .86rem; }
.button--ghost { border-color: rgba(255, 255, 255, .56); background: rgba(5, 32, 54, .25); backdrop-filter: blur(8px); }
.button--ghost:hover { border-color: var(--white); background: rgba(5, 32, 54, .6); }
.button--light { color: var(--blue); background: var(--white); border-color: var(--white); }
.button--light:hover { color: var(--blue); background: #eaf6ff; border-color: #eaf6ff; }
.button--outline { color: var(--blue); background: transparent; border-color: var(--blue); }
.button--outline:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: .93rem; font-weight: 800; }
.text-link .icon { transition: transform .2s ease; }
.text-link:hover .icon { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; z-index: 1000; top: 0; height: 86px; display: flex; align-items: center;
  color: var(--ink); background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(9, 70, 119, .1);
  transition: height .25s ease, box-shadow .25s ease; backdrop-filter: blur(12px);
}
.site-header.is-scrolled { height: 74px; box-shadow: 0 7px 26px rgba(7, 58, 100, .09); }
.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.brand__link, .custom-logo-link { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__logo, .custom-logo { width: 66px; height: 66px; object-fit: contain; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-size: 1.02rem; }
.brand__text small { margin-top: 4px; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav { justify-self: end; }
.primary-nav .menu { display: flex; align-items: center; gap: 5px; padding: 0; margin: 0; list-style: none; }
.primary-nav .menu a { display: block; padding: 11px 10px; color: #29404f; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--sky-dark); }
.header__donate { white-space: nowrap; }
.menu-toggle { display: none; padding: 8px; border: 0; color: var(--blue); background: transparent; }
.menu-toggle__lines { display: grid; gap: 5px; }
.menu-toggle__lines i { display: block; width: 27px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.home-hero { position: relative; min-height: 760px; display: flex; align-items: center; color: var(--white); background: var(--navy); overflow: hidden; }
.home-hero__media, .home-hero__overlay { position: absolute; inset: 0; }
.home-hero__media { background-position: center 32%; background-size: cover; transform: scale(1.01); }
.home-hero__overlay { background: linear-gradient(90deg, rgba(3, 31, 53, .96) 0%, rgba(4, 41, 70, .83) 39%, rgba(4, 38, 64, .26) 76%, rgba(4, 38, 64, .08) 100%); }
.home-hero__content { position: relative; z-index: 1; padding: 86px 0 156px; }
.home-hero__content h1 { max-width: 770px; margin-bottom: 22px; color: var(--white); }
.home-hero__content h1 em { color: var(--yellow); font-family: Georgia, serif; font-weight: 500; }
.home-hero__content > p { max-width: 660px; color: rgba(255, 255, 255, .87); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-stats {
  position: absolute; z-index: 2; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(3, 1fr);
  color: var(--ink); background: var(--white); border-radius: 22px 22px 0 0; box-shadow: var(--shadow); transform: translateX(-50%);
}
.hero-stats > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 28px 38px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats strong { color: var(--blue); font-size: 2.25rem; line-height: 1; }
.hero-stats span { max-width: 120px; color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.3; }

.page-hero { position: relative; padding: clamp(82px, 10vw, 142px) 0; color: var(--white); background: var(--blue); overflow: hidden; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; }
.page-hero::before { width: 520px; height: 520px; top: -300px; right: -80px; }
.page-hero::after { width: 360px; height: 360px; right: 130px; bottom: -270px; }
.page-hero h1 { max-width: 890px; color: var(--white); font-size: clamp(2.5rem, 5vw, 4.6rem); }
.page-hero p { max-width: 700px; color: rgba(255, 255, 255, .83); font-size: 1.18rem; }
.page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.page-hero__mark { width: 180px; height: 180px; display: grid; place-items: center; color: var(--yellow); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; }
.page-hero__mark .icon { width: 82px; height: 82px; }
.page-hero--compact { padding: 75px 0; }
.page-hero--compact h1 { margin-bottom: 0; }
.page-hero--house { padding: 75px 0 86px; }
.page-hero--house h1 { margin-bottom: 8px; }
.page-hero--house p { margin: 0; color: var(--yellow); font-size: 1.3rem; font-weight: 700; }
.back-link { display: inline-block; margin-bottom: 44px; color: rgba(255, 255, 255, .75); font-size: .9rem; font-weight: 700; }
.back-link:hover { color: var(--white); }

/* Home sections */
.announcement { min-height: 154px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; padding: 28px 0; }
.announcement__icon { width: 66px; height: 66px; display: grid; place-items: center; color: var(--blue); background: #dff0fc; border-radius: 18px; }
.announcement__icon .icon { width: 30px; height: 30px; }
.announcement .eyebrow { margin-bottom: 7px; }
.announcement h2 { margin-bottom: 8px; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.announcement p { margin: 0; color: var(--muted); font-size: .93rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.split--top { align-items: start; }
.image-stack { position: relative; }
.image-stack > img { width: 100%; aspect-ratio: 1.05; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-stack__badge { position: absolute; right: -25px; bottom: -25px; width: 150px; height: 150px; display: grid; place-content: center; text-align: center; color: var(--white); background: var(--sky); border: 8px solid var(--white); border-radius: 50%; }
.image-stack__badge strong { font-size: 2.2rem; line-height: 1; }
.image-stack__badge span { margin-top: 7px; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.split__content h2 { max-width: 600px; }
.check-list { display: grid; gap: 14px; padding: 0; margin: 28px 0 32px; list-style: none; }
.check-list li { display: flex; gap: 12px; font-weight: 700; }
.check-list .icon { margin-top: 4px; color: var(--sky-dark); }
.section--latest { background: linear-gradient(180deg, var(--white), #f7fafc); }
.section-heading { max-width: 730px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 15px; }
.section-heading p { color: var(--muted); }
.section-heading--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.latest-house { display: grid; grid-template-columns: 1.45fr 1fr; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.latest-house:hover { color: var(--ink); }
.latest-house > img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.latest-house__content { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(36px, 6vw, 72px); }
.latest-house__content > span { display: inline-block; padding: 7px 13px; color: var(--white); background: var(--sky); border-radius: 999px; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.latest-house__content h3 { margin: 22px 0 13px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.latest-house__content p { color: var(--muted); }
.latest-house__content strong { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--blue); font-size: .9rem; }
.donate-band { color: var(--white); background: var(--blue); }
.donate-band h2 { color: var(--white); }
.donate-band p { max-width: 650px; color: rgba(255, 255, 255, .78); }
.donate-band__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 80px; }
.donate-band__action { min-width: 400px; padding: 30px; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); }
.donate-band__action span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.donate-band__action strong { display: block; margin: 6px 0 20px; color: var(--yellow); font-size: 1.15rem; word-break: break-word; }
.video-feature { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Content */
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose p { color: #344858; }
.prose blockquote { margin: 38px 0; padding: 25px 30px; color: var(--blue); background: var(--soft); border-left: 5px solid var(--sky); border-radius: 0 14px 14px 0; font-family: Georgia, serif; font-size: 1.25rem; }
.prose blockquote cite { display: block; margin-top: 12px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .75rem; font-style: normal; font-weight: 700; }
.facts-card { padding: clamp(30px, 5vw, 48px); color: var(--white); background: var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts-card h2 { color: var(--white); font-size: 1.3rem; }
.facts-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.facts-card strong { color: var(--yellow); font-size: 2rem; }
.facts-card span { color: rgba(255, 255, 255, .76); font-size: .9rem; text-align: right; }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.materials-grid > div { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; font-weight: 700; }
.materials-grid .icon { color: var(--sky-dark); }
.cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: clamp(36px, 7vw, 74px); color: var(--white); background: linear-gradient(135deg, var(--blue), #0769a8); border-radius: var(--radius); }
.cta-card h2 { color: var(--white); }
.cta-card p { margin: 0; color: rgba(255, 255, 255, .78); }

/* Houses */
.archive-tools { display: grid; grid-template-columns: 1fr 230px; gap: 16px; margin-bottom: 18px; }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 50%; left: 18px; color: var(--muted); transform: translateY(-50%); }
.search-field input, .select-field select { width: 100%; height: 58px; padding: 0 18px; color: var(--ink); background: var(--white); border: 1px solid #cbd7e0; border-radius: 12px; outline: none; }
.search-field input { padding-left: 51px; }
.search-field input:focus, .select-field select:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(33, 150, 243, .12); }
.results-count { margin-bottom: 30px; color: var(--muted); font-size: .85rem; }
.houses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.house-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 9px 26px rgba(7, 58, 100, .07); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.house-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.house-card[hidden], .house-card.is-page-hidden { display: none; }
.house-card__image { position: relative; height: 230px; display: block; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--sky)); overflow: hidden; }
.house-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.house-card:hover .house-card__image img { transform: scale(1.04); }
.house-card__image span { position: absolute; left: 15px; bottom: 15px; padding: 6px 11px; color: var(--white); background: rgba(7, 58, 100, .9); border-radius: 999px; font-size: .74rem; font-weight: 800; }
.house-card__image.image-missing::before { content: "Pastoral da Moradia"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); font-size: .86rem; font-weight: 800; }
.house-card__image.image-missing img { display: none; }
.house-card__body { padding: 23px; }
.house-card__body h2 { min-height: 2.2em; margin-bottom: 10px; font-size: 1.2rem; }
.house-card__body > p:not(.house-card__date) { min-height: 4.8em; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.house-card__date { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; color: var(--sky-dark); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.empty-state { padding: 50px; text-align: center; color: var(--muted); background: var(--soft); border-radius: 16px; }
.house-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 95px; }
.house-detail > div { padding: 32px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.house-detail h2 { font-size: 1.55rem; }
.house-detail p { display: flex; gap: 10px; margin: 0; color: var(--muted); font-size: .9rem; }
.gallery-heading { margin-bottom: 30px; }
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-gallery__item { position: relative; aspect-ratio: 1.2; padding: 0; border: 0; background: var(--soft); border-radius: 10px; overflow: hidden; }
.photo-gallery__item::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); background: rgba(7, 58, 100, .48); font-size: 2rem; opacity: 0; transition: opacity .2s ease; }
.photo-gallery__item:hover::after { opacity: 1; }
.photo-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-gallery__item:hover img { transform: scale(1.05); }
.lightbox { width: min(94vw, 1100px); max-width: none; padding: 0; color: var(--white); background: #061d2c; border: 0; border-radius: 14px; overflow: visible; }
.lightbox::backdrop { background: rgba(1, 12, 20, .9); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; z-index: 2; display: grid; place-items: center; color: var(--white); background: rgba(0, 0, 0, .58); border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.lightbox__close { width: 42px; height: 42px; top: -18px; right: -18px; font-size: 1.5rem; }
.lightbox__prev, .lightbox__next { width: 48px; height: 48px; top: 50%; font-size: 2rem; transform: translateY(-50%); }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox p { position: absolute; right: 14px; bottom: 5px; padding: 4px 9px; margin: 0; background: rgba(0, 0, 0, .6); border-radius: 5px; font-size: .72rem; }

/* Donations */
.donation-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 8vw, 100px); }
.pix-card { padding: clamp(28px, 5vw, 48px); color: var(--white); text-align: center; background: var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); }
.pix-card img { width: 100%; margin-bottom: 28px; background: var(--white); border-radius: 12px; }
.pix-card strong { display: block; margin-bottom: 25px; color: var(--yellow); font-size: 1.25rem; word-break: break-word; }
.pix-card p { margin: 12px 0 0; color: rgba(255, 255, 255, .72); font-size: .8rem; }
.donation-info h2 { margin-top: 0; }
.notice { display: flex; gap: 14px; padding: 20px; margin: 28px 0; color: var(--blue); background: #e9f5fd; border-radius: 12px; }
.notice p { margin: 0; color: inherit; font-size: .9rem; }
.notice .icon { margin-top: 3px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.help-grid article { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.help-grid article > .icon { width: 40px; height: 40px; margin-bottom: 25px; color: var(--sky-dark); }
.help-grid h3 { font-size: 1.25rem; }
.help-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Videos and accounts */
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 42px 28px; }
.video-card h2 { margin: 16px 4px 0; font-size: 1.12rem; letter-spacing: -.01em; }
.accounts { display: grid; gap: 13px; }
.account-year { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.account-year summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 21px 25px; cursor: pointer; list-style: none; }
.account-year summary::-webkit-details-marker { display: none; }
.account-year summary span { color: var(--blue); font-size: 1.3rem; font-weight: 850; }
.account-year summary small { color: var(--muted); }
.account-year summary i { width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s ease; }
.account-year[open] summary i { transform: rotate(225deg); }
.document-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 25px 25px; }
.document-grid a { display: flex; align-items: center; gap: 10px; padding: 14px; color: var(--ink); background: var(--soft); border-radius: 9px; font-size: .86rem; font-weight: 750; }
.document-grid a:hover { color: var(--blue); background: #e5f1f9; }
.document-grid a .icon { color: var(--sky-dark); }
.document-grid a small { margin-left: auto; color: var(--muted); font-size: .62rem; }
.truck-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.truck-card p { margin: 0; color: var(--muted); }
.accounts .truck-card { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.accounts .truck-card h3 { margin: 0; font-size: 1.15rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 100px); }
.contact-panel { align-self: start; padding: clamp(30px, 5vw, 48px); color: var(--white); background: var(--blue); border-radius: var(--radius); }
.contact-panel h2 { color: var(--white); }
.contact-panel > a, .contact-panel > div:not(.eyebrow) { display: flex; align-items: center; gap: 16px; padding: 21px 0; color: var(--white); border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-panel > a:hover { color: var(--yellow); }
.contact-panel .icon { width: 25px; height: 25px; }
.contact-panel span { display: grid; }
.contact-panel small { color: rgba(255, 255, 255, .64); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-panel strong { font-size: .92rem; }
.contact-panel__note { margin: 23px 0 0; color: rgba(255, 255, 255, .75); font-size: .82rem; }
.form-card { padding: clamp(30px, 5vw, 52px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: .8rem; font-weight: 800; }
.contact-form label span { color: #d11e35; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #fbfdfe; border: 1px solid #cbd7e0; border-radius: 9px; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(33, 150, 243, .1); }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-message { padding: 15px 18px; margin-bottom: 24px; border-radius: 9px; font-size: .9rem; font-weight: 700; }
.form-message--success { color: #146331; background: #e8f8ee; }
.form-message--error { color: #8a2331; background: #fdebed; }

/* Footer */
.site-footer { padding-top: 70px; color: rgba(255, 255, 255, .72); background: #052f50; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1fr .6fr; gap: 70px; padding-bottom: 55px; }
.footer__about { display: flex; gap: 18px; align-items: center; }
.footer__about img { border-radius: 50%; }
.footer__about strong { display: block; color: var(--white); font-size: 1.05rem; }
.footer__about p { margin: 4px 0 0; font-size: .8rem; line-height: 1.5; }
.footer__title { margin-bottom: 18px; color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer__grid p { font-size: .82rem; }
.footer__grid p .icon { margin-right: 7px; }
.footer__grid a { color: rgba(255, 255, 255, .78); }
.footer__grid a:hover { color: var(--yellow); }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom p { margin: 0; font-size: .72rem; }
.footer__bottom a { color: rgba(255, 255, 255, .74); font-size: .72rem; }
.not-found { min-height: 64vh; display: flex; align-items: center; }
.not-found h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }

@media (max-width: 1100px) {
  .header__inner { grid-template-columns: auto auto auto; justify-content: space-between; }
  .primary-nav {
    position: fixed; inset: 74px 0 auto; display: none; padding: 18px 20px 28px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: grid; }
  .primary-nav .menu a { padding: 12px; font-size: .95rem; }
  .menu-toggle { display: block; order: 2; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__donate { order: 3; }
  .houses-grid { grid-template-columns: repeat(2, 1fr); }
  .document-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .brand__text { display: none; }
  .brand__logo, .custom-logo { width: 56px; height: 56px; }
  .header__donate { display: none; }
  .header__inner { grid-template-columns: auto auto; }
  .home-hero { min-height: 730px; align-items: start; }
  .home-hero__overlay { background: linear-gradient(90deg, rgba(3, 31, 53, .94), rgba(3, 31, 53, .66)); }
  .home-hero__content { padding-top: 90px; }
  .hero-stats { grid-template-columns: 1fr; width: calc(100% - 30px); border-radius: 18px 18px 0 0; }
  .hero-stats > div { grid-template-columns: 105px 1fr; padding: 15px 22px; }
  .hero-stats > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .hero-stats strong { font-size: 1.65rem; }
  .announcement { grid-template-columns: auto 1fr; padding: 30px 0; }
  .announcement .text-link { grid-column: 2; }
  .split, .latest-house, .donate-band__inner, .video-feature, .donation-grid, .contact-grid { grid-template-columns: 1fr; }
  .split__media { max-width: 620px; }
  .image-stack__badge { right: 12px; bottom: -32px; }
  .latest-house > img { min-height: 340px; }
  .donate-band__action { min-width: 0; }
  .page-hero__mark { display: none; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .materials-grid, .help-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery { grid-template-columns: repeat(3, 1fr); }
  .house-detail { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .button-row .button { width: 100%; }
  .home-hero__content > p { font-size: 1rem; }
  .announcement { grid-template-columns: 1fr; }
  .announcement .text-link { grid-column: auto; }
  .section-heading--row, .footer__bottom { align-items: start; flex-direction: column; }
  .latest-house > img { min-height: 260px; }
  .archive-tools { grid-template-columns: 1fr; }
  .houses-grid, .materials-grid, .help-grid, .house-detail, .field-row, .footer__grid { grid-template-columns: 1fr; }
  .house-card__body h2, .house-card__body > p:not(.house-card__date) { min-height: 0; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .document-grid { grid-template-columns: 1fr; }
  .account-year summary { padding: 17px 18px; }
  .document-grid { padding: 0 18px 18px; }
  .cta-card, .truck-card { grid-template-columns: 1fr; }
  .footer__about { grid-column: auto; }
  .lightbox__close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
