@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ── Design tokens ── */
:root {
  --bg-primary:    #1e2c3e;
  --bg-secondary:  #2d3b51;
  --bg-card:       #354965;
  --accent:        #d9a33e;
  --accent-dim:    rgba(217, 163, 62, 0.15);
  --accent-glow:   rgba(217, 163, 62, 0.3);
  --text-primary:  #e6e6e5;
  --text-secondary:#95a8ba;
  --text-muted:    #5b7087;
  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(217, 163, 62, 0.2);
  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-primary); }

/* Full-width layout — content starts from the left edge */
.container {
  max-width: none !important;
  padding-left:  clamp(1.5rem, 4vw, 3.5rem) !important;
  padding-right: clamp(1.5rem, 4vw, 3.5rem) !important;
}

/* ── Grid background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Voltage line ── */
@keyframes pulse-line {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.7; }
}
.voltage-line {
  position: absolute;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  animation: pulse-line 3s ease-in-out infinite;
}

/* ── Section tag ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

/* ── NAVBAR ── */
.site-nav {
  background: transparent;
  padding: 1.25rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.3s;
  border-bottom: 1px solid transparent;
  z-index: 100;
}
.site-nav.scrolled {
  background: rgba(30, 44, 62, 0.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  padding: 0.75rem 0;
}
.nav-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-logo {
  height: 50px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary) !important;
  padding: 0.3rem 0 !important;
  margin: 0 0.75rem;
  position: relative;
  transition: color 0.2s;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.navbar-nav .nav-link:hover { color: var(--text-primary) !important; }
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

.lang-btn {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted) !important;
  padding: 0.2rem 0.65rem !important;
  border: 1px solid var(--border-accent);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.lang-btn:hover {
  background: var(--accent-dim);
  color: var(--accent) !important;
  border-color: var(--accent);
}

.navbar-toggler {
  border: 1px solid var(--border-accent) !important;
  padding: 0.3rem 0.6rem !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28217%2C163%2C62%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(30, 44, 62, 0.97);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  .navbar-nav .nav-link { margin: 0.35rem 0; }
  .lang-btn { margin-top: 0.75rem; }
}

/* ── HERO ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-decor {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 80%;
  z-index: 1;
  pointer-events: none;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.h-anim-1 { animation: hero-in 0.8s ease 0.2s both; }
.h-anim-2 { animation: hero-in 0.8s ease 0.4s both; }
.h-anim-3 { animation: hero-in 0.8s ease 0.6s both; }
.h-anim-4 { animation: hero-in 0.8s ease 0.8s both; }
.h-anim-5 { animation: hero-in 0.8s ease 1.0s both; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 2rem;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: var(--text-primary);
}
.hero-title .hl {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title .hl::after {
  content: '';
  position: absolute;
  bottom: 0.1em; left: 0; right: 0;
  height: 3px;
  background: rgba(217, 163, 62, 0.4);
}

.hero-desc {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
}
.hero-desc::selection,
.hero-desc *::selection {
  background: transparent;
  color: inherit;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: var(--accent);
  color: var(--bg-primary) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover {
  background: #e8b74d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217, 163, 62, 0.3);
}
.btn-accent svg { transition: transform 0.2s; }
.btn-accent:hover svg { transform: translateX(4px); }

/* Stats below CTA */
.hero-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ── ABOUT ── */
.about-section {
  position: relative;
  padding: 8rem 0;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  height: 100%;
}
.feature-card:hover { border-color: var(--border-accent); }

.feature-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.feature-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.years-block {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.75rem 2rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  margin-top: 2.5rem;
}
.years-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}
.years-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ── BRANDS ── */
.brands-section {
  position: relative;
  padding: 8rem 0;
  background: var(--bg-secondary);
  z-index: 1;
}

.brands-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217,163,62,0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.brand-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  color: inherit;
  text-decoration: none;
}
.brand-card:hover::before { opacity: 1; }
.brand-card.own {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(217,163,62,0.05));
}

/* Logo area inside brand card */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0.5rem 0 1.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.brand-logo-wrap img {
  max-height: 40px;
  max-width: 180px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.brand-card.own .brand-logo-wrap img {
  max-height: 48px;
  max-width: 216px;
}
/* Dla logo z białym tłem (MAREL, HYLIGHT, UTILIGIZE):
   dodaj klasę logo-box do .brand-logo-wrap
   <div class="brand-logo-wrap logo-box"> */
.brand-logo-wrap.logo-box img {
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
}
/* Placeholder gdy brak <img> */
.brand-logo-wrap:empty {
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  padding: 0 1rem;
  justify-content: center;
}
.brand-logo-wrap:empty::before {
  content: 'LOGO';
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  opacity: 0.4;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.brand-flag { font-size: 1.4rem; line-height: 1; }
.brand-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.brand-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}
.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
  margin-top: auto;
  text-decoration: none;
}
.brand-card:hover .brand-link { color: var(--accent); }

.own-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 0.12rem 0.45rem;
}

/* ── CONTACT ── */
.contact-section {
  position: relative;
  padding: 8rem 0;
  z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }

.contact-icon {
  font-size: 1.1rem;
  color: var(--accent);
  width: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.contact-value a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-value a:hover { color: var(--accent); }

/* ── FOOTER ── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.footer-brand span { color: var(--accent); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .site-footer .d-flex { flex-direction: column; gap: 1.5rem; }
}

/* ── SUBPAGE — Page hero ── */
.page-hero {
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
  z-index: 1;
}
.page-hero .hero-content {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── SUBPAGE — Breadcrumb ── */
.breadcrumb-bar {
  position: relative;
  z-index: 2;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  margin-top: 78px;
}
.breadcrumb-bar a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar .sep {
  margin: 0 0.5rem;
  color: var(--text-muted);
  opacity: 0.35;
  font-size: 0.7rem;
}
.breadcrumb-bar .current {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* ── SUBPAGE — Module cards (hero right column) ── */
.module-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
  height: 100%;
}
.module-card:hover {
  border-color: var(--border-accent);
  background: rgba(255, 255, 255, 0.08);
}
.module-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}
.module-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── SUBPAGE — Benefit cards ── */
.benefit-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  height: 100%;
}
.benefit-card:hover { border-color: var(--border-accent); }
.benefit-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
}
.benefit-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── SUBPAGE — Detail cards ── */
.detail-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  height: 100%;
}
.detail-card:hover { border-color: var(--border-accent); }
.detail-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.detail-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.detail-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.845rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.detail-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.48rem;
}

/* ── SUBPAGE — Workflow ── */
.workflow-section {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-secondary);
  z-index: 1;
}
.workflow-num {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.workflow-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.workflow-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── SUBPAGE — CTA section ── */
.cta-section {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
  border-top: 1px solid var(--border);
}

/* ── SUBPAGE — Outline button ── */
.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  border: 1px solid var(--border-accent);
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-accent:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ── SUBPAGE — Section tag centered ── */
.section-tag-center {
  display: flex;
  justify-content: center;
}
.section-tag-center .section-tag {
  margin-bottom: 1rem;
}
