/* Template 52 - Gothic Cathedral / Dark Medieval */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Uncial+Antiqua&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --stone-dark: #1a1a1f;
    --stone-mid: #2d2d35;
    --stone-light: #45454f;
    --parchment: #f4e9d6;
    --parchment-dark: #d4c4a8;
    --blood-red: #8b0000;
    --gold-accent: #c9a227;
    --gold-light: #e6c555;
    --candle-glow: #ffd700;
    --text-light: #e8e0d0;
    --text-muted: #9a9a9a;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'EB Garamond', serif;
    line-height: 1.8;
    color: var(--text-light);
    background: var(--stone-dark);
    font-weight: 400;
    font-size: 1.1rem;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(201, 162, 39, 0.02) 100px,
            rgba(201, 162, 39, 0.02) 101px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(201, 162, 39, 0.02) 100px,
            rgba(201, 162, 39, 0.02) 101px
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Gothic Arch Header */
.site-header {
    background: var(--stone-mid);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold-accent);
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: var(--stone-mid);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-bottom: 2px solid var(--gold-accent);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
}

.site-logo a {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 2.5rem;
    color: var(--gold-accent);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.site-logo a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
}

.site-nav {
    margin-top: 1rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    border-left: 1px solid var(--stone-light);
}

.site-nav li:last-child a {
    border-right: 1px solid var(--stone-light);
}

.site-nav a:hover {
    background: var(--blood-red);
    color: var(--parchment);
}

/* Hero Section */
.section.head {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, var(--stone-mid) 0%, var(--stone-dark) 100%);
}

.section.head::before {
    content: '\2020';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: var(--gold-accent);
    opacity: 0.5;
}

.section.head h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--parchment);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.section.head p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid var(--stone-light);
    border-left: 4px solid var(--blood-red);
    background: rgba(0,0,0,0.2);
    font-style: italic;
}

.section.head p::first-letter {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    color: var(--gold-accent);
}

/* Section Styling */
.section {
    padding: 5rem 0;
    position: relative;
}

.section header {
    text-align: center;
    margin-bottom: 4rem;
}

.section header::before {
    content: '\2666 \2666 \2666';
    display: block;
    color: var(--gold-accent);
    letter-spacing: 1rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.section header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--parchment);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--stone-mid);
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--gold-accent);
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--stone-mid);
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
}

.footer::after {
    content: '\2020';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--gold-accent);
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-about {
    flex: 1;
    max-width: 400px;
}

.footer-tagline {
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a::before {
    content: '\2023';
    margin-right: 0.5rem;
    color: var(--blood-red);
}

.footer-links a:hover {
    color: var(--gold-accent);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-light);
}

.copyright a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

/* Candle Flicker Animation */
@keyframes candleFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

.fade-in {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

body:not(.faq) h3,
:not(section.faq) h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--parchment);
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
