/* ==========================================================================
   EXPO THE SQUAD Sp. z o.o. — stylesheet
   Sections: 1 tokens · 2 base · 3 layout · 4 buttons · 5 header · 6 hero
             7 about · 8 services · 9 why us · 10 process · 11 contact
             12 footer · 13 motion & responsive
   ========================================================================== */

/* -------------------------------------------------- 1. Tokens ----------- */
:root {
  --ink:        #16222E;   /* headings, dark band                */
  --ink-soft:   #22323F;
  --body:       #33444F;   /* body copy                          */
  --slate:      #5C6B75;   /* secondary copy                     */
  --paper:      #F1F3F2;   /* page tint                          */
  --surface:    #FFFFFF;
  --line:       #DCE2E1;
  --line-dark:  #32424E;
  --signal:     #F2B705;   /* hi-vis amber: warehouse, forklift  */
  --signal-ink: #C99404;

  --shell:      1180px;
  --radius:     4px;

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.4375rem;
  --step-3: clamp(1.75rem, 3vw, 2.375rem);
  --step-4: clamp(2.25rem, 5.4vw, 3.75rem);
}

/* -------------------------------------------------- 2. Base ------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: Archivo, "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.017em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1.05em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* -------------------------------------------------- 3. Layout ----------- */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
.section-alt  { background: var(--paper); }
.section-dark { background: var(--ink); color: #C7D2D6; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head p { font-size: var(--step-1); color: var(--slate); }
.section-head-dark p { color: #9FB1B8; }

/* -------------------------------------------------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: Archivo, sans-serif;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn-solid {
  background: var(--ink);
  color: #fff;
}
.btn-solid:hover { background: var(--signal); color: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #B9C4C2;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.btn-wide { width: 100%; padding-block: .95rem; }

/* -------------------------------------------------- 5. Header ----------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(22,34,46,.07); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 26px; height: 26px; flex: none;
}
.brand-mark span { background: var(--ink); border-radius: 1px; }
.brand-mark span:first-child { background: var(--signal); }
.brand-mark span:nth-child(2) { background: #8C9AA2; }
.brand-mark span:nth-child(3) { background: #8C9AA2; }
.brand-mark-light span { background: #56697A; }
.brand-mark-light span:first-child { background: var(--signal); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: Archivo, sans-serif; font-weight: 700;
  font-size: 1.02rem; letter-spacing: .01em; color: var(--ink);
}
.brand-text small { font-size: .78rem; color: var(--slate); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  position: relative;
  font-size: .98rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  padding-block: .35rem;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--ink); }

.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .8rem; cursor: pointer;
  font-family: Archivo, sans-serif; font-weight: 600; color: var(--ink);
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* -------------------------------------------------- 6. Hero ------------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--surface) 78%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy h1 { max-width: 15ch; }
.hero-lead {
  font-size: var(--step-1); color: var(--slate);
  max-width: 46ch; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  list-style: none; margin: 2.4rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .94rem; color: var(--slate);
}
.hero-facts li { padding-left: 1.05rem; position: relative; }
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; background: var(--signal); border-radius: 1px;
}

.hero-visual { position: relative; }
.floorplan { width: 100%; filter: drop-shadow(0 18px 40px rgba(22,34,46,.10)); }
.plan-label {
  font-family: Archivo, sans-serif; font-weight: 700;
  font-size: 19px; fill: var(--ink);
}
.plan-sub { font-family: "Source Sans 3", sans-serif; font-size: 13px; fill: #6A5405; }
.plan-hall { font-family: "Source Sans 3", sans-serif; font-size: 13px; fill: #56676F; }

/* One orchestrated load sequence: stands settle in, then ours lights up. */
.plan-stand { opacity: 0; animation: standIn .5s ease forwards; }
.plan-stand:nth-child(1)  { animation-delay: .05s; }
.plan-stand:nth-child(2)  { animation-delay: .10s; }
.plan-stand:nth-child(3)  { animation-delay: .15s; }
.plan-stand:nth-child(4)  { animation-delay: .20s; }
.plan-stand:nth-child(5)  { animation-delay: .25s; }
.plan-stand:nth-child(6)  { animation-delay: .30s; }
.plan-stand:nth-child(7)  { animation-delay: .35s; }
.plan-stand:nth-child(8)  { animation-delay: .40s; }
.plan-stand:nth-child(9)  { animation-delay: .45s; }
.plan-stand:nth-child(10) { animation-delay: .50s; }
.plan-stand:nth-child(11) { animation-delay: .55s; }
.plan-stand:nth-child(12) { animation-delay: .60s; }
.plan-ours { opacity: 0; animation: standIn .55s ease .72s forwards; }

@keyframes standIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------- 7. About ------------ */
.about-grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.facts { margin: 2rem 0 0; display: grid; gap: 0; }
.facts > div {
  display: grid; grid-template-columns: 12rem 1fr; gap: 1rem;
  padding: .95rem 0; border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: Archivo, sans-serif; font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--slate); }

.about-figure { margin: 0; }
.about-figure svg, .about-figure img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
}
.about-figure figcaption {
  margin-top: .85rem; font-size: .9rem; color: var(--slate);
  padding-left: .9rem; border-left: 3px solid var(--signal);
}

/* -------------------------------------------------- 8. Services --------- */
/* A single bordered block split by hairlines — a plan grid, not floating cards. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--surface);
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  transition: background-color .2s ease;
}
.service:hover { background: #FBFCFB; }
.service h3 { margin-bottom: .45rem; }
.service p { color: var(--slate); font-size: 1rem; margin: 0; }

.icon {
  width: 30px; height: 30px; margin-bottom: 1.1rem;
  fill: none; stroke: var(--ink); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s ease;
}
.service:hover .icon { stroke: var(--signal-ink); }

/* -------------------------------------------------- 9. Why us ----------- */
.benefit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
}
.benefit { background: var(--ink); padding: clamp(1.6rem, 2.6vw, 2.2rem); }
.benefit h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.benefit p { color: #A7B7BE; font-size: 1rem; margin: 0; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding-top: 2rem; border-top: 1px solid var(--line-dark);
}
.stats dt { font-size: .92rem; color: #93A5AC; order: 2; }
.stats dd {
  order: 1; margin: 0 0 .2rem;
  font-family: Archivo, sans-serif; font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--signal); line-height: 1;
}
.stats > div { display: flex; flex-direction: column; }

/* -------------------------------------------------- 10. Process --------- */
/* Numbering is used here because the content genuinely is a sequence. */
.steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  padding-top: 1.6rem;
  border-top: 2px solid var(--line);
  position: relative;
  transition: border-color .2s ease;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -1.05rem; left: 0;
  background: var(--surface); padding-right: .6rem;
  font-family: Archivo, sans-serif; font-weight: 700;
  font-size: .9rem; color: var(--slate);
  transition: color .2s ease;
}
.steps li:hover { border-top-color: var(--signal); }
.steps li:hover::before { color: var(--signal-ink); }
.steps h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.steps p { font-size: .98rem; color: var(--slate); margin: 0; }

/* -------------------------------------------------- 11. Contact --------- */
.contact-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.contact-intro { color: var(--slate); font-size: var(--step-1); margin-bottom: 2rem; }

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: Archivo, sans-serif; font-weight: 600;
  font-size: .95rem; color: var(--ink);
}
.optional { font-weight: 400; color: var(--slate); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  font: inherit; color: var(--body);
  padding: .78rem .9rem;
  background: var(--surface);
  border: 1px solid #C9D2D0;
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9B5B3; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(242,183,5,.28);
  outline: none;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B4442E; background: #FDF7F5; }

.field-check {
  grid-template-columns: auto 1fr; align-items: start; gap: .65rem;
}
.field-check input { margin-top: .28rem; width: 17px; height: 17px; accent-color: var(--ink); }
.field-check label { font-family: inherit; font-weight: 400; font-size: .93rem; color: var(--slate); }
.field-check .error { grid-column: 1 / -1; }

.error { margin: 0; min-height: 0; font-size: .87rem; color: #B4442E; }
.error:empty { display: none; }

.form-status { margin: .3rem 0 0; font-size: .95rem; font-weight: 600; }
.form-status.is-ok { color: #1E6B4F; }
.form-status.is-bad { color: #B4442E; }

.contact-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.contact-details h3 { font-size: var(--step-1); }
.contact-list { margin: 0 0 1.6rem; }
.contact-list > div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { padding-top: 0; }
.contact-list dt {
  font-family: Archivo, sans-serif; font-weight: 600;
  color: var(--ink); margin-bottom: .2rem;
}
.contact-list dd { margin: 0; color: var(--slate); }
.contact-note {
  margin-top: 1.6rem; font-size: .92rem; color: var(--slate);
  padding-left: .9rem; border-left: 3px solid var(--signal);
}

/* -------------------------------------------------- 12. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A7B7BE;
  padding: clamp(3rem, 5vw, 4rem) 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.25rem;
}
.footer-about { font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a, .site-footer address a { color: #A7B7BE; text-decoration: none; font-size: .95rem; }
.footer-col a:hover, .site-footer address a:hover { color: var(--signal); }
.site-footer address { font-style: normal; font-size: .95rem; line-height: 1.75; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #A7B7BE; text-decoration: none; }
.footer-bottom a:hover { color: var(--signal); }

/* -------------------------------------------------- 13. Responsive ------ */
@media (max-width: 1000px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; }
  .about-figure { max-width: 480px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(22,34,46,.10);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: .95rem .25rem; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .nav-list a.is-active { color: var(--signal-ink); }
  .nav-cta { margin-top: 1.1rem; }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
}

@media (max-width: 660px) {
  .service-grid,
  .benefit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .facts > div { grid-template-columns: 1fr; gap: .15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .brand-text small { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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