@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
    --sand: #e8d4a8;
    --gold: #c9a227;
    --bronze: #8b6914;
    --papyrus: #f5f0e1;
    --night: #1a1410;
    --terracotta: #c45c26;
    --lapis: #1e4d7b;
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--papyrus);
    color: var(--night);
    line-height: 1.8;
}

.page-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.ancient-header {
    background: linear-gradient(90deg, var(--night) 0%, var(--bronze) 50%, var(--night) 100%);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: var(--sand);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--gold);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gold);
    margin: 6px 0;
}

/* Hero */
.pharaoh-hero {
    background: linear-gradient(135deg, var(--bronze) 0%, var(--terracotta) 50%, var(--gold) 100%);
    padding: 160px 0 120px;
    position: relative;
}

.pharaoh-hero::after {
    content: '☥';
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18rem;
    color: rgba(255,255,255,0.08);
}

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

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--papyrus);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
}

.royal-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--night);
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--gold);
    transition: all 0.4s;
}

.royal-btn:hover {
    background: var(--gold);
    color: var(--night);
}

/* Pillars Section */
.pillars {
    padding: 80px 0;
    background: var(--papyrus);
}

.pillar-row {
    display: flex;
    gap: 40px;
}

.pillar {
    flex: 1;
    background: var(--sand);
    padding: 50px 35px;
    text-align: center;
    border-top: 5px solid var(--gold);
    position: relative;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 15px solid var(--gold);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pillar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--bronze);
    margin-bottom: 15px;
}

.pillar p {
    color: #555;
    font-size: 1rem;
}

/* Temple (Game) Section */
.temple-section {
    background: var(--night);
    padding: 100px 0;
}

.temple-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 50px;
}

.game-chamber {
    max-width: 980px;
    margin: 0 auto;
    border: 8px solid var(--bronze);
    padding: 15px;
    background: linear-gradient(135deg, var(--bronze) 0%, var(--gold) 100%);
}

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

/* Story Section */
.story-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--papyrus) 0%, var(--sand) 100%);
}

.story-block {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

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

.story-block:nth-child(even) {
    flex-direction: row-reverse;
}

.story-visual {
    flex: 0 0 350px;
    height: 300px;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--bronze) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 4px solid var(--gold);
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--bronze);
    margin-bottom: 20px;
}

.story-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 18px;
}

/* Footer */
.ancient-footer {
    background: var(--night);
    color: var(--sand);
    padding: 70px 0 40px;
    border-top: 5px solid var(--bronze);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col a {
    display: block;
    color: var(--sand);
    text-decoration: none;
    margin-bottom: 12px;
    opacity: 0.85;
    transition: opacity 0.3s, color 0.3s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-col p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-seal {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(201,162,39,0.3);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(26,20,16,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gate-inner {
    background: linear-gradient(135deg, var(--bronze) 0%, var(--night) 100%);
    border: 4px solid var(--gold);
    padding: 55px 45px;
    text-align: center;
    max-width: 460px;
}

.gate-inner h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
}

.gate-inner p {
    color: var(--sand);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.gate-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gate-actions button {
    padding: 14px 38px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid var(--gold);
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-enter {
    background: var(--gold);
    color: var(--night);
}

.btn-leave {
    background: transparent;
    color: var(--gold);
}

.btn-enter:hover {
    background: var(--sand);
}

.btn-leave:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

.hidden {
    display: none !important;
}

/* Page Styles */
.page-banner {
    background: linear-gradient(135deg, var(--bronze) 0%, var(--terracotta) 100%);
    padding: 150px 0 70px;
    text-align: center;
}

.page-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--papyrus);
}

.page-text {
    padding: 70px 0;
    background: var(--papyrus);
}

.page-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--bronze);
    margin: 40px 0 18px;
}

.page-text h2:first-child {
    margin-top: 0;
}

.page-text p, .page-text ul {
    font-size: 1.08rem;
    color: #444;
    margin-bottom: 18px;
}

.page-text ul {
    padding-left: 28px;
}

.page-text li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-icon {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100vh;
        background: var(--night);
        flex-direction: column;
        padding: 100px 35px;
        transition: right 0.4s;
    }

    .nav-menu.open {
        right: 0;
    }

    .pillar-row {
        flex-direction: column;
    }

    .story-block, .story-block:nth-child(even) {
        flex-direction: column;
    }

    .story-visual {
        flex: none;
        width: 100%;
        height: 220px;
    }

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

    .hero-content h1 {
        font-size: 2.6rem;
    }
}
