/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --primary: #0f172a;     /* Deep Navy - Trust & Authority */
    --secondary: #2563eb;   /* Vivid Blue - Digital & Tech */
    --accent: #f97316;      /* Energetic Orange - Action & Sales */
    --bg-light: #f8fafc;    /* Off-white background */
    --text-dark: #334155;   /* Main text color */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 15px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }

a { text-decoration: none; transition: 0.3s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.text-center { text-align: center; }

/* Standard Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.logo span { color: var(--secondary); }

.nav-links a {
    margin-left: 25px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--secondary); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    padding: 120px 0;
    text-align: center;
    color: var(--white);
}

.hero h1 { color: var(--white); margin-bottom: 25px; }
.hero p { font-size: 1.3rem; opacity: 0.9; max-width: 700px; margin: 0 auto 40px; }

/* =========================================
   5. SECTIONS (WHY US & SERVICES)
   ========================================= */
.section-pad { padding: 100px 0; }

/* Split Layout (Left Text / Right Image) */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary);
}

.image-block {
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Pillars Grid (Services) */
.pillars-bg { background-color: var(--white); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pillar-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: left;
    transition: 0.3s all ease;
    border: 1px solid #e2e8f0;
}

.pillar-card:hover {
    border-color: var(--secondary);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* =========================================
   6. POLICY PAGE STYLING
   ========================================= */
.policy-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.policy-container h1 { margin-bottom: 40px; text-align: center;}
.policy-container h4 { margin-top: 30px; margin-bottom: 10px; font-size: 1.2rem; color: var(--secondary);}
.policy-container ul { padding-left: 20px; margin-bottom: 20px; }
.policy-container li { margin-bottom: 10px; }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: var(--primary);
    color: #94a3b8; /* Muted text for footer */
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

footer h3 { color: var(--white); margin-bottom: 20px; }

.contact-highlight {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 12px;
}

.footer-links a:hover { color: var(--accent); }

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* =========================================
   8. FLOATING WHATSAPP BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #25D366; /* WhatsApp Green */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* =========================================
   9. POPUP STYLES (Fixed Alignment)
   ========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-box {
    width: 75vw;
    height: 75vh;
    background: rgba(255, 255, 255, 0.90);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Internal wrapper to handle centering */
.popup-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spiritual-text {
    color: #ea580c; 
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 40px; /* Space from top */
}

.main-message {
    margin-top: auto;    /* Push to vertical center */
    margin-bottom: auto; /* Push to vertical center */
    text-align: center;
}

.main-message h1 {
    font-size: 4rem;
    color: #0f172a;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.main-message p {
    font-size: 1.3rem;
    color: #64748b;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #333;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.close-btn:hover {
    color: #ea580c;
    transform: scale(1.1);
}

/* =========================================
   10. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    
    .nav-links { display: none; } /* Simplified menu for now */
    
    .split-grid, .footer-grid { grid-template-columns: 1fr; }
    
    .image-block { min-height: 250px; order: -1; margin-bottom: 30px;}
    
    .policy-container { margin: 40px 20px; padding: 25px;}

    /* WhatsApp Mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }

    /* Popup Mobile */
    .popup-box {
        width: 90%;
        height: 60%;
        padding: 15px;
    }
    .spiritual-text {
        font-size: 1.2rem;
        margin-top: 30px;
    }
    .main-message h1 {
        font-size: 2.2rem;
    }
}
