/* ==========================================================================
   4S Logistics Services — layout.css
   Top bar, header / navigation, page banner, footer, floating actions
   ========================================================================== */

/* ---------- Top bar ---------- */
.topbar{
  background:var(--blue-dark);
  color:rgba(255,255,255,.85);
  font-size:12.5px;
  padding:8px 0;
}
.topbar__inner{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;}
.topbar__list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;list-style:none;margin:0;padding:0;}
.topbar__list li{display:flex;align-items:center;gap:7px;margin:0;}
.topbar__list a{color:rgba(255,255,255,.85);}
.topbar__list a:hover{color:#fff;}
.topbar svg{width:14px;height:14px;color:var(--red);flex:none;}
.topbar__social{display:flex;gap:8px;list-style:none;margin:0;padding:0;}
.topbar__social a{
  width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);color:#fff;
}
.topbar__social a:hover{background:var(--red);color:#fff;}
.topbar__social svg{width:13px;height:13px;color:currentColor;}

/* ---------- Header ---------- */
.header{
  position:sticky;top:0;z-index:900;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.header__inner{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:66px;
}
.brand{display:flex;align-items:center;gap:8px;flex:none;}
.brand img{height:62px;width:auto;flex:none;}
.brand__text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.brand__name{
  font-family:var(--ff-head);font-weight:700;font-size:14px;color:var(--blue);
  line-height:1.05;letter-spacing:.01em;
}
.brand__name em{font-style:normal;color:var(--red);}
.brand__tag{
  font-family:var(--ff-head);font-weight:700;font-size:14px;color:var(--muted);
  line-height:1.05;letter-spacing:.01em;
}

.header__actions{display:flex;align-items:center;gap:8px;}
.header__cta{display:none;}

.nav-toggle{
  width:42px;height:42px;border:1px solid var(--line);border-radius:10px;
  background:#fff;color:var(--blue);display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex:none;transition:background var(--t),color var(--t);
}
.nav-toggle:hover{background:var(--blue);color:#fff;}
.nav-toggle span{position:relative;display:block;width:19px;height:2px;background:currentColor;border-radius:2px;transition:var(--t);}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:19px;height:2px;background:currentColor;border-radius:2px;transition:var(--t);
}
.nav-toggle span::before{top:-6px;}
.nav-toggle span::after{top:6px;}
.nav-toggle.is-open span{background:transparent;}
.nav-toggle.is-open span::before{top:0;transform:rotate(45deg);}
.nav-toggle.is-open span::after{top:0;transform:rotate(-45deg);}

/* ---------- Navigation (mobile drawer first) ---------- */
.nav{
  position:fixed;top:0;right:-100%;
  width:min(86vw,340px);height:100%;
  background:#fff;
  box-shadow:-10px 0 40px rgba(16,42,67,.18);
  padding:18px 18px 40px;
  overflow-y:auto;
  transition:right .35s cubic-bezier(.4,.2,.2,1);
  z-index:1000;
}
.nav.is-open{right:0;}

/* No-JS fallback: the drawer can't be opened without main.js, so lay the
   whole menu out inline under the header and drop the hamburger. */
html:not(.js) .header__inner{flex-wrap:wrap;}
html:not(.js) .nav{
  position:static;width:100%;height:auto;
  padding:8px 0 4px;box-shadow:none;overflow:visible;
}
html:not(.js) .nav__head,
html:not(.js) .nav-toggle{display:none;}
html:not(.js) .submenu{max-height:none;}
html:not(.js) .nav__foot{margin-top:12px;}
.nav__head{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:12px;}
.nav__head img{height:38px;}
.nav__close{
  width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;
  color:var(--ink);font-size:20px;line-height:1;cursor:pointer;
}
.nav__close:hover{background:var(--red);border-color:var(--red);color:#fff;}

.menu{list-style:none;margin:0;padding:0;}
.menu > li{margin:0;border-bottom:1px solid var(--line);}
.menu > li > a,
.menu > li > .drop-toggle .drop-link{
  display:block;width:100%;padding:12px 2px;
  font-family:var(--ff-head);font-weight:600;font-size:14.5px;color:var(--ink);
  background:none;border:0;text-align:left;cursor:pointer;
}
.menu > li > a:hover,
.menu > li > .drop-toggle .drop-link:hover,
.menu > li.is-active > a,
.menu > li.is-active .drop-link{color:var(--red);}

.has-drop > .drop-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.has-drop > .drop-toggle .drop-link{width:auto;flex:1;}
.caret-btn{
  display:flex;align-items:center;justify-content:center;flex:none;
  background:none;border:0;padding:6px;margin:0;cursor:pointer;
}
.drop-toggle .caret{
  width:22px;height:22px;border-radius:50%;background:var(--soft);
  display:flex;align-items:center;justify-content:center;flex:none;transition:var(--t);
}
.drop-toggle .caret svg{width:11px;height:11px;color:var(--blue);transition:transform var(--t);}
.has-drop.is-open .caret{background:var(--blue);}
.has-drop.is-open .caret svg{color:#fff;transform:rotate(180deg);}

.submenu{
  list-style:none;margin:0;padding:0;
  max-height:0;overflow:hidden;transition:max-height .35s ease;
}
.has-drop.is-open > .submenu{max-height:560px;}
.submenu li{margin:0;}
.submenu a{
  display:block;padding:9px 2px 9px 16px;font-size:13.5px;color:var(--body);
  border-left:2px solid var(--line);margin-left:2px;
}
.submenu a:hover{color:var(--red);border-left-color:var(--red);}
.submenu a.is-active{color:var(--red);border-left-color:var(--red);font-weight:600;background:var(--soft);}

.nav__foot{margin-top:22px;}
.nav__foot .btn{width:100%;}
.nav__foot .btn+.btn{margin-top:10px;}
.nav__contact{margin-top:18px;font-size:13px;}
.nav__contact strong{display:block;color:var(--ink);}

.nav-backdrop{
  position:fixed;inset:0;background:rgba(11,26,42,.55);
  opacity:0;visibility:hidden;transition:var(--t);z-index:990;
}
.nav-backdrop.is-open{opacity:1;visibility:visible;}
body.nav-open{overflow:hidden;}

/* ---------- Page banner (inner pages) ---------- */
.banner{
  position:relative;
  padding:52px 0;
  background:
    linear-gradient(120deg,rgba(14,61,107,.94) 0%,rgba(20,82,143,.88) 55%,rgba(216,35,42,.75) 100%),
    var(--blue);
  color:#fff;text-align:center;overflow:hidden;
}
.banner::before{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:60px 60px;
}
.banner::after{
  content:"";position:absolute;right:-60px;bottom:-70px;
  width:230px;height:230px;border-radius:50%;
  background:rgba(255,255,255,.07);
}
.banner__art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.banner__art-flow{stroke-dasharray:2 24;animation:bannerFlow 2.8s linear infinite;}
@keyframes bannerFlow{to{stroke-dashoffset:-52;}}
.banner__art-wheel{transform-box:fill-box;transform-origin:center;animation:bannerSpin .8s linear infinite;}
@keyframes bannerSpin{to{transform:rotate(360deg);}}

/* Real photo banners: photo + brand-colour scrim in place of the SVG art */
.banner__photo{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center;
}
.banner__scrim{
  position:absolute;inset:0;
  background:linear-gradient(120deg,rgba(12,32,51,.82) 0%,rgba(20,82,143,.68) 55%,rgba(216,35,42,.5) 100%);
}
.banner__inner{position:relative;z-index:2;}
.banner h1{color:#fff;font-size:27px;margin-bottom:10px;}
.breadcrumb{
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px 10px;
  list-style:none;margin:0;padding:0;font-size:13px;color:rgba(255,255,255,.8);
}
.breadcrumb li{margin:0;display:flex;align-items:center;gap:10px;}
.breadcrumb li+li::before{content:"/";color:rgba(255,255,255,.5);}
.breadcrumb a{color:#fff;}
.breadcrumb a:hover{color:#ffd9db;}

/* ---------- Footer ---------- */
.footer{
  background:#0c2033;
  color:rgba(255,255,255,.72);
  font-size:14px;
  padding-top:46px;
}
.footer h4{
  color:#fff;font-size:16px;margin-bottom:18px;position:relative;padding-bottom:10px;
}
.footer h4::after{content:"";position:absolute;left:0;bottom:0;width:38px;height:2px;background:var(--red);}
.footer a{color:rgba(255,255,255,.72);}
.footer a:hover{color:#fff;}

.footer__grid{display:grid;gap:30px;grid-template-columns:1fr;}
.footer__brand img{height:60px;background:#fff;border-radius:10px;padding:6px 10px;margin-bottom:16px;}
.footer__social{display:flex;gap:9px;list-style:none;margin:16px 0 0;padding:0;}
.footer__social li{margin:0;}
.footer__social a{
  width:34px;height:34px;border-radius:8px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.footer__social a:hover{background:var(--red);}
.footer__social svg{width:15px;height:15px;}

.footer__links{list-style:none;margin:0;padding:0;}
.footer__links li{margin-bottom:9px;}
.footer__links a{display:inline-flex;align-items:center;gap:8px;}
.footer__links a::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--red);flex:none;}

.footer__contact{list-style:none;margin:0;padding:0;}
.footer__contact li{display:flex;gap:11px;margin-bottom:14px;}
.footer__contact svg{width:16px;height:16px;color:var(--red);flex:none;margin-top:5px;}

.hours{list-style:none;margin:14px 0 0;padding:0;font-size:13.5px;}
.hours li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed rgba(255,255,255,.12);margin:0;}
.hours li:last-child{border-bottom:0;}
.hours span{color:#fff;}

.footer__bottom{
  margin-top:36px;padding:16px 0;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:12.5px;text-align:center;
}
.footer__bottom p{margin:0 0 4px;}
.footer__bottom p:last-child{margin:0;}
.footer__credit{color:#fff;font-size:13px;}
.footer__credit a{color:#fff;font-weight:400;text-decoration:underline;text-underline-offset:3px;}
.footer__credit a:hover{color:var(--red);}

/* ---------- Floating actions ---------- */
.to-top{
  position:fixed;right:14px;bottom:76px;z-index:800;
  width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;
  background:var(--blue);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow);
  opacity:0;visibility:hidden;transform:translateY(10px);transition:var(--t);
}
.to-top.is-visible{opacity:1;visibility:visible;transform:none;}
.to-top:hover{background:var(--red);}
.to-top svg{width:17px;height:17px;}

/* Sticky call bar on phones */
.call-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:850;
  display:flex;background:#fff;border-top:1px solid var(--line);
  box-shadow:0 -4px 18px rgba(16,42,67,.10);
}
.call-bar a{
  flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 8px;font-size:13.5px;font-weight:600;font-family:var(--ff-head);
  color:var(--blue);
}
.call-bar a+a{border-left:1px solid var(--line);color:var(--red);}
.call-bar svg{width:15px;height:15px;}
body{padding-bottom:50px;}
