/* MH Logistics one-page C&F website */
:root{
    --brand:#0c5a5e;    /* initial value #0D5A5E*/
    --dark:#083F42;     /* initial value #083F42*/
    --accent:#d3de29;   /* initial value #FEDE88*/
    --surface:#F3F5F5;
    --pale:#E7F0EF;
    --text:#243536;
    --muted:#687777;
    --border:#DCE5E4}

*{
    box-sizing:border-box
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:18px  /*Initial value 88px*/
}

body{
    margin:0;
    font-family:Inter,Arial,sans-serif;
    color:var(--text);line-height:1.65
}

section[id]{
    scroll-margin-top:88px
}

.container{max-width:1200px
}

a{text-decoration:none
}

.topbar{
    background:var(--dark);
    color:#e7eeee;
    font-size:.8rem;
    padding:8px 0
}

.topbar a{
    color:inherit
}

.topbar i,.footer i{
    color:var(--accent);
    margin-right:6px
}
.socials{
    display:flex;
    gap:16px
}
.socials a{
    color:white
}

.socials a:hover{
    color:var(--accent)
}
.site-header{
    position:sticky;
    top:0;
    z-index:1030;
    background:#fff;
    box-shadow:0 3px 18px #0000000c
}

.site-header.scrolled{
    box-shadow:0 8px 24px #083f4224
}

.navbar{
    padding:12px 0
}

.navbar-brand{
    color:var(--dark)
}

.brand-icon{
    display:grid;
    place-items:center;
    width:45px;
    height:45px;
    flex:0 0 45px;
    border-radius:11px;
    background:var(--accent);
    color:var(--dark);
    font-size:1.25rem
}

/*added*/

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.2
}

.brand-text strong{
    font-size:1rem;
    font-weight:800;
    letter-spacing:.04em
}

.brand-text small{
    font-size:.75rem;  /*initial value 64rem*/
    color:var(--muted);
    margin-top:4px
}

.nav-link{
    color:#344849;
    font-size:.88rem;
    font-weight:600;
    padding:.65rem .7rem!important
}

.nav-link:hover,.nav-link.active{
    color:var(--brand)

}

.nav-link.active:after{
    content:"";
    display:block;
    height:2px;
    width:18px;margin:4px auto -6px;
    background:var(--accent)
}

.btn-gold{
    background:var(--accent);
    border:1px solid var(--accent);
    color:var(--dark);
    font-weight:750;
    border-radius:6px;
    padding:.72rem 1.15rem
}

.btn-gold:hover{
    background:var(--brand);
    border-color:var(--brand);
    color:#fff
}

.btn-outline-brand{
    border:1px solid var(--brand);
    color:var(--brand);
    font-weight:700;
    border-radius:6px;
    padding:.7rem 1rem
}

.btn-outline-brand:hover{
    background:var(--brand);
    color:#fff
}

.hero-slide{
    position:relative;
    min-height:590px;
    display:flex;
    align-items:center;
    background-size:cover;
    background-position:center;
    color:#fff
}

.slide-one{
    background-image:url('../images/slide-1.jpg')}.slide-two{background-image:url('../images/slider-2.jpg')
}

.slide-three{
    background-image:url('../images/slider-4.png')
}

.hero-shade{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,#05272aeb,#05272aa8 50%,#05272a26)
}

.hero-copy{
    position:relative;
    padding-top:70px;
    padding-bottom:80px
}

.eyebrow,.kicker{
    display:inline-block;
    color:var(--brand);
    font-size:.73rem;
    font-weight:800;
    letter-spacing:.13em;
    margin-bottom:10px
}

.hero-copy .eyebrow{
    color:var(--accent)
}

.hero-copy h1,.hero-copy h2{
    font-size:clamp(2.35rem,5vw,4.4rem);
    font-weight:800;
    line-height:1.08;
    letter-spacing:-.04em;
    margin-bottom:22px
}

.hero-copy em{
    font-style:normal;
    color:var(--accent)
}

.hero-copy p{
    max-width:620px;
    font-size:1.08rem;
    color:#e8eeee;
    margin-bottom:28px
}

.carousel-indicators [data-bs-target]{
    height:4px;
    width:28px
}

.hero-features{
    background:var(--brand);
    color:white;
    padding:20px 0
}

.hero-features .col-6{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    font-size:.84rem;
    font-weight:600
}

.hero-features i{
    color:var(--accent);
    font-size:1.15rem
}

.section-pad{
    padding: 60px 0 10px;  /*initial value 88px 0 */
}

.section-light{
    background:var(--surface)
}

.section-heading{
    padding:55px 0 48px;
    background:var(--surface)
}

.section-heading h2,.section-title h2{
    color:var(--dark);
    font-size:clamp(2rem,3.4vw,2.8rem);
    line-height:1.2;
    font-weight:800;
    letter-spacing:-.03em;
    margin:0 0 10px
}

.section-heading h2 span,.section-title h2 span{
    color:var(--brand)
}

.section-heading p,.section-title p{
    color:var(--muted);margin:0
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:24px;
    margin-bottom:35px
}

.section-title p{
    margin-top:10px
}

.section-title.centered{
    display:block;
    text-align:center;
    margin-bottom:40px
}

.about-section{
    padding-bottom:60px; /* initial value 88px*/
}

.about-layout{
    background:var(--surface);
    box-shadow:0 14px 40px #083f4218
}

.proprietor{
    min-height:325px;
    padding:35px 28px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:var(--brand);
    color:#fff
}

.person-photo{
    width:130px;
    height:130px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#ffffff1e;
    border:5px solid var(--accent);
    color:var(--accent);
    font-size:3.3rem;
    margin-bottom:16px
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.proprietor h3{
    font-size:1.5rem;
    font-weight:750;
    margin:0
}

.proprietor .role{
    color:var(--accent);
    margin:2px 0;
    font-weight:600
}

.gold-line{
    width:50px;
    height:3px;
    background:var(--accent);
    margin:15px auto
}

.proprietor p:last-child{
    max-width:300px;
    color:#e0eeee;
    font-size:.88rem;
    margin:0
}

.welcome{
    padding:35px clamp(22px,4vw,45px);
    background:var(--surface)
}

.welcome h3,.history h3{
    font-size:1.55rem;
    color:var(--dark);
    font-weight:800;
    margin:8px 0 14px
}

.welcome p,.history p{
    font-size:.94rem;
    text-align: justify;  /*added new*/
    color:var(--muted)
}

.signature{
    font-family:cursive;
    font-style:italic;
    font-size:1.8rem;
    color:var(--brand);
    margin-top:22px;
    line-height:1.3
}

.welcome>strong,.welcome>small{
    display:block
}

.welcome>strong{
    font-size:.88rem
}

.welcome>small{
    color:var(--muted)
}

.history{
    padding:clamp(30px,5vw,60px);
    background:#e8f0ef;
    display:flex;
    flex-direction:column;
    justify-content:center
}

.history h3{
    font-size:clamp(1.6rem,2.5vw,2.1rem);
    line-height:1.25;
    margin-bottom:18px
}
.history p{
    line-height:1.8
}

.stats{
    margin:22px 0
}

.stat{
    height:100%;
    padding:20px 10px;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    background:#ffffffbd;
    border:1px solid #0d5a5e15;
    border-radius:12px
}

.stat span{
    width:58px;
    height:58px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--accent);
    color:var(--dark);
    font-size:1.3rem;
    margin-bottom:10px
}

.stat strong{
    color:var(--dark)
}

.stat small{
    color:var(--muted)
}

.text-link{
    font-weight:800;
    color:var(--brand);
    font-size:.9rem
}

.service-card{
    position:relative;
    height:100%;
    min-height:260px;
    padding:28px 24px 55px;
    background:white;
    border:1px solid var(--border);
    border-radius:10px;
    transition:.2s
}

.service-card:hover{
    transform:translateY(-5px);
    box-shadow:0 14px 35px #083f4215;
    border-color:#0d5a5e55
}

.service-card>span{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--pale);
    color:var(--brand);
    font-size:1.4rem;
    margin-bottom:20px
}

.service-card h3{
    font-size:1.08rem;
    font-weight:800;
    color:var(--dark)
}

.service-card p{
    font-size:.88rem;
    text-align: justify; /*newly added*/
    color:var(--muted)
}

.service-card>a{
    position:absolute;
    right:22px;
    bottom:18px;
    width:34px;
    height:34px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--accent);
    color:var(--dark)
}

.trust-band{
    background:var(--dark);
    color:#fff;
    padding:60px 0
}

.trust-band .kicker{
    color:var(--accent)
}

.trust-band h2{
    font-size:clamp(1.8rem,3vw,2.5rem);
    font-weight:800;
    line-height:1.2
}

.trust-item{
    height:100%;
    padding:15px;
    border-left:1px solid #ffffff2b
}

.trust-item i{
    color:var(--accent);
    font-size:1.5rem;
    margin-bottom:12px
}

.trust-item h3{
    font-size:.98rem;
    font-weight:750
}

.trust-item p{
    font-size:.82rem;
    color:#ffffffb8;
    margin:0
}

.client-logo{
    min-height:112px;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background: #ffffff;   /* initial value var(--surface)*/
    border:1px solid #e6eeee;
    border-radius:8px;
    color:#8ba2a1
}

/*

.client-logo i{
    font-size:1.8rem
}
    */

.client-logo img {
    display: block;
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/*
.client-logo small{
    font-size:.68rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase
} 
    */

.client-logo:hover{
    color:var(--brand);
    background:var(--pale)
}

.placeholder-note{
    font-size:.78rem;
    color:#879392
}
/*
.gallery{
    height:260px;
    position:relative;
    overflow:hidden;
    border-radius:10px;
    background-size:cover;
    background-position:center
}

*/

/* 

.gallery {
    height: 260px;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

*/
/*
.gallery {
    height: 260px;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}
 */
/*added new*/
.gallery {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

/*

.gallery:before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(0deg,#05272ae8,transparent 75%)
}

*/

.gallery:before {
    content: none;
}

.gallery-1{
    background-image:url('../images/gimage-1.jpeg')
}

.gallery-2{
    background-image:url('../images/gimage-2.jpeg')
}

.gallery-3{
    background-image:url('../images/gimage-7.jpeg')
}

.gallery-4{
    background-image:url('../images/gimage-5.jpeg')
}

.gallery-5{background-image:url('../images/gimage-6.jpeg')
}

.gallery-6{background-image:url('../images/gimage-4.jpeg')
}

/*
.gallery>div{
    position:absolute;
    bottom:20px;
    left:23px;
    color:#fff
}

*/

.gallery > div {
    position: absolute;
    bottom: 20px;
    left: 23px;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.gallery h3{
    font-size:1.1rem;
    font-weight:800;
    margin:5px 0
}

/* edite start*/

/* Gallery hover effect — preserves the existing design */

.gallery {
    background-size: 100% 100%;
    background-position: center;
    transition: background-size 0.45s ease-in-out;
}

.gallery:hover {
    background-size: 110% 110%;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .gallery {
        transition: none;
    }
}

/*edite end*/

.contact-intro h2{
    font-size:clamp(2rem,3.4vw,2.8rem);
    font-weight:800;
    line-height:1.15;
    color:var(--dark);
    margin-bottom:18px
}

.contact-intro>p{
    color:var(--muted);
    margin-bottom:28px
}

.contact-detail{
    display:flex;
    gap:14px;
    margin:20px 0
}

.contact-detail>span{
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:var(--pale);
    color:var(--brand)
}

.contact-detail strong{
    font-size:.9rem;
    color:var(--dark)
}

.contact-detail p{
    font-size:.87rem;
    color:var(--muted);
    margin:2px 0
}

.contact-form{
    padding:clamp(22px,4vw,40px);
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:0 14px 35px #083f4210

}

.contact-form h3{
    font-size:1.6rem;
    font-weight:800;
    color:var(--dark)
}

.contact-form>p{
    font-size:.86rem;
    color:var(--muted);
    margin-bottom:22px
}

.form-label{
    font-size:.83rem;
    font-weight:700;
    color:var(--dark)
}

.form-control,.form-select{
    min-height:47px;
    border-color:#d5e0df;
    font-size:.9rem
}

.form-control:focus,.form-select:focus{
    border-color:var(--brand);
    box-shadow:0 0 0 .2rem #0d5a5e20
}

textarea.form-control{
    min-height:130px
}

#formNotice{
    font-size:.82rem;
    font-weight:600;
    margin-top:10px
}

.disclaimer{
    display:block;
    font-size:.7rem;
    color:#7b8888;
    margin-top:12px
}

.footer{
    background:#062f32;
    color:#ffffffb9;
    padding:60px 0 0
}

.footer .brand-text small{
    color:#ffffff9c
}

.footer-about{
    max-width:330px;
    font-size:.88rem;
    margin:18px 0
}

.footer h3{
    font-size:1rem;
    color:#fff;
    font-weight:800;
    margin-bottom:18px
}

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

.footer li{
    margin:9px 0
}

.footer li a{
    font-size:.86rem;
    color:#ffffffb5
}

.footer li a:hover,.footer-link{
    color:var(--accent)
}

.footer p{
    font-size:.85rem
}

.footer-link{
    font-weight:750
}

.footer-bottom{
    margin-top:38px;
    padding:20px 0;
    border-top:1px solid #ffffff20;
    color:#ffffff88;
    font-size:.77rem
}

.footer-bottom p{
    margin:0
}

.back-top{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:1020;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:var(--accent);
    color:var(--dark);
    box-shadow:0 5px 18px #0002;
    opacity:0;visibility:hidden;
    transition:.2s
}

.back-top.visible{
    opacity:1;
    visibility:visible
}

.back-top:hover{
    background:var(--brand);
    color:#fff
}

@media(max-width:991.98px){
    .navbar-collapse{
        padding:12px 0 6px
    }
    .nav-link.active:after{
        display:none
    }
    .hero-slide{
        min-height:540px
    }
    .history{
        padding:36px 28px
    }
    .trust-item{
        border:0;padding:10px 0
    }
}

@media(max-width:767.98px){
    html{scroll-padding-top: 280px  /*Initial value 78px*/
    }
    .topbar{
        font-size:.73rem
    }
    .topbar .container>div:first-child span{
        display:none
    }
    .navbar{
        padding:9px 0
    }
    .brand-icon{
        width:40px;
        height:40px;
        flex-basis:40px
    }
    .brand-text strong{
        font-size:.9rem
    }
    .brand-text small{
        font-size:.68rem  /*initial value 58rem*/
    }
    .hero-slide{
        min-height:510px
    }
    .hero-shade{
        background:linear-gradient(90deg,#05272ae8,#05272a70)
    }
    .hero-copy{
        padding:55px 12px 70px
    }
    .hero-copy h1,.hero-copy h2{
        font-size:clamp(2.2rem,9vw,3.3rem)
    }
    .hero-copy p{
        font-size:.98rem
    }
    .hero-copy .btn{
        margin-bottom:8px
    }
    .hero-features{
        padding:17px 0
    }
    .hero-features .col-6{
        justify-content:flex-start;
        font-size:.74rem;
        gap:7px
    }
    .hero-features i{
        font-size:1rem
    }
    .section-pad{
        padding:30px 0  10px /* intial value 62px 0*/
    }
    .section-heading{
        padding:45px 0 35px
    }
    .section-title{
        align-items:flex-start;flex-direction:column
    }
    .proprietor{
        min-height:auto;
        padding:32px 22px
    }
    .person-photo{
        width:116px;
        height:116px;
        font-size:2.8rem
    }
    .welcome{
        padding:30px 23px
    }
    .history{
        padding:32px 23px
    }
    .trust-band{
        padding:46px 0
    }
    .trust-band h2{
        margin-bottom:8px
    }
    .client-logo{
        min-height:98px
    }
    /*
    .gallery{
        height:230px
    } */

    /*added new*/
    .gallery {
        width: 100%;
        height:230px;         
        aspect-ratio: 3 / 4;
        height: auto;
        background-size: cover;
        background-position: center;
    }
    .footer{padding-top:45px
    }
}
