/* 
    ARVENA ENGINEERING - FULL PREMIUM STYLESHEET 
    Theme: Modern Architectural / High-End Corporate
    Refined for: Mobile alignment, precise spacing, and cinematic hero
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --charcoal: #1A1A1A;
    --warm-white: #F7F7F5;
    --sand: #D9C8A3;
    --gold: #C8A96E;
    --white: #FFFFFF;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 1. CORE RESETS & SECURITY */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { 
    background-color: var(--warm-white); 
    font-family: 'Inter', sans-serif; 
    color: var(--charcoal); 
    overflow-x: hidden;
    /* Security: Prevent text selection */
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
}

/* Allow selection in admin panel and form inputs */
.admin-body, input, textarea { 
    -webkit-user-select: text; 
    user-select: text; 
}

section {
    padding: 100px 0; /* Standardized desktop vertical spacing */
    overflow: hidden; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 5%; 
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700; 
}

a { 
    text-decoration: none; 
    transition: var(--transition); 
}

/* 2. NAVIGATION & MOBILE MENU */
.navbar {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000;
    padding: 35px 0; 
    transition: var(--transition);
}

.navbar.scrolled { 
    background: var(--charcoal); 
    padding: 18px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 35px; 
    align-items: center; 
}

.nav-links a { 
    color: var(--warm-white); 
    font-size: 11px; 
    font-weight: 600; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.nav-links a:hover { color: var(--gold); }

.btn-gold-nav { 
    background: var(--gold); 
    color: var(--charcoal); 
    padding: 14px 28px; 
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.mobile-menu-btn {
    display: none; 
    flex-direction: column; 
    gap: 6px; 
    cursor: pointer; 
    z-index: 1100;
}

.mobile-menu-btn span { 
    width: 30px; 
    height: 2px; 
    background: var(--warm-white); 
    transition: var(--transition); 
}

/* 3. HERO SECTION */
.hero {
    height: 100vh;
    /* Path points to images folder in root */
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex; 
    align-items: center; 
    position: relative;
}

.hero-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Gradient overlay ensures text readability over architectural imagery */
    background: linear-gradient(to right, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.4) 100%);
    z-index: 1;
}

/* Sub-page Hero Fix (e.g., projects.php) */
.projects-hero {
    height: 45vh;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    background-attachment: fixed;
}

.hero-overlay-sub {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.8); /* Solid dark contrast */
    z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero h1 { 
    font-size: clamp(38px, 6vw, 72px); 
    color: var(--warm-white); 
    line-height: 1.1; 
    margin-bottom: 30px; 
}

.hero h1 span { color: var(--gold); }

.hero p { 
    max-width: 580px; 
    font-size: 19px; 
    color: var(--sand); 
    margin-bottom: 45px; 
    line-height: 1.7; 
}

.page-title {
    color: var(--warm-white);
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--sand);
    font-size: 16px;
    max-width: 500px;
}

.btn-gold { 
    background: var(--gold); 
    color: var(--charcoal); 
    padding: 18px 38px; 
    font-size: 13px; 
    font-weight: 700; 
    display: inline-block; 
}

.btn-outline { 
    border: 1px solid var(--warm-white); 
    color: var(--warm-white); 
    padding: 18px 38px; 
    font-size: 13px; 
    font-weight: 700; 
    margin-left: 20px; 
}

.btn-outline:hover { 
    background: var(--warm-white); 
    color: var(--charcoal); 
}

/* 4. INTRO BAR (Built on Systems) */
.intro-bar { background: var(--warm-white); }

.intro-flex { 
    display: flex; 
    align-items: center; 
    gap: 80px; 
}

.intro-brand { 
    flex: 1; 
    border-right: 1px solid #E0E0E0; 
}

.intro-brand h2 { 
    font-size: 22px; 
    color: var(--gold); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    line-height: 1.4; 
}

.intro-brand h2 span { color: var(--charcoal); }

.intro-text { 
    flex: 2; 
    font-size: 18px; 
    color: #444; 
    line-height: 1.9; 
}

/* 5. SERVICES GRID */
.services { text-align: center; }

.section-subtitle {
    text-align: center; 
    font-size: 13px; 
    font-weight: 700; 
    letter-spacing: 3px; 
    color: #999; 
    margin-bottom: 20px;
    text-transform: uppercase;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    margin-top: 80px; 
    border-top: 1px solid #EEE; 
}

.service-card { 
    padding: 80px 40px; 
    border-right: 1px solid #EEE; 
    text-align: center; 
}

.service-card:last-child { border-right: none; }

.service-card img { 
    width: 50px; 
    margin-bottom: 35px; 
    object-fit: contain;
}

.service-card h3 { 
    font-size: 14px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
}

.service-card p { 
    font-size: 14px; 
    color: #777; 
    line-height: 1.7; 
}

/* 6. PROCESS SECTION (Dotted Connectors) */
.process { background: var(--charcoal); color: var(--warm-white); }

.process-wrapper { 
    display: flex; 
    gap: 100px; 
}

.process-text { flex: 1; }

.process-text h2 { font-size: 48px; margin-bottom: 30px; }

.process-steps { 
    flex: 2; 
    display: flex; 
    justify-content: space-between; 
}

.step-item { 
    flex: 1; 
    text-align: center; 
    position: relative; 
}

.step-number { 
    font-size: 64px; 
    color: var(--gold); 
    opacity: 0.3; 
    margin-bottom: -10px; 
}

.step-item:not(:last-child):after {
    content: ''; 
    position: absolute; 
    top: 75px; 
    right: -35%; 
    width: 70%;
    border-top: 1px dotted rgba(200, 169, 110, 0.4);
}

/* 7. PROJECTS SECTION */
.portfolio-listing {
    background-color: var(--warm-white);
    padding: 100px 0;
}

.projects-header {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    border-bottom: 1px solid #EEE; 
    padding-bottom: 30px;
    margin-bottom: 60px;
}

.projects-header h2 { font-size: 32px; }

.view-all {
    font-size: 11px; 
    font-weight: 700; 
    color: var(--charcoal); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
}

.no-projects-fallback {
    grid-column: span 3;
    text-align: center;
    padding: 80px 0;
    color: #999;
    font-size: 14px;
    border: 1px dashed #DDD;
}

.project-card img { 
    width: 100%; 
    aspect-ratio: 4/5; 
    object-fit: cover; 
    margin-bottom: 25px; 
    transition: var(--transition); 
}

.project-card:hover img { transform: scale(1.05); }

.project-card h4 { font-size: 20px; margin-bottom: 8px; }

.project-card span { 
    display: block; 
    margin-top: 12px; 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--gold); 
    text-transform: uppercase; 
}

/* 8. WHY CHOOSE ARVENA BAR (Fixed Alignment) */
.why-choose { padding: 80px 0; background: #FBFBFA; }

.why-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 50px 0;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
    flex: 1;
}

.why-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    opacity: 0.8;
}

/* 9. FOOTER (Premium Deep Black) */
.footer {
    background: #080808; 
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-brand .logo img { height: 40px; margin-bottom: 20px; }

.footer-brand .copyright {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.footer h4 {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #888; font-size: 13px; transition: 0.3s; }
.footer-links a:hover { color: var(--gold); }

.footer-contact p { 
    color: #888; font-size: 14px; margin-bottom: 15px; 
    display: flex; align-items: center; gap: 12px; 
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: flex-end;
}

.footer-bottom p {
    font-size: 11px;
    color: #444;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 10. RESPONSIVE MEDIA QUERIES (Gap Audit) */
@media (max-width: 1024px) {
    section { padding: 70px 0; }
    .intro-flex, .process-wrapper { flex-direction: column; gap: 40px; text-align: center; }
    .intro-brand { border-right: none; border-bottom: 1px solid #E0E0E0; padding-bottom: 30px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { border-bottom: 1px solid #EEE; }
    .service-card:nth-child(2n) { border-right: none; }
    .step-item:after { display: none; }
    .process-steps { flex-direction: column; gap: 50px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-menu-btn { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--charcoal); flex-direction: column; justify-content: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .services-grid, .projects-grid, .footer-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none; }
    .why-grid { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 30px; 
    }
    .why-item:last-child { grid-column: span 2; }
    .footer-bottom { justify-content: center; }
    .hero h1 { font-size: 38px; }
    .btn-outline { margin-left: 0; margin-top: 15px; display: block; }
}