/* --- CSS VARIABLES & CORE STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #0b120e;      
    --bg-surface: #121c16;   
    --bg-hover: #1c2b22;     
    --text-primary: #f4e9d5; 
    --text-muted: #8c9e93;   
    --accent: #bf9b30;       
    --accent-hover: #e0bc46;
    --border-color: #1e2e25; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; 
}

a { color: var(--accent); text-decoration: none; transition: 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* --- TOP HEADER --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo-area { display: flex; align-items: center; gap: 1rem; }
.logo-area img { height: 50px; opacity: 0.9; }
.logo-area h1 { font-size: 1.2rem; font-weight: 600; letter-spacing: 1px; color: var(--text-primary); }

.search-bar { position: relative; width: 400px; }
.search-bar input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px 8px 40px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; fill: var(--text-muted);
}

.header-links a { color: var(--text-muted); font-size: 0.9rem; margin-left: 1.5rem; font-weight: 500; }
.header-links a:hover { color: var(--text-primary); }

/* --- MAIN LAYOUT (3 COLUMNS) --- */
.app-container { display: flex; flex: 1; overflow: hidden; }

/* Left Sidebar (Main Nav) */
.sidebar-left {
    width: 260px;
    background-color: var(--bg-base);
    border-right: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem; /* Increased padding for breathing room */
    flex-shrink: 0;
    overflow-y: auto;
}

.nav-group { 
    margin-bottom: 2.5rem; /* Much larger gap between sections */
}

.nav-group h4 { 
    color: var(--accent); /* Brass color to stand out from links */
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-bottom: 1rem; 
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle divider line */
}

.nav-link {
    display: block; 
    padding: 8px 12px; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    font-weight: 500; 
    border-radius: 6px; 
    margin-bottom: 4px; 
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-link:hover { 
    background-color: var(--bg-hover); 
    color: var(--text-primary); 
    padding-left: 16px; /* Cool hover effect: nudges the text slightly right */
}

.nav-link.active { 
    background-color: rgba(191, 155, 48, 0.1); 
    color: var(--accent); 
}
/* Center Content */
.main-content {
    flex: 1;
    background-color: var(--bg-surface);
    padding: 3rem 4rem 5rem 4rem;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.content-wrapper { max-width: 800px; margin: 0 auto; }

/* Right Sidebar (On This Page) */
.sidebar-right {
    width: 240px;
    background-color: var(--bg-base);
    border-left: 1px solid var(--border-color);
    padding: 2rem;
    flex-shrink: 0;
    overflow-y: auto;
    transition: 0.2s ease;
}
.sidebar-right h4 { color: var(--text-primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.toc-link { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.7rem; }
.toc-link:hover, .toc-link.active { color: var(--accent); }

/* --- TYPOGRAPHY & SECTIONS --- */
.page-label { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 0.5rem; display: block; }
h2.title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.intro-text { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }

.covenant-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.covenant-section h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text-primary); }
.covenant-section h4 { font-size: 1.1rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; color: var(--text-primary); }

ul.rules-list { list-style: none; margin-left: 0; }
ul.rules-list > li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); }
ul.rules-list > li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background-color: var(--accent); border-radius: 50%; }

p { margin-bottom: 1rem; color: var(--text-muted); }
strong { color: var(--text-primary); font-weight: 600; }
.highlight { background-color: rgba(191, 155, 48, 0.3); color: var(--text-primary); border-radius: 3px; padding: 0 2px; }

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* This changed from flex-start to center */
    margin-bottom: 2rem;
}

.hero-logo {
    width: 180px; 
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* This targets just the overview tab to center the paragraphs below the hero */
#view-overview {
    text-align: center;
}

/* UTILITIES & IMAGES */
.hidden { display: none !important; }
.content-image { 
    width: 100%; 
    height: auto; /* Ensures the image keeps its natural proportions */
    display: block;
    border-radius: 12px; 
    margin: 2.5rem 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    object-fit: cover;
    /* If you ever use this as a background-image on a div, these lines are the "safety" */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- MISSION & VISION GRID --- */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.info-card h3 {
    color: var(--accent);
    margin-top: 0 !important;
}

/* --- RENTAL PERKS SECTION --- */
.perks-container {
    margin: 3rem 0;
    padding: 3rem 2rem;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    margin-top: 2.5rem;
}

.perk-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Updated for FontAwesome Icons */
.perk-icon {
    font-size: 2.2rem;
    color: var(--text-primary); /* Pure white/cream */
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.perk-item h5 {
    color: var(--accent); /* Brass */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

.perk-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 220px;
    margin: 0;
}

/* --- SOCIAL LINKS (BUTTON STYLE) --- */
.social-grid { 
    display: flex; 
    gap: 1.2rem; 
    margin-top: 3rem; 
    justify-content: center;
    flex-wrap: wrap;
}

.social-card { 
    padding: 14px 28px; 
    background: transparent; 
    border: 2px solid var(--border-color); 
    border-radius: 50px; 
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.social-card:hover { 
    background-color: var(--accent); 
    border-color: var(--accent); 
    color: var(--bg-base); 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(191, 155, 48, 0.2); 
    text-decoration: none;
}