
/* --- Variables & Reset --- */
:root {
    --primary: #f97316; /* Safety Orange */
    --primary-hover: #ea580c;
    --dark: #0f172a;    /* Navy Blue */
    --light: #f8fafc;
    --gray: #64748b;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: white;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.section-gray { background-color: var(--light); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Typography --- */
h1, h2, h3, .logo {
    font-family: var(--font-head);
    text-transform: uppercase;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    padding: 15px 0;
    z-index: 1000;
    transition: 0.3s;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.hamburger { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* --- Buttons --- */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 23px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary:hover { background: white; color: var(--dark); }

/* --- Hero Section Updates --- */
.hero {
    /* Adjusted height to fit the new badge row comfortably */
    min-height: 90vh; 
    height: auto; 
    background: url('images/roof-hero.webp') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 60px;
    padding: 60px 0; /* Added padding for vertical breathing room */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Darkened slightly to make the white badges pop */
    background: rgba(15, 23, 42, 0.8); 
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px; /* Widened slightly for badges */
}

.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); } /* Ensure --primary is defined in your root */
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; margin-bottom: 40px; }

/* --- New Trust Section Styles --- */
.trust-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Row 1: The Text Stats */
.trust-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.trust-stats .text-yellow { color: #fbbf24; }
.trust-stats .separator { opacity: 0.5; }

/* Row 2: The Logos Grid */
.trust-badge-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* This styles the placeholder boxes. 
   When using real images, remove these styles and just set a max-height on the img. */
.badge-box {
    background: rgba(255, 255, 255, 0.1); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease;
    cursor: default;
}

.badge-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.badge-box i {
    font-size: 1.5rem;
    color: var(--primary, #3b82f6); /* Fallback color if var(--primary) not set */
}

.badge-text {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.1;
    font-weight: 700;
    color: white;
}

.badge-text small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    .trust-badge-grid {
        gap: 10px;
    }
    
    .badge-box {
        flex: 1 1 40%; /* 2 per row on mobile */
        min-width: auto;
        justify-content: center;
    }
}

/* --- Cards --- */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }
.icon-large { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* --- Gallery --- */
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}

.gallery-grid img:hover { transform: scale(1.02); }

/* --- Contact & Form --- */
.contact-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info { flex: 1; }
.contact-list { list-style: none; margin-top: 20px; }
.contact-list li { margin-bottom: 15px; font-size: 1.1rem; }
.contact-list i { color: var(--primary); margin-right: 10px; }

.contact-form {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.btn-full { width: 100%; }

/* --- Footer --- */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links, .mobile-hide { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .contact-layout { flex-direction: column; }
    
    /* Mobile Menu Active State (JS toggles this) */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--dark);
        padding: 20px;
        text-align: center;
    }
}
/* --- Service Area Map Section --- */
.map-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

/* Left Side Content */
.locations-list {
    flex: 1;
}

.locations-list h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.locations-list p {
    margin-bottom: 25px;
    color: var(--gray);
}

/* Two-column list of cities */
.area-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: var(--primary);
}

.map-cta {
    background: var(--light);
    padding: 15px;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

/* Right Side Map Wrapper */
.map-wrapper {
    flex: 1;
    height: 400px; /* Fixed height for the map window */
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 5px solid white; /* Creates a nice photo-frame look */
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .map-layout {
        flex-direction: column;
    }

    .map-wrapper {
        width: 100%;
        height: 300px;
    }
    
    .area-columns {
        flex-direction: column;
        gap: 10px;
    }
}
/* --- Sticky Call-to-Action (CTA) --- */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary); /* Uses your safety orange */
    color: white;
    padding: 15px 30px;
    border-radius: 50px; /* Makes it pill-shaped */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.5); /* Orange glow shadow */
    z-index: 9999; /* Ensures it sits on top of everything */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: var(--font-head);
    border: 2px solid white; /* Adds a nice pop against complex backgrounds */
}

.sticky-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-3px); /* Slight lift on hover */
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.7);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}