/* 
    ARVENA ENGINEERING - MASTER STYLESHEET 
    Theme: Modern Architectural / High-End Corporate
    Status: Final Audit - Hero Left-Align Fixed & Footer Grid Restored
*/

@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.6s cubic-bezier(0.16, 1, 0.3, 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;
    -webkit-user-select: none; 
    user-select: none; 
}

/* Allow text selection in form fields only */
input, textarea { -webkit-user-select: text; user-select: text; }

section { padding: 120px 0; 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 */
.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;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.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;
}
.btn-gold-nav:hover { 
    background: var(--white); 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 3. HERO SECTION (Locked Left Alignment Fix) */
.hero {
    height: 100vh;
    background: url('../images/main_hero.jpg') center/cover no-repeat;
    display: flex; 
    align-items: center; 
    position: relative;
    text-align: left;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.4) 100%);
    z-index: 1;
}
.hero .container { 
    position: relative; 
    z-index: 2; 
    display: flex; 
    justify-content: flex-start; /* Forces content box to the left */
    width: 100%;
}
.hero-content { 
    max-width: 800px; 
    text-align: left; 
    margin-left: 0;
}
.hero h1 { font-size: clamp(38px, 6vw, 72px); color: var(--warm-white); line-height: 1.1; margin-bottom: 30px; text-align: left; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 580px; font-size: 19px; color: var(--sand); margin-bottom: 45px; line-height: 1.7; text-align: left; }

.hero-btns { 
    display: flex; 
    gap: 20px; 
    justify-content: flex-start; /* Forces buttons to the left */
}

.btn-gold { 
    background: var(--gold); color: var(--charcoal); padding: 20px 40px; 
    font-size: 13px; font-weight: 700; border: none; cursor: pointer; 
}
.btn-gold:hover { 
    background: var(--white); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); 
}

.btn-outline { 
    border: 1px solid var(--warm-white); color: var(--warm-white); 
    padding: 20px 40px; font-size: 13px; font-weight: 700; 
}
.btn-outline:hover { 
    background: var(--warm-white); color: var(--charcoal); 
    transform: translateY(-3px);
}

/* 4. INTRO BAR */
.intro-bar { background: var(--warm-white); padding: 100px 0; }
.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; }
.intro-text { flex: 2; font-size: 18px; color: #444; line-height: 1.9; }

/* 5. OUR SERVICES (Hover Lift) */
.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; 
    background: transparent;
}
.service-card:hover { 
    background: #FFF; 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: transparent;
}
.service-card img { width: 50px; margin-bottom: 35px; transition: var(--transition); }
.service-card:hover img { transform: scale(1.1) rotate(5deg); }

/* 6. PROCESS SECTION (Fixed Side-by-Side) */
.process { background: var(--charcoal); color: var(--warm-white); }
.process-wrapper { display: flex; align-items: flex-start; gap: 100px; }
.process-text { flex: 1; text-align: left; }
.process-text h2 { font-size: 48px; margin-bottom: 30px; }
.process-text p { font-size: 17px; color: #999; margin-bottom: 40px; }

.process-steps { flex: 2; display: flex; justify-content: space-between; gap: 30px; }
.step-item { flex: 1; text-align: center; position: relative; transition: var(--transition); }
.step-item:hover { transform: scale(1.05); }

.step-number { font-size: 64px; color: var(--gold); opacity: 0.3; margin-bottom: 10px; }
.step-item:not(:last-child):after {
    content: ''; position: absolute; top: 45px; right: -30%; width: 60%;
    border-top: 1px dotted rgba(200, 169, 110, 0.4);
}

/* 7. PROJECTS SECTION */
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #EEE; padding-bottom: 30px; margin-bottom: 60px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.project-img-wrapper { overflow: hidden; margin-bottom: 25px; }
.project-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: var(--transition); }
.project-card:hover img { transform: scale(1.1); filter: brightness(1.1); }

/* 8. WHY CHOOSE ARVENA */
.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; gap: 15px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #555; }
.why-item img { width: 35px; height: 35px; object-fit: contain; transition: var(--transition); }
.why-item:hover img { transform: scale(1.2); }

/* 9. FINAL CTA (Cinematic Background) */
.final-cta {
    position: relative;
    padding: 160px 0;
    text-align: center;
    background: url('../images/cta-bg.jpg') center/cover no-repeat fixed;
}
.final-cta::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); 
    z-index: 1;
}
.final-cta .container { position: relative; z-index: 2; color: var(--white); }
.final-cta h2 { font-size: 56px; margin-bottom: 40px; }

/* 10. FOOTER (Restored Grid Ratio) */
.footer { background: #080808; padding: 120px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Standard corporate ratio restored */
    gap: 50px; 
}
.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: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

.footer-contact p { color: #888; font-size: 14px; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.footer-bottom { margin-top: 100px; padding-top: 30px; border-top: 1px solid #1a1a1a; display: flex; justify-content: flex-end; }
.footer-bottom p { font-size: 11px; color: #444; text-transform: uppercase; letter-spacing: 1px; }

/* 11. RESPONSIVE AUDIT */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .process-wrapper { flex-direction: column; text-align: center; }
    .process-text { text-align: center; margin-bottom: 60px; }
    .step-item:after { display: none; }
    .process-steps { flex-direction: column; gap: 50px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .projects-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .intro-flex { flex-direction: column; text-align: center; }
    .intro-brand { border-right: none; border-bottom: 1px solid #E0E0E0; padding-bottom: 20px; margin-bottom: 20px; }
}

/* --- SERVICE DETAIL PAGE STYLING --- */
.service-hero {
    height: 60vh;
    background-color: var(--charcoal);
    display: flex;
    align-items: center;
    position: relative;
}

.service-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Darker on the left to ensure high-contrast readability for titles */
    background: linear-gradient(to right, rgba(26,26,26,1) 0%, rgba(26,26,26,0.2) 100%);
    z-index: 1;
}

.service-main {
    padding: 120px 0;
    background: var(--warm-white);
}

.service-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.service-info {
    flex: 1;
    text-align: left;
}

.service-info h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.service-info p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.service-image-box {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.service-image-box img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    /* Architectural offset shadow using the Sand color */
    box-shadow: 40px 40px 0px var(--sand);
    transition: var(--transition);
}

.service-image-box:hover img {
    transform: scale(1.05);
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.spec-item {
    border-left: 2px solid var(--gold);
    padding-left: 20px;
}

.spec-item h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 10px;
}

.spec-item p {
    font-size: 15px;
    color: var(--charcoal);
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .service-layout { flex-direction: column; }
    .service-image-box img { height: 400px; box-shadow: 20px 20px 0px var(--sand); }
}

/* --- CONTACT SECTION STYLING --- */
.contact-section {
    background-color: var(--charcoal);
    color: var(--warm-white);
    padding: 120px 0;
}

.contact-wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
}

.contact-info { flex: 1; }
.contact-form-box { flex: 1; }

.contact-info h2 {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--white);
}

.contact-details {
    margin-top: 40px;
    font-size: 18px;
    color: var(--sand);
}

.premium-form .form-group {
    margin-bottom: 25px;
}

.premium-form input, 
.premium-form textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.premium-form input:focus, 
.premium-form textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

@media (max-width: 1024px) {
    .contact-wrapper { flex-direction: column; text-align: center; }
    .contact-info h2 { font-size: 36px; }
}