/* Explain: Layout styles for header, footer, and section structure. */
/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(7, 3, 15, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
    max-width: 76rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }

.brand-mark {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: radial-gradient(circle at 32% 28%, #2c1757, #120a26 72%);
    border: 1px solid var(--border-color);
    color: var(--gold-400);
    font-size: 0.85rem;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: var(--text-color);
    white-space: nowrap;
}

.desktop-nav { display: none; gap: 1.6rem; font-size: 0.92rem; }
.desktop-nav a { color: var(--text-muted); transition: color 0.25s ease; }
.desktop-nav a:hover { color: var(--gold-300); }
.desktop-cta { display: none; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-color);
    font-size: 1.05rem;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border-soft);
    background: rgba(11, 5, 25, 0.99);
}

.mobile-nav.is-open { display: block; }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    font-size: 1rem;
}

.mobile-nav-links > a {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(185, 171, 212, 0.1);
    color: var(--text-color);
}

@media (min-width: 1024px) {
    .site-header-inner { padding: 0.8rem 2rem; }
    .desktop-nav { display: flex; }
    .desktop-cta { display: inline-flex; }
    .nav-toggle { display: none; }
    .mobile-nav { display: none !important; }
}

/* Sections */
.mystic-section { padding: 3.25rem 0; }
@media (min-width: 1024px) { .mystic-section { padding: 4.5rem 0; } }

.page-hero {
    background:
        radial-gradient(900px 420px at 20% -20%, rgba(74, 42, 143, 0.42), transparent 70%),
        linear-gradient(180deg, #0b0519 0%, #07030f 100%);
    border-bottom: 1px solid var(--border-soft);
}

.hero-mystic {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 560px at 50% -12%, rgba(88, 42, 160, 0.55), transparent 70%),
        radial-gradient(760px 420px at 12% 18%, rgba(28, 74, 150, 0.22), transparent 72%),
        linear-gradient(180deg, #0a0418 0%, #07030f 100%);
}

.hero-mystic::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.6px 1.6px at 18% 26%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.4px 1.4px at 72% 14%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.6px 1.6px at 88% 48%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.4px 1.4px at 34% 68%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.2px 1.2px at 58% 84%, rgba(224, 189, 114, 0.6), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.hero-logo {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 1rem;
    border: 1px solid rgba(224, 189, 114, 0.28);
    box-shadow: 0 28px 60px -34px rgba(0, 0, 0, 0.95);
}

.hero-slogan {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    color: var(--gold-300);
    letter-spacing: 0.04em;
}

.hero-stats {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-soft);
    background: linear-gradient(180deg, #0b0519 0%, #05020c 100%);
    padding: 2.5rem 0 1.5rem;
}

.site-footer-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
}

.footer-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-color); }
.footer-slogan { color: var(--gold-300); font-style: italic; font-size: 0.95rem; margin-top: 0.2rem; }
.footer-note { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.6rem; max-width: 22rem; }

.footer-cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-cols > div { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.9rem; }
.footer-cols a { color: var(--text-muted); transition: color 0.25s ease; }
.footer-cols a:hover { color: var(--gold-300); }

.footer-heading {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 0.35rem;
}

.footer-social { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.footer-social a {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    color: var(--gold-300);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.footer-social a:hover { border-color: var(--gold-400); background: rgba(224, 189, 114, 0.1); }

.footer-bottom {
    max-width: 76rem;
    margin: 1.75rem auto 0;
    padding: 1rem 1rem 0;
    border-top: 1px solid rgba(185, 171, 212, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .site-footer-inner { grid-template-columns: 1.1fr 1.4fr; padding: 0 2rem; }
    .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem 0;
    }
}