/* ============================================
   HanMar Transport — style.css
   Kolorystyka: czerwień + niebieski (wg logo)
   ============================================ */

:root {
  --navy: #10108f;
  --navy-dark: #0a0a66;
  --navy-light: #1a1ab8;
  --orange: #e30613;
  --orange-dark: #b10510;
  --grey-bg: #f4f6f9;
  --grey-border: #dfe4ea;
  --text: #2b3440;
  --text-light: #5b6672;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(16, 16, 143, 0.10);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(16, 16, 143, 0.10);
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
  white-space: nowrap;
}

.logo .logo-han { color: var(--white); }
.logo .logo-mar { color: var(--orange); }
.logo .logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #aab0e8;
  margin-left: 8px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover { color: var(--navy); background: #eef0fb; }
.main-nav a.active { color: var(--orange); }

/* Przełącznik języka */
.lang-switch {
  display: flex;
  border: 1px solid #d5d8ee;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 12px;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: #8a8fa8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button.active {
  background: var(--orange);
  color: var(--white);
}

/* Przycisk menu mobilnego */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero (strona główna) ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(8, 8, 70, 0.72), rgba(8, 8, 70, 0.72)),
    url("../img/hero-silo-truck.webp") center / cover no-repeat,
    linear-gradient(135deg, #10108f 0%, #1a1ab8 100%);
  background-color: var(--navy);
  color: var(--white);
  padding: 120px 0 130px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 720px;
}

.hero h1 .accent { color: var(--orange); }

.hero p {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #e0e3f7;
  max-width: 620px;
}

.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-outline { border: 2px solid #8089d8; color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* Pasek zaufania pod hero */
.trust-bar { background: var(--navy-dark); padding: 18px 0; }

.trust-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8dcf5;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item svg { width: 22px; height: 22px; fill: var(--orange); flex-shrink: 0; }

/* ---------- Sekcje ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--grey-bg); }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head .kicker {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-top: 8px;
  line-height: 1.25;
}

.section-head p { margin-top: 14px; color: var(--text-light); }

/* Karty usług */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card .icon svg { width: 28px; height: 28px; fill: var(--orange); }

.card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.94rem; }

/* Sekcja dwukolumnowa ze zdjęciem */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--grey-border);
  min-height: 300px;
}

.split-img img { width: 100%; height: 100%; object-fit: cover; }

.split-text h2 { color: var(--navy); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 18px; }
.split-text p { color: var(--text-light); margin-bottom: 14px; }

.check-list { list-style: none; margin-top: 20px; }

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 12px no-repeat;
}

/* Pas CTA */
.cta-band {
  background: linear-gradient(135deg, #10108f 0%, #1a1ab8 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; }
.cta-band p { color: #d8dcf5; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Nagłówek podstrony ---------- */
.page-hero {
  background: linear-gradient(135deg, #0a0a66 0%, #1a1ab8 100%);
  color: var(--white);
  padding: 72px 0 64px;
}

.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-hero p { margin-top: 12px; color: #d8dcf5; max-width: 640px; }

/* ---------- Zakres działalności ---------- */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--grey-border);
}

.service-row:last-child { border-bottom: none; }

.service-row .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-row .icon svg { width: 30px; height: 30px; fill: var(--orange); }
.service-row h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.service-row p { color: var(--text-light); }

/* Wyróżnione informacje (GMP+, UE) */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.badge-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.badge-box h3 { color: var(--orange); font-size: 1.05rem; margin-bottom: 10px; }
.badge-box p { color: #d8dcf5; font-size: 0.93rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(227, 6, 19, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .icon svg { width: 22px; height: 22px; fill: var(--orange); }

.contact-item .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.contact-item a, .contact-item .value {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
}

.contact-item a:hover { color: var(--orange); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy-dark); color: #aab0e8; padding: 56px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid li { font-size: 0.9rem; margin-bottom: 8px; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: #aab0e8; text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: var(--orange); }

.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-logo .logo-mar { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid #2525a8;
  padding: 18px 0;
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 84px 0 92px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .lang-switch { margin: 10px 0 0; align-self: flex-start; }

  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .trust-bar .container { justify-content: flex-start; }
}

/* ---------- Pasek statystyk (O nas) ---------- */
.stats-band {
  background: linear-gradient(135deg, #10108f 0%, #1a1ab8 100%);
  color: var(--white);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
}

.stat .label {
  margin-top: 6px;
  color: #d8dcf5;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Wyśrodkowanie na urządzeniach mobilnych ---------- */
@media (max-width: 760px) {
  .hero { text-align: center; }
  .hero h1, .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .trust-bar .container { justify-content: center; }

  .section-head { text-align: center; margin-left: auto; margin-right: auto; }

  .card { text-align: center; }
  .card .icon { margin-left: auto; margin-right: auto; }

  .split-text { text-align: center; }
  .check-list { display: inline-block; text-align: left; }

  .service-row { text-align: center; }
  .service-row .icon { margin: 0 auto; }

  .badge-box { text-align: center; }

  .page-hero { text-align: center; }
  .page-hero p { margin-left: auto; margin-right: auto; }

  .contact-item { flex-direction: column; align-items: center; text-align: center; }

  .site-footer { text-align: center; }
  .footer-grid ul { padding: 0; }
}

/* ---------- Wizualizacja SVG (O nas) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-visual svg { width: 100%; height: auto; display: block; }

.truck-float { animation: truck-float 4s ease-in-out infinite; }

@keyframes truck-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.road-dash {
  stroke-dasharray: 22 16;
  animation: road-move 1.1s linear infinite;
}

@keyframes road-move {
  to { stroke-dashoffset: -38; }
}

@media (prefers-reduced-motion: reduce) {
  .truck-float, .road-dash { animation: none; }
}

@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; margin: 0 auto; }
}


/* ---------- Logotyp graficzny ---------- */
.logo img { height: 26px; width: auto; display: block; }

.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}

.footer-logo img { height: 22px; width: auto; display: block; }

@media (max-width: 760px) {
  .logo img { height: 20px; }
}
