/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #1a252f;      /* Deep Navy */
    --accent: #c0a375;       /* Muted Bronze/Gold */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --whatsapp: #25D366;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    
    /* DISABLE TEXT SELECTION GLOBALLY */
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
}

/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    background: var(--accent);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.dot { color: var(--accent); }

.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 2px;
}
.btn-nav:hover { background: var(--accent); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 85vh; /* Desktop Height */
    background: linear-gradient(rgba(26, 37, 47, 0.8), rgba(26, 37, 47, 0.7)),
                url('https://images.unsplash.com/photo-1541976590-713941681591?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax for Desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content { max-width: 900px; padding: 0 20px; position: relative; z-index: 1; }

.subtitle { 
    color: var(--accent); 
    font-weight: 700; 
    letter-spacing: 3px; 
    font-size: 0.9rem;
    display: block;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* Buttons */
.btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}
.btn-primary:hover { 
    background: var(--accent); 
    color: var(--white);
    transform: translateY(-2px); 
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* =========================================
   4. STATS / PROCESS BAR (Desktop Layout)
   ========================================= */
.stats-wrapper {
    position: relative;
    top: -50px;       /* Pulls the box up to overlap Hero */
    margin-bottom: -50px; /* Balances the layout */
    z-index: 10;
    padding: 0 5%;
}

.stats-container {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns for Desktop */
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-box { 
    text-align: center; 
    padding: 15px;
}

.border-left { border-left: 1px solid #eee; }

.stat-box i { display: block; margin-bottom: 10px; }

.stat-box .number {
    display: block;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-box .label {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* =========================================
   5. GALLERY
   ========================================= */
.section-padding { padding: 80px 5%; max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag { color: var(--accent); font-weight: bold; font-size: 0.8rem; letter-spacing: 2px; }
.section-header h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--primary); margin-top: 10px; }
.line { width: 60px; height: 3px; background: var(--accent); margin: 20px auto 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 2rem; }

/* Lightbox */
.lightbox-modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-modal.active { display: flex; opacity: 1; }
.lightbox-content {
    max-width: 90%; max-height: 90%; border: 2px solid var(--white);
    border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.close-btn {
    position: absolute; top: 20px; right: 30px; color: var(--white);
    font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s;
}
.close-btn:hover { color: var(--accent); }

/* =========================================
   6. FOOTER
   ========================================= */
footer { background: var(--primary); color: var(--white); padding: 80px 5% 30px; margin-top: 80px; }
.footer-inner { 
    max-width: 1200px; margin: 0 auto; 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 { font-size: 1.5rem; margin-bottom: 20px; }
.footer-col h4 { font-size: 1.1rem; color: var(--accent); margin-bottom: 20px; text-transform: uppercase; }
.footer-col p { color: #a0aab5; margin-bottom: 10px; }
.badges span {
    display: inline-block; border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 10px; margin-right: 5px; font-size: 0.8rem; color: #a0aab5;
}
.copyright { text-align: center; padding-top: 30px; color: #5f6c7b; font-size: 0.9rem; }
.contact-icons-container { display: flex; gap: 15px; margin-top: 15px; }
.contact-circle {
    display: flex; align-items: center; justify-content: center; width: 50px; height: 50px;
    border-radius: 50%; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
    color: var(--white); font-size: 1.5rem;
}
.contact-circle:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.whatsapp-btn { background-color: var(--whatsapp); }
.whatsapp-btn:hover { background-color: #1ebe57; }
.email-btn { background-color: var(--accent); }
.email-btn:hover { background-color: #a38b63; }

/* =========================================
   7. MOBILE RESPONSIVENESS (THE FIX)
   ========================================= */
@media (max-width: 768px) {
    
    /* A. HERO IMAGE FIX (Stops Cut-off) */
    .hero {
        background-attachment: scroll !important; /* Forces image to scroll naturally */
        background-position: center top;
        height: auto;
        min-height: 80vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero h1 { font-size: 2.2rem; }
    
    /* B. STATS/PROCESS BAR FIX (Stacks Vertically) */
    .stats-wrapper {
        top: 0;
        margin-top: -30px; /* Slight overlap */
        margin-bottom: 0;
    }

    .stats-container { 
        grid-template-columns: 1fr; /* Force 1 Column */
        gap: 0; 
        padding: 20px; 
    }

    .stat-box { 
        padding: 30px 10px;
        border-bottom: 1px solid #eee; /* Horizontal lines */
    }
    
    .stat-box:last-child { border-bottom: none; }
    .border-left { border-left: none; } /* Remove vertical lines */
    
    /* C. MENU FIX */
    .logo-text { font-size: 0.9rem; }
    .nav-links li { display: none; } /* Hide text links */
    .nav-links li:last-child { display: block; } /* Show Tender button */
    
    /* D. GALLERY FIX */
    .gallery-grid { grid-template-columns: 1fr; }
}

/* --- SECURITY: PREVENT IMAGE DRAGGING --- */
img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* =========================================
   MOBILE SECURITY: DISABLE LONG PRESS
   ========================================= */
img {
    /* 1. Disables the "Copy/Save" menu on iOS */
    -webkit-touch-callout: none;
    
    /* 2. Disables highlighting the image */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* 3. Disables dragging the image (Desktop) */
    -webkit-user-drag: none;
}
