/* ==========================================================================
   DV Fulfillment — site styles
   Single responsive layout (the old site shipped separate /pc/ and /mobile/
   route trees; this replaces both).
   ========================================================================== */

/* ----------------------------------------------------------- brand font  */
/* Swiss 721 BT Black Condensed. The previous build shipped this face but
   never applied it — headings fell back to Arial. It is used here for
   display headings; it pairs with the wordmark in the logo. */
@font-face {
  font-family: 'Swiss721 Black Condensed';
  src: url('../fonts/swiss721-black-condensed.woff2') format('woff2'),
       url('../fonts/swiss721-black-condensed.woff')  format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------- tokens    */
:root {
  --orange:        #e66000;
  --orange-dark:   #d05600;
  --navy:          #132c58;
  --ink:           #1c1c1c;
  --body:          #4a4a4a;
  --muted:         #767676;
  --line:          #e2e2e2;
  --bg:            #ffffff;
  --bg-alt:        #f5f4f2;

  --display: 'Swiss721 Black Condensed', 'Arial Narrow', Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
          Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --wrap: 1400px;
  --gutter: clamp(20px, 5vw, 60px);
  --header-h: 76px;
}

/* --------------------------------------------------------------- reset   */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }

/* Visible keyboard focus — the original had none. */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--orange); color: #fff;
  padding: 12px 20px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* ================================================================ header  */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}

.logo { flex: none; }
.logo img { height: 26px; width: auto; }

.nav-toggle {
  margin-left: auto;
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; cursor: pointer;
  padding: 0; position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--ink); transform: translateX(-50%);
  transition: transform .25s, opacity .25s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ''; top: -6px; }
.nav-toggle span::after  { content: ''; top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 36px; }

.site-nav a {
  font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 6px 0; position: relative; white-space: nowrap;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang button {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 14px; border: 0; background: #fff;
  color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--orange); color: #fff; }

/* ================================================================== hero  */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 660px);
  display: flex; align-items: center;
  background: var(--navy) center/cover no-repeat;
  background-image:
    linear-gradient(90deg, rgba(8,18,38,.88) 0%, rgba(8,18,38,.55) 55%, rgba(8,18,38,.25) 100%),
    url('../img/hero-warehouse.jpg');
  color: #fff;
}
@media (max-width: 720px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(8,18,38,.75) 0%, rgba(8,18,38,.85) 100%),
      url('../img/hero-warehouse-sm.jpg');
  }
}

.hero h1 {
  color: #fff;
  font-size: clamp(40px, 7vw, 86px);
  margin-bottom: 28px;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px);
  padding: 0; margin: 0; list-style: none;
}
.hero-stats li { border-left: 3px solid var(--orange); padding-left: 16px; }
.hero-stats .n {
  display: block;
  font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px);
  color: #fff; line-height: 1.1;
}
.hero-stats .l { font-size: 14px; color: rgba(255,255,255,.8); }

/* page banner (about / contact) */
.page-hero {
  position: relative; min-height: 300px;
  display: flex; align-items: center;
  background: var(--navy) center/cover no-repeat;
  color: #fff;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,18,38,.82), rgba(8,18,38,.4));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 62px); }
.page-hero.about   { background-image: url('../img/about-hero.jpg'); }
.page-hero.contact { background-image: url('../img/contact-hero.jpg'); }

/* ============================================================== sections  */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 1100px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
.section-head p { margin: 0; font-size: 17px; }

.core { background: var(--bg-alt) url('../img/core-bg.png') center/cover no-repeat; }

/* --- service cards ------------------------------------------------------ */
.cards {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: #fff;
  transition: background .3s;
}
.card .card-body { padding: 30px 24px 34px; flex: 1; }
.card .num {
  font-family: var(--display); font-size: 30px;
  color: var(--orange); line-height: 1; margin-bottom: 14px;
  transition: color .3s;
}
.card h3 { font-size: 20px; margin-bottom: 10px; transition: color .3s; }
.card p  { font-size: 14px; line-height: 1.65; margin: 0; transition: color .3s; }
.card figure { margin: 0; margin-top: auto; }
.card figure img { width: 100%; height: 215px; object-fit: cover; }

.card:hover { background: var(--orange); }
.card:hover h3, .card:hover p, .card:hover .num { color: #fff; }

/* --- FBA / B2B split ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split-panel {
  background: var(--orange) url('../img/panel-globe.jpg') center/cover no-repeat;
  color: #fff;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.split-panel h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 40px; }
.split-items { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 600px) { .split-items { grid-template-columns: 1fr; } }
.split-items img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.split-items h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.split-items p  { font-size: 14px; line-height: 1.65; margin: 0; color: rgba(255,255,255,.94); }

.split-photo { position: relative; min-height: 340px; }
.split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- quote band --------------------------------------------------------- */
.band {
  background: var(--navy); color: #fff;
  padding: clamp(40px, 5vw, 64px) 0; text-align: center;
}
.band p {
  margin: 0; font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 40px); color: #fff;
}

/* --- showcase ----------------------------------------------------------- */
.showcase {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.showcase figure { margin: 0; }
.showcase img { width: 100%; height: 250px; object-fit: cover; }
.showcase .note {
  /* angled lower-right corner, carried over from the original design */
  clip-path: polygon(0 0, 100% 0, 100% 72%, 90% 100%, 0 100%);
  padding: 30px 34px 40px;
  font-size: 14.5px; line-height: 1.7;
  background: var(--bg-alt); color: var(--body);
}
.showcase li:nth-child(odd) .note { background: var(--orange); color: #fff; }

/* --- prose (about) ------------------------------------------------------ */
.prose { max-width: 900px; }
.prose p { font-size: 17px; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* --- contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.detail-list { list-style: none; margin: 0 0 36px; padding: 0; }
.detail-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list .k { flex: none; width: 116px; font-weight: 700; color: var(--ink); font-size: 14px; }
.detail-list a:hover { color: var(--orange); }

.outlets { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.outlets figure { margin: 0 0 12px; background: var(--bg-alt); aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.outlets img { width: 100%; height: 100%; object-fit: cover; }
.outlets .soon { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.outlets h3 { font-size: 16px; }

/* ================================================================ footer  */
.site-footer {
  background: var(--navy) center/cover no-repeat;
  background-image: linear-gradient(rgba(10,22,46,.93), rgba(10,22,46,.93)), url('../img/footer-bg.jpg');
  color: rgba(255,255,255,.78);
  padding: clamp(48px, 6vw, 80px) 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding-bottom: 48px;
}
.site-footer h3 {
  color: #fff; font-size: 15px; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a:hover { color: var(--orange); }
.site-footer .qr { width: 104px; height: 104px; background: #fff; padding: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.footer-bottom img { height: 20px; opacity: .9; }

/* ============================================================ responsive  */
@media (max-width: 880px) {
  .nav-toggle { display: block; }

  /* Collapsed by default; JS adds .is-open. Visibility is driven entirely by
     this class, never the `hidden` attribute — otherwise the same markup
     would stay hidden at desktop widths too. */
  .site-nav {
    display: none;
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0 20px;
    box-shadow: 0 18px 30px rgba(0,0,0,.09);
    margin-left: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px var(--gutter); font-size: 17px; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--orange); }
  .lang { align-self: flex-start; margin: 14px var(--gutter) 0; }
}

[hidden] { display: none !important; }
