/* Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Royal Forest & Gold theme variables */
    --bg-dark-green: #071a10; /* Deep forest green */
    --bg-green-card: #0c2417; /* Dark green for cards in dark sections */
    --bg-cream: #f9f6ef; /* Warm cream background for light sections */
    --bg-cream-card: #ffffff; /* Pure white cards on cream sections */
    --accent-gold: #c89e5a; /* Luxury gold for details */
    --accent-gold-rgb: 200, 158, 90;
    --accent-orange: #e76f51; /* Warm terracotta/orange for primary CTA */
    --text-main-dark: #14291c; /* Dark forest text for cream sections */
    --text-muted-dark: #5c7065; /* Muted dark text */
    --text-main-light: #f5f8f6; /* Light text for green sections */
    --text-muted-light: #9cb0a4; /* Muted light text */
    
    /* Legacy/Common Mapped properties to avoid breaking generic layouts */
    --primary-color: #c89e5a; /* Primary accent is now Gold */
    --secondary-color: #e76f51; /* Secondary is Orange */
    --accent-color: #e76f51;
    --bg-dark: #071a10;
    --bg-card: #0c2417;
    --bg-glass: rgba(12, 36, 23, 0.95);
    --text-main: #f5f8f6;
    --text-muted: #9cb0a4;
    --header-bg: rgba(7, 26, 16, 0.96);
    --border-color: rgba(200, 158, 90, 0.25);
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s all;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    background-color: var(--bg-dark-green);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(200, 158, 90, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(231, 111, 81, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 50% 10%, rgba(200, 158, 90, 0.04) 0%, transparent 50%);
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
}

/* Base Utility Classes */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}
img { max-width: 100%; height: auto;}

/* Header Rewrite */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 2005;
    transition: var(--transition);
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 45px rgba(3, 7, 18, 0.95);
    height: 75px;
}
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
}
.logo img {
    height: 48px;
    filter: drop-shadow(0 0 12px rgba(200, 158, 90, 0.35));
    transition: var(--transition);
}
.nav-list ul {
    display: flex;
    gap: 1.5rem;
}
.nav-list a {
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}
.nav-list a:hover::after {
    width: 100%;
}
.nav-list a:hover {
    color: var(--primary-color);
}

.header-auth .btn-signup {
    background: var(--accent-orange);
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    font-size: 0.78rem;
    border: none;
    border-radius: 4px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.35);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.08em;
}
.header-auth .btn-signup:hover {
    background: #d65d40;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.45);
}

.section-title {
    font-size: clamp(2.1rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
    text-transform: none;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.75rem;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.85;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}
.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

/* Footer Rewrite */
footer {
    background: #030a06; /* Dark forest green black */
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
    border-top: 2px solid var(--primary-color);
    position: relative;
}
footer::before {
    content:'';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top, rgba(200, 158, 90, 0.08), transparent 70%);
    pointer-events: none;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative; z-index: 2;
}
.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 300px;
}
.footer-nav h4, .footer-contact h4 {
    color: var(--accent-gold) !important;
    font-family: 'Cinzel', serif !important;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}
.footer-nav ul, .footer-contact ul {
    display: flex; flex-direction: column; gap: 0.8rem;
}
.footer-nav a {
    color: var(--text-muted) !important;
    transition: all 0.3s ease !important;
}
.footer-nav a:hover {
    color: var(--accent-gold) !important;
    padding-left: 5px;
}
.footer-contact li {
    color: var(--text-muted) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.footer-socials a {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.footer-socials a:hover {
    background: var(--accent-gold) !important;
    color: #030a06 !important;
    border-color: var(--accent-gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(200, 158, 90, 0.3) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    position: relative; z-index: 2;
}

/* Mobile Bar */
.mobile-bottom-bar { display: none; }
@media(max-width: 992px) {
    .header-container { padding: 0 2rem; }
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-dark);
        padding: 6rem 2rem;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        transition: right 0.4s;
        border-left: 1px solid var(--primary-color);
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 2rem; }
    .mobile-menu-toggle { display: flex; }
    .header-auth .btn-signup { display: none; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand .footer-desc { margin: 1rem auto; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: var(--bg-dark);
        border-top: 1px solid var(--primary-color);
        padding: 10px;
        z-index: 1005;
        justify-content: space-between;
        gap: 10px;
    }
    .mobile-bottom-bar a {
        flex: 1; text-align: center; padding: 12px 0;
        font-family: 'Inter', sans-serif; font-weight: bold;
        text-transform: uppercase; border-radius: 4px;
    }
    .mobile-bottom-bar .btn-login { border: 1px solid var(--primary-color); color: var(--primary-color); }
    .mobile-bottom-bar .btn-register { background: var(--accent-orange); color: #fff; }
    body { padding-bottom: 60px; }
}