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

:root {
    --bg-primary: #0E1321;
    --bg-secondary: #18213A;
    --surface: #202B46;
    --gold-royal: #D6A84F;
    --gold-bright: #F4D47C;
    --blue-kingdom: #315D9A;
    --burgundy: #5A1E2A;
    --silver: #C8D0DB;
    --text-primary: #FFF8E7;
    --text-secondary: #D8D1C2;
    --text-muted: #A29A88;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lora', serif;
    
    --footer-bg: #131A2A;
    --footer-surface: #1B2438;
    --footer-bottom: #0B101B;
    --footer-text-primary: #F4EEE0;
    --footer-text-secondary: #C8C0B2;
    --footer-text-muted: #9B9486;
    --footer-divider: rgba(214, 168, 79, 0.25);
    --footer-link: #D8D1C2;
    --footer-link-hover: #F4D47C;
    --footer-copyright-text: #A8A092;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--gold-royal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--gold-bright);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--gold-royal);
    color: var(--bg-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--gold-bright);
    color: var(--bg-primary);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gold-royal);
    color: var(--gold-royal);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--gold-royal);
    color: var(--bg-primary);
}

/* Header & Nav */
.site-header {
    background-color: #0E1321;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(214, 168, 79, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover, .main-nav a:focus {
    color: var(--gold-bright);
}

.main-nav .nav-cta {
    color: var(--bg-primary);
    background-color: var(--gold-royal);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.main-nav .nav-cta:hover {
    background-color: var(--gold-bright);
    color: var(--bg-primary);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-image: url('images/cinematic-camelot-castle-scene-excalibur-royal-banners-golden-light.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14, 19, 33, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Game Section */
.game-section {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--gold-royal);
    border-bottom: 2px solid var(--gold-royal);
    position: relative;
}

.game-wrapper {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border: 2px solid var(--gold-royal);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #000;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Highlights (Cards) */
.highlights {
    background-color: var(--bg-primary);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold-bright);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--surface);
    border: 1px solid rgba(214, 168, 79, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border-color: var(--gold-royal);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-royal);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--gold-bright);
    font-size: 1.5rem;
}

/* Kingdom Statistics */
.statistics {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(200, 208, 219, 0.1);
    border-bottom: 1px solid rgba(200, 208, 219, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 8px;
    border: 1px dashed var(--gold-royal);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold-bright);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Snippet */
.about-snippet {
    background-color: var(--bg-primary);
    text-align: center;
}

.about-snippet .container {
    max-width: 800px;
}

.about-snippet h2 {
    font-size: 2.5rem;
    color: var(--gold-bright);
}

.about-snippet p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--surface);
    margin-bottom: 1rem;
    border: 1px solid rgba(214, 168, 79, 0.2);
    border-radius: 4px;
}

summary {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-bright);
    cursor: pointer;
    list-style: none;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold-royal);
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(214, 168, 79, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold-bright);
    font-family: var(--font-heading);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(200, 208, 219, 0.2);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-royal);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Generic Page Formatting */
.page-header {
    background-image: linear-gradient(rgba(14, 19, 33, 0.8), rgba(14, 19, 33, 0.9)), url('images/medieval-stone-castle-hall-with-ancient-scrolls-and-round-table.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0 3rem;
    text-align: center;
    border-bottom: 2px solid var(--gold-royal);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--gold-bright);
}

.page-content {
    background-color: var(--bg-primary);
    padding: 4rem 0;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(214, 168, 79, 0.2);
}

.content-box h2 {
    color: var(--gold-bright);
    margin-top: 2rem;
}

.content-box ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Footer completely custom as per spec */
.site-footer {
    background-color: #0C1220;
    color: #CFC6B6;
    font-family: var(--font-body);
    border-top: 2px solid #D6A84F;
    display: flex;
    flex-direction: column;
}

.footer-top-banner {
    background-color: #18233D;
    border-bottom: 1px solid rgba(214, 168, 79, 0.2);
    padding: 1.5rem 0;
}

.footer-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-banner-text {
    flex: 1;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #F4D47C;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.footer-banner-text p {
    color: #CFC6B6;
    margin: 0;
    font-size: 0.95rem;
    max-width: 650px;
}

.footer-banner-action {
    flex-shrink: 0;
}

.footer-middle-cards {
    padding: 2rem 0;
    background-color: #0C1220;
    border-bottom: 1px solid rgba(214, 168, 79, 0.15);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.footer-card {
    background-color: #18233D;
    border: 1px solid rgba(214, 168, 79, 0.25);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-color: #D6A84F;
}

.card-icon {
    font-size: 1.8rem;
    color: #D6A84F;
    margin-bottom: 0.5rem;
}

.footer-card h4 {
    color: #F7F1E4;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-card p {
    color: #9A9285;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.footer-nav-section {
    padding: 1.5rem 0;
    background-color: #0C1220;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: #CFC6B6;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #F4D47C;
}

.footer-bottom-bar {
    background-color: #080C15;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(214, 168, 79, 0.1);
}

.footer-bottom-bar p {
    color: #9A9285;
    font-size: 0.8rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-top: 2px solid var(--gold-royal);
    padding: 1.5rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

.cookie-text {
    flex: 1;
    margin-right: 2rem;
}

.cookie-text p {
    margin: 0;
    color: var(--text-primary);
}

.cookie-btns {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .game-wrapper {
        width: 90%;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero {
        text-align: center;
    }
    .hero::before {
        background: rgba(14, 19, 33, 0.6);
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .game-wrapper {
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .cookie-text {
        margin-right: 0;
    }
    .footer-banner-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-banner-text p {
        margin: 0 auto;
    }
    .footer-nav ul {
        gap: 1rem;
    }
}