/*
Theme Name: M&LH Service Group
Theme URI: https://mlhservicegroup.com
Author: M&LH Service Group LLC
Author URI: https://mlhservicegroup.com
Description: Custom WordPress theme for M&LH Service Group LLC — a trucking dispatch, safety, and accounting support company. Includes Home, About Us, Gallery, Employment (with Driver Application form) and Contact pages. Content lives in dedicated PHP page templates.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mlh-service-group
*/

:root{
  --red:#DA1F26;
  --red-dark:#b81a20;
  --ink:#1f1f1f;
  --muted:#666;
  --line:#ededed;
  --bg:#ffffff;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Barlow',sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
input::placeholder, textarea::placeholder{ color:#a3a3a3; }
a{ text-decoration:none; color:inherit; }

@keyframes mlhFade{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:none;} }

.container{ max-width:1200px; margin:0 auto; padding-left:24px; padding-right:24px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  background:var(--red);
  color:#fff;
  border:none;
  font-family:'Barlow',sans-serif;
  font-weight:600;
  border-radius:4px;
  cursor:pointer;
  text-align:center;
  transition:background .18s ease;
}
.btn:hover{ background:var(--red-dark); color:#fff; }
.btn--lg{ padding:14px 30px; font-size:15px; }
.btn--sm{ padding:12px 26px; font-size:13px; letter-spacing:.5px; text-transform:uppercase; }
.btn--block{ width:100%; padding:15px; font-size:14px; letter-spacing:.5px; text-transform:uppercase; }

.eyebrow{
  font-size:13px; letter-spacing:1.5px; font-weight:700;
  color:var(--red); text-transform:uppercase; margin-bottom:16px;
}

/* ---------- Logo ---------- */
.logo{ display:flex; align-items:center; gap:10px; cursor:pointer; }
.logo__mark{ flex:none; }
.logo__name{ font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:25px; letter-spacing:.4px; color:var(--ink); line-height:1; }
.logo__name span{ color:var(--red); }
.logo__sub{ font-size:8px; letter-spacing:3px; color:#7a7a7a; font-weight:600; margin-top:2px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:#fff; border-bottom:1px solid var(--line);
  box-shadow:0 1px 8px rgba(0,0,0,.04);
}
.site-header__inner{ display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:14px; }
.nav{ display:flex; align-items:center; gap:32px; }
.nav__link{
  position:relative; cursor:pointer; color:#262626;
  font-weight:500; font-size:15px; padding:6px 0;
}
.nav__link:hover{ color:var(--red); }
.nav__link.is-active{ color:#262626; }
.nav__link.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--red); border-radius:2px;
}

/* ---------- Hero ---------- */
.hero{ position:relative; height:460px; overflow:hidden; background:#111418; }
.hero__media{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero__overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(13,15,18,.94) 0%, rgba(13,15,18,.82) 36%, rgba(13,15,18,.30) 66%, rgba(13,15,18,0) 100%);
}
.hero__inner{ position:relative; height:100%; display:flex; flex-direction:column; justify-content:center; }
.hero__content{ max-width:470px; color:#fff; }
.hero__title{ font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:52px; line-height:1.04; margin:0 0 20px; color:#fff; }
.hero__text{ font-size:16px; line-height:1.6; color:#d6d8dc; margin:0 0 28px; }

/* ---------- Section helpers ---------- */
.section{ padding-top:70px; padding-bottom:30px; }
.section-title{
  text-align:center; font-family:'Barlow Condensed',sans-serif;
  font-weight:700; font-size:36px; margin:0 0 44px; color:var(--ink);
}

/* ---------- Services ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.service-card{
  border:1px solid var(--line); border-radius:8px; overflow:hidden;
  background:#fff; box-shadow:0 6px 24px rgba(0,0,0,.05);
  display:flex; flex-direction:column;
}
.service-card__media{ width:100%; height:180px; object-fit:cover; }
.service-card__body{ padding:22px 22px 20px; display:flex; flex-direction:column; flex:1; }
.service-card__title{ margin:0 0 10px; font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:22px; color:var(--ink); }
.service-card__text{ margin:0; font-size:14px; line-height:1.6; color:var(--muted); }
.service-card__more{ margin-top:18px; text-align:right; }
.service-card__more a{ color:var(--red); font-size:20px; cursor:pointer; font-weight:700; }

/* ---------- Testimonials ---------- */
.testimonials{ padding:50px 24px 80px; background:#fff; }
.testimonials__inner{ max-width:820px; margin:0 auto; text-align:center; }
.testimonials__row{ display:flex; align-items:center; gap:18px; justify-content:center; }
.t-arrow{
  width:38px; height:38px; flex:none; border:1px solid #e2e2e2; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:#444; font-size:16px;
  background:#fff; transition:.15s ease;
}
.t-arrow:hover{ border-color:var(--red); color:var(--red); }
.t-body{ flex:1; max-width:560px; }
.t-quote{ font-size:17px; line-height:1.65; font-style:italic; color:#3a3a3a; margin:0 0 22px; }
.t-person{ display:flex; align-items:center; gap:12px; justify-content:center; }
.t-avatar{
  width:46px; height:46px; flex:none; border-radius:50%;
  background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:17px; letter-spacing:.5px;
}
.t-meta{ text-align:left; }
.t-name{ font-weight:600; font-size:15px; color:var(--ink); }
.t-role{ font-size:13px; color:#888; }
.dots{ display:flex; gap:8px; justify-content:center; margin-top:26px; }
.dot{ width:9px; height:9px; border-radius:50%; cursor:pointer; background:#d2d2d2; border:none; padding:0; }
.dot.is-active{ background:var(--red); }

/* ---------- Page banner ---------- */
.banner{
  position:relative; height:200px;
  background:linear-gradient(180deg,#efefef,#e2e2e2);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.banner__title{
  position:relative; font-family:'Barlow Condensed',sans-serif;
  font-weight:700; font-size:50px; letter-spacing:1px; color:var(--ink); margin:0;
}

/* ---------- Split rows (about/employment) ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; }
.split + .split{ margin-top:64px; }
.split__text p{ font-size:15px; line-height:1.7; color:#555; margin:0 0 16px; }
.split__text p:last-of-type{ margin-bottom:0; }
.split__media{ width:100%; height:300px; object-fit:cover; border-radius:10px; }
.split__media--sm{ height:280px; }
.mb-26{ margin-bottom:26px; }
.block-title{ font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:36px; margin:0 0 16px; color:var(--ink); }

/* ---------- Forms ---------- */
.field{ width:100%; padding:12px 14px; border:1px solid #dcdcdc; border-radius:5px; font-size:14px; font-family:'Barlow',sans-serif; }
.field:focus{ outline:none; border-color:var(--red); }
textarea.field{ resize:vertical; }
.field-label{ display:block; font-size:13px; font-weight:600; color:#3a3a3a; margin-bottom:6px; }
.field-label .req{ color:var(--red); }
.form-card{ background:#fff; border:1px solid #ececec; border-radius:10px; box-shadow:0 10px 34px rgba(0,0,0,.06); padding:26px; }
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.mb-14{ margin-bottom:14px; }
.consent{ display:flex; align-items:center; gap:9px; font-size:13px; color:var(--muted); margin-bottom:18px; cursor:pointer; }
.consent input{ width:15px; height:15px; accent-color:var(--red); }
.alert-ok{ background:#eafaef; border:1px solid #bfe6cb; color:#1f7a3d; padding:12px 14px; border-radius:6px; font-size:14px; margin-bottom:16px; }
.is-hidden{ display:none; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:54px; align-items:start; }
.contact-lead p{ font-size:15px; line-height:1.7; color:var(--muted); margin:0; }
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.info-card{ background:#fff; border:1px solid #ececec; border-radius:10px; box-shadow:0 6px 22px rgba(0,0,0,.05); padding:30px 22px; text-align:center; }
.info-card__icon{ color:var(--red); font-size:26px; margin-bottom:12px; }
.info-card__label{ font-weight:700; font-size:15px; letter-spacing:.5px; margin-bottom:8px; color:var(--ink); }
.info-card__text{ font-size:14px; color:var(--muted); line-height:1.6; }

/* ---------- Gallery ---------- */
.gallery-head{ text-align:center; margin-bottom:44px; }
.gallery-head p{ font-size:15px; color:var(--muted); margin:0; }
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.gallery-item__media{ width:100%; height:175px; object-fit:cover; border-radius:8px; }
.gallery-item__label{ text-align:center; font-weight:600; font-size:15px; color:#2b2b2b; margin-top:12px; }

/* ---------- Employment form ---------- */
.app-card{ background:#fff; border:1px solid #ececec; border-radius:12px; box-shadow:0 12px 38px rgba(0,0,0,.07); padding:40px 40px 34px; }
.app-card__title{ text-align:center; font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:30px; margin:0 0 30px; color:var(--ink); }
.app-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px 22px; }
.app-field{ padding:11px 13px; }
.col-span-2{ grid-column:1 / -1; }
.consent--app{ align-items:flex-start; font-size:12.5px; color:#777; margin:18px 0 22px; line-height:1.5; }
.consent--app input{ margin-top:2px; flex:none; }
.consent--app .link{ color:var(--red); }
select.field{ color:#555; background:#fff; }

/* ---------- Footer ---------- */
.site-footer{ background:#f3f3f3; border-top:1px solid #e6e6e6; padding:50px 0 30px; }
.site-footer__inner{ display:grid; grid-template-columns:1.3fr 1fr; gap:60px; }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.footer-brand__name{ font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:20px; color:var(--ink); }
.footer-brand__name span{ color:var(--red); }
.footer-about{ font-size:14px; line-height:1.7; color:var(--muted); max-width:430px; margin:0 0 18px; }
.socials{ display:flex; gap:12px; }
.social{
  width:34px; height:34px; border-radius:50%; background:#fff; border:1px solid #e2e2e2;
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:#444; transition:.15s ease;
}
.social:hover{ color:var(--red); border-color:var(--red); }
.footer-col h4{ font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:19px; margin:0 0 18px; color:var(--ink); }
.footer-contact{ display:flex; flex-direction:column; gap:12px; font-size:14px; color:var(--muted); }
.footer-contact > div{ display:flex; gap:10px; }
.footer-contact .ic{ color:var(--red); }
.footer-bottom{ max-width:1200px; margin:34px auto 0; padding:18px 24px 0; border-top:1px solid #e2e2e2; font-size:13px; color:#8a8a8a; text-align:center; }

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .grid-3, .info-grid, .gallery-grid{ grid-template-columns:1fr 1fr; }
  .split, .contact-grid, .site-footer__inner{ grid-template-columns:1fr; gap:32px; }
  .hero__title{ font-size:42px; }
  .nav{ gap:18px; }
}
@media (max-width:560px){
  .grid-3, .info-grid, .gallery-grid, .form-row-2, .app-grid{ grid-template-columns:1fr; }
  .nav{ display:none; }
}


/* ---------- Mobile menu ---------- */
.nav-burger{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; padding:9px;
  background:none; border:0; cursor:pointer;
}
.nav-burger span{
  display:block; height:2px; width:100%;
  background:#1f1f1f; border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2){ opacity:0; }
.nav-burger.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:560px){
	
	
	.mb-order {
		order:2;
	}
	
  .nav-burger{ display:flex; }
  .nav{
    display:flex;                 /* overrides the old display:none */
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:#fff; border-bottom:1px solid var(--line);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    padding:8px 24px 16px;
    max-height:0; overflow:hidden;
    opacity:0; pointer-events:none;
    transition:max-height .3s ease, opacity .2s ease, padding .3s ease;
  }
  .nav.is-open{
    max-height:340px; opacity:1; pointer-events:auto;
  }
  .nav__link{
    width:100%; padding:13px 0; font-size:16px;
    border-bottom:1px solid #f0f0f0;
  }
  .nav__link.is-active::after{ display:none; }
}



/* ---------- Gallery lightbox ---------- */
.lightbox{
  display:none;
  position:fixed; inset:0; z-index:999;
  background:rgba(15,15,15,.92);
  align-items:center; justify-content:center;
}
.lightbox.is-open{ display:flex; }
.lightbox__img{
  max-width:min(1100px, 86vw); max-height:80vh;
  object-fit:contain; border-radius:6px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lightbox__caption{
  position:absolute; bottom:36px; left:0; right:0;
  text-align:center; color:#fff; font-size:15px; font-weight:600; letter-spacing:.3px;
}
.lightbox__close{
  position:absolute; top:20px; right:28px;
  background:none; border:0; color:#fff; font-size:36px; line-height:1;
  cursor:pointer; padding:6px 10px; opacity:.85;
}
.lightbox__close:hover{ opacity:1; }
.lightbox__arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.3); color:#fff;
  width:52px; height:52px; border-radius:50%; font-size:30px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s ease;
}
.lightbox__arrow:hover{ background:rgba(255,255,255,.22); }
.lightbox__arrow--prev{ left:24px; }
.lightbox__arrow--next{ right:24px; }
@media (max-width:560px){
  .lightbox__arrow{ width:42px; height:42px; font-size:24px; }
  .lightbox__arrow--prev{ left:10px; }
  .lightbox__arrow--next{ right:10px; }
}
