/* =========================================
   1. GLOBAL RESET & BRAND VARIABLES
   ========================================= */
:root {
    --brand-orange: #F37021;  
    --brand-blue: #0066B3;    
    --brand-cyan: #00AEEF;    
    --brand-green: #10ac84;   
    --brand-gold: #D4AF37;    
    --dark-bg: #020b1c;       
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f4f8fb;      
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 45px; /* Space for Promo Bar */
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .playfair {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

p { margin-bottom: 1.2rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Global Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section { padding: 90px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.dark-bg { background-color: var(--dark-bg); color: var(--white); }
.width-100 { width: 100%; }

/* =========================================
   2. BUTTONS & UI COMPONENTS
   ========================================= */
.btn {
    padding: 14px 32px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: none;
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-orange { background: var(--brand-orange); color: white; box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3); }
.btn-orange:hover { background: var(--brand-blue); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 102, 179, 0.3); }

.btn-primary { background: var(--brand-blue); color: white; box-shadow: 0 4px 15px rgba(0, 102, 179, 0.3); }
.btn-primary:hover { background: var(--brand-orange); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(243, 112, 33, 0.3); }

.btn-outline { 
    border: 2px solid var(--brand-blue); 
    color: var(--brand-blue); 
    background: transparent;
    padding: 12px 30px;
}
.btn-outline:hover { background: var(--brand-blue); color: white; transform: translateY(-2px); }

.btn-nav-contact { 
    padding: 10px 22px !important; 
    background: var(--brand-orange); 
    color: white !important; 
    border-radius: 5px; 
    font-size: 14px !important; 
}

/* Badges & Tags */
.tag { 
    background: var(--brand-cyan); 
    color: white; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.subtitle { 
    max-width: 750px; 
    margin: 0 auto 50px; 
    color: var(--text-light); 
    font-size: 18px; 
}

/* =========================================
   3. NAVIGATION & PC HEADER DESIGN
   ========================================= */
.promo-bar { 
    background: var(--brand-orange); 
    color: white; 
    height: 45px;
    display: flex;
    align-items: center;
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 2000; 
    font-size: 14px; 
}
.promo-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.btn-xs { padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.btn-white { background: white; color: var(--brand-orange); }
.btn-white:hover { background: var(--brand-blue); color: white; }
.close-btn { background: none; border: none; color: white; font-size: 16px; cursor: pointer; }

.navbar { 
    background: var(--white); 
    box-shadow: 0 2px 20px rgba(0,0,0,0.06); 
    position: sticky; 
    top: 45px; /* Sits right under promo bar */
    z-index: 1000; 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--brand-blue); padding: 10px 0; position: relative; }
.nav-links a:hover { color: var(--brand-orange); }

/* Desktop Dropdowns */
.dropdown { position: relative; }
.dropdown-content {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0;
    background: var(--white); 
    min-width: 240px;
    box-shadow: var(--shadow-hover); 
    border-top: 3px solid var(--brand-orange);
    padding: 10px 0;
    border-radius: 0 0 6px 6px;
    animation: fadeIn 0.2s ease-in-out;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { padding: 12px 24px; display: block; color: var(--text-dark); font-size: 14px; }
.dropdown-content a:hover { background-color: var(--bg-light); color: var(--brand-orange); padding-left: 28px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle { display: none; } /* Hidden on PC */

/* =========================================
   4. DESKTOP GRID & CARD SYSTEMS
   ========================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 35px; 
}

.card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-bottom-color: var(--brand-orange); }
.card i { font-size: 45px; margin-bottom: 25px; color: var(--brand-blue); display: block; }

/* Pricing Cards (PC Optimized) */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 5px solid #ddd;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.price { font-size: 38px; font-weight: 700; color: var(--brand-blue); margin: 20px 0; }
.price span { font-size: 14px; color: var(--text-light); font-weight: 400; }
.plan-features { list-style: none; padding: 20px 0 30px; text-align: left; flex-grow: 1; }
.plan-features li { margin-bottom: 14px; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.plan-features i { color: var(--brand-cyan); font-size: 15px; }

/* =========================================
   5. PAGE-SPECIFIC COMPONENTS
   ========================================= */

/* Hero Headers */
.page-header {
    background: linear-gradient(135deg, var(--dark-bg), #002b5c);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}
.page-header h1 { font-size: 52px; margin-bottom: 20px; }

/* Bio Section */
.bio-image img { 
    width: 100%; 
    border-radius: 12px; 
    box-shadow: 25px 25px 0 var(--brand-cyan); 
}

/* Gallery / Events Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item { height: 300px; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

/* Blog Section */
.blog-card { overflow: hidden; border-radius: 12px; }
.blog-image { height: 220px; width: 100%; object-fit: cover; }
.blog-content { padding: 30px; }
.blog-meta { font-size: 13px; color: var(--brand-orange); font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Single Post Content */
.post-container { max-width: 850px; margin: 0 auto; padding: 60px 20px; }
.post-content h2, .post-content h3 { margin: 40px 0 20px; color: var(--brand-blue); }
.post-content blockquote { 
    border-left: 5px solid var(--brand-orange); 
    padding: 25px 30px; 
    background: var(--bg-light); 
    font-style: italic; 
    font-size: 18px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

/* =========================================
   6. FOOTER (PC Multi-Column Layout)
   ========================================= */
.footer { background: #050510; color: #cbd5e0; padding: 90px 0 30px; border-top: 4px solid var(--brand-orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.footer h3 { color: var(--white); margin-bottom: 25px; font-size: 26px; }
.footer h3 span { color: var(--brand-orange); }
.footer h4 { color: var(--white); margin-bottom: 25px; font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; }
.footer-links li { margin-bottom: 14px; }
.footer-links a:hover { color: var(--brand-orange); padding-left: 8px; }
.socials a { font-size: 20px; margin-right: 18px; color: white; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; transition: var(--transition); }
.socials a:hover { background: var(--brand-orange); color: white; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 14px; }

/* =========================================
   7. RESPONSIVE BREAKPOINTS (PC to Mobile Transition)
   ========================================= */

@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .page-header h1 { font-size: 42px; }
}

@media (max-width: 768px) {
    /* Layout Adjustments */
    body { padding-top: 60px; }
    .promo-bar { height: auto; padding: 10px 15px; position: relative; }
    .navbar { top: 0; }
    .nav-container { height: 75px; }
    
    /* Mobile Menu Drawer Toggle */
    .menu-toggle { display: block; font-size: 26px; color: var(--brand-orange); cursor: pointer; }
    .nav-links {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%;
        background: var(--white); 
        flex-direction: column; 
        align-items: flex-start;
        gap: 0; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; border-bottom: 1px solid #f1f1f1; }
    .nav-links a { display: block; padding: 15px 25px; width: 100%; font-size: 16px; }
    
    /* Mobile Dropdown Fix */
    .dropdown-content { 
        position: static; 
        box-shadow: none; 
        background: #f8fafc; 
        padding-left: 15px; 
        border: none;
        display: block !important; /* Always open in mobile accordion style or handle via JS */
    }

    /* Stacking Grids */
    .grid-2, .grid-3, .grid-4, .cards-grid, .pricing-grid, .footer-grid, .gallery-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .page-header { padding: 80px 0 50px; }
    .page-header h1 { font-size: 32px; }
    .section { padding: 60px 0; }
    
    .promo-content { flex-direction: column; gap: 8px; text-align: center; }
    .bio-image img { box-shadow: 12px 12px 0 var(--brand-cyan); }
}
/* Pop-up Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dims the page */
    z-index: 99999; /* Above everything else */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Pop-up Box */
.popup-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: popupFadeIn 0.4s ease-out;
}

.popup-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: block;
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--brand-orange);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .popup-content { width: 85%; }
    .popup-close-btn { top: -10px; right: -10px; width: 30px; height: 30px; }
}
/* 9 Dimensions Layout */
.dimensions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.dimension-core-box {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.pillar-item.core {
    background: var(--white);
    border: 3px solid var(--brand-orange);
    padding: 30px 60px;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    max-width: 300px;
}

.pillar-item.core i {
    font-size: 50px;
    color: var(--brand-orange);
    margin-bottom: 15px;
}

.pillar-item.core h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pillar-item {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #eee;
}

.pillar-item:not(.core):hover {
    transform: translateY(-5px);
    border-bottom-color: var(--brand-cyan);
}

.pillar-item i {
    font-size: 32px;
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.pillar-item span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .pillar-item.core { padding: 20px 40px; }
    .pillars-grid { grid-template-columns: 1fr; }
}