/* --- Global Styles & Variables --- */
:root {
    --color-primary: #1F3C54; /* Dark Blue/Gray */
    --color-accent: #E58728; /* Construction Orange */
    --color-text: #555;
    --color-light: #f4f4f4;
    --font-family: 'Poppins', sans-serif;
    --padding-section: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

h2 {
    color: var(--color-primary);
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.accent {
    color: var(--color-accent);
}

.bg-light {
    background-color: var(--color-light);
}

.section-padding {
    padding: var(--padding-section);
}

.section-tag {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.center-text {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #C06B1F; /* Darker orange */
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: #162c3e; /* Darker primary */
}

.btn-contact {
    /* Style for the header 'Get a Quote' button */
    background-color: var(--color-accent);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #C06B1F;
}

/* --- CONTACT FORM --- */
/* Target the form specifically */
#contact-form {
    display: flex;
    flex-direction: column; /* Stacks inputs vertically */
    align-items: center;    /* Centers items horizontally */
    gap: 15px;              /* Adds clean spacing between inputs */
    max-width: 400px;       /* Keeps the form from getting too wide */
    margin: 0 auto;         /* Centers the entire form container on the page */
    padding: 20px;
}

/* Style the individual inputs and textareas */
#contact-form input, 
#contact-form textarea {
    width: 100%;            /* Makes them take up the full 400px width */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

/* Style the button to match your site's branding */
#contact-form .btn-contact {
    width: 100%;            /* Optional: makes button same width as inputs */
    padding: 12px;
    background-color: #your-accent-color; /* Use your site's gold/blue color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

/* Specifically target links in the contact info column */
.contact-info a {
    color: white !important; /* Forces the text to be white */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-accent) !important; /* Turns orange when hovered */
}

.contact-info p {
    color: white; /* Ensures the text around the links is also white */
}

#contact-form .btn-contact:hover {
    filter: brightness(1.1); /* Subtle hover effect */
}

#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Use these classes to change the look based on success/error */
.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.hidden {
    display: none;
}

/* --- 1. Header & Navigation --- */
.main-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    padding: 10px 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.main-nav ul li a:not(.btn-contact):hover {
    color: var(--color-accent);
}

/* --- 2. Hero Section --- */
.hero-section {
    background: url('placeholder-hero-image.jpg') no-repeat center center/cover;
    /* IMPORTANT: Replace 'placeholder-hero-image.jpg' with a large, high-quality construction image */
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Overlay for better text readability */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    color: white;
    max-width: 800px;
    z-index: 2;
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-content h2 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

/* --- 3. About Us Section --- */
.about-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    font-weight: 600;
}

.about-text ul li i {
    margin-right: 10px;
}

/* --- 4. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.service-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-box i {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.service-box h3 {
    color: var(--color-primary);
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* --- 5. Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-item {
    height: 250px;
    background-color: #ccc; /* Placeholder color */
    display: flex;
    align-items: flex-end;
    padding: 15px;
    color: white;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)) no-repeat center center/cover;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.project-item:hover {
    opacity: 0.8;
}

/* --- 6. Footer --- */
.main-footer {
    background-color: var(--color-primary);
    color: white;
    padding-top: 50px;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-accent);
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* This ensures all icons and text in the contact col are white */
.footer-col.contact-info p, 
.footer-col.contact-info i {
    color: white;
}

/* Keep your icons orange as a highlight */
.footer-col.contact-info i {
    color: var(--color-accent);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #3d5a71;
    font-size: 0.8em;
    color: #ccc; /* Slightly dimmed for the copyright area */
}

/* Ensure the designer link in the bottom is visible */
.footer-bottom a {
    color: #ffffff;
    opacity: 0.8;
}

.footer-col p, .footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: white;
}

.footer-col i {
    margin-right: 10px;
    color: var(--color-accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.newsletter input[type="email"] {
    width: 70%;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter button {
    width: 30%;
    padding: 10px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    margin-left: -5px;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #3d5a71;
    font-size: 0.8em;
}

.footer-bottom a:hover {
    text-decoration: underline; /* Optional: adds underline back on hover for better UX */
    color: #d1d1d1; /* Optional: slight grey tint so users know it's clickable */
    opacity: 1; /* Forces it to be fully visible */
    visibility: visible;
}

/* --- Responsiveness (Mobile First Adjustments) --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .main-nav ul li a {
        padding: 5px 10px;
        font-size: 0.9em;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .about-section .container {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .newsletter input[type="email"],
    .newsletter button {
        width: 100%;
        margin: 5px 0;
        border-radius: 5px;
    }
}