/* ==========================================================================
   ESQL Sp. z o.o. — stylesheet
   Tokens: navy (dark), steel blue (accent/trust), amber (CTA), neutral greys
   Type: Space Grotesk (display) / Inter (body)
   ========================================================================== */

:root {
  --navy-950: #0E141B;
  --navy-800: #1B2733;
  --navy-700: #24313F;
  --steel-500: #3E6E92;
  --steel-400: #588AB0;
  --amber-500: #E2A038;
  --amber-600: #C88526;
  --grey-100: #F4F5F7;
  --grey-200: #E7E9EC;
  --grey-400: #A7AFB8;
  --grey-600: #5C6773;
  --ink: #10151C;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius-sm: 3px;
  --radius-md: 6px;

  --shadow-card: 0 1px 2px rgba(14, 20, 27, 0.06), 0 8px 24px rgba(14, 20, 27, 0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--navy-950); }
p { margin: 0; }
button { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--steel-500);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--steel-500);
  margin: 0 0 10px;
}

.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-600); }
.btn-ghost { background: transparent; color: var(--navy-950); border-color: var(--grey-400); }
.btn-ghost:hover { border-color: var(--navy-950); }
.btn-small { padding: 9px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--grey-200);
  box-shadow: 0 2px 12px rgba(14, 20, 27, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy-950); }
.logo-mark { color: var(--amber-500); display: inline-flex; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-suffix { font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; color: var(--grey-600); margin-left: 6px; }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-800);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-950);
  color: var(--white);
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow { color: var(--steel-400); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero-lead {
  color: var(--grey-400);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-top: 18px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.28); }
.hero .btn-ghost:hover { border-color: var(--white); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats dt { font-size: 0.78rem; color: var(--grey-400); margin-bottom: 4px; }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

.hero-visual { color: var(--steel-500); }
.route-svg { width: 100%; height: auto; }
.route-grid { opacity: 0.18; }
.route-path { stroke: var(--amber-500); }
.route-node { fill: var(--navy-950); stroke: var(--steel-400); stroke-width: 2; }
.route-node--end { fill: var(--amber-500); stroke: var(--amber-500); }
.route-van rect, .route-van path { fill: var(--white); }
.route-van .wheel { fill: var(--navy-950); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-200);
}
.trust-strip-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 14px 28px;
  font-size: 0.85rem;
  color: var(--grey-600);
}
.trust-strip-inner strong { color: var(--navy-800); }

/* ---------- About ---------- */
.about { padding: 88px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.about-body p { color: var(--grey-600); margin-bottom: 16px; max-width: 62ch; }
.about-points {
  margin-top: 24px;
  border-top: 1px solid var(--grey-200);
  padding-top: 20px;
}
.about-points li {
  padding: 10px 0 10px 20px;
  position: relative;
  color: var(--navy-800);
  font-weight: 500;
  border-bottom: 1px solid var(--grey-200);
}
.about-points li:last-child { border-bottom: none; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 2px;
  background: var(--amber-500);
}

/* ---------- Services ---------- */
.services { padding: 88px 0; background: var(--grey-100); }
.service-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
}
.service-card {
  background: var(--white);
  padding: 30px 26px;
  transition: background-color 0.15s ease;
}
.service-card:hover { background: #FCFAF5; }
.service-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-600);
  margin-bottom: 14px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { color: var(--grey-600); font-size: 0.94rem; }

/* ---------- Why us ---------- */
.why-us { padding: 88px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.why-lead { color: var(--grey-600); margin-top: 16px; max-width: 46ch; }
.benefit-list { display: grid; gap: 0; }
.benefit-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--grey-200);
}
.benefit-list .benefit-row:last-child { border-bottom: 1px solid var(--grey-200); }
.benefit-row h3 { font-size: 1rem; color: var(--steel-500); }
.benefit-row p { color: var(--grey-600); font-size: 0.96rem; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact { padding: 88px 0 100px; background: var(--navy-950); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact .eyebrow { color: var(--steel-400); }
.contact-info h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 6px; }
.contact-info > p { color: var(--grey-400); margin-top: 14px; max-width: 42ch; }

.company-details {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: grid;
  gap: 16px;
}
.company-details dt { font-size: 0.78rem; color: var(--grey-400); }
.company-details dd { margin: 2px 0 0; font-weight: 500; }
.company-details a { color: var(--amber-500); }
.company-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: 36px;
  border-radius: var(--radius-md);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--navy-800); }
.optional { font-weight: 400; color: var(--grey-600); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--steel-500);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select {
  border-color: #C0392B;
}
.form-error {
  font-size: 0.8rem;
  color: #C0392B;
  min-height: 1em;
}
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: #1E7A4C; }
.form-status.error { color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: var(--grey-400); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 56px 28px 40px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-suffix { color: var(--grey-400); }
.footer-brand p { margin-top: 12px; max-width: 32ch; font-size: 0.92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 { font-family: var(--font-body); color: var(--white); font-size: 0.85rem; margin-bottom: 14px; }
.footer-nav li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--white); }
.footer-address li { margin-bottom: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 20px 28px 28px;
  font-size: 0.82rem;
}

/* ---------- Motion: single orchestrated hero entrance ---------- */
.hero-copy > * { opacity: 0; animation: rise 0.6s ease forwards; }
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.15s; }
.hero-copy .hero-lead { animation-delay: 0.25s; }
.hero-copy .hero-actions { animation-delay: 0.35s; }
.hero-copy .hero-stats { animation-delay: 0.45s; }
.hero-visual { opacity: 0; animation: fade 0.8s ease 0.3s forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-visual { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .benefit-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 260px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 28px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--grey-200); }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .service-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { flex-direction: column; }
  .hero { padding: 48px 0 40px; }
  .about, .services, .why-us { padding: 60px 0; }
  .contact { padding: 60px 0 70px; }
  .contact-form { padding: 26px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: 1fr; }
}
