/* ==========================================================================
   Fonts — IBM Plex, self-hosted. SIL Open Font License 1.1.
   See assets/fonts/IBM-Plex-LICENSE.txt
   ========================================================================== */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ==========================================================================
   InsideBox — Warehouse Transformation
   Palette and type tokens
   ========================================================================== */

:root {
  --navy:      #14213D;
  --navy-80:   #3A4560;
  --orange:    #FF6B35;
  --orange-dk: #E85A28;
  --orange-10: #FFF1EB;

  --paper:     #FFFFFF;
  --floor:     #F4F6F8;
  --floor-2:   #EDF0F4;
  --rule:      #DFE3E9;

  --ink:       #14213D;
  --ink-2:     #5A6478;
  --ink-3:     #8792A4;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1180px;

  --t-xs:   0.78rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.375rem;
  --t-2xl:  clamp(1.6rem, 3vw, 2.1rem);
  --t-3xl:  clamp(2.1rem, 5vw, 3.1rem);
  --t-4xl:  clamp(2.6rem, 7vw, 4.2rem);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

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

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--floor { background: var(--floor); }

/* floor line-marking rule — the aisle stripe */
.marking {
  height: 3px;
  background: var(--orange);
  width: 44px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: var(--t-lg);
  color: var(--ink-2);
  max-width: var(--measure);
  margin-top: 1.25rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.hdr__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  min-height: 92px;
}

.hdr__logo img { height: 82px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }

.nav a {
  text-decoration: none;
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding-block: .5rem;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--orange); }

.nav__cta {
  background: var(--navy); color: #fff !important;
  padding: .65rem 1.15rem !important;
  border-radius: 4px;
  border-bottom: none !important;
  font-weight: 500;
}
.nav__cta:hover { background: var(--orange); }

.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--rule);
  border-radius: 4px; padding: .5rem .7rem; cursor: pointer;
  color: var(--navy);
}

/* ==========================================================================
   Hero — rack elevation
   ========================================================================== */

.hero { padding-block: clamp(2.9rem, 5vw, 4.4rem) clamp(1.5rem, 3vw, 2.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.hero__eyebrow span {
  width: 34px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(3rem, 5.7vw, 4.15rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 11.5ch;
}
.hero h1 strong { font-weight: 600; }

.hero__sub {
  margin-top: 1.5rem;
  font-size: var(--t-lg);
  color: var(--ink-2);
  max-width: 46ch;
}

.hero__sub + .hero__sub { margin-top: 1rem; }
.hero__sub--strong {
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(90deg, var(--orange-10), rgba(255,241,235,0));
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: .95rem 1.15rem;
}

.hero__acts { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  padding: .85rem 1.5rem;
  border-radius: 4px;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--orange); }
.btn--ghost { border: 1px solid var(--rule); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: var(--floor); }

.hero__visual {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.warehouse-visual {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: none;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin: 0;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 18px rgba(20,33,61,.10));
}


/* ==========================================================================
   Services overview — rack bays of unequal width
   ========================================================================== */

.bays {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}

.bay {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: background .15s;
}
.bay:last-child { border-right: none; }
.bay:hover { background: var(--floor); }
.bay + .bay { padding-left: 1.5rem; }

.bay__icon { color: var(--navy); margin-bottom: 1.25rem; }
.bay:hover .bay__icon { color: var(--orange); }

.bay h3 { font-size: var(--t-lg); margin-bottom: .5rem; }
.bay p  { font-size: var(--t-sm); color: var(--ink-2); }

.bay__go {
  margin-top: auto; padding-top: 1.25rem;
  font-size: var(--t-xs); font-weight: 600;
  color: var(--orange);
}

/* ==========================================================================
   Vertical detail sections
   ========================================================================== */

.vert { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 7vw, 5rem); }
.vert:first-of-type { border-top: none; }

.vert__head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.vert__head svg { color: var(--orange); }
.vert__head h2 { font-size: var(--t-2xl); }
.vert__head p  { color: var(--ink-2); margin-top: .4rem; }

.groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.group { background: var(--paper); padding: 1.75rem; }

.group__hd {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
  padding-bottom: .85rem; border-bottom: 1px solid var(--rule);
}
.group h3 { font-size: var(--t-base); font-weight: 600; }

.group li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-bottom: .55rem;
}
.group li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 2px; background: var(--orange); border-radius: 1px;
}
.group li:last-child { margin-bottom: 0; }

/* ==========================================================================
   Industries
   ========================================================================== */

.inds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
}
.ind {
  padding: 1.75rem 2rem 1.75rem 0;
  border-right: 1px solid var(--rule);
}
.ind + .ind { padding-left: 2rem; }
.ind:last-child { border-right: none; }
.ind h3 { font-size: var(--t-lg); margin-bottom: .5rem; }
.ind p  { font-size: var(--t-sm); color: var(--ink-2); }

/* ==========================================================================
   Approach — a genuine sequence, so numbered
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }

.step { border-top: 3px solid var(--navy); padding-top: 1.5rem; }
.step:nth-child(2) { border-top-color: var(--navy-80); }
.step:nth-child(3) { border-top-color: var(--orange); }

.step__n {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  display: block; margin-bottom: .75rem;
}
.step h3 { font-size: var(--t-xl); margin-bottom: .6rem; }
.step p  { font-size: var(--t-sm); color: var(--ink-2); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact h2 { font-size: var(--t-3xl); font-weight: 300; letter-spacing: -0.03em; }
.contact h2 strong { font-weight: 600; }

.contact__mail {
  display: inline-block; margin-top: 1.75rem;
  font-size: var(--t-lg); font-weight: 500;
  color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.contact__mail:hover { color: var(--orange); }

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 500; }

.field input, .field select, .field textarea {
  font-family: inherit; font-size: var(--t-base); color: var(--ink);
  padding: .75rem .9rem;
  border: 1px solid var(--rule); border-radius: 4px;
  background: var(--paper);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 120px; }

.form__note { font-size: var(--t-xs); color: var(--ink-3); }

/* ==========================================================================
   Footer
   ========================================================================== */

.ftr { background: var(--navy); color: #9FA9BA; padding-block: 3.5rem 2rem; }
.ftr__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ftr img { height: 76px; width: auto; }
.ftr h4 { font-size: var(--t-sm); color: #fff; margin-bottom: .9rem; }
.ftr li { margin-bottom: .5rem; font-size: var(--t-sm); }
.ftr a  { text-decoration: none; }
.ftr a:hover { color: var(--orange); }
.ftr__base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.75rem; font-size: var(--t-xs);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero__grid   { grid-template-columns: 1fr; }
  .bays         { grid-template-columns: repeat(2, 1fr); }
  .bay          { border-bottom: 1px solid var(--rule); padding-left: 1.5rem; }
  .bay:nth-child(2n) { border-right: none; }
  .bay:first-child   { padding-left: 0; }
  .steps        { grid-template-columns: 1fr; gap: 2rem; }
  .inds         { grid-template-columns: 1fr; }
  .ind          { border-right: none; border-bottom: 1px solid var(--rule);
                  padding-left: 0 !important; padding-right: 0; }
  .ind:last-child { border-bottom: none; }
  .contact__grid{ grid-template-columns: 1fr; }
  .ftr__grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero h1 { max-width: 14ch; }
  .hero__visual { margin-top: 1rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav--open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset: 92px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 1.5rem; gap: .25rem;
  }
  .nav--open a { padding-block: .75rem; border-bottom: 1px solid var(--rule); }
  .nav--open .nav__cta { text-align: center; margin-top: .75rem; }
  .nav__toggle { display: block; }

  .groups { grid-template-columns: 1fr; }
  .bays   { grid-template-columns: 1fr; }
  .bay    { border-right: none; padding-left: 0 !important; }
  .vert__head { grid-template-columns: 1fr; gap: 1rem; }
  .ftr__grid    { grid-template-columns: 1fr; }
}

/* Hero refinement — use the whitespace below the navigation on desktop.
   Keep the existing responsive grid; only tune the desktop composition. */
@media (min-width: 961px) {
  .hero {
    padding-top: clamp(.65rem, 1.4vw, 1.15rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .hero__copy { padding-top: .15rem; }

  .hero h1 {
    font-size: clamp(2.45rem, 4.6vw, 3.45rem);
    max-width: none;
    width: min(850px, calc(100% + 260px));
    line-height: 1.02;
    position: relative;
    z-index: 2;
    margin-bottom: .2rem;
  }

  .hero h1 > span,
  .hero h1 > strong {
    white-space: nowrap;
  }

  /* Deliberately lower than the headline: the whitespace is used by the copy,
     while the visual sits beneath it instead of rising into the heading. */
  .hero__visual {
    margin-top: clamp(10.5rem, 12vw, 12rem);
  }

  #services {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
  }
}

@media (max-width: 960px) {
  #services { padding-top: 3rem; }
  .hero h1 { font-size: clamp(2.6rem, 8vw, 3.6rem); }
  .hero h1 > span,
  .hero h1 > strong { white-space: normal; }
  .hero__visual { margin-top: 2rem; }
  .warehouse-visual { width: 100%; margin-inline: 0; }
}
