/* =========================================================
   STERNIZ LOGISTICS — EDITORIAL INDUSTRIAL DESIGN SYSTEM
   ========================================================= */

:root{
  /* Brand */
  --blue:        #3D4DAE;
  --blue-hover:  #303E95;
  --blue-deep:   #252E7A;
  --blue-ink:    #171C4D;
  --blue-soft:   #EEEBF4;
  --blue-softer: #F5F3F8;

  /* Rare warm accent */
  --amber:       #D89442;
  --amber-soft:  #F4E6CF;

  /* Surfaces */
  --cream:       #F6F1E8;
  --cream-2:     #EFE9DC;
  --cream-3:     #E6DFCE;
  --paper:       #FDFBF6;
  --white:       #FFFFFF;

  /* Text */
  --ink:         #17171C;
  --ink-2:       #3D3F48;
  --ink-3:       #64666F;
  --mute:        #9B9CA3;

  /* Lines */
  --line:        rgba(23,23,28,0.09);
  --line-soft:   rgba(23,23,28,0.05);
  --line-strong: rgba(23,23,28,0.18);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(23,23,28,0.04), 0 2px 8px rgba(23,23,28,0.04);
  --shadow-md: 0 4px 12px rgba(23,23,28,0.05), 0 12px 32px rgba(23,23,28,0.06);
  --shadow-lg: 0 12px 24px rgba(23,23,28,0.08), 0 24px 60px rgba(23,23,28,0.10);
  --shadow-blue: 0 20px 60px -20px rgba(61,77,174,0.45);

  /* Fonts */
  --f-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans:  "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --f-mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Legacy aliases */
  --coral:        #D89442;
  --coral-hover:  #C07E30;
  --coral-soft:   #F4E6CF;
  --mint:         #EDEBE2;
  --mint-deep:    #5C5A45;
  --blue-hover:   #303E95;
  --blue-deep:    #252E7A;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; background: var(--cream); }
body{
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection{ background: var(--ink); color: var(--cream); }

/* Display serif — signature */
.display{
  font-family: var(--f-serif);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: var(--ink);
}
.display-nor{
  font-family: var(--f-serif);
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

h1, h2, h3, h4{
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

/* Labels */
.eyebrow{
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 24px; height: 1px;
  background: var(--ink-3);
  display: inline-block;
}
.eyebrow.blue{ color: var(--blue); }
.eyebrow.blue::before{ background: var(--blue); }
.eyebrow.white{ color: rgba(255,255,255,0.7); }
.eyebrow.white::before{ background: rgba(255,255,255,0.7); }
.eyebrow.amber{ color: var(--amber); }
.eyebrow.amber::before{ background: var(--amber); }

.mono{
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== LAYOUT ===== */
.wrap{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
@media (max-width: 720px){ .wrap{ padding: 0 20px; } }

/* ===== NAV ===== */
nav.main{
  position: fixed;
  top: 20px; left: 20px; right: 20px;
  z-index: 50;
  padding: 14px 18px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 241, 232, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 100px;
  max-width: 1400px;
  margin: 0 auto;
  transition: all .3s ease;
}
nav.main.scrolled{
  background: rgba(246, 241, 232, 0.92);
  box-shadow: var(--shadow-sm);
}
.brand{
  display: flex; align-items: center; gap: 16px;
  color: var(--ink);
}
.brand img{ height: 44px; width: auto; display: block; }
.brand .sep{ width: 1px; height: 26px; background: var(--line-strong); }
.brand .division{
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.nav-links{
  display: flex; gap: 2px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
}
.nav-links a{
  padding: 10px 18px;
  color: var(--ink-2);
  border-radius: 100px;
  transition: all .2s ease;
  position: relative;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a.active{ color: var(--blue); font-weight: 600; }

.nav-right{ display: flex; align-items: center; gap: 10px; }
.nav-phone{
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-2);
  padding: 10px 16px;
  border-radius: 100px;
  display: none;
  transition: color .2s ease;
}
.nav-phone:hover{ color: var(--blue); }

.nav-cta{
  font-size: 14px; font-weight: 500;
  color: var(--cream);
  background: var(--ink);
  padding: 12px 22px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .25s ease;
  letter-spacing: -0.005em;
}
.nav-cta:hover{ background: var(--blue); }
.nav-cta .arr{
  display: inline-block; width: 14px; height: 1px;
  background: currentColor; position: relative;
  transition: transform .22s ease;
}
.nav-cta .arr::after, .btn .arr::after{
  content:""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg); transform-origin: right center;
}
.btn .arr{
  display: inline-block; width: 14px; height: 1px;
  background: currentColor; position: relative;
  transition: transform .22s ease;
}
.nav-cta:hover .arr, .btn:hover .arr{ transform: translateX(5px); }

@media (min-width: 720px){ .nav-phone{ display: inline-flex; } }
@media (max-width: 1080px){
  .nav-links{ display: none; }
  nav.main{ padding: 8px 14px 8px 18px; top: 12px; left: 12px; right: 12px; }
  .brand{ gap: 12px; }
  .brand img{ height: 38px; }
  .brand .division{ font-size: 18px; }
  .brand .sep{ height: 22px; }
}
@media (max-width: 560px){
  .brand img{ height: 34px; }
  .brand .division, .brand .sep{ display: none; }
}

/* ===== BUTTONS ===== */
.btn{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  border-radius: 100px;
  font-family: var(--f-sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .28s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary{ background: var(--ink); color: var(--cream); }
.btn-primary:hover{ background: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-blue{ background: var(--blue); color: var(--white); }
.btn-blue:hover{ background: var(--blue-hover); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover{ background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-white{
  background: var(--cream);
  color: var(--ink);
}
.btn-white:hover{ background: var(--white); transform: translateY(-2px); }
.btn-outline-white{
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-white:hover{
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-hero{
  padding: 160px 40px 80px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner{
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.page-hero-inner .ph-meta{
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
}
.page-hero-inner h1{
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 140px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--ink);
}
.page-hero-inner h1 em{
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.page-hero-inner .ph-body{
  align-self: end;
  padding-bottom: 14px;
}
.page-hero-inner .ph-body p{
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 480px;
}
@media (max-width: 960px){
  .page-hero{ padding: 120px 24px 60px; }
  .page-hero-inner{ grid-template-columns: 1fr; gap: 40px; }
}

/* ===== COMPAT: old page-hero-card markup from sub-pages ===== */
.page-hero .page-hero-card{
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: end;
  padding: 0;
  background: transparent;
  border: 0;
}
.page-hero .page-hero-card .page-hero-inner{
  display: block;
  grid-column: 1 / -1;
}
.page-hero .breadcrumb{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb a{ color: var(--ink-2); transition: color .2s ease; }
.page-hero .breadcrumb a:hover{ color: var(--blue); }
.page-hero .breadcrumb span{ margin: 0 10px; color: var(--mute); }

.page-hero .page-hero-inner .eyebrow{ margin-bottom: 24px; }

.page-hero .page-hero-inner h1 .hl{
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.page-hero .page-hero-inner .lead{
  font-size: 18px;
  color: var(--ink-2);
  margin-top: 32px;
  max-width: 560px;
  line-height: 1.55;
}

/* Legacy eyebrow color variants — map to new tokens */
.eyebrow.coral, .eyebrow.mint{ color: var(--blue); }
.eyebrow.coral::before, .eyebrow.mint::before{ background: var(--blue); }

/* ===== SECTION BASE ===== */
.section{
  padding: 140px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-head{
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: end;
}
.section-head h2{
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 108px);
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.section-head h2 em{
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.section-head p{
  color: var(--ink-2);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.55;
  margin-top: 20px;
}
@media (max-width: 900px){
  .section{ padding: 80px 24px; }
  .section-head{ grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ===== REVEAL ===== */
.reveal{
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{ opacity: 1; transform: none; }
.reveal-d1{ transition-delay: .08s; }
.reveal-d2{ transition-delay: .18s; }
.reveal-d3{ transition-delay: .28s; }
.reveal-d4{ transition-delay: .38s; }

/* ===== CTA STRIP ===== */
.cta-strip{
  padding: 60px 40px 140px;
  max-width: 1400px;
  margin: 0 auto;
}
.cta-card{
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 100px 72px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.cta-card::before{
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 120%, rgba(61,77,174,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(216,148,66,0.15) 0%, transparent 45%);
  pointer-events: none;
}
.cta-left{ position: relative; z-index: 2; }
.cta-left h2{
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(52px, 7vw, 120px);
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.94;
  color: var(--cream);
  margin-top: 24px;
}
.cta-left h2 em{
  font-style: italic;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}
.cta-left p{
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  margin-top: 36px;
  max-width: 440px;
  line-height: 1.5;
}
.cta-actions{
  display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap;
}
.cta-right{ position: relative; z-index: 2; }
.cta-details{
  border-top: 1px solid rgba(255,255,255,0.15);
}
.cta-detail-row{
  display: grid; grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  align-items: center;
}
.cta-detail-row .lbl{
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  min-width: 80px;
}
.cta-detail-row .val{
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--cream);
  transition: color .2s ease;
}
.cta-detail-row a.val:hover{ color: var(--amber); }

@media (max-width: 900px){
  .cta-card{ grid-template-columns: 1fr; gap: 40px; padding: 56px 28px; border-radius: var(--r-lg); }
}

/* ===== FOOTER ===== */
footer{
  background: var(--cream);
  color: var(--ink);
  padding: 80px 40px 30px;
  border-top: 1px solid var(--line);
}
.footer-inner{ max-width: 1400px; margin: 0 auto; }
.footer-top{
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.footer-manifest{
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 460px;
}
.footer-manifest em{ color: var(--blue); font-style: italic; }

.footer-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4{
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.footer-col ul{ list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a{
  color: var(--ink-2);
  font-size: 15px;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--blue); }
.footer-col li.static{ color: var(--ink-2); font-size: 15px; }

.footer-bottom{
  padding: 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.footer-bottom-links{ display: flex; gap: 24px; }
.footer-bottom-links a{ color: var(--ink-3); transition: color .2s ease; }
.footer-bottom-links a:hover{ color: var(--blue); }

@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-cols{ grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-bottom{ flex-direction: column; gap: 16px; text-align: center; }
}

/* ===== LEGAL PAGES ===== */
.legal{
  max-width: 840px;
  margin: 0 auto;
  padding: 80px 28px 120px;
}
.legal h2{
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: 36px;
  letter-spacing: -0.025em;
  margin-top: 60px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.legal h2:first-child{ margin-top: 0; }
.legal h3{
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--ink);
}
.legal p{ color: var(--ink-2); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.legal p.bold{ color: var(--ink); font-weight: 600; }
.legal ul{ padding-left: 22px; margin-bottom: 16px; }
.legal ul li{
  color: var(--ink-2); font-size: 15px;
  line-height: 1.65; margin-bottom: 8px;
}
.legal a{ color: var(--blue); font-weight: 500; }
.legal a:hover{ text-decoration: underline; text-underline-offset: 4px; }
.legal .info-block{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 24px 0;
}
.legal .info-block p{ margin-bottom: 6px; }
.legal .info-block p:last-child{ margin-bottom: 0; }
.legal .objection{
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 24px 28px;
  margin: 20px 0;
}
.legal .objection p{
  color: var(--ink); font-weight: 600;
  font-size: 13px; line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.legal .objection p:last-child{ margin-bottom: 0; }

/* =========================================================
   PHOTO TONALITY — editorial duotone-ish treatment
   Keeps every Unsplash photo on-brand: slightly cooler,
   slightly more contrast, lower saturation. Premium / dark.
   ========================================================= */
.intro-media img,
.g-card img,
.fc-photo img,
.s-visual img,
.fc-visual img,
.office-photo img,
.network-hero img{
  filter: contrast(1.06) brightness(0.94) saturate(0.82);
  transition: filter .6s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.g-card:hover img,
.fc-photo img,
.fleet-card:hover .fc-visual img,
.service-detail:hover .s-visual img{
  filter: contrast(1.04) brightness(1) saturate(0.95);
}
