/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: transparent; /* Make body background transparent */
}

#main-content-wrapper {
    background-image: url("images/new_background.avif");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c4b7c;
    margin-top: 0;
}

a {
    color: #2c4b7c;
    text-decoration: none;
}

.nav-menu a {
    font-size: 18px; /* Bigger font */
    font-weight: bold; /* Bold font */
}

a:hover {
    text-decoration: underline;
}

/* Header styles - keep white background */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    font-size: 18px; /* Bigger font */
    font-weight: bold; /* Bold font */
}

/* Hero section - revert to original background */
.hero {
    background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #add8e6;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #2c4b7c;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1e3a61;
    text-decoration: none;
}

/* Sections within main-content-wrapper */
.services,
.about,
.portfolio,
.testimonials,
.contact {
    background: transparent; /* Let the main-content-wrapper background show through */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: white;
}

.section-title h2 {
    color: white;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #e67e22;
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white; /* White background for service cards */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Special styling for loft conversion image to make it smaller */
.service-card.loft-conversion img {
    height: 180px;
    object-fit: cover;
    object-position: center;
}

/* Special styling for plumbing & electric images */
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-bottom: 15px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    color: white;
}

.about-text {
    padding-right: 20px;
}

.values {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-item {
    text-align: center;
    padding: 20px;
    color: white;
}

.value-item i {
    font-size: 40px;
    color: #add8e6;
    margin-bottom: 15px;
}

.value-item h3 {
    color: white;
}

.portfolio-details {
    margin: 40px 0;
}

.portfolio-item {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff; /* White background for portfolio items */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.portfolio-item h3 {
    color: #2c4b7c;
    margin-bottom: 15px;
}

.portfolio-item p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-details {
    list-style-type: none;
    padding: 0;
}

.project-details li {
    margin-bottom: 8px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: """;
    font-size: 80px;
    color: #e67e22;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.2;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 20px;
    font-weight: bold;
}

.testimonial-location {
    color: #777;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    margin-bottom: 30px;
    color: white;
}

.contact-info h3 {
    margin-bottom: 15px;
    color: white;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form-container {
    max-width: 100%;
    margin: 0;
    padding: 30px;
    background-color: #fff; /* White background for contact form */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form-container h3 {
    color: #2c4b7c;
    margin-bottom: 15px;
}

.contact-form {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #2c4b7c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1e3a61;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Working hours section - white background */
.working-hours-container {
    max-width: 100%;
    margin: 30px 0;
    padding: 25px;
    background-color: #fff; /* White background for working hours */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.working-hours-container h3 {
    color: #2c4b7c;
    margin-bottom: 15px;
}

.hours-table {
    margin: 20px 0;
    border-top: 1px solid #ddd;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.day {
    font-weight: 500;
}

.time {
    color: #2c4b7c;
}

.emergency-notice {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #2c4b7c;
}

.emergency-notice p {
    margin: 0;
}

.emergency-notice a {
    color: #2c4b7c;
    text-decoration: none;
    font-weight: 500;
}

.emergency-notice a:hover {
    text-decoration: underline;
}

/* Footer - keep original styling */
footer {
    background-color: #2c4b7c;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #e67e22;
    margin-top: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
}

.footer-section ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .values {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 20px;
    }
    
    .nav-menu li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .services-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .values {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item,
    .contact-form-container,
    .working-hours-container {
        padding: 15px;
    }
    
    .hours-row {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .day {
        margin-bottom: 5px;
    }
}

/* Enhanced file upload styles */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px 20px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.file-upload-area:hover {
    border-color: #2c4b7c;
    background-color: #f0f4f8;
}

.file-upload-area.drag-over {
    border-color: #2c4b7c;
    background-color: #e8f0fe;
    transform: scale(1.02);
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.file-upload-text {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.file-upload-browse {
    color: #2c4b7c;
    text-decoration: underline;
    font-weight: 500;
}

.file-upload-info {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* File list styles */
.file-list {
    margin-top: 20px;
}

.selected-files {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.selected-files h4 {
    margin: 0 0 15px 0;
    color: #2c4b7c;
    font-size: 16px;
    font-weight: 600;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.remove-file-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.remove-file-btn:hover {
    background-color: #c82333;
}

/* Submit button with loading state */
.submit-btn {
    position: relative;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form status enhancements */
.form-status.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    display: block;
}

.form-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Responsive design for file upload */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-upload-icon {
        font-size: 36px;
    }
    
    .file-upload-text {
        font-size: 14px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .remove-file-btn {
        align-self: flex-end;
        margin-left: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Focus states for accessibility */
.file-upload-area:focus-within {
    outline: 2px solid #2c4b7c;
    outline-offset: 2px;
}

.remove-file-btn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Animation for file list updates */
.file-item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom styles for uniform input width */
.contact-form {
    max-width: 450px; /* Adjust this value as needed */
    margin-left: 0;
    margin-right: auto; /* Align to left */
}


