:root {
    --page: #fff;
    --paper: #f4f7f7;
    --ink: #18343c;
    --muted: #607278;
    --primary: #0f586b;
    --primary-dark: #093d49;
    --primary-soft: #e7f0f2;
    --accent: #d2a343;
    --line: #d9e4e6;
    --radius: 24px;
    --shadow: 0 24px 65px rgba(16, 55, 65, .12);
    --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
img, iframe { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 12px 18px; border-radius: 8px; background: var(--primary); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary), white 35%); outline-offset: 3px; }

.site-header { position: relative; z-index: 50; background: var(--page); }
.header-inner { width: min(var(--container), calc(100% - 56px)); min-height: 96px; margin: 0 auto; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { width: auto; max-width: 210px; height: 58px; object-fit: contain; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50% 50% 45% 55%; color: #fff; background: var(--primary); box-shadow: inset 0 0 0 5px rgba(255,255,255,.15); transform: rotate(-6deg); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { max-width: 300px; font-size: clamp(17px, 1.7vw, 23px); line-height: 1.05; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { min-width: 0; flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: clamp(10px, 1.35vw, 22px); row-gap: 0; font-size: 14px; font-weight: 700; }
.nav-link, .nav-dropdown > button { position: relative; padding: 15px 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.nav-link::after, .nav-dropdown > button::after { content: ""; position: absolute; right: 100%; bottom: 7px; left: 0; height: 2px; background: var(--primary); transition: right .2s ease; }
.nav-link:hover::after, .nav-link.is-active::after, .nav-dropdown:hover > button::after, .nav-dropdown.is-active > button::after { right: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown > button { display: flex; align-items: center; gap: 6px; }
.nav-submenu { position: absolute; top: 100%; left: -20px; min-width: 220px; display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--page); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu, .nav-dropdown.is-open .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-submenu a { padding: 11px 12px; border-radius: 8px; }
.nav-submenu a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-cta, .button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 10px; font-weight: 800; transition: .2s ease; }
.nav-cta, .button.primary { background: var(--primary); color: #fff; box-shadow: 0 12px 28px color-mix(in srgb, var(--primary), transparent 76%); }
.nav-cta:hover, .button:hover { transform: translateY(-2px); }
.nav-cta:hover, .button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: var(--ink); color: #fff; }
.button.ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--page), transparent 7%); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle i { display: block; height: 2px; margin: 6px 0; background: var(--ink); }

.section { width: min(var(--container), calc(100% - 56px)); margin: 0 auto; padding: 104px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.section h2, .section-heading h2 { margin: 14px 0 0; font-size: clamp(38px, 4vw, 60px); line-height: 1.06; letter-spacing: -.055em; }
.section-heading { max-width: 760px; }
.section-heading.inline { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.text-link, .card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 8vw, 130px); align-items: end; }
.intro-copy { color: var(--muted); font-size: 18px; line-height: 1.75; }
.intro-copy p { margin-top: 0; }
.donation-options h2 { margin: 48px 0 10px; font-size: 25px; letter-spacing: -.03em; }
.donation-options p { margin: 0; color: var(--muted); line-height: 1.65; }
.transparency { min-height: 500px; margin-top: 52px; padding: 76px clamp(34px, 7vw, 96px); display: grid; grid-template-columns: 1fr .8fr; gap: 35px; align-items: center; border-radius: var(--radius); background: var(--primary-soft); }
.transparency p { max-width: 620px; margin: 22px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.document-stack { height: 310px; position: relative; }
.doc { position: absolute; width: 215px; height: 280px; border-radius: 15px; background: #fff; box-shadow: 0 22px 45px rgba(20,60,60,.13); }
.doc-back { left: 45%; top: 23px; background: color-mix(in srgb, var(--primary), white 72%); transform: rotate(14deg); }
.doc-middle { left: 33%; top: 12px; transform: rotate(4deg); }
.doc-front { left: 22%; top: 0; padding: 50px 32px; transform: rotate(-8deg); }
.doc-front::before { content: ""; display: block; width: 46px; height: 46px; margin-bottom: 28px; border-radius: 12px; background: var(--primary-soft); }
.doc-front i { display: block; height: 7px; margin: 13px 0; border-radius: 8px; background: var(--line); }
.doc-front b { position: absolute; right: 26px; bottom: 26px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-size: 23px; }
.donation { text-align: center; }
.donation-copy { max-width: 780px; margin: 0 auto 50px; }
.donation-copy p { color: var(--muted); font-size: 18px; }
.donation-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.donation-options article { min-height: 285px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: .2s ease; }
.donation-options article:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.donation-options article > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); font-weight: 900; }
.donation-options h2 { margin-top: 27px; }
.donation-options p { min-height: 70px; }
.donation-options a { color: var(--primary); font-weight: 800; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-grid article { min-width: 0; }
.card-image { height: 240px; display: block; overflow: hidden; border-radius: var(--radius); background: var(--primary-soft); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-image:hover img { transform: scale(1.035); }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--primary); background: linear-gradient(145deg, var(--primary-soft), color-mix(in srgb, var(--accent), white 70%)); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.news-grid time { display: block; margin-top: 22px; color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.news-grid h2, .news-grid h3 { margin: 10px 0; font-size: 23px; line-height: 1.27; letter-spacing: -.025em; }
.news-grid p { color: var(--muted); line-height: 1.65; }
.albums { padding-top: 40px; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.album-card { min-height: 370px; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--primary-soft); }
.album-card > img, .album-card > .image-placeholder { width: 100%; height: 100%; position: absolute; object-fit: cover; transition: transform .45s ease; }
.album-card:hover > img { transform: scale(1.035); }
.album-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.album-card > span:last-child { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; display: grid; gap: 7px; color: #fff; }
.album-card strong { font-size: 22px; }
.album-card small { opacity: .8; }
.contact-cta { margin-top: 60px; margin-bottom: 80px; padding: 65px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-radius: var(--radius); color: #fff; background: var(--ink); }
.contact-cta h2 { max-width: 760px; font-size: clamp(34px, 4vw, 54px); }

.page-hero { max-width: 1060px; padding-top: 92px; padding-bottom: 58px; }
.page-hero h1, .article-header h1, .not-found h1 { max-width: 940px; margin: 22px 0; font-size: clamp(50px, 7vw, 86px); line-height: 1; letter-spacing: -.065em; }
.page-hero > p { max-width: 100%; color: var(--muted); font-size: 20px; line-height: 1.6; }
.article-header > p { max-width: 700px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 50px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--primary); }
.content-prose { max-width: 940px; padding-top: 30px; display: flow-root; color: #35474a; font-size: 17px; line-height: 1.78; }
.content-prose h2, .content-prose h3 { color: var(--ink); letter-spacing: -.035em; }
.content-prose h2 { margin-top: 55px; font-size: 36px; }
.content-prose h3 { margin-top: 40px; font-size: 26px; }
.content-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.content-prose figure { max-width: 100%; margin: 32px 0; }
.content-prose img { max-width: 100%; height: auto !important; margin: 28px auto; border-radius: 14px; }
.content-prose figure img { display: block; margin: 0 auto; }
.content-prose iframe { display: block; width: 100%; min-height: 440px; margin: 30px 0; border: 0; border-radius: 14px; }
.content-prose table { width: 100% !important; margin: 30px 0; border-collapse: collapse; font-size: 15px; }
.content-prose th, .content-prose td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.listing-section { padding-top: 15px; }
.pagination { display: flex; gap: 8px; margin-top: 60px; justify-content: center; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; }
.pagination a.is-current { color: #fff; background: var(--primary); border-color: var(--primary); }
.article-page { max-width: 980px; }
.article-header { max-width: 890px; margin: 0 auto; }
.article-header time { color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.article-cover { width: 100%; max-height: 620px; margin: 35px auto 70px; border-radius: var(--radius); object-fit: cover; }
.article-page .content-prose { width: 100%; }
.article-footer { margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid button { height: 285px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--paper); cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-grid button:hover img { transform: scale(1.035); }
.image-dialog { width: min(1100px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 16px; background: transparent; }
.image-dialog::backdrop { background: rgba(5,15,18,.9); }
.image-dialog img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.dialog-close { position: fixed; top: 15px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.15); font-size: 30px; cursor: pointer; }
.contact-page { padding-top: 15px; }
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-details article { min-height: 290px; display: flex; flex-direction: column; align-items: flex-start; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-label { color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.contact-details h2, .donation-page h2 { margin: 34px 0 17px; font-size: 26px; letter-spacing: -.04em; }
.contact-details p { color: var(--muted); line-height: 1.7; }
.contact-details a { margin: 4px 0; font-weight: 700; }
.contact-details a:hover { color: var(--primary); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.social-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.map-embed, .map-empty { min-height: 480px; margin-top: 28px; overflow: hidden; border-radius: var(--radius); background: var(--primary-soft); }
.map-embed iframe { width: 100%; height: 480px; border: 0; }
.map-empty { display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; }
.map-empty span { font-size: 55px; font-weight: 900; color: var(--primary); }
.donation-page { padding-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.donation-page article { min-height: 340px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); }
.donation-page article p { color: var(--muted); line-height: 1.7; }
.donation-page .pix-card { color: #fff; background: var(--primary); }
.donation-page .pix-card .contact-label, .donation-page .pix-card p { color: rgba(255,255,255,.76); }
.donation-page .pix-card strong { display: block; margin: 40px 0 16px; font-size: 23px; word-break: break-all; }
.document-list { padding-top: 15px; }
.empty-state { padding: 60px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; background: var(--paper); }
.empty-state h2 { margin: 0 0 10px; font-size: 30px; }
.empty-state p { color: var(--muted); }
.not-found { min-height: 620px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found p { margin: 0 0 30px; color: var(--muted); font-size: 19px; }

.site-footer { color: rgba(255,255,255,.72); background: var(--ink); }
.footer-inner { width: min(var(--container), calc(100% - 56px)); min-height: 300px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr .6fr .8fr; gap: clamp(50px, 8vw, 120px); padding: 70px 0; }
.footer-inner .brand { color: #fff; }
.footer-inner .brand-copy small { color: rgba(255,255,255,.55); }
.footer-about p { max-width: 470px; margin-top: 23px; font-size: 14px; line-height: 1.7; }
.footer-inner h2 { margin: 0 0 20px; color: #fff; font-size: 14px; }
.footer-inner > div:not(.footer-about) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 13px; }
.footer-inner .social-links a { border-color: rgba(255,255,255,.2); }
.footer-bottom { width: min(var(--container), calc(100% - 56px)); min-height: 70px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

@media (max-width: 1100px) {
    .header-inner { min-height: 80px; }
    .menu-toggle { display: block; margin-left: auto; }
    .main-nav { position: absolute; top: 72px; right: 28px; left: 28px; display: none; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--page); box-shadow: var(--shadow); }
    .main-nav.is-open { display: grid; }
    .main-nav .nav-link, .nav-dropdown > button { width: 100%; padding: 12px; text-align: left; }
    .nav-submenu { position: static; display: none; margin: 0 8px 8px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .nav-dropdown.is-open .nav-submenu { display: grid; }
    .nav-cta { margin-top: 7px; }
}

@media (max-width: 780px) {
    .header-inner, .section, .footer-inner, .footer-bottom { width: calc(100% - 36px); }
    .brand-logo { max-width: 160px; height: 48px; }
    .brand-copy small { display: none; }
    .section { padding: 76px 0; }
    .intro, .transparency { grid-template-columns: 1fr; }
    .intro { gap: 28px; }
    .donation-options, .news-grid, .album-grid, .contact-details, .donation-page { grid-template-columns: 1fr; }
    .transparency { width: calc(100% - 36px); padding: 45px 26px; }
    .document-stack { height: 280px; transform: scale(.84); transform-origin: center; }
    .section-heading.inline { display: grid; align-items: start; }
    .album-card { min-height: 330px; }
    .contact-cta { padding: 42px 28px; flex-direction: column; align-items: flex-start; }
    .page-hero { padding-top: 65px; }
    .breadcrumbs { margin-bottom: 38px; }
    .page-hero h1, .article-header h1, .not-found h1 { font-size: clamp(48px, 15vw, 70px); }
    .content-prose { padding-top: 20px; font-size: 16px; overflow-wrap: anywhere; }
    .content-prose iframe { min-height: 280px; }
    .content-prose table { display: block; overflow-x: auto; }
    .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .photo-grid button { height: 220px; }
    .contact-details article, .donation-page article { min-height: auto; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { padding: 25px 0; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
    .brand-mark { width: 40px; height: 40px; }
    .brand-copy strong { max-width: 190px; font-size: 16px; }
    .section h2, .section-heading h2 { font-size: 38px; }
    .doc-front { left: 11%; }
    .doc-middle { left: 22%; }
    .doc-back { left: 33%; }
    .photo-grid { grid-template-columns: 1fr; }
    .photo-grid button { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
