/* ============================================
   TRANSVISTORY GROUP — Option 2 — style.css
   Wariant: infografiki, produkcja, przepływy
   ============================================ */

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

:root {
  --navy:      #1A2B4A;
  --navy-dark: #111d30;
  --dark:      #2D3748;
  --orange:    #E8602C;
  --orange-h:  #d14f20;
  --white:     #FFFFFF;
  --gray-bg:   #F7F8FA;
  --gray-bd:   #E2E8F0;
  --text:      #2D3748;
  --text-sm:   #64748B;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(26,43,74,0.09);
  --tr:        0.25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* FADE-IN */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* HELPERS */
.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.section-label--light { color: #f4a07a; }

.section-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 14px;
}
.section-title--light { color: #fff; }

.section-desc { font-size: 1rem; color: var(--text-sm); max-width: 540px; margin-bottom: 44px; }

.highlight { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,96,44,0.25); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-h); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--full { width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-wrapper {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-bd);
  box-shadow: 0 1px 10px rgba(26,43,74,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: var(--navy); }
.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__menu a {
  padding: 8px 13px; border-radius: 6px; font-size: 0.88rem;
  font-weight: 500; color: var(--dark);
  transition: color var(--tr), background var(--tr);
}
.nav__menu a:hover { color: var(--navy); background: var(--gray-bg); }
.nav__cta { background: var(--orange) !important; color: #fff !important; padding: 8px 18px !important; }
.nav__cta:hover { background: var(--orange-h) !important; }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--tr), opacity var(--tr); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--navy);
  padding: 72px 0 0;
  overflow: hidden;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__text { padding-bottom: 72px; }
.hero__badge {
  display: inline-block;
  background: rgba(232,96,44,0.16);
  color: #f4a07a;
  border: 1px solid rgba(232,96,44,0.28);
  padding: 5px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 18px;
}
.hero__sub { font-size: 1rem; color: rgba(255,255,255,0.72); max-width: 480px; margin-bottom: 32px; line-height: 1.75; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SVG infografika w hero */
.hero__infographic {
  position: relative;
  padding-bottom: 24px;
  display: flex;
  justify-content: center;
}
.flow-svg { width: 100%; max-width: 480px; height: auto; }

/* Animacje węzłów flow */
.flow-node { opacity: 0; animation: nodeIn 0.5s ease forwards; animation-delay: var(--delay, 0s); }
@keyframes nodeIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* Animacja linii przepływu */
.flow-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.2s ease forwards;
  animation-delay: 0.8s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.flow-line--main {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 0.8s ease forwards;
  animation-delay: 1s;
}

/* Koła zębate */
.gear-spin { animation: spinGear 6s linear infinite; }
.gear-1 { animation-direction: normal; animation-duration: 5s; }
.gear-2 { animation-direction: reverse; animation-duration: 8s; }
.gear-3 { animation-direction: normal; animation-duration: 5s; }
@keyframes spinGear { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Elementy na taśmie */
.conveyor-item {
  animation: conveyorMove 3s linear infinite;
  animation-delay: var(--ci-delay, 0s);
}
@keyframes conveyorMove {
  0%   { transform: translateX(0); opacity: 1; }
  80%  { transform: translateX(-40px); opacity: 1; }
  100% { transform: translateX(-50px); opacity: 0; }
}

/* Pulsujące punkty danych */
.data-pulse {
  animation: dataPulse 1.8s ease-in-out infinite;
  animation-delay: var(--dp-delay, 0s);
}
@keyframes dataPulse {
  0%, 100% { r: 3; opacity: 0.5; }
  50% { r: 5; opacity: 1; }
}

/* ============================================
   METRYKI
   ============================================ */
.metrics {
  background: var(--navy-dark);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.metric:last-child { border-right: none; }
.metric__icon { flex-shrink: 0; opacity: 0.9; }
.metric strong {
  font-size: 2rem; font-weight: 700; color: var(--orange); line-height: 1;
  display: inline-block;
}
.metric__unit { font-size: 1.2rem; font-weight: 700; color: var(--orange); }
.metric p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; line-height: 1.4; }

/* ============================================
   PROBLEM
   ============================================ */
.problem { padding: 88px 0; background: var(--gray-bg); }
.problem .section-title { margin-bottom: 40px; }

.waste-diagram {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  background: var(--navy);
  border-radius: 16px;
  padding: 40px 48px;
}
.waste-diagram__center { display: flex; justify-content: center; }

.waste-diagram__text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 24px;
}
.waste-list { display: flex; flex-direction: column; gap: 10px; }
.waste-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: rgba(255,255,255,0.8);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 88px 0; background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.services__card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-bd);
  transition: transform var(--tr), box-shadow var(--tr);
}
.services__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.services__card--featured { background: var(--navy); border-color: var(--navy); }
.services__card--featured h3 { color: #fff; }
.services__card--featured p { color: rgba(255,255,255,0.7); }
.services__icon { margin-bottom: 16px; }
.services__card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.services__card p { font-size: 0.875rem; color: var(--text-sm); line-height: 1.65; }

/* ============================================
   JAK PRACUJEMY
   ============================================ */
.how { padding: 88px 0; background: var(--gray-bg); }

.how__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.how__track {
  position: absolute;
  top: 36px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(232,96,44,0.3));
}
.how__step { position: relative; }
.how__step-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.how__bubble {
  width: 72px; height: 72px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(232,96,44,0.35);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.how__num {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--text-sm);
}
.how__step-body { text-align: center; }
.how__step-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.how__step-body p { font-size: 0.83rem; color: var(--text-sm); line-height: 1.6; margin-bottom: 12px; }
.how__tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.how__tags span {
  font-size: 0.7rem; font-weight: 600;
  background: rgba(26,43,74,0.07);
  color: var(--navy);
  padding: 3px 8px; border-radius: 20px;
}

/* ============================================
   DLA KOGO — infografika branż
   ============================================ */
.for-whom { padding: 88px 0; background: var(--white); }
.for-whom .section-title { margin-bottom: 48px; }

.industries-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.industry-item {
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--gray-bd);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.industry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(26,43,74,0.1);
  border-color: rgba(232,96,44,0.3);
}
.industry-visual {
  display: flex; justify-content: center;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--navy);
  border-radius: 10px;
}
.industry-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.industry-item p { font-size: 0.82rem; color: var(--text-sm); line-height: 1.6; margin-bottom: 12px; }
.industry-kpi {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  color: var(--orange);
  background: rgba(232,96,44,0.08);
  border: 1px solid rgba(232,96,44,0.2);
  padding: 3px 10px; border-radius: 20px;
}

/* ============================================
   DLACZEGO MY
   ============================================ */
.why-us { padding: 88px 0; background: var(--navy); }
.why-us .section-title { color: #fff; }
.why-us .section-desc { color: rgba(255,255,255,0.65); }
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.why-us__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: background var(--tr), border-color var(--tr);
}
.why-us__card:hover { background: rgba(255,255,255,0.07); border-color: rgba(232,96,44,0.4); }
.why-us__icon { margin-bottom: 14px; }
.why-us__card h3 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-us__card p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ============================================
   KONTAKT
   ============================================ */
.contact { padding: 88px 0; background: var(--navy-dark); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact__desc {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.contact__details li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.contact__details a:hover { color: #fff; }

.contact__form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__group { display: flex; flex-direction: column; gap: 5px; }
.form__group label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.form__group input,
.form__group textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #fff;
  transition: border-color var(--tr), background var(--tr);
  resize: vertical;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form__group input:focus,
.form__group textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,0.1); }
.form__group input.error,
.form__group textarea.error { border-color: #fc8181; }
.form__note { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-align: center; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0c1525; padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__logo { color: #fff; }
.footer__logo span { color: rgba(255,255,255,0.8); }
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__nav a { font-size: 0.83rem; color: rgba(255,255,255,0.45); transition: color var(--tr); }
.footer__nav a:hover { color: #fff; }
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__text { padding-bottom: 32px; }
  .hero__infographic { display: none; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .metric:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .metric:nth-child(3),
  .metric:nth-child(4) { border-bottom: none; }
  .how__timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .how__track { display: none; }
  .industries-chart { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .waste-diagram { grid-template-columns: 1fr; text-align: center; padding: 32px; }
  .waste-diagram__text .btn { margin: 20px auto 0; }
  .waste-list li { justify-content: center; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  .nav__menu {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--gray-bd);
    box-shadow: 0 8px 24px rgba(26,43,74,0.1);
    gap: 2px;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { display: block; padding: 10px 14px; border-radius: 6px; }
  .nav__toggle { display: flex; }

  .how__timeline { grid-template-columns: 1fr; }
  .how__step-head { flex-direction: row; gap: 16px; align-items: center; }
  .how__step-body { text-align: left; }
  .how__tags { justify-content: flex-start; }
  .how__bubble { margin-bottom: 0; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
  .footer__logo { justify-content: center; }

  section { padding: 64px 0 !important; }
  .hero { padding: 64px 0 0 !important; }
  .hero__text { padding-bottom: 48px; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .industries-chart { grid-template-columns: 1fr; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-right: none !important; }
  .form__row { grid-template-columns: 1fr; }
}
