/* ============================================================
   MDG FOODS — Home page (reference layout, animated)
   ============================================================ */

/* ---------------- HERO SLIDER (editorial) ---------------- */
.hero{ position:relative; background:var(--navy); color:#fff; overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.08); }

.hero__viewport{ position:relative; min-height:clamp(440px,48vw,580px); }
.hero__slide{
  position:absolute; inset:0; display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,5vw,80px);
  align-items:center; padding:clamp(44px,5.5vw,80px) 0;
  opacity:0; visibility:hidden; transition:opacity .8s ease; z-index:1;
}
.hero__slide.active{ opacity:1; visibility:visible; z-index:2; }

.hero__media{ position:relative; display:flex; justify-content:center; align-items:center; }
.hero__card{
  position:relative; width:min(100%,480px); aspect-ratio:5/4; overflow:hidden;
  border-radius:2px; box-shadow:0 30px 70px -34px rgba(0,0,0,.7);
}
.hero__card img, .hero__card image-slot{ width:100%; height:100%; object-fit:cover; }
/* thin editorial frame */
.hero__media::after{ content:""; position:absolute; inset:-14px;
  border:1px solid rgba(255,255,255,.16); border-radius:3px; pointer-events:none; }

.hero__text{ max-width:540px; }
.hero__text .eyebrow{ color:#7fe6df; background:none; padding:0; }
.hero__text h2{ color:#fff; font-size:clamp(2.7rem,5.4vw,4.4rem); line-height:1.04; margin:20px 0 18px; font-weight:600; }
.hero__text p{ font-size:clamp(1.02rem,1.4vw,1.18rem); color:#c5cfe6; max-width:44ch; line-height:1.7; }
.hero__text .btn{ margin-top:30px; }

.hero__arrow{ position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:46px; height:46px; border-radius:50%; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06);
  color:#fff; display:grid; place-items:center; transition:.25s; }
.hero__arrow:hover{ background:#fff; color:var(--navy); }
.hero__arrow svg{ width:20px; height:20px; }
.hero__arrow.prev{ left:14px; } .hero__arrow.next{ right:14px; }
.hero__dots{ position:absolute; bottom:26px; left:50%; transform:translateX(-50%); z-index:5; display:flex; gap:9px; }
.hero__dots button{ width:9px; height:9px; border-radius:999px; border:none; background:rgba(255,255,255,.32); transition:.3s; padding:0; }
.hero__dots button.active{ width:30px; background:#fff; }
@media (max-width:820px){
  .hero__slide{ grid-template-columns:1fr; text-align:center; gap:30px; }
  .hero__text{ margin:0 auto; } .hero__text p{ margin-inline:auto; }
  .hero__media{ order:-1; } .hero__card{ width:min(78%,360px); }
  .hero__arrow{ display:none; }
}

/* ---------------- OUR COMPANIES ---------------- */
.companies{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.company{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:32px;
  display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; box-shadow:var(--shadow-sm); transition:.35s; }
.company:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }
.company h3{ font-size:1.5rem; margin-bottom:10px; }
.company p{ font-size:.93rem; color:var(--body); margin-bottom:20px; }
.company__media{ width:130px; height:130px; border-radius:var(--r-md); background:var(--bg-alt); border:1px solid var(--line);
  display:grid; place-items:center; overflow:hidden; flex:none; }
.company__media img, .company__media image-slot{ width:100%; height:100%; object-fit:cover; }
.company__media.logo-tile{ padding:18px; }
@media (max-width:860px){ .companies{ grid-template-columns:1fr; } }
@media (max-width:460px){ .company{ grid-template-columns:1fr; } .company__media{ width:100%; height:150px; } }

/* single company → full-width feature panel */
.companies--solo{ grid-template-columns:1fr; max-width:1000px; margin:0 auto; }
.companies--solo .company{ grid-template-columns:1.15fr .85fr; gap:clamp(28px,4vw,52px); padding:clamp(28px,3.5vw,46px); }
.companies--solo .company h3{ font-size:1.9rem; }
.companies--solo .company p{ font-size:1rem; line-height:1.7; }
.companies--solo .company__media{ width:100%; height:auto; aspect-ratio:4/3; border-radius:var(--r-lg); }
@media (max-width:640px){ .companies--solo .company{ grid-template-columns:1fr; } .companies--solo .company__media{ aspect-ratio:16/9; } }

/* ---------------- ABOUT ---------------- */
.about{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,68px); align-items:center; }
.about__media{ position:relative; border-radius:var(--r-lg); overflow:hidden; border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow-lg); aspect-ratio:16/9; background:#0a1530; }
.about__media img, .about__media image-slot{ width:100%; height:100%; object-fit:contain; }
.about h2{ color:#fff; }
.about p{ color:#bcc7df; margin-top:18px; }
.about__meta{ display:flex; gap:26px; flex-wrap:wrap; margin-top:24px; font-size:.92rem; }
.about__meta b{ color:var(--teal); font-weight:700; }
.about__meta .num{ font-family:var(--serif); font-size:1.8rem; color:#fff; line-height:1; margin-right:.3em; }
.about__meta span{ display:inline-flex; align-items:baseline; }
@media (max-width:820px){ .about{ grid-template-columns:1fr; } .about__media{ order:-1; } }

/* ---- full-width animated banner (home about) ---- */
.about--banner{ display:block; }
.about--banner .about__text{ max-width:780px; }
.about__media--wide{
  width:100%; aspect-ratio:auto; margin-top:36px; border-radius:18px; overflow:hidden;
  border:1px solid rgba(255,255,255,.12); box-shadow:0 40px 90px -40px rgba(0,0,0,.7);
  background:#0a1530;
  opacity:0; transform:translateY(40px) scale(.97);
  animation: bannerIn .9s cubic-bezier(.16,.84,.44,1) forwards;
}
.about__media--wide img{
  width:100%; height:auto; display:block; object-fit:contain;
  animation: bannerPan 20s ease-in-out infinite alternate;
}
@keyframes bannerIn{ to{ opacity:1; transform:none; } }
@keyframes bannerPan{ from{ transform:scale(1); } to{ transform:scale(1.07); } }
@media (prefers-reduced-motion:reduce){
  .about__media--wide{ opacity:1; transform:none; animation:none; }
  .about__media--wide img{ animation:none; }
}

/* ---------------- CATEGORY GRID ---------------- */
.catgrid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.cat{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s; display:flex; flex-direction:column; }
.cat:hover{ transform:translateY(-7px); box-shadow:var(--shadow-md); }
.cat__media{ aspect-ratio:4/3; overflow:hidden; background:var(--bg-alt); position:relative; }
.cat__media img, .cat__media image-slot{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.3,1); }
.cat:hover .cat__media img{ transform:scale(1.07); }
.cat__body{ padding:18px 16px 20px; text-align:center; }
.cat__body h3{ font-family:var(--sans); font-weight:600; font-size:1.02rem; color:var(--ink); }
.cat__body span{ display:block; font-size:.82rem; color:var(--teal-deep); font-weight:600; margin-top:4px; }
@media (max-width:900px){ .catgrid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:460px){ .catgrid{ grid-template-columns:1fr 1fr; gap:14px; } }

/* ---------------- FIND US ---------------- */
.findus{ display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:880px; margin:0 auto; }
.findcard{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; display:flex; gap:16px; box-shadow:var(--shadow-sm); transition:.3s; }
.findcard:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.findcard__ic{ width:44px; height:44px; border-radius:50%; background:var(--teal-soft); color:var(--teal-deep); display:grid; place-items:center; flex:none; }
.findcard__ic svg{ width:21px; height:21px; }
.findcard h4{ font-family:var(--sans); font-weight:600; font-size:1.02rem; color:var(--ink); margin-bottom:8px; }
.findcard p{ font-size:.9rem; line-height:1.6; }
.findcard a.link{ color:var(--teal-deep); font-weight:600; display:inline-flex; align-items:center; gap:.4em; margin-top:8px; }
@media (max-width:680px){ .findus{ grid-template-columns:1fr; } }

/* ---------------- TRADE BAND ---------------- */
.tradeband{ position:relative; background:linear-gradient(120deg,var(--blue-band),var(--blue-deep)); color:#fff; overflow:hidden; }
.tradeband__inner{ position:relative; text-align:center; max-width:640px; margin:0 auto; }
.tradeband h2{ color:#fff; }
.tradeband p{ color:rgba(255,255,255,.85); margin:16px auto 28px; max-width:48ch; }

/* ---------------- BRANDS ---------------- */
.brands{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.brandchip{ padding:.8em 1.7em; border-radius:999px; background:#fff; border:1px solid var(--line-2);
  font-family:var(--serif); font-weight:600; font-size:1.05rem; color:var(--ink); transition:.28s; box-shadow:var(--shadow-sm); }
.brandchip:hover{ transform:translateY(-4px); border-color:var(--teal); color:var(--teal-deep); box-shadow:var(--shadow-md); }

/* ---- brand logo wall (uploaded via admin → Brand Logos) ---- */
.brandwall{ display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.brandlogo{ display:grid; place-items:center; padding:18px 14px; background:#fff; border:1px solid var(--line-2);
  border-radius:var(--r-md); box-shadow:var(--shadow-sm); transition:.28s; min-height:96px; }
.brandlogo:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.brandlogo img{ max-width:100%; max-height:60px; object-fit:contain; filter:grayscale(.15); transition:filter .28s; }
.brandlogo:hover img{ filter:none; }
.brandwall .brandchip{ min-height:96px; display:grid; place-items:center; text-align:center; }
@media (max-width:900px){ .brandwall{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:560px){ .brandwall{ grid-template-columns:repeat(2,1fr); gap:12px; } }

/* ============================================================
   BANNER HERO (live rebuild of the promo banner)
   ============================================================ */
.bhero{ --bh-navy:#0b1f4d; --bh-navy-d:#091a40; --bh-blue:#1d6fd8; background:#fff; overflow:hidden; }

/* ---- top: intro + depot photo ---- */
.bhero__top{ display:grid; grid-template-columns:1fr 1.18fr; align-items:stretch; }
.bhero__intro{ padding:clamp(28px,4vw,56px) clamp(24px,3.5vw,56px); display:flex; flex-direction:column; }
.bhero__logo{ height:clamp(58px,6vw,84px); width:auto; max-width:340px; object-fit:contain; display:block; margin-bottom:clamp(18px,2.5vw,30px); }
.bhero__intro h1{ font-family:var(--sans); font-weight:800; line-height:1.02; letter-spacing:-.01em;
  font-size:clamp(2rem,4vw,3.3rem); color:var(--bh-navy); text-transform:uppercase; margin-bottom:18px; }
.bhero__intro h1 em{ color:var(--bh-blue); font-style:normal; }
.bhero__intro p{ font-size:clamp(.95rem,1.2vw,1.08rem); line-height:1.65; color:#475067; max-width:44ch; }
.bhero__est{ display:flex; align-items:center; gap:14px; margin-top:auto; padding-top:26px; }
.bhero__est-ic{ width:50px; height:50px; border-radius:50%; border:2px solid var(--bh-navy); color:var(--bh-navy); display:grid; place-items:center; flex:none; }
.bhero__est-ic svg{ width:24px; height:24px; }
.bhero__est small{ display:block; font-size:.72rem; font-weight:700; letter-spacing:.14em; color:#7a8499; }
.bhero__est b{ display:block; font-family:var(--sans); font-weight:800; font-size:1.7rem; color:var(--bh-navy); line-height:1; }
.bhero__photo{ position:relative; min-height:280px; }
.bhero__photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* ---- feature band ---- */
.bhero__band{ background:var(--bh-navy); color:#fff; }
.bhero__feats{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.bhero__feat{ display:flex; gap:14px; align-items:center; padding:24px clamp(16px,2vw,28px); position:relative; }
.bhero__feat:not(:last-child)::after{ content:""; position:absolute; right:0; top:24%; height:52%; width:1px; background:rgba(255,255,255,.16); }
.bhero__feat-ic{ width:50px; height:50px; flex:none; display:grid; place-items:center; color:#fff; }
.bhero__feat-ic svg{ width:34px; height:34px; }
.bhero__feat b{ display:block; font-family:var(--sans); font-weight:700; font-size:.98rem; text-transform:uppercase; letter-spacing:.02em; line-height:1.15; }
.bhero__feat span{ display:block; font-size:.82rem; color:#aebbd8; margin-top:3px; line-height:1.35; }

/* ---- fleet photo strip ---- */
.bhero__strip{ display:grid; grid-template-columns:repeat(4,1fr); }
.bhero__strip img{ width:100%; height:clamp(150px,15vw,210px); object-fit:cover; display:block; }

/* ---- contact band ---- */
.bhero__contact{ background:var(--bh-navy-d); color:#cdd7ee; padding:22px 0; }
.bhero__contactgrid{ display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:24px; align-items:center; }
.bhero__cinfo{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.bhero__cinfo li{ display:flex; align-items:center; gap:10px; font-size:.9rem; }
.bhero__cinfo svg{ width:17px; height:17px; flex:none; color:var(--bh-blue); }
.bhero__cinfo a{ color:#fff; } .bhero__cinfo a:hover{ color:#9fc0ff; }
.bhero__creg{ border-left:1px solid rgba(255,255,255,.14); padding-left:24px; }
.bhero__creg b{ color:var(--bh-blue); font-family:var(--sans); font-weight:700; font-size:.95rem; letter-spacing:.03em; }
.bhero__creg p{ font-size:.82rem; line-height:1.55; margin-top:6px; }
.bhero__loc{ display:flex; gap:12px; align-items:flex-start; border-left:1px solid rgba(255,255,255,.14); padding-left:24px; }
.bhero__loc-ic{ width:38px; height:38px; border-radius:50%; background:var(--bh-blue); color:#fff; display:grid; place-items:center; flex:none; }
.bhero__loc-ic svg{ width:19px; height:19px; }
.bhero__loc b{ color:#fff; font-size:.92rem; } .bhero__loc p{ font-size:.82rem; line-height:1.5; margin-top:4px; }

@media (max-width:900px){
  .bhero__top{ grid-template-columns:1fr; }
  .bhero__photo{ min-height:240px; order:-1; }
  .bhero__feats{ grid-template-columns:1fr 1fr; }
  .bhero__feat:nth-child(2)::after{ display:none; }
  .bhero__feat:nth-child(odd)::after{ display:none; }
  .bhero__contactgrid{ grid-template-columns:1fr; gap:18px; }
  .bhero__creg, .bhero__loc{ border-left:none; padding-left:0; border-top:1px solid rgba(255,255,255,.14); padding-top:16px; }
}
@media (max-width:560px){
  .bhero__feats{ grid-template-columns:1fr; }
  .bhero__feat::after{ display:none!important; }
  .bhero__strip{ grid-template-columns:1fr 1fr; }
}
