/* Nurnberg Website — Darklands-inspired medieval aesthetic */
/* Fonts: Cinzel Decorative for titles, Cinzel for headings, Crimson Text for body */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Cinzel+Decorative:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Keyframe Animations ──────────────────────────── */

@keyframes fireBreath {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes fireShift {
    0%, 100% {
        background-position: 30% 70%, 70% 60%, 50% 90%;
    }
    33% {
        background-position: 40% 65%, 60% 70%, 45% 85%;
    }
    66% {
        background-position: 25% 75%, 75% 55%, 55% 92%;
    }
}

@keyframes emberFloat1 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    80% { opacity: 0.6; }
    100% {
        transform: translateY(-240px) translateX(45px) scale(0.4);
        opacity: 0;
    }
}

@keyframes emberFloat2 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    15% { opacity: 0.9; }
    75% { opacity: 0.5; }
    100% {
        transform: translateY(-300px) translateX(-30px) scale(0.3);
        opacity: 0;
    }
}

@keyframes emberFloat3 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    12% { opacity: 1; }
    85% { opacity: 0.4; }
    100% {
        transform: translateY(-210px) translateX(22px) scale(0.5);
        opacity: 0;
    }
}

@keyframes titleShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navUnderline {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* ── Reset & Base ─────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #d4c8a8;
    background-color: #0e0c0a;
    min-height: 100vh;
}

/* ── Navigation ───────────────────────────────────── */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a1510;
    border-bottom: 2px solid #6b5331;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav .nav-tiles {
    display: flex;
    gap: 0;
    max-width: 1200px;
    width: 100%;
}

nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #c4a55a;
    border-right: 1px solid #3a2f20;
    transition: color 0.3s;
    text-align: center;
    position: relative;
    background: transparent;
}

nav a:last-child {
    border-right: none;
}

/* Nav underline sweep */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c4a55a, #f0d878, #c4a55a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

nav a:hover::after {
    transform: scaleX(1);
}

nav a:hover {
    color: #f0d878;
    background: rgba(42, 33, 24, 0.6);
}

nav a.active {
    color: #f0d878;
    background: #2a2118;
}

nav a.active::after {
    transform: scaleX(1);
}

/* ── Page Header / Hero ───────────────────────────── */

.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #1a1510 0%, #0e0c0a 100%);
    border-bottom: 1px solid #3a2f20;
}

/* Fire-glow hero — used on all pages */
.hero-fire {
    position: relative;
    padding: 80px 20px 60px;
    background: radial-gradient(ellipse at 50% 80%, #3a1505 0%, #1a0a02 40%, #0e0c0a 70%);
    overflow: hidden;
}

/* Animated fire glow layer */
.hero-fire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(180, 60, 10, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(200, 80, 10, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(240, 160, 40, 0.10) 0%, transparent 40%);
    background-size: 100% 100%;
    animation: fireBreath 6s ease-in-out infinite, fireShift 10s ease-in-out infinite;
    pointer-events: none;
}

/* Bottom fade-out */
.hero-fire::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(0deg,
        rgba(14, 12, 10, 1) 0%,
        rgba(14, 12, 10, 0) 100%);
    pointer-events: none;
}

/* Ember particles — using extra spans added via box-shadows */
.hero-fire .embers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ember:nth-child(1) {
    width: 4.5px;
    height: 4.5px;
    background: #e87020;
    bottom: 10%;
    left: 25%;
    animation: emberFloat1 4s ease-out infinite;
    animation-delay: 0s;
    box-shadow: 0 0 10px 4px rgba(232, 112, 32, 0.6);
}

.ember:nth-child(2) {
    width: 3px;
    height: 3px;
    background: #f0a030;
    bottom: 15%;
    left: 55%;
    animation: emberFloat2 5.5s ease-out infinite;
    animation-delay: 1.2s;
    box-shadow: 0 0 8px 3px rgba(240, 160, 48, 0.5);
}

.ember:nth-child(3) {
    width: 4px;
    height: 4px;
    background: #d85818;
    bottom: 8%;
    left: 72%;
    animation: emberFloat3 4.8s ease-out infinite;
    animation-delay: 2.5s;
    box-shadow: 0 0 9px 3px rgba(216, 88, 24, 0.55);
}

.ember:nth-child(4) {
    width: 3px;
    height: 3px;
    background: #f0c040;
    bottom: 12%;
    left: 40%;
    animation: emberFloat1 6s ease-out infinite;
    animation-delay: 3.8s;
    box-shadow: 0 0 8px 3px rgba(240, 192, 64, 0.5);
}

/* Title with shimmer */
.hero-fire h1 {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel Decorative', serif;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 14px;
    /* Shimmer effect */
    background: linear-gradient(
        90deg,
        #f0d878 0%,
        #f0d878 35%,
        #fff8e0 50%,
        #f0d878 65%,
        #f0d878 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(200, 100, 20, 0.6))
            drop-shadow(0 0 40px rgba(180, 60, 10, 0.3))
            drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.8));
}

.hero-fire .subtitle {
    position: relative;
    z-index: 1;
    color: #c4855a;
    text-shadow: 0 0 12px rgba(180, 80, 20, 0.3);
}

.hero h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 48px;
    font-weight: 900;
    color: #f0d878;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.hero .subtitle {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #a89060;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ── Main Content Container ───────────────────────── */

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    animation: fadeInUp 0.6s ease-out both;
}

/* ── Section Headings ─────────────────────────────── */

h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #f0d878;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a2f20;
    letter-spacing: 2px;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    color: #c4a55a;
    margin: 30px 0 12px;
}

h4 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: #a89060;
    margin: 20px 0 8px;
}

/* ── Content Panels ───────────────────────────────── */

.panel {
    background: #171310;
    border: 1px solid #3a2f20;
    border-radius: 4px;
    padding: 28px 32px;
    margin: 24px 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    border-color: #6b5331;
    box-shadow: -3px 0 12px rgba(180, 80, 20, 0.1), 0 0 20px rgba(100, 50, 10, 0.08);
}

.panel h3 {
    margin-top: 0;
    color: #f0d878;
}

.panel p {
    margin: 12px 0;
}

/* ── Feature Cards (index page) ───────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 30px 0;
}

.feature-card {
    background: #171310;
    border: 1px solid #3a2f20;
    border-left: 3px solid #6b5331;
    border-radius: 4px;
    padding: 24px 28px;
    transition: border-left-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-left-color: #c4855a;
    box-shadow: -4px 0 16px rgba(200, 80, 20, 0.15), 0 2px 12px rgba(100, 50, 10, 0.1);
    transform: translateX(2px);
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #f0d878;
}

.feature-card p {
    margin: 0;
    color: #c4b888;
}

/* ── FAQ Accordion-style ──────────────────────────── */

.faq-item {
    background: #171310;
    border: 1px solid #3a2f20;
    border-radius: 4px;
    margin: 16px 0;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: #6b5331;
    box-shadow: 0 0 16px rgba(180, 80, 20, 0.1);
}

.faq-item h3 {
    margin: 0;
    padding: 18px 24px;
    background: #1e1a14;
    color: #f0d878;
    font-size: 18px;
    border-bottom: 1px solid #3a2f20;
}

.faq-item .answer {
    padding: 18px 24px;
    color: #c4b888;
}

.faq-item .answer p {
    margin: 8px 0;
}

.faq-item .answer ul {
    margin: 10px 0;
    padding-left: 24px;
}

.faq-item .answer li {
    margin: 6px 0;
}

/* ── Lists ────────────────────────────────────────── */

ul, ol {
    padding-left: 24px;
    margin: 12px 0;
}

li {
    margin: 6px 0;
}

li strong {
    color: #c4a55a;
}

/* ── Paragraphs & Inline ──────────────────────────── */

p {
    margin: 14px 0;
}

strong {
    color: #d4c090;
    font-weight: 700;
}

em {
    font-style: italic;
    color: #b8a878;
}

a {
    color: #c4a55a;
    text-decoration: underline;
    text-decoration-color: #6b5331;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

a:hover {
    color: #f0d878;
}

/* ── Bestiary Categories (freelance page) ─────────── */

.bestiary-section {
    background: #171310;
    border: 1px solid #3a2f20;
    border-radius: 4px;
    padding: 20px 28px;
    margin: 16px 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bestiary-section:hover {
    border-color: #6b5331;
    box-shadow: 0 0 16px rgba(180, 80, 20, 0.1);
}

.bestiary-section h4 {
    margin-top: 0;
    color: #f0d878;
}

/* ── Spec Table ───────────────────────────────────── */

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.spec-table th,
.spec-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #3a2f20;
}

.spec-table th {
    background: #1e1a14;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #c4a55a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.spec-table td {
    background: #141210;
    color: #c4b888;
}

/* ── Buy Page / CTA ───────────────────────────────── */

.cta-box {
    background: #1e1a14;
    border: 2px solid #6b5331;
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    border-color: #c4855a;
    box-shadow: 0 0 24px rgba(200, 80, 20, 0.12);
}

.cta-box h2 {
    border-bottom: none;
    margin-bottom: 16px;
}

.cta-box p {
    max-width: 640px;
    margin: 12px auto;
}

.disclaimer {
    font-size: 15px;
    color: #8a7e60;
    font-style: italic;
    margin-top: 24px;
    line-height: 1.6;
}

/* ── Media Page Placeholder ───────────────────────── */

.media-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #8a7e60;
    font-family: 'Cinzel', serif;
    font-size: 20px;
}

/* ── Compensation Cards ───────────────────────────── */

.comp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.comp-card {
    background: #171310;
    border: 1px solid #3a2f20;
    border-radius: 4px;
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comp-card:hover {
    border-color: #6b5331;
    box-shadow: 0 0 16px rgba(180, 80, 20, 0.1);
}

.comp-card h4 {
    margin-top: 0;
    color: #f0d878;
}

.comp-card .rate {
    font-size: 20px;
    color: #c4a55a;
    font-weight: 700;
    margin: 8px 0;
}

/* ── Footer ───────────────────────────────────────── */

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #3a2f20;
    background: #1a1510;
    color: #6b5331;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 1px;
}

footer a {
    color: #a89060;
    text-decoration: none;
}

footer a:hover {
    color: #f0d878;
}

/* ── Roadmap / Timeline ───────────────────────────── */

.timeline {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
}

.timeline li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-left: 2px solid #3a2f20;
    margin: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: #c4a55a;
    border-radius: 50%;
    border: 2px solid #0e0c0a;
}

.timeline li strong {
    color: #f0d878;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 768px) {
    .hero h1,
    .hero-fire h1 {
        font-size: 32px;
    }

    nav .nav-tiles {
        flex-wrap: wrap;
    }

    nav a {
        font-size: 12px;
        padding: 14px 8px;
        letter-spacing: 1px;
    }

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

    main {
        padding: 24px 16px 60px;
    }

    .panel, .feature-card, .faq-item {
        padding: 18px 20px;
    }
}

/* ── Accessibility: reduced motion ────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
    }
}
