<?php
/**
 * Template Name: HRG - CEO Strategic Edition V13.0
 * CSS Standard: Knightfort/Emaar Level
 * Status: High-Performance Page Lock Enabled
 */

get_header(); ?>

<style>
:root {
    --gold: #c5a059;
    --gold-bright: #e5c07b;
    --black-pure: #000000;
    --black-matte: #050505;
    --border-thickness: 15px; 
    --header-height: 90px;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- PAGE BORDER & OVERFLOW LOCK --- */
html {
    background-color: var(--black-pure) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body {
    background-color: var(--black-pure) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    /* Fixed Side Borders */
    border-left: var(--border-thickness) solid var(--black-matte);
    border-right: var(--border-thickness) solid var(--black-matte);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Emaar Style Inner Glow Border */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    border: 1px solid rgba(197, 160, 89, 0.1);
    pointer-events: none;
    z-index: 999999;
}

/* --- HEADER FIX --- */
.site-header { 
    position: fixed; top: 0; left: var(--border-thickness); right: var(--border-thickness);
    z-index: 100001; 
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15); 
    height: var(--header-height); 
    display: flex; align-items: center;
    transition: all 0.4s var(--easing);
}

.header-flex { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; width: 100%; }

.logo-area img { height: 50px; width: auto; object-fit: contain; }

/* --- HAMBURGER MENU --- */
.mobile-toggle { width: 30px; height: 20px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; z-index: 100006; }
.mobile-toggle span { width: 100%; height: 2px; background: var(--gold); transition: 0.5s var(--easing); }

.mobile-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.main-nav {
    position: fixed; top: 0; right: -100%; 
    width: 400px; height: 100vh;
    background: var(--black-matte);
    padding: 140px 60px;
    transition: 0.8s var(--easing); 
    z-index: 100002;
    border-left: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
}
.main-nav.nav-active { right: 0; }

/* WordPress Menu Styling */
.elite-nav-list { list-style: none; padding: 0; }
.elite-nav-list li { margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.elite-nav-list li a { color: #fff; text-decoration: none; font-family: 'Big Shoulders Display', sans-serif; font-size: 1.8rem; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.elite-nav-list li a:hover { color: var(--gold); padding-left: 10px; }

/* --- HERO COVER (CINEMA LOCK) --- */
.hero-cover {
    position: relative;
    width: 100%;
    height: 100vh; 
    background: #000;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.hero-video-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-video-bg iframe {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 115vw; height: 115vh; /* Scale up to hide UI */
    object-fit: cover; opacity: 0.4;
}

/* --- FOOTER & LOCK --- */
.site-footer {
    background: var(--black-matte);
    padding: 60px 5%;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    margin-top: auto; /* Pushes footer to bottom */
    position: relative;
    z-index: 10;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    :root { --border-thickness: 8px; --header-height: 70px; }
    .main-nav { width: 85%; }
    .hero-cover { height: 80vh; }
}
</style>

<header class="site-header" id="mainHeader">
    <div class="header-flex">
        <div class="logo-area">
            <?php the_custom_logo(); ?>
        </div>
        <div class="mobile-toggle" id="menuTrigger">
            <span></span>
            <span></span>
            <span></span>
        </div>
    </div>
</header>

<nav class="main-nav" id="sideDrawer">
    <?php 
    wp_nav_menu(array(
        'theme_location' => 'primary',
        'container' => false,
        'menu_class' => 'elite-nav-list'
    )); 
    ?>
</nav>

<main class="main-wrapper">
    
    <section class="hero-cover">
        <div class="hero-video-bg">
            <iframe src="https://www.youtube.com/embed/sHf3yan1Ygo?autoplay=1&mute=1&controls=0&loop=1&playlist=sHf3yan1Ygo&rel=0&showinfo=0&autohide=1" frameborder="0"></iframe>
        </div>
        <div class="hero-text" style="position:relative; z-index:5; text-align:center;">
            <h1 style="font-size: clamp(3.5rem, 12vw, 9rem); font-family: 'Big Shoulders Display', sans-serif; text-transform: uppercase; line-height: 0.9;">Al Ghani <br><span style="color:var(--gold)">Phase 7</span></h1>
            <p style="letter-spacing:12px; font-family: 'JetBrains Mono', monospace; color:var(--gold); font-size: clamp(10px, 2vw, 14px); margin-top: 20px;">AUTHORIZED STRATEGIC SALES PARTNER</p>
        </div>
    </section>

    <section class="main-content" style="padding: 120px 10%; background: var(--black-pure);">
        <div style="max-width: 1000px; margin: 0 auto;">
            <h2 style="color:var(--gold); font-family: 'Big Shoulders Display'; font-size: 3.5rem; margin-bottom: 30px; text-transform: uppercase;">Regulatory Compliance</h2>
            <p style="font-size: 1.1rem; line-height: 2; color: #999; text-align: justify;">
                Al Ghani Garden Phase 7 stands as a legally fortified sanctuary in Lahore's suburban expansion. Verified under TMA approval 1116/TMO/WT, this project ensures that every square foot is government-vetted and legally secure.
            </p>
        </div>
    </section>

</main>

<footer class="site-footer">
    <div style="text-align: center; color: rgba(255,255,255,0.2); font-family: 'JetBrains Mono'; font-size: 10px; letter-spacing: 3px; text-transform: uppercase;">
        © 2026 HASHMI REALTY GROUP | ARCHITECTED BY CEO STRATEGIC DIVISION
    </div>
</footer>

<script>
document.addEventListener('DOMContentLoaded', function() {
    const trigger = document.getElementById('menuTrigger');
    const drawer = document.getElementById('sideDrawer');
    const body = document.body;

    // Hamburger Toggle Logic
    trigger.onclick = function() {
        this.classList.toggle('is-active');
        drawer.classList.toggle('nav-active');
        
        // Scroll Lock when menu open
        if(drawer.classList.contains('nav-active')) {
            body.style.overflow = 'hidden';
        } else {
            body.style.overflow = 'auto';
            body.style.overflowX = 'hidden';
        }
    }

    // Dynamic Header Resize
    window.onscroll = function() {
        const header = document.getElementById('mainHeader');
        if (window.scrollY > 100) {
            header.style.height = '70px';
            header.style.background = 'rgba(0,0,0,0.98)';
        } else {
            header.style.height = '90px';
            header.style.background = 'rgba(0,0,0,0.9)';
        }
    };
});
</script>

<?php 
get_footer(); 
// CRITICAL: Prevent WordPress from repeating the page content or footer loops
exit; 
?>
