/* General Styles */
:root {
    --primary-gold: #d4af37;
    --dark-bg: #1a1a1a;
    --light-gray: #f4f4f4;
    --text-main: #333;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    color: var(--text-main); 
    line-height: 1.6; 
    background-color: #fff;
}

/* Navigation */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 8%; 
    background: var(--dark-bg); 
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: bold; letter-spacing: 1px; color: var(--primary-gold); }

nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav ul li { margin-left: 25px; }
nav ul li a { color: #fff; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
nav ul li a:hover { color: var(--primary-gold); }

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/M3.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 5%; 
    text-align: center; 
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }

/* Buttons */
.btn { 
    background: var(--primary-gold); 
    color: #fff; 
    padding: 12px 30px; 
    text-decoration: none; 
    border-radius: 3px; 
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn:hover { background: #b8962d; transform: translateY(-2px); }

/* Grid Layout for Remodeling & Electric */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    padding: 40px 8%; 
}

/* Standardizing the Image Containers */
.item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.item:hover { transform: translateY(-5px); }

/* The Magic Fix for Different Image Sizes */
.item img { 
    width: 100%; 
    height: 300px; /* This forces all images to the same height */
    object-fit: cover; /* This prevents stretching by cropping the edges to fit the box */
    object-position: center; /* Ensures the middle of the photo is always visible */
    display: block;
}

.item p { 
    padding: 15px; 
    text-align: center; 
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    background: #fff;
}


/* Contact Form */
.contact-container { padding: 80px 8%; display: flex; gap: 40px; }
.contact-form { flex: 2; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { 
    padding: 15px; border: 1px solid #ddd; border-radius: 5px; width: 100%;
}

/* Footer */
footer { 
    text-align: center; 
    padding: 40px; 
    background: var(--dark-bg); 
    color: #aaa; 
    font-size: 0.8rem;
}

/* Feature and Trust Sections */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.features {
    padding: 60px 0;
    background: #fff;
}

.feature-item {
    margin-bottom: 40px;
    text-align: center;
}

.feature-item h2 {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 15px;
}

.trust-bar {
    background: #f9f9f9;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
}

.trust-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.trust-card {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.trust-card h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
}

.cta-bottom {
    text-align: center;
    padding: 80px 20px;
    background: #1a1a1a;
    color: #fff;
}

/* Logo Styling */
.logo img {
    height: 80px; /* Adjust this to make the logo larger or smaller */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Adjust nav padding to accommodate the image */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%; /* Reduced vertical padding */
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Ensure menu links stay centered vertically with the logo */
nav ul {
    align-items: center;
}


/* Logo & Text Container */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px; /* Spacing between logo and text */
}

.logo img {
    height: 65px; /* Slightly smaller to balance with text */
    width: auto;
    display: block;
    border-radius: 4px; /* Optional: rounds the corners of the logo slightly */
}

.logo-text {
    color: #d4af37; /* Original Gold style */
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'Arial Black', sans-serif; /* Bold, professional look */
    line-height: 1;
}

/* Responsive adjustment for small phones */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .logo img {
        height: 45px;
    }
}
