
/* =====================================================
   MN Trenchless Technologies - Version 2
   Cleaned and Refactored Stylesheet
===================================================== */

:root{
    --primary:#01285D;
    --primary-dark:#001E45;
    --accent:#0B78E3;
    --light:#F5F7FA;
    --dark:#20252B;
    --text:#4A5568;
    --white:#FFF;
    --shadow:0 12px 30px rgba(0,0,0,.12);
    --radius:14px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    font-family:'Open Sans',sans-serif;
    color:var(--text);
    background:#fff;
    line-height:1.7;
}

h1,h2,h3,h4{
    font-family:'Montserrat',sans-serif;
    color:var(--primary);
}

.container{
    width:95%;
    max-width:1400px;
    margin:auto;
}

/* ===========================
   HEADER
=========================== */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:#01285D;
    box-shadow:0 4px 18px rgba(0,0,0,.18);
}

.navbar .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:145px;
    padding:10px 0;
}

.logo img{
    height:200px;
    width:auto;
    display:block;
    transition:all .3s ease;
}

.nav-links{
    display:flex;
    gap:48px;
    list-style:none;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
}

.nav-links a:hover{
    color:#A8D2FF;
}

.phone-button{
    color:#fff;
    text-decoration:none;
    border:2px solid rgba(255,255,255,.8);
    padding:12px 22px;
    border-radius:40px;
    font-weight:600;
}

.phone-button:hover{
    background:#fff;
    color:var(--primary);
}

/* ===========================
   HERO
=========================== */

.hero{

    min-height:100vh;

    display:flex;
    align-items:center;

    padding-top:170px;

    background:
        linear-gradient(
            90deg,
            rgba(1,40,93,.82) 0%,
            rgba(1,40,93,.72) 40%,
            rgba(1,40,93,.35) 70%,
            rgba(1,40,93,.15) 100%
        ),
        url("../images/hero/hero-cipp.jpg");

    background-size:cover;
    background-position:center;
}

.hero-content{
    max-width:700px;
    color:#fff;

    margin-left:30%;
}

.hero h1{
    font-size:4rem;
    line-height:1.05;
    color:#fff;
    margin-bottom:20px;
}

.hero h1 span{
    display:block;
    color:#7FC2FF;
}

.nowrap{ white-space:nowrap; 

}

.hero p{
    color:#fff;
    font-size:1.35rem;
}

.hero-description{
    max-width:620px;
    margin-top:10px;
}

.hero-buttons{
    margin:40px 0;
}

.btn{
    display:inline-block;
    text-decoration:none;
    padding:16px 32px;
    border-radius:40px;
    font-weight:700;
    margin-right:15px;
}

.btn-primary{
    background:var(--accent);
    color:#fff;
}

.btn-primary:hover{
    background:#095fb3;
}

.btn-secondary{
    border:2px solid #fff;
    color:#fff;
}

.btn-secondary:hover{
    background:#fff;
    color:var(--primary);
}

.tagline{
    color:#BFDFFF;
    letter-spacing:3px;
    font-weight:700;
}

/* ===========================
   CONTENT
=========================== */

.section{
    padding:90px 0;
}

.section:nth-child(even){
    background:var(--light);
}

.section h2{
    text-align:center;
    font-size:2.5rem;
    margin-bottom:20px;
}

.section> .container > p{
    max-width:900px;
    margin:auto;
    text-align:center;
}

/* SERVICES */

.service-grid{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:35px;

    margin-top:60px;

}

/* Center second row */

.service-card:nth-child(5){
    grid-column:1 / 2;
}

.service-card:nth-child(6){
    grid-column:2 / 3;
}

.service-card:nth-child(7){
    grid-column:3 / 4;
}

.service-card{

    width:300px;

    min-height:250px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}

.service-card:hover{
    transform:translateY(-8px);
}

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

.service-card h3{
    margin-bottom:12px;
}

/* TIMELINE */

.timeline{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin-top:45px;
}

.timeline div{
    background:#fff;
    border-left:5px solid var(--accent);
    padding:22px;
    box-shadow:var(--shadow);
    border-radius:10px;
}

/* FEATURES */

.features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:40px;
}

.features div{
    background:#fff;
    padding:30px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

/* CONTACT */

.contact-grid{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:60px;
    align-items:start;
    margin-top:50px;
}

.contact-card{

    background:#fff;

    padding:50px;

    border-radius:16px;

    box-shadow:var(--shadow);

    text-align:center;

}

.footer-logo{
    width:240px;
    margin:0 auto 25px;
    display:block;
}

.contact-card h3{

    font-size:34px;

    margin-bottom:20px;

    color:var(--primary);

}

.contact-card p{

    margin-bottom:18px;

    font-size:18px;

    line-height:1.8;

}

.contact-info{

    margin:35px 0;

}

.contact-card .btn{

    margin-top:15px;

}

.contact-card a{
    color:var(--primary);
    text-decoration:none;
}

form{
    background:#fff;
    padding:40px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

form input,
form textarea{
    width:100%;
    margin-bottom:18px;
    padding:16px;
    border:1px solid #D6DCE5;
    border-radius:10px;
    font-size:1rem;
}

form textarea{
    min-height:180px;
    resize:vertical;
}

form button{
    width:100%;
    padding:16px;
    background:var(--primary);
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:1rem;
    cursor:pointer;
}

form button:hover{
    background:var(--primary-dark);
}
/* ==========================================
   CALL TO ACTION
========================================== */

.cta-section{

    background:#f5f7fa;

}

.cta-box{

    background:#01285D;

    color:white;

    border-radius:18px;

    padding:70px;

    text-align:center;

    box-shadow:0 15px 40px rgba(0,0,0,.15);

}

.cta-box h2{

    color:white;

    font-size:46px;

    margin-bottom:20px;

}

.cta-text{

    color:#DDEBFF;

    max-width:850px;

    margin:0 auto 50px;

    font-size:20px;

    line-height:1.8;

}

.cta-contact{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

    margin-bottom:45px;

}

.cta-contact h3{

    color:#84C5FF;

    margin-bottom:12px;

}

.cta-contact a{

    color:white;

    text-decoration:none;

    font-size:22px;

    font-weight:600;

}

.cta-contact p{

    color:white;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

}
/* FOOTER */

footer{
    background:var(--primary-dark);
    color:#fff;
    text-align:center;
    padding:40px 0;
}

/* RESPONSIVE */

@media(max-width:1000px){

    .nav-links,
    .phone-button{
        display:none;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }

    .logo img{
        height:85px;
    }

    .hero{
        padding-top:120px;
    }

    .hero h1{
        font-size:3rem;
    }
}

@media(max-width:768px){

    .hero{
        text-align:center;
    }

    .hero h1{
        font-size:2.4rem;
    }

    .btn{
        display:block;
        margin:0 0 15px;
    }

    .section{
        padding:70px 0;
    }

    .section h2{
        font-size:2rem;
    }
}
