/* responsive.css - loads AFTER style.css. Additive overrides for all screen sizes. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:90px}
body{overflow-x:clip;word-wrap:break-word}
img,svg,video{max-width:100%;height:auto}
.container{width:100%;max-width:1240px;margin-inline:auto;padding-inline:clamp(16px,4vw,40px)}
h1{font-size:clamp(2.1rem,6.2vw,4.6rem);line-height:1.08}
h2{font-size:clamp(1.6rem,3.8vw,2.8rem);line-height:1.15}
.lead{font-size:clamp(1.05rem,1.6vw,1.25rem)}
.btn,.nav-cta,.text-link{min-height:44px}
input,select,textarea{font-size:16px;width:100%;max-width:100%} /* 16px stops iOS zoom-on-focus */
.hp-field{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Header */
.site-header{position:sticky!important;top:0!important;z-index:1000!important}
.brand-logo{height:auto;max-height:56px;width:auto;max-width:200px}
.footer-logo{height:auto;max-height:64px;width:auto;max-width:220px}
.main-nav a[aria-current="page"]:not(.nav-cta){border-bottom:2px solid currentColor}

/* Social icons */
.social-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.social-links a{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.35);color:#fff;transition:background .2s,color .2s,transform .2s}
.social-links a:hover,.social-links a:focus-visible{background:#d9a826;border-color:#d9a826;color:#102b3b;transform:translateY(-2px)}
.contact-social{margin-top:26px}
.contact-social small{display:block;margin-bottom:4px;letter-spacing:.12em}
.contact-social .social-links a{border-color:#102b3b;color:#102b3b}
.contact-social .social-links a:hover{background:#102b3b;color:#fff;border-color:#102b3b}

/* Gallery */
.page-hero-gallery{background:linear-gradient(135deg,#102b3b 0%,#1b4a63 100%)}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:clamp(16px,2.5vw,32px)}
.gallery-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 6px 24px rgba(16,43,59,.1);display:flex;flex-direction:column}
.gallery-fig{margin:0;aspect-ratio:4/3;background:#dfe6ea;position:relative;overflow:hidden}
.gallery-fig img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-fallback{display:none;position:absolute;inset:0;align-items:center;justify-content:center;text-align:center;padding:16px;color:#5b6f7b;font-size:.9rem}
.gallery-fig.no-img img{display:none}
.gallery-fig.no-img .gallery-fallback{display:flex}
.gallery-body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:8px;flex:1}
.gallery-body h3{margin:0;font-size:1.2rem}
.gallery-body p{margin:0 0 8px;flex:1}

/* Form status */
.form-status{padding:14px 16px;border-radius:10px;margin:0 0 18px;font-weight:600;line-height:1.45}
.form-status.success{background:#e6f6ec;color:#14532d;border:1px solid #86d4a3}
.form-status.error{background:#fdecec;color:#7f1d1d;border:1px solid #f3a5a5}
.form-status[hidden]{display:none}
.submit-btn[disabled]{opacity:.6;cursor:wait}

/* Tablets & below */
@media (max-width:1024px){
  .intro-grid,.about-grid,.contact-grid,.values-grid{grid-template-columns:1fr!important;gap:28px}
  .service-grid{grid-template-columns:repeat(2,1fr)!important}
  .three-grid{grid-template-columns:repeat(2,1fr)!important}
  .footer-main{grid-template-columns:repeat(2,1fr)!important;gap:32px}
  .feature-section{grid-template-columns:1fr!important}
  .feature-image{min-height:280px}
  .service-detail,.service-detail.reverse{grid-template-columns:1fr!important}
  .service-detail .detail-image{min-height:260px;order:0!important}
  .service-detail .detail-copy{order:1!important}
  .cta-inner{flex-direction:column;align-items:flex-start;gap:24px}
  .section-heading{flex-direction:column;align-items:flex-start;gap:14px}
}

/* Phones & mobile menu (also portrait tablets) */
@media (max-width:860px){
  .topbar-inner{justify-content:center;text-align:center}
  .topbar-inner>span{display:none}
  .topbar-sep{display:none}
  .topbar-right{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;font-size:.85rem}
  .nav-wrap{position:relative;display:flex;align-items:center;justify-content:space-between}
  .menu-toggle{display:inline-flex!important;flex-direction:column;justify-content:center;gap:5px;width:46px;height:46px;padding:11px;background:transparent;border:0;cursor:pointer}
  .menu-toggle span{display:block;height:2px;width:100%;background:currentColor;transition:transform .25s,opacity .2s}
  .site-header.nav-open .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .site-header.nav-open .menu-toggle span:nth-child(2){opacity:0}
  .site-header.nav-open .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .main-nav{display:none!important;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:12px clamp(16px,4vw,40px) 22px;background:#fff;box-shadow:0 18px 30px rgba(16,43,59,.18);z-index:99}
  .site-header.nav-open .main-nav{display:flex!important}
  .main-nav a{padding:14px 4px;border-bottom:1px solid rgba(16,43,59,.1);display:block}
  .main-nav .nav-cta{margin-top:14px;text-align:center;border-bottom:0}
  .hero-bottom{flex-direction:column;gap:6px;font-size:.75rem}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn{text-align:center;justify-content:center}
  .form-row{grid-template-columns:1fr!important}
  .form-card{padding:clamp(18px,5vw,32px)}
}

@media (max-width:640px){
  .service-grid,.three-grid,.footer-main{grid-template-columns:1fr!important}
  .footer-bottom-inner{flex-direction:column;gap:6px;text-align:center}
  .section-pad{padding-block:clamp(44px,10vw,64px)}
  .btn{width:100%;justify-content:center;text-align:center}
  .cta-inner .btn{width:100%}
}

/* Landscape phones: short viewports */
@media (max-height:480px) and (orientation:landscape){
  .hero,.page-hero{min-height:0!important;padding-block:40px}
  .main-nav{max-height:calc(100vh - 70px);max-height:calc(100dvh - 70px);overflow-y:auto}
}

/* Large screens */
@media (min-width:1600px){html{font-size:112.5%}.container{max-width:1440px}}
@media (min-width:2200px){html{font-size:125%}.container{max-width:1760px}}
@media (min-width:3000px){html{font-size:150%}.container{max-width:2200px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* Lock page scroll while the mobile menu is open */
html.nav-locked,html.nav-locked body{overflow:hidden!important;height:100%}
@media (min-width:861px){html.nav-locked,html.nav-locked body{overflow:auto!important;height:auto}}

/* ===== Mobile menu v3: visible icon + non-scrolling overlay (overrides everything above) ===== */
@media (max-width:860px){
  .site-header,.nav-wrap{overflow:visible!important}
  .menu-toggle{
    display:inline-flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:5px;
    width:46px!important;height:46px!important;padding:0!important;margin:0;flex:0 0 auto;
    background:#102b3b!important;border:1px solid #d9a826!important;border-radius:10px!important;
    cursor:pointer;position:relative;z-index:1002;opacity:1!important;visibility:visible!important;
  }
  .menu-toggle span{display:block!important;width:22px!important;height:2px!important;background:#fff!important;border-radius:2px;opacity:1}
  .site-header.nav-open .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .site-header.nav-open .menu-toggle span:nth-child(2){opacity:0}
  .site-header.nav-open .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .main-nav{
    display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;flex-direction:column;gap:0;padding:8px clamp(16px,4vw,40px) 20px!important;
    background:#fff!important;box-shadow:0 20px 30px rgba(16,43,59,.25);z-index:1001;transform:none!important;
  }
  .site-header.nav-open .main-nav{display:flex!important}
  .main-nav a:not(.nav-cta){display:block;padding:14px 4px!important;color:#102b3b!important;border-bottom:1px solid rgba(16,43,59,.12)}
  .main-nav .nav-cta{margin-top:14px;text-align:center}
}
/* Short landscape phones: 2-column menu so it still fits without scrolling */
@media (max-width:860px) and (max-height:520px){
  .site-header.nav-open .main-nav{display:grid!important;grid-template-columns:1fr 1fr;column-gap:24px}
  .main-nav a:not(.nav-cta){padding:10px 4px!important}
  .main-nav .nav-cta{margin-top:8px;grid-column:1/-1}
}

/* ===== Mobile menu v4: drawn icon + solid panel (ID selectors outrank style.css) ===== */
@media (max-width:860px){
  .site-header .menu-toggle span{display:none!important}
  .site-header .menu-toggle svg{display:block!important;width:24px;height:24px;transform:none!important}
  .site-header .menu-toggle .icon-close{display:none!important}
  .site-header.nav-open .menu-toggle .icon-open{display:none!important}
  .site-header.nav-open .menu-toggle .icon-close{display:block!important}
  .site-header #main-nav{
    background:#ffffff!important;background-color:#ffffff!important;background-image:none!important;
    opacity:1!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    border-top:3px solid #d9a826;
  }
  .site-header #main-nav a:not(.nav-cta){background:transparent!important;color:#102b3b!important;opacity:1!important}
}

/* ===== Mobile menu v5: full-screen solid overlay (final) ===== */
@media (max-width:860px){
  .site-header{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:#fff!important}
  .site-header #main-nav{
    position:fixed!important;top:var(--menu-top,110px)!important;bottom:0!important;left:0!important;right:0!important;
    width:100%!important;height:auto!important;max-height:none!important;
    background:#fff!important;overflow:hidden!important;
    padding:20px clamp(18px,5vw,40px)!important;z-index:1001;
    box-shadow:none!important;border-top:3px solid #e5b34f;
  }
  .site-header #main-nav>a:not(.nav-cta){padding:17px 6px!important;font-size:1.05rem}
  .site-header #main-nav .nav-cta{margin-top:22px!important;padding:16px 18px!important;color:#fff!important}
}
@media (max-width:860px) and (max-height:520px){
  .site-header.nav-open #main-nav{display:grid!important;grid-template-columns:1fr 1fr;column-gap:24px;align-content:start;overflow-y:auto!important}
  .site-header #main-nav>a:not(.nav-cta){padding:10px 6px!important}
  .site-header #main-nav .nav-cta{margin-top:8px!important;grid-column:1/-1}
}

/* Service images. Tries many filename/extension variants (Linux hosting is case-sensitive); first one that exists wins.
   If none exist, the navy/gold panel shows. */
.detail-warehouse{background-image:url('../img/earthworks.jpg'),url('../img/earthworks.jpeg'),url('../img/earthworks.png'),url('../img/earthworks.webp'),url('../img/earthworks.JPG'),url('../img/earthworks.JPEG'),url('../img/earthworks.PNG'),url('../img/Earthworks.jpg'),url('../img/Earthworks.jpeg'),url('../img/Earthworks.png'),url('../img/Earthworks.webp'),url('../img/Earthworks.JPG'),url('../img/Earthworks.JPEG'),url('../img/Earthworks.PNG'),url('../img/earth-works.jpg'),url('../img/earth-works.jpeg'),url('../img/earth-works.png'),url('../img/earth-works.webp'),url('../img/earth-works.JPG'),url('../img/earth-works.JPEG'),url('../img/earth-works.PNG'),url('../img/bulk-earth-works.jpg'),url('../img/bulk-earth-works.jpeg'),url('../img/bulk-earth-works.png'),url('../img/bulk-earth-works.webp'),url('../img/bulk-earth-works.JPG'),url('../img/bulk-earth-works.JPEG'),url('../img/bulk-earth-works.PNG'),url('../img/warehouse.jpg'),url('../img/warehouse.jpeg'),url('../img/warehouse.png'),url('../img/warehouse.webp'),url('../img/warehouse.JPG'),url('../img/warehouse.JPEG'),url('../img/warehouse.PNG'),linear-gradient(135deg,#102b3b 0%,#173b4e 55%,#c18a24 130%)}
.detail-distribution{background-image:url('../img/materials.jpg'),url('../img/materials.jpeg'),url('../img/materials.png'),url('../img/materials.webp'),url('../img/materials.JPG'),url('../img/materials.JPEG'),url('../img/materials.PNG'),url('../img/Materials.jpg'),url('../img/Materials.jpeg'),url('../img/Materials.png'),url('../img/Materials.webp'),url('../img/Materials.JPG'),url('../img/Materials.JPEG'),url('../img/Materials.PNG'),url('../img/material-handling.jpg'),url('../img/material-handling.jpeg'),url('../img/material-handling.png'),url('../img/material-handling.webp'),url('../img/material-handling.JPG'),url('../img/material-handling.JPEG'),url('../img/material-handling.PNG'),url('../img/material.jpg'),url('../img/material.jpeg'),url('../img/material.png'),url('../img/material.webp'),url('../img/material.JPG'),url('../img/material.JPEG'),url('../img/material.PNG'),url('../img/distribution.jpg'),url('../img/distribution.jpeg'),url('../img/distribution.png'),url('../img/distribution.webp'),url('../img/distribution.JPG'),url('../img/distribution.JPEG'),url('../img/distribution.PNG'),linear-gradient(135deg,#173b4e 0%,#102b3b 55%,#c18a24 130%)}

/* Gallery page banner: add img/gallery.jpg (landscape, about 1920x800). Navy gradient shows until then. */
.page-hero-gallery{background-image:url('../img/gallery.jpg'),url('../img/gallery.jpeg'),url('../img/gallery.png'),url('../img/gallery.webp'),url('../img/gallery.JPG'),url('../img/gallery.JPEG'),url('../img/gallery.PNG'),url('../img/Gallery.jpg'),url('../img/Gallery.jpeg'),url('../img/Gallery.png'),url('../img/Gallery.webp'),url('../img/Gallery.JPG'),url('../img/Gallery.JPEG'),url('../img/Gallery.PNG'),url('../img/gallery-banner.jpg'),url('../img/gallery-banner.jpeg'),url('../img/gallery-banner.png'),url('../img/gallery-banner.webp'),url('../img/gallery-banner.JPG'),url('../img/gallery-banner.JPEG'),url('../img/gallery-banner.PNG'),linear-gradient(135deg,#102b3b 0%,#1b4a63 100%);background-size:cover;background-position:center}
