/* 
Midwest Gas Pipe Repair - Custom CSS
=========================================
Table of Contents:
1. Variables
2. Global Styles
3. Navigation
4. Emergency Banner
5. Hero Section
6. Services Section
7. Why Choose Us Section
8. Testimonials Section
9. CTA Section
10. Contact Section
11. Service Areas Section
12. Footer
13. Floating Action Button
14. Media Queries
*/

/* 1. Variables
=========================================*/
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #ffb703;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --gray-color: #8d99ae;
    --success-color: #2a9d8f;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* 2. Global Styles
=========================================*/
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

section {
    padding: 80px 0;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #d42836;
    border-color: #d42836;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.text-start h2:after {
    left: 0;
    transform: none;
}

/* 3. Navigation
=========================================*/
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-phone {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.navbar-phone:hover {
    background-color: #d42836;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* 4. Emergency Banner - REMOVED
=========================================

.pulse {
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 5. Hero Section
=========================================*/
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('./img/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 100px 0;
    position: relative;
    margin-top: 0; /* No extra margin needed */
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #d42836;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--dark-color);
}

/* 6. Services Section
=========================================*/
.services {
    background-color: #f8f9fa;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: all 0.3s;
    height: 100%;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-color);
}

.service-card i {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 7. Why Choose Us Section
=========================================*/
.feature-box {
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-box i {
    background-color: var(--light-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-box:hover i {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    height: 100%;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

.image-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 8. Testimonials Section
=========================================*/
.testimonials {
    background-color: var(--light-color);
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin: 0 15px;
    height: 100%;
    position: relative;
}

.testimonial-card:before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(230, 57, 70, 0.1);
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 0;
}

.testimonial-card .rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--light-color);
}

.client-info h5 {
    margin-bottom: 5px;
}

.client-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 9. CTA Section
=========================================*/
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('img/cta-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 10. Contact Section
=========================================*/
.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-item a {
    color: var(--dark-color);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-control {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

textarea.form-control {
    height: 150px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #d42836;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* 11. Service Areas Section
=========================================*/
.service-areas {
    background-color: #f8f9fa;
}

.service-areas ul {
    columns: 3;
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.service-areas li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    break-inside: avoid;
}

.service-areas li:before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.service-areas li:hover {
    color: var(--primary-color);
    cursor: pointer;
}

/* 12. Footer
=========================================*/
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

.footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links i {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    background-color: rgba(255,255,255,0.1);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom a {
    color: #ddd;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* 13. Floating Action Button
=========================================*/
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-phone {
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: float 2s infinite;
    text-decoration: none;
    position: relative;
}

.floating-phone:hover {
    background-color: #d42836;
    color: white;
    transform: scale(1.1);
}

.floating-phone:before {
    content: 'Call Now';
    position: absolute;
    right: 70px;
    background: var(--dark-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: var(--transition);
}

.floating-phone:hover:before {
    opacity: 1;
    visibility: visible;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 15. Mobile Sticky Call Bar
=========================================*/
.mobile-call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffffee;
    backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 10px 0;
    display: none;
}

.mobile-call-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mobile-call-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
}

.mobile-call-bar a.alt {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .mobile-call-bar { display: block; }
    body { padding-bottom: 66px; }
}

/* 14. Media Queries
=========================================*/
@media (max-width: 1199px) {
    .feature-box i {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .service-areas ul {
        columns: 2;
    }
    
    .navbar-phone {
        display: none;
    }
    
    .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 767px) {
    /* Adjust navbar for mobile */
    .navbar {
        padding: 10px 0;
    }
    
    /* Mobile navbar collapse */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1035;
        margin-top: 0;
    }
    
    /* Ensure navbar toggler has proper z-index */
    .navbar-toggler {
        z-index: 1040;
    }
    
    .hero {
        padding: 80px 0 60px 0;
        text-align: center;
        margin-top: 0; /* No extra margin needed */
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .service-areas ul {
        columns: 1;
    }
    
    .image-grid {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 30px;
    }
    
    .footer {
        padding-top: 40px;
    }
    
    .footer-about, .footer-links, .footer-contact {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    /* Further mobile adjustments */
    .hero {
        margin-top: 0;
        padding: 60px 0;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .feature-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-box i {
        margin-bottom: 15px;
    }
    
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 10px;
    }
    
    .floating-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-phone {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}