/* ==========================================================
   E G TRADE Sp. z o.o.
   Design: contemporary European, cool mist background,
   deep petrol blue, single marigold accent.
   ========================================================== */

:root {
  --mist: #e8edf0;
  --paper: #f6f8f9;
  --white: #ffffff;
  --ink: #13232d;
  --muted: #4b5e69;
  --petrol: #0e5a6b;
  --deep: #0a3340;
  --marigold: #e9a820;
  --marigold-dark: #c98d0c;
  --line: #c4cfd5;

  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
  --radius: 3px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--petrol); }
a:hover { color: var(--deep); }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep);
  background: var(--marigold);
  border: 2px solid var(--marigold);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--marigold-dark); border-color: var(--marigold-dark); color: var(--deep); transform: translateY(-2px); }
.btn-small { min-height: 44px; padding: 0 20px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-full { width: 100%; }

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
  color: var(--petrol);
  text-decoration: none;
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--deep); border-bottom-color: var(--deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 51, 64, .1); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--deep);
}
.brand:hover { color: var(--deep); }
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--deep);
  position: relative;
  flex: none;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  background: var(--marigold);
}
.brand-mark::before { top: 9px; box-shadow: 0 8px 0 var(--marigold); }
.brand-mark::after { top: 25px; }
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; line-height: 1.1; }
.brand-text small { font-weight: 600; font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }
.brand-light .brand-mark { background: var(--petrol); }
.brand-light .brand-text small { color: #9fb7c0; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 30px; }
.site-nav ul a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--deep);
  background: var(--white);
  border-left: 4px solid var(--marigold);
}
.hero-lead { margin-top: 28px; font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  margin-top: 52px;
  border-top: 2px solid var(--ink);
}
.hero-facts > div { padding: 18px 40px 0 0; margin-right: 40px; border-right: 1px solid var(--line); }
.hero-facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts dt { font-size: .9rem; color: var(--muted); }
.hero-facts dd { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--deep); line-height: 1.2; }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; max-height: 620px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art-tag {
  position: absolute;
  left: -20px;
  bottom: 36px;
  background: var(--marigold);
  color: var(--deep);
  font-weight: 800;
  padding: 12px 22px;
}

/* One orchestrated entrance, hero only */
.hero-copy > *, .hero-art { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .25s; }
.hero-copy > :nth-child(4) { animation-delay: .35s; }
.hero-copy > :nth-child(5) { animation-delay: .45s; }
.hero-art { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.split-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.split-head h2 { margin-bottom: 16px; }

/* About */
.split-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-text p { margin-bottom: 1.3em; max-width: 62ch; }
.about-text .lead { margin-bottom: 1.2em; }
.glance { background: var(--deep); color: var(--white); padding: 34px 32px; border-top: 6px solid var(--marigold); }
.glance h3 { margin-bottom: 18px; }
.glance dl > div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.glance dt { font-size: .85rem; color: #9fc1cc; margin-bottom: 2px; }
.glance dd { font-size: 1rem; line-height: 1.45; }
.glance a { color: var(--marigold); }
.glance a:hover { color: var(--white); }

.band { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(56px, 7vw, 96px); }
.band-block { padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 120px 1fr; column-gap: 28px; align-items: center; transition: background .25s; }
.band-block svg { grid-row: 1 / 3; width: 120px; }
.band-block h3 { align-self: end; margin-bottom: 6px; }
.band-block p { align-self: start; }
.band-vehicles { background: var(--petrol); color: var(--white); }
.band-vehicles svg { color: var(--mist); }
.band-rental { background: var(--marigold); color: var(--deep); }
.band-rental svg { color: var(--deep); }
.band-block:hover { background: var(--deep); color: var(--white); }
.band-block:hover svg { color: var(--marigold); }

/* Services */
.services { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-head { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }

.tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.tab-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.tab-list button {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px 18px 24px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s, color .2s, padding .2s;
}
.tab-list button::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--marigold);
  transform: scaleY(0);
  transition: transform .25s;
}
.tab-list button:hover { background: rgba(255, 255, 255, .6); }
.tab-list button[aria-selected="true"] { background: var(--white); color: var(--deep); }
.tab-list button[aria-selected="true"]::before { transform: scaleY(1); }
.tab-group { display: block; font-size: .82rem; font-weight: 600; color: var(--petrol); margin-bottom: 2px; }

.tab-panels { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--deep); padding: clamp(28px, 4vw, 56px); min-height: 380px; }
.panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.panel > p { max-width: 58ch; color: var(--muted); font-size: 1.1rem; }
.panel + .panel { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.js .panel { display: none; }
.js .panel + .panel { margin-top: 0; padding-top: 0; border-top: 0; }
.js .panel.is-active { display: block; animation: swap .4s ease both; }
@keyframes swap { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.checks { margin-top: 26px; }
.checks li { position: relative; padding: 9px 0 9px 32px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--petrol);
  border-bottom: 3px solid var(--petrol);
  transform: rotate(-45deg);
}

/* Process */
.process h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: var(--ink); }
.steps li { position: relative; padding: 0 32px 0 0; }
.step-n {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 26px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--deep);
  background: var(--marigold);
  border: 2px solid var(--ink);
}
.steps h3 { margin-bottom: 10px; font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Why */
.why { background: var(--deep); color: var(--white); }
.why-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.why-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.why-head h2 { margin-bottom: 18px; }
.why-head .lead { color: #c5d8de; }
.why-note { margin-top: 40px; padding: 22px 24px; border-left: 4px solid var(--marigold); background: rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 6px; }
.why-note span { color: #c5d8de; }

.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 48px); }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 34px 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.why-item-wide { grid-column: 1 / -1; padding: 44px 0; border-top: 3px solid var(--marigold); }
.why-item-wide h3 { font-size: 1.7rem; }
.why-item svg { width: 52px; height: 52px; color: var(--marigold); }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: #c5d8de; font-size: 1rem; }
.why-item-wide p { font-size: 1.1rem; max-width: 56ch; }

/* Contact */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-list { margin-top: 36px; border-top: 2px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 700; color: var(--muted); }
.contact-list dd { font-weight: 600; }
.contact-list a { font-weight: 700; }
.contact-activities { margin-top: 40px; }
.contact-activities h3 { font-size: 1.15rem; }

.form { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--marigold); padding: clamp(26px, 4vw, 48px); }
.form h3 { font-size: 1.6rem; margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #8ea0a9;
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol); background: var(--white); box-shadow: 0 0 0 3px rgba(14, 90, 107, .25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.error { min-height: 0; margin-top: 6px; font-size: .9rem; font-weight: 600; color: #b3261e; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 0 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--petrol); }
.field-check label { font-weight: 500; margin: 0; font-size: .95rem; }
.field-check .error { grid-column: 2; }
.form-status { margin-top: 16px; font-weight: 700; }
.form-status.is-success { color: var(--petrol); }
.form-help { margin-top: 12px; font-size: .92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5d3d9; padding-top: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 48px; padding-bottom: 48px; }
.footer-about { margin-top: 18px; max-width: 34ch; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer p { margin-bottom: 10px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--marigold); }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .92rem; }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (subtle, a few blocks only) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .steps li:nth-child(2) { transition-delay: .08s; }
.js .steps li:nth-child(3) { transition-delay: .16s; }
.js .steps li:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav ul { gap: 20px; }
  .site-nav { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(10, 51, 64, .12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { margin-top: 20px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-height: 460px; aspect-ratio: 16 / 11; justify-self: stretch; }
  .hero-art-tag { left: 0; }

  .split, .services-head, .tabs, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-head, .why-head { position: static; }
  .split-body { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .tab-list { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 2px solid var(--ink); scroll-snap-type: x proximity; }
  .tab-list button { flex: 0 0 auto; width: auto; max-width: 260px; border-bottom: 0; border-right: 1px solid var(--line); scroll-snap-align: start; }
  .tab-list button::before { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 5px; transform: scaleX(0); transform-origin: left; }
  .tab-list button[aria-selected="true"]::before { transform: scaleX(1); }
  .tab-panels { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 32px, var(--container)); }
  .lead { font-size: 1.12rem; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts > div { padding-right: 12px; margin-right: 12px; }
  .hero-facts dd { font-size: 1.5rem; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .hero-actions { flex-direction: column; }
  .band-block { grid-template-columns: 84px 1fr; column-gap: 18px; }
  .band-block svg { width: 84px; }
  .steps { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .why-item { grid-template-columns: 44px 1fr; gap: 16px; }
  .why-item svg { width: 44px; height: 44px; }
  .why-item-wide h3 { font-size: 1.35rem; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
