
/* Global Styles */
:root {
    /* Updated color palette extracted from the new grey logo */
    --primary-color: #353535; /* dark grey used for headers, navigation and footers */
    --secondary-color: #A0A0A0; /* medium grey used for buttons and highlights */
    --background-color: #F5F5F5; /* light grey used for the page background */
    --text-color: #2C2C2C; /* dark text for high contrast on light backgrounds */
    --font-family: 'Arial', sans-serif;
}
body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 {
    margin: 0.5rem 0;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 50px;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    transition: background 0.3s ease;
}
.hero {
    position: relative;
    height: 70vh;
    /* Use a construction site scene as the hero background */
    background-image: url('../assets/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    /* Dark grey overlay to complement the new branding */
    background: rgba(53, 53, 53, 0.6);
    padding: 2rem;
    border-radius: 8px;
    color: #fff;
}
.hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover {
    background-color: #d4a92a;
    color: var(--primary-color);
}
.btn.secondary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}
.btn.secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}
.services-preview,
.about-preview {
    padding: 4rem 0;
}
.services-preview h2,
.about-preview h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.service-card {
    flex: 1 1 30%;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}
.service-card p {
    color: #555;
}
.about-preview {
    background-color: #f7f7f7;
    text-align: center;
}
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-contact p {
    margin: 0.25rem 0;
}
.page-hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem 0;
    text-align: center;
}
.page-hero h1 {
    margin: 0;
    font-size: 2.5rem;
}
.projects-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 0;
}
.project-item {
    flex: 1 1 calc(33% - 1rem);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.project-item img {
    width: 100%;
    height: auto;
}
.project-item h3 {
    padding: 1rem;
    margin: 0;
    color: var(--primary-color);
}
.project-item p {
    padding: 0 1rem 1rem;
    color: #555;
    flex-grow: 1;
}
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 0;
}
.contact-info {
    flex: 1 1 40%;
    color: #555;
}
.contact-info h2 {
    color: var(--primary-color);
}
.contact-info p {
    margin: 0.5rem 0;
}
.contact-form {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family);
}
.contact-form button {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.contact-form button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 80px;
        right: -220px;
        width: 200px;
        height: calc(100vh - 80px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
        transition: right 0.3s ease;
    }
    nav ul.open {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
    .services-grid,
    .projects-gallery,
    .contact-content {
        flex-direction: column;
    }
    .service-card,
    .project-item {
        flex: 1 1 100%;
    }
    .contact-info,
    .contact-form {
        flex: 1 1 100%;
    }
    .hero-overlay h1 {
        font-size: 2rem;
    }
    .hero-overlay p {
        font-size: 1rem;
    }
}

/*
 * New styles for call‑to‑action buttons on the homepage hero.  These classes
 * allow us to present two prominent buttons side by side for calling and
 * requesting a quote.  The styles use the primary and secondary colours
 * derived from the logo so the buttons harmonise with the rest of the
 * branding.  Hover states invert the colours for a subtle effect.
 */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-call,
.btn-quote {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.btn-call {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-call:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-quote {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-quote:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/*
 * About page hero styling.  This section uses a background image with
 * a dark translucent overlay to ensure legibility of the heading.  The
 * image itself is defined inline in the HTML on the element using
 * inline styles so each page can customise its own background.
 */
.about-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(53, 53, 53, 0.6);
    z-index: 1;
}
.about-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    margin: 0;
}

/* credibility bar */
.cred-bar { background:#f5f6f7; padding:14px 0; border-top:1px solid #e7e7e7; border-bottom:1px solid #e7e7e7; }
.cred-bar .container { max-width:1100px; margin:0 auto; }
.cred-bar ul { list-style:none; display:flex; gap:18px; flex-wrap:wrap; margin:0; padding:0 16px; justify-content:center; }
.cred-bar li { font-weight:600; color:#444; }

/* hero overlay polish v2 */
.hero-overlay{
  text-align:left;
  max-width:680px;
  background: rgba(0,0,0,0.55);
  border-radius: 8px;
  padding: 40px 28px;
}
.hero-overlay .cta-buttons a{ margin-right:10px }

/* cred bar pills */
.cred-bar{ background:#f6f7f8; padding:12px 0; border-top:1px solid #e9ecef; border-bottom:1px solid #e9ecef; }
.cred-bar .container{ max-width:1100px; margin:0 auto; }
.cred-bar ul{ list-style:none; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; padding:0; margin:0; }
.cred-bar li{ background:#fff; border:1px solid #e9ecef; padding:8px 12px; border-radius:999px; font-weight:600; color:#333; }

/* services 3-up */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.service-card{ display:flex; flex-direction:column; }
.service-card p{ flex:1; }
@media (max-width:900px){ .services-grid{ grid-template-columns:1fr; } }

.process-table{ width:100%; border-collapse:separate; border-spacing:0 8px; margin:10px 0 24px; }
.process-table th{ background:#111; color:#fff; padding:10px 12px; border-top-left-radius:8px; border-bottom-left-radius:8px; }
.process-table td{ background:#fff; color:#333; padding:10px 12px; border:1px solid #eee; border-left:none; border-top-right-radius:8px; border-bottom-right-radius:8px; }

/* projects polish */
.projects-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.project-card{ display:flex; flex-direction:column; height:100%; }
.project-card .body{ flex:1; }
@media (max-width: 980px){ .projects-grid{ grid-template-columns:1fr; } }


/* sticky mobile cta */
@media (max-width: 820px){
  .sticky-cta{position:fixed;left:0;right:0;bottom:0;background:#0f172a;color:#fff;display:flex;gap:10px;justify-content:space-between;padding:10px 14px;z-index:9999;border-top:1px solid rgba(255,255,255,0.08)}
  .sticky-cta a{flex:1;text-align:center;padding:10px 12px;border-radius:8px;text-decoration:none;font-weight:700}
  .sticky-cta a.call{background:#10b981;color:#08121a}
  .sticky-cta a.mail{background:#0a58ff;color:#fff}
  body{padding-bottom:64px}
}
