/* ---------------------------------------------------- */
/* BERGEN CONSTRUCTION SOLUTIONS LLC - Custom Stylesheet */
/* FINAL VERSION (Incorporates New Color Palette and Button Fixes) */
/* ---------------------------------------------------- */

/* 1. Global Reset & Typography */
/* ---------------------------- */

:root {
    /* PRIMARY brand color (Deep Corporate Blue) */
    --color-primary: #003366; 
    /* SECONDARY color (Strategic Orange/Gold - for CTAs and accents) */
    --color-secondary: #CC7A00; 
    /* Accent color (Deep contrast) */
    --color-dark: #333333;
    /* Light background (Warm Off-White) */
    --color-light: #F7F7F7; 
    /* Success color (Used for Takeoffs CTA background color) */
    --color-success: #28A745; 
    /* Font family for professionalism and readability */
    --font-primary: 'Arial', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
    margin: 0;
    padding: 0;
    background-color: #fff;
    /* Compensation for the fixed header */
    padding-top: 70px; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Headings */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--color-dark);
}

h2 {
    font-size: 2.5em;
    padding-bottom: 10px;
    /* Strong underline effect using secondary color */
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
}

/* Sections */
section {
    padding: 60px 0;
}

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

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

/* 2. Header and Navigation (IMPROVED - Fixed Position and Spacing) */
/* ---------------------------------------------------------------- */

#header {
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000; 
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    padding: 15px 0; 
}

#header .container {
    display: flex; 
    justify-content: space-between;
    align-items: center;
}

#header h1 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.8em;
}

#header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#header nav ul li {
    /* Increased spacing between navigation items */
    margin-left: 25px; 
}

#header nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

#header nav a:hover {
    color: var(--color-secondary); 
}

/* 3. Buttons and CTAs */
/* ------------------- */

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #001a33; /* Darker primary */
}

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

.btn-secondary:hover {
    background-color: #995c00; /* Darker secondary */
    transform: translateY(-2px);
}

/* Custom style for the Takeoffs CTA to look professional (Blue with Orange Accent) */
.btn-success { 
    background-color: var(--color-primary); 
    color: white;
    font-size: 1.1em;
    border: 2px solid var(--color-secondary); /* Orange border for visual punch */
}

.btn-success:hover {
    background-color: #001a33; /* Darker primary on hover */
    transform: translateY(-2px); 
}

.cta-button { /* CTA in navigation (Request Estimate) */
    background-color: var(--color-secondary);
    color: var(--color-dark) !important;
    /* INCREASED PADDING for better spacing */
    padding: 12px 20px; 
    border-radius: 5px;
    font-size: 1.05em; /* Slightly larger font */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s; 
}
.cta-button:hover {
    background-color: #995c00; /* Darker secondary */
    transform: scale(1.05); 
}

/* 4. Hero Section (Home) */
/* ---------------------- */

#home {
    background: var(--color-primary);
    color: white;
    padding: 100px 0;
    text-align: center;
}

#home h2 {
    color: white;
    font-size: 3.5em;
    margin-bottom: 0.2em;
    border-bottom: none;
}

#home .lead {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

/* 5. Key Value Pillars (Ensures 3-column layout) */
/* ---------------------------------------------- */

#value-pillars .row {
    display: flex; 
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

#value-pillars .col-md-4 {
    flex-basis: calc(33.33% - 20px); 
    padding: 30px;
    background: white; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

#value-pillars h3 {
    color: var(--color-primary);
    font-size: 1.4em;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 5px;
    display: inline-block;
}

/* 6. Services & Capabilities */
/* -------------------------- */

/* Core Solutions Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    flex: 1 1 22%; 
    background: white;
    padding: 20px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-detail {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.service-detail h3 {
    color: var(--color-primary);
}

/* Quantity Takeoffs Feature (IMPROVED STYLING - Professional Markers) */
.takeoff-features ul {
    list-style: none;
    padding: 0;
    display: flex; 
    justify-content: center;
    gap: 30px; 
    margin-top: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd; 
}

.takeoff-features li {
    font-size: 1.1em;
    color: var(--color-dark);
    font-weight: 600;
    text-align: center; 
    position: relative;
    padding-top: 30px; 
}

/* Adds a subtle visual marker without the checkmark icon */
.takeoff-features li::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--color-primary); 
    border-radius: 2px;
}


/* Full Capabilities List (Pill style) */
.capability-list {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 30px;
}

.capability-list li {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* 7. Footer & Forms */
/* ----------------- */

#about.bg-dark h2 {
    color: white;
    border-bottom-color: var(--color-secondary);
}

#contact h2 {
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-block {
    width: 100%;
    padding: 15px;
}

footer {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* 8. Media Queries (Responsiveness) */
/* --------------------------------- */

@media (max-width: 992px) {
    /* Tablet adjustments */
    .services-grid {
        justify-content: space-around;
    }
    .service-card {
        flex: 1 1 45%; 
    }
    #header .container {
        flex-direction: column;
        text-align: center;
    }
    #header nav ul {
        padding-top: 10px;
    }
    body {
        /* Adjust fixed header compensation for smaller screens */
        padding-top: 120px; 
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments */
    #home h2 {
        font-size: 2.5em;
    }
    #value-pillars .col-md-4 {
        flex-basis: 100%; 
        margin-bottom: 20px;
    }
    .service-card {
        flex: 1 1 100%; 
    }
    .takeoff-features ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        border-bottom: none; /* Remove bottom separator on mobile */
    }
    .takeoff-features li::before {
        left: 0;
        transform: none;
    }
}