/* 
 * Fixed Width Layout CSS for US Roofing Direct
 * This prevents layout distortion when browser window is resized
 */

/* Create a master fixed-width wrapper around the entire site */
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top White Banner with Logo - Exactly matching the screenshot */
.top-banner {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative; /* Establish positioning context */
    width: 1080px;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.site-title {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 26px;
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-container a:hover .site-title {
    color: #4a5568;
}

.banner-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.free-estimate-btn {
    display: inline-block;
    background-color: #d9534f;
    color: white;
    font-weight: 700; /* Slightly bolder */
    text-decoration: none;
    padding: 12px 20px; /* Adjusted padding */
    border-radius: 5px;
    font-size: 16px; /* Adjusted font size */
    transition: all 0.3s ease;
    text-transform: uppercase; /* Make it stand out more */
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Add subtle shadow */
    white-space: nowrap; /* Prevent text wrapping */
    margin-right: 15px; /* Add right margin */
}

.free-estimate-btn:hover {
    background-color: #c1121f;
    color: white;
    text-decoration: none;
    transform: translateY(-2px); /* Slight lift effect on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

.nav-separator {
    height: 1px;
    background-color: #e5e7eb;
    width: 100%;
}

.banner-nav {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    width: 1080px;
}

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

.main-menu li {
    margin: 0 25px;
}

.main-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.main-menu a:hover {
    color: #2d3748;
}

/* Force all Bootstrap containers to a fixed width */
.container, .container-fluid, .fixed-width-container {
    width: 1080px !important;
    max-width: 1080px !important;
    min-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Override Bootstrap responsive containers */
.container-sm, .container-md, .container-lg, .container-xl {
    width: 1080px !important;
    max-width: 1080px !important;
    min-width: 1080px !important;
}

/* New clean hero section */
.new-hero-section {
    width: 1080px;
    height: 80vh;
    background: url('../assets/new/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 120px; /* Add space for the fixed top banner with navigation */
    margin-left: auto;
    margin-right: auto;
}

/* Dark overlay for better text visibility */
.new-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

/* Navigation styling */
.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 2;
}

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

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.nav-menu a:hover {
    color: #d9534f; /* Primary color */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #d9534f;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero content styling */
.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.hero-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
}

/* Centering content within fixed-width sections */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Row handling for consistent width */
.row {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

/* Master fixed-width wrapper for the entire content */
/* This wrapper will be added to the body to contain everything except the hero */
.master-fixed-width-wrapper {
    width: 1080px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Make all content sections fixed-width */
#about, #services, #gallery, #testimonials, 
.statistics-banner, .contact-section, .footer-section {
    width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/* Simple media query to handle scrolling on smaller screens */
@media (max-width: 1100px) {
    body {
        min-width: 1080px;
        overflow-x: auto;
    }
}