/* ============================================================
   MDG FOODS — Wholesale storefront
   Shared design system  (navy · royal blue · teal)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  /* surfaces */
  --navy:        #0b1a3d;   /* hero / about / footer / top bar */
  --navy-2:      #0e2css;
  --navy-deep:   #081530;
  --blue:        #1d4ed8;   /* primary buttons */
  --blue-bar:    #1c44a8;   /* category nav bar */
  --blue-deep:   #15388c;
  --blue-band:   #1b46b0;   /* trade-customer band */
  --teal:        #1fb6ac;   /* accent */
  --teal-deep:   #149a91;
  --teal-soft:   #d6f3f1;   /* pill bg */

  --bg:          #ffffff;
  --bg-alt:      #eef1f9;   /* lavender sections */
  --card:        #ffffff;
  --line:        #e4e8f3;
  --line-2:      #d7ddec;

  /* ink */
  --ink:         #0c1a3a;   /* headings / navy text */
  --body:        #54607a;   /* body copy */
  --muted:       #8b95ab;
  --white:       #ffffff;

  /* type */
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* shape */
  --r-sm: 10px;  --r-md: 16px;  --r-lg: 22px;  --r-xl: 30px;
  --shadow-sm: 0 2px 10px rgba(12,26,58,.06);
  --shadow-md: 0 18px 44px -20px rgba(12,26,58,.30);
  --shadow-lg: 0 40px 90px -40px rgba(12,26,58,.45);

  --maxw: 1200px;
  --topbar-h: 38px;
  --mast-h: 112px;
  --catnav-h: 50px;
}

/* fix typo'd token safely */
:root{ --navy-2:#0e234f; }

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--sans); color:var(--body); background:var(--bg);
  line-height:1.65; font-size:16px; overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

/* ----------------------------------------------------------- layout */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:24px; }
.section{ position:relative; padding:clamp(56px,8vw,104px) 0; }
.section--tight{ padding:clamp(40px,5.5vw,72px) 0; }
.bg-alt{ background:var(--bg-alt); }
.bg-navy{ background:var(--navy); color:#cdd6ea; }

/* ----------------------------------------------------------- type */
h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; line-height:1.12; color:var(--ink); letter-spacing:-.005em; }
.display{ font-size:clamp(2.6rem,5.6vw,4.4rem); line-height:1.05; font-weight:700; }
.h-xl{ font-size:clamp(2rem,4vw,3.1rem); }
.h-lg{ font-size:clamp(1.7rem,3vw,2.4rem); }
.h-md{ font-size:clamp(1.3rem,2.2vw,1.7rem); }
.lead{ font-size:clamp(1rem,1.4vw,1.15rem); color:var(--body); line-height:1.7; }
.muted{ color:var(--muted); }

/* editorial kicker — understated label with a leading rule */
.eyebrow{
  display:inline-flex; align-items:center; gap:.7em; font-family:var(--sans); font-weight:600;
  font-size:.72rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--teal-deep); background:none; padding:0;
}
.eyebrow::before{ content:""; width:26px; height:1px; background:currentColor; opacity:.8; }
.section-head .eyebrow::after{ content:""; width:26px; height:1px; background:currentColor; opacity:.8; }
.bg-navy .eyebrow{ color:#7fe6df; background:none; }
.center{ text-align:center; }
.section-head{ text-align:center; max-width:680px; margin:0 auto clamp(34px,4vw,52px); }
.section-head h2{ margin-top:16px; }

/* ----------------------------------------------------------- buttons */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  padding:.85em 1.5em; border-radius:999px; font-weight:600; font-size:.95rem;
  border:1.5px solid transparent; transition:.28s cubic-bezier(.2,.7,.3,1); white-space:nowrap;
}
.btn svg{ width:1.05em; height:1.05em; transition:transform .28s; }
.btn--primary{ background:var(--blue); color:#fff; box-shadow:0 12px 26px -14px var(--blue); }
.btn--primary:hover{ background:var(--blue-deep); transform:translateY(-2px); box-shadow:0 18px 34px -14px var(--blue); }
.btn--primary:hover svg{ transform:translateX(4px); }
.btn--white{ background:#fff; color:var(--blue); }
.btn--white:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn--white:hover svg{ transform:translateX(4px); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line-2); }
.btn--ghost:hover{ border-color:var(--ink); transform:translateY(-2px); }
.bg-navy .btn--ghost{ color:#fff; border-color:rgba(255,255,255,.28); }
.bg-navy .btn--ghost:hover{ border-color:#fff; background:rgba(255,255,255,.06); }
.btn--lg{ padding:1em 1.9em; font-size:1.02rem; }

/* ============================================================
   CHROME — top bar / masthead / category nav
   ============================================================ */
.topbar{ background:var(--navy-deep); color:#aeb9d2; font-size:.78rem; height:var(--topbar-h); display:flex; align-items:center; }
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topbar a{ color:#cdd6ea; transition:.2s; }
.topbar a:hover{ color:#fff; }
.topbar__right{ display:flex; align-items:center; gap:14px; }
.topbar__right .tel{ color:var(--teal); font-weight:600; }
.topbar .sep{ opacity:.35; }

/* masthead */
.masthead{ background:#fff; height:var(--mast-h); display:flex; align-items:center; border-bottom:1px solid var(--line); position:relative; z-index:60; }
.masthead__inner{ display:flex; align-items:center; gap:24px; }
.logo{ display:flex; align-items:center; gap:11px; flex:none; }
.logo__img{ height:74px; width:auto; max-width:300px; object-fit:contain; display:block; }
.footer .logo__img{ height:60px; }
@media (max-width:600px){ .logo__img{ height:56px; max-width:210px; } }
.logo__mark{ width:42px; height:42px; border-radius:50%; border:2px solid var(--ink); display:grid; place-items:center; flex:none; color:var(--ink); }
.logo__mark svg{ width:22px; height:22px; }
.logo__txt{ line-height:1; }
.logo__txt b{ font-family:var(--sans); font-weight:700; font-size:1.5rem; letter-spacing:.02em; color:var(--ink); display:block; }
.logo__txt b span{ font-weight:300; }
.logo__txt small{ display:block; font-size:.58rem; letter-spacing:.34em; color:var(--muted); margin-top:2px; padding-top:4px; border-top:2px solid var(--teal); font-weight:500; }

.search{ flex:1; max-width:520px; position:relative; display:flex; }
.search input{ width:100%; font-family:inherit; font-size:.95rem; color:var(--ink);
  padding:.78em 3.2em .78em 1.2em; border:1.5px solid var(--line-2); border-radius:999px; background:#fbfcfe; transition:.2s; }
.search input:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 4px rgba(29,78,216,.1); background:#fff; }
.search button{ position:absolute; right:5px; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:50%; border:none; background:var(--blue); color:#fff; display:grid; place-items:center; transition:.2s; }
.search button:hover{ background:var(--blue-deep); }
.search button svg{ width:17px; height:17px; }

.enquiry-btn{ flex:none; display:inline-flex; align-items:center; gap:.6em; padding:.7em 1.25em; border-radius:999px;
  background:var(--navy); color:#fff; font-weight:600; font-size:.92rem; transition:.25s; }
.enquiry-btn:hover{ background:var(--blue); transform:translateY(-1px); }
.enquiry-btn .badge{ background:var(--teal); color:#04201e; border-radius:999px; min-width:1.5em; height:1.5em;
  display:inline-grid; place-items:center; font-size:.78em; font-weight:700; padding:0 .35em; }

/* category nav bar */
.catnav{ background:var(--blue-bar); position:sticky; top:0; z-index:70; height:var(--catnav-h); box-shadow:0 2px 14px -6px rgba(12,26,58,.4); }
.catnav__inner{ display:flex; align-items:stretch; justify-content:space-between; height:100%; gap:14px; }
.catnav__links{ display:flex; align-items:stretch; list-style:none; gap:2px; overflow-x:auto; scrollbar-width:none; }
.catnav__links::-webkit-scrollbar{ display:none; }
.catnav__links a{ display:flex; align-items:center; padding:0 1.05em; font-size:.78rem; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.82); white-space:nowrap; transition:.2s; position:relative; }
.catnav__links a:hover{ color:#fff; background:rgba(255,255,255,.08); }
.catnav__links a.active{ color:#fff; background:var(--blue-deep); }
.catnav__all{ display:flex; align-items:center; gap:.5em; padding:0 1.3em; background:var(--teal); color:#04201e;
  font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; transition:.2s; white-space:nowrap; flex:none; }
.catnav__all:hover{ background:var(--teal-deep); color:#fff; }

.catnav__toggle{ display:none; }

@media (max-width:900px){
  .search{ order:3; max-width:100%; flex-basis:100%; }
  .masthead{ height:auto; padding:14px 0; }
  .masthead__inner{ flex-wrap:wrap; }
  .topbar__inner span:first-child{ display:none; }
  .topbar__inner{ justify-content:center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background:var(--navy); color:#aeb9d2; padding:64px 0 28px; }
.footer__grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.4fr; gap:40px; }
.footer .logo__txt b{ color:#fff; } .footer .logo__mark{ border-color:#fff; color:#fff; }
.footer__col h4{ font-family:var(--sans); font-weight:700; font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; color:#fff; margin-bottom:16px; }
.footer__col p{ font-size:.9rem; line-height:1.7; margin-bottom:10px; opacity:.85; }
.footer__col ul{ list-style:none; display:flex; flex-direction:column; gap:10px; font-size:.9rem; }
.footer__col a{ opacity:.85; transition:.2s; } .footer__col a:hover{ opacity:1; color:var(--teal); }
.footer__intro{ margin-top:16px; }
.footer .logo{ margin-bottom:0; }
.footer__contact .row-i{ display:flex; gap:10px; align-items:flex-start; margin-bottom:14px; font-size:.9rem; opacity:.88; }
.footer__contact .row-i svg{ width:17px; height:17px; color:var(--teal); flex:none; margin-top:3px; }
.footer__bar{ margin-top:46px; padding-top:22px; border-top:1px solid rgba(255,255,255,.12); text-align:center; font-size:.82rem; opacity:.6; }
@media (max-width:860px){ .footer__grid{ grid-template-columns:1fr 1fr; gap:30px; } }
@media (max-width:520px){ .footer__grid{ grid-template-columns:1fr; } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal]{ opacity:1; transform:none; }
[data-reveal].in{ opacity:1; transform:none; }
[data-reveal-d="2"]{ transition-delay:.16s; }
[data-reveal-d="3"]{ transition-delay:.24s; }
[data-reveal-d="4"]{ transition-delay:.32s; }
[data-reveal-d="5"]{ transition-delay:.40s; }
[data-reveal-d="6"]{ transition-delay:.48s; }
[data-reveal-d="7"]{ transition-delay:.56s; }
@media (prefers-reduced-motion:reduce){ [data-reveal]{ opacity:1 !important; transform:none !important; } }

/* utility */
.stack{ display:flex; flex-direction:column; }

/* image placeholders (admin-fillable regions with no image yet) */
.ph{ display:flex; flex-direction:column; gap:8px; align-items:center; justify-content:center;
  width:100%; height:100%; background:var(--bg-alt); color:var(--muted); text-align:center; }
.ph svg{ width:34px; height:34px; opacity:.5; }
.ph span{ font-size:.78rem; font-weight:600; padding:0 12px; }
.ph--navy{ background:linear-gradient(135deg,#0e2350,#0a1838); color:#6b7aa0; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-40{margin-top:40px}
.is-hidden{ display:none !important; }

/* fleet gallery (about page) */
.fleetgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:40px; }
.fleetgrid__item{ margin:0; border-radius:16px; overflow:hidden; background:var(--bg-alt);
  box-shadow:0 6px 22px rgba(11,26,61,.10); aspect-ratio:4/3; }
.fleetgrid__item img{ width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s ease; }
.fleetgrid__item:hover img{ transform:scale(1.05); }
@media (max-width:880px){ .fleetgrid{ grid-template-columns:repeat(2,1fr); gap:14px; } }
@media (max-width:520px){ .fleetgrid{ grid-template-columns:1fr; } }

/* ---- about page: re-enable scroll-in animations (scoped) ---- */
.page-about [data-reveal]{ opacity:0; transform:translateY(28px);
  transition:opacity .75s cubic-bezier(.16,.84,.44,1), transform .75s cubic-bezier(.16,.84,.44,1); }
.page-about [data-reveal].in{ opacity:1; transform:none; }
/* fleet tiles get an extra scale-in pop */
.page-about .fleetgrid__item{ transform:translateY(34px) scale(.94); }
.page-about .fleetgrid__item.in{ transform:none; }
@media (prefers-reduced-motion:reduce){
  .page-about [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ============================================================
   CLEAN HEADER (style A) — shared across all public pages
   ============================================================ */
.sh-topbar{ background:#fff; border-bottom:1px solid #f2f4f8; font-size:.8rem; color:#8a93a8; }
.sh-topbar__inner{ display:flex; align-items:center; justify-content:space-between; min-height:40px; gap:14px; }
.sh-topbar a{ color:#0b1f4d; } .sh-topbar a:hover{ color:#1d6fd8; }
.sh-topbar .tel{ color:#1d6fd8; font-weight:600; }
.sh-topbar__right{ display:flex; align-items:center; gap:14px; }
.sh-sep{ opacity:.4; }

.sh-head{ background:#fff; border-bottom:1px solid #eceff4; position:sticky; top:0; z-index:80; }
.sh-head__inner{ display:flex; align-items:center; gap:30px; min-height:92px; }
.sh-head .logo{ flex:none; }
.sh-head .logo__img{ height:64px; width:auto; max-width:260px; object-fit:contain; }
.sh-nav{ display:flex; align-items:center; gap:30px; }
.sh-nav > a, .sh-nav__has > a{ color:#0b1f4d; font-weight:600; font-size:.93rem; position:relative; padding:6px 0; display:inline-flex; align-items:center; gap:.3em; }
.sh-nav > a:hover, .sh-nav__has > a:hover, .sh-nav > a.active, .sh-nav__has > a.active{ color:#1d6fd8; }
.sh-nav > a::after, .sh-nav__has > a::after{ content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:#1d6fd8; transition:width .25s; }
.sh-nav > a:hover::after, .sh-nav__has > a:hover::after, .sh-nav > a.active::after, .sh-nav__has > a.active::after{ width:100%; }
.sh-caret{ width:14px; height:14px; }
.sh-nav__has{ position:relative; }
.sh-nav__drop{ position:absolute; top:100%; left:-14px; min-width:210px; background:#fff; border:1px solid #eceff4;
  border-radius:10px; box-shadow:0 18px 40px -18px rgba(11,31,77,.3); padding:8px; display:none; flex-direction:column; gap:2px; }
.sh-nav__has:hover .sh-nav__drop{ display:flex; }
.sh-nav__drop a{ padding:9px 12px; border-radius:7px; font-size:.9rem; font-weight:500; color:#0b1f4d; }
.sh-nav__drop a:hover{ background:#f6f8fc; color:#1d6fd8; }

.sh-search{ margin-left:auto; display:flex; align-items:center; gap:9px; border:1px solid #e3e8f0; border-radius:9px;
  padding:10px 14px; width:250px; color:#9aa3b8; background:#fff; }
.sh-search__ic{ width:17px; height:17px; flex:none; }
.sh-search input{ border:none; outline:none; background:none; flex:1; font-size:.9rem; color:#0b1f4d; }
.sh-cta{ flex:none; display:inline-flex; align-items:center; gap:9px; border:1.6px solid #0b1f4d; color:#0b1f4d;
  font-weight:700; font-size:.9rem; padding:11px 18px; border-radius:9px; transition:.22s; }
.sh-cta:hover{ background:#0b1f4d; color:#fff; }
.sh-cta__badge{ background:#1d6fd8; color:#fff; min-width:20px; height:20px; padding:0 5px; border-radius:999px; font-size:.76rem; display:grid; place-items:center; }
.sh-cta:hover .sh-cta__badge{ background:#fff; color:#0b1f4d; }
.sh-burger{ display:none; background:none; border:none; color:#0b1f4d; cursor:pointer; }
.sh-burger svg{ width:28px; height:28px; }

@media (max-width:1040px){ .sh-search{ display:none; } }
@media (max-width:880px){
  .sh-head__inner{ gap:16px; min-height:74px; flex-wrap:wrap; }
  .sh-head .logo__img{ height:52px; }
  .sh-burger{ display:block; margin-left:auto; order:2; }
  .sh-cta{ order:1; padding:9px 14px; }
  .sh-nav{ order:3; flex-basis:100%; flex-direction:column; align-items:stretch; gap:0; max-height:0; overflow:hidden; transition:max-height .3s; }
  .sh-nav.open{ max-height:440px; padding-bottom:10px; }
  .sh-nav > a, .sh-nav__has > a{ padding:13px 2px; border-bottom:1px solid #eceff4; }
  .sh-nav__drop{ position:static; display:flex; box-shadow:none; border:none; padding:0 0 6px 14px; }
}
@media (max-width:560px){ .sh-topbar__tag{ display:none; } .sh-topbar__inner{ justify-content:center; } }
