:root {
    --color-bg: #faf8f5;
    --color-bg-alt: #f3efe9;
    --color-text: #2c2420;
    --color-text-muted: #6b5e56;
    --color-accent: #7a2e2e;
    --color-accent-light: #a04040;
    --color-gold: #8b6914;
    --color-gold-light: #c9a84c;
    --color-border: #e0d8d0;
    --color-white: #ffffff;

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    --max-width: 1100px;
    --radius: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 36, 32, 0.1);
    --shadow-lg: 0 12px 40px rgba(44, 36, 32, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============ NAVBAR ============ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    transition: color 0.3s;
}

.navbar.scrolled .nav-logo {
    color: var(--color-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text-muted);
}

.nav-links a:hover,
.navbar.scrolled .nav-links a:hover {
    color: var(--color-accent);
}

.nav-cta {
    padding: 0.5rem 1.2rem;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    font-weight: 500;
}

.navbar.scrolled .nav-cta {
    border-color: var(--color-accent);
    color: var(--color-accent) !important;
}

.nav-cta:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: background-color 0.3s, transform 0.3s;
}

.navbar.scrolled .nav-toggle span {
    background-color: var(--color-text);
}

/* ============ HERO ============ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(44, 36, 32, 0.3) 0%,
        rgba(44, 36, 32, 0.5) 50%,
        rgba(44, 36, 32, 0.8) 100%
    );
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    padding: var(--space-md);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.hero-dates {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

.hero-quote {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding-top: 10rem;
}

.hero-quote-rule {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto var(--space-md);
}

.hero-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8em;
}

.hero-quote p:last-of-type {
    margin-bottom: 0;
}

.hero-quote cite {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    animation: float 2.5s ease-in-out infinite;
}

/* Hero announcement banner */
.hero-banner {
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: rgba(122, 46, 46, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 100px;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.hero-banner:hover {
    background: rgba(122, 46, 46, 1);
    color: var(--color-white);
    transform: translateX(-50%) scale(1.03);
}

.hero-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold-light);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============ SECTIONS ============ */

.section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--color-gold-light);
    margin: var(--space-sm) auto 0;
}

/* ============ STORY ============ */

.story {
    background: var(--color-bg);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.story-grid--reverse {
    direction: rtl;
}

.story-grid--reverse > * {
    direction: ltr;
}

.story-text p {
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-image {
    text-align: center;
}

.story-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    max-height: 450px;
    object-fit: cover;
}

.image-caption {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ============ TIMELINE ============ */

.timeline-container {
    background: var(--color-bg-alt);
    padding: var(--space-lg) 0;
    margin-top: var(--space-lg);
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm) var(--space-sm);
    position: relative;
}

.timeline-year {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.timeline-item--highlight .timeline-year {
    color: var(--color-accent);
}

.timeline-event {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 140px;
    line-height: 1.4;
}

/* ============ GALLERY ============ */

.gallery {
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 400;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

/* ============ MISSION ============ */

.mission {
    background: var(--color-bg);
}

.mission-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 750px;
    margin: 0 auto var(--space-lg);
    color: var(--color-text-muted);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.mission-card {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mission-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.mission-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.mission-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============ EVENT ============ */

.event {
    background: var(--color-bg-alt);
}

/* ============ SOURCES ============ */

.sources {
    background: var(--color-bg);
}

.sources-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.sources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
}

.source-category h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-gold-light);
}

.source-list {
    list-style: none;
    padding: 0;
}

.source-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}

.source-list li:last-child {
    border-bottom: none;
}

.source-list em {
    color: var(--color-text-muted);
}

.source-list a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.source-list a:hover {
    border-bottom-color: var(--color-accent);
}

.event-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border-top: 4px solid var(--color-accent);
}

.event-card-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    align-items: center;
}

.event-card-image {
    width: 180px;
    flex-shrink: 0;
}

.event-card-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.event-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.event-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.event-detail {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1rem;
    color: var(--color-text);
}

.event-detail svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* ============ DOWNLOADS ============ */

.downloads {
    background: var(--color-bg-alt);
}

.downloads-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 650px;
    margin: 0 auto var(--space-md);
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    color: var(--color-text);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.download-thumb {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
}

.download-icon {
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.download-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.download-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.download-format {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    background: var(--color-bg-alt);
    border-radius: 100px;
    color: var(--color-text-muted);
}

.downloads-approval {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ============ SUPPORT ============ */

.support {
    background: var(--color-bg);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.support-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.iban-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
}

.iban-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.iban-number {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.iban-name {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.support-qr {
    text-align: center;
}

.qr-image {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--space-xs);
    padding: var(--space-sm);
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.qr-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ============ FOOTER ============ */

.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============ ANIMATIONS ============ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        gap: var(--space-sm);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--color-text) !important;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-banner {
        top: 3.8rem;
        left: auto;
        right: 1rem;
        transform: none;
        max-width: calc(100% - 2rem);
        font-size: 0.72rem;
        padding: 0.5rem 1rem;
        gap: 0.4rem;
    }

    .hero-content {
        padding-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100vh;
        padding-bottom: 5rem;
    }

    .hero-quote {
        padding-top: 2rem;
    }

    .story-grid,
    .story-grid--reverse {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        direction: ltr;
    }

    .story-image img {
        max-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .support-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .iban-box {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .sources-grid {
        grid-template-columns: 1fr;
    }

    .sources-grid .source-category:last-child {
        grid-column: 1;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .event-card {
        padding: var(--space-md);
    }

    .event-card-inner {
        grid-template-columns: 1fr;
    }

    .event-card-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .timeline {
        gap: var(--space-xs) var(--space-sm);
    }

    .timeline-item {
        padding: var(--space-xs);
    }

    .timeline-year {
        font-size: 1.3rem;
    }

    .timeline-event {
        font-size: 0.75rem;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        top: 3.2rem;
        left: auto;
        right: 0.5rem;
        transform: none;
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .hero-content {
        padding-top: 0;
        padding-bottom: 4rem;
    }

    .hero-quote {
        padding-top: 1.5rem;
    }

    .hero-banner svg {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }
}
