@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@400;600;700;800&display=swap');

:root {
    --caritas-red: #c8102e;
    --caritas-red-deep: #950a22;
    --ink: #181a1e;
    --muted: #5f6770;
    --paper: #fcfaf8;
    --panel: #ffffff;
    --line: #e9e8e6;
    --shadow-soft: 0 14px 35px rgba(18, 20, 24, 0.09);
    --shadow-strong: 0 20px 48px rgba(15, 15, 15, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background:
        radial-gradient(circle at 0% 0%, #fff2f3 0%, transparent 36%),
        radial-gradient(circle at 100% 10%, #fce8ea 0%, transparent 34%),
        linear-gradient(145deg, #f9f4ef 0%, #f7ecea 45%, #f5f4f2 100%),
        var(--paper);
}

    body.no-scroll {
        overflow: hidden;
    }

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.site-chrome {
    position: sticky;
    top: 0;
    z-index: 1300;
    transition: box-shadow 240ms ease, backdrop-filter 240ms ease;
}

.site-chrome.scrolled {
    box-shadow: 0 10px 26px rgba(5, 5, 5, 0.24);
    backdrop-filter: saturate(1.12) blur(4px);
}

.top-bar {
    background: #050505;
    color: #f3f4f7;
    font-size: 0.92rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
}

.top-email {
    letter-spacing: 0.02em;
}

.lang-switcher a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 180ms ease, transform 180ms ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    opacity: 1;
    transform: translateY(-1px);
}

.navbar {
    background: linear-gradient(90deg, var(--caritas-red-deep), var(--caritas-red), #d92343);
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand img {
    max-height: 56px;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.menu-toggle {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    background: transparent;
    padding: 8px 12px;
    border-radius: 7px;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 14px 0 12px;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 6px;
}

.nav-links.open {
    display: flex;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    padding: 4px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 220ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 76vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(122deg, rgba(200, 16, 46, 0.9) 0%, rgba(154, 10, 34, 0.77) 48%, rgba(10, 12, 16, 0.72) 100%),
        url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-30deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 8px);
}

.hero-content {
    position: relative;
    color: #fff;
    padding: 92px 0 84px;
    animation: fadeUp 760ms ease both;
}

.hero h1 {
    margin: 0 0 12px;
    max-width: 850px;
    font-family: 'Merriweather', serif;
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1.1;
}

.hero p {
    max-width: 720px;
    font-size: 1.12rem;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    filter: brightness(1.02);
}

.btn-primary {
    background: #fff;
    color: var(--caritas-red);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.86);
}

.section {
    padding: 72px 0;
}

.section:nth-of-type(odd) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 241, 236, 0.75));
}

.sub-hero {
    position: relative;
    color: #fff;
    padding: 66px 0 52px;
    background:
        linear-gradient(120deg, rgba(149, 10, 34, 0.9), rgba(200, 16, 46, 0.82)),
        url('https://images.unsplash.com/photo-1518399681705-1c1a55e5e883?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.sub-hero h1 {
    margin: 0 0 10px;
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 5vw, 3rem);
}

.sub-hero p {
    margin: 0;
    max-width: 760px;
}

.section h2 {
    margin: 0 0 16px;
    font-family: 'Merriweather', serif;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    line-height: 1.2;
}

.section-intro {
    color: var(--muted);
    margin: 0 0 24px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.split-grid {
    display: grid;
    gap: 24px;
}

.about-section,
.donation-section,
.readings-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.96));
}

.about-side {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-side img {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.news-grid,
.project-grid,
.reading-grid,
.donation-grid,
.gallery-grid {
    display: grid;
    gap: 18px;
}

.news-card,
.project-card,
.reading-card,
.donation-card {
    background: var(--panel);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.news-card img,
.project-card img,
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-body,
.project-body,
.reading-card,
.donation-card {
    padding: 16px;
}

.news-date {
    color: var(--muted);
    font-size: 0.9rem;
}

.lang-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff4f5;
    color: var(--caritas-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.read-more {
    display: inline-flex;
    margin-top: 8px;
    text-decoration: none;
    color: var(--caritas-red);
    font-weight: 800;
    transition: transform 180ms ease;
}

.read-more:hover {
    transform: translateX(3px);
}

.card-link {
    color: var(--ink);
    text-decoration: none;
}

.card-link:hover {
    color: var(--caritas-red);
}

.btn-soft {
    color: #fff;
    background: linear-gradient(90deg, var(--caritas-red-deep), var(--caritas-red));
}

.list-cta {
    margin-top: 22px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 8px;
}

.map-wrap {
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-height: 320px;
}

.map-wrap iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.gallery-grid {
    grid-template-columns: 1fr 1fr;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-open {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.detail-layout {
    display: grid;
    gap: 22px;
}

.detail-image {
    width: 100%;
    border-radius: 14px;
    max-height: 470px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.detail-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.article-body p {
    margin-top: 0;
}

.article-body > * + * {
    margin-top: 12px;
}

.article-body ul,
.article-body ol {
    padding-left: 1.2rem;
}

.article-body a {
    color: var(--caritas-red);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(0, 0, 0, 0.9);
    display: grid;
    place-items: center;
    grid-template-columns: auto minmax(320px, 84vw) auto;
    gap: 12px;
    padding: 30px;
}

.lightbox[aria-hidden='true'] {
    display: none;
}

.lightbox figure {
    margin: 0;
    width: 100%;
}

.lightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox figcaption {
    margin-top: 8px;
    color: #f3f3f3;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.15rem;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    touch-action: manipulation;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

@media (max-width: 759px) {
    .lightbox {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 12px;
    }

    .lightbox figure {
        width: 100%;
        max-width: 100%;
        display: grid;
        place-items: center;
    }

    .lightbox img {
        max-height: 72vh;
    }

    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.45);
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
    }
}

.hover-lift {
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.site-footer {
    margin-top: 54px;
    color: #f4f5f8;
    background: linear-gradient(145deg, #111318, #1f222b);
}

.footer-grid {
    display: grid;
    gap: 24px;
    padding: 48px 0 34px;
}

.site-footer h4 {
    margin: 0 0 8px;
    color: #fff;
}

.site-footer a {
    color: #f6d6d9;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-footer a:hover {
    color: #fff;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 0;
    color: #c4cad4;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 760px) {
    .menu-toggle {
        display: none;
    }

    .nav-inner {
        gap: 22px;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        width: auto;
        padding: 0;
        gap: 16px;
    }

    .split-grid {
        grid-template-columns: 1.12fr 0.88fr;
        align-items: start;
    }

    .detail-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .news-grid,
    .project-grid,
    .reading-grid,
    .donation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
