/* ============================================================
   ANREKO — Automatyka Przemysłowa
   Stylesheet: css/style.css
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --steel:         #1a1f2e;
  --steel-mid:     #252c3d;
  --steel-light:   #3a4460;
  --accent:        #f4a21b;
  --accent-dim:    rgba(244, 162, 27, 0.12);
  --accent-dim2:   rgba(244, 162, 27, 0.06);
  --accent-border: rgba(244, 162, 27, 0.3);
  --text:          #e8e9ec;
  --text-muted:    #8c93a8;
  --text-faint:    #5a607a;
  --border:        rgba(255, 255, 255, 0.07);
  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --transition:    0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--steel);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

/* ── LAYOUT UTILS ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

section { position: relative; z-index: 1; }

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--text);
}

h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 3.5rem; }

.section-header--center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--center .section-desc { margin-left: auto; margin-right: auto; }

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 1rem;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #0d0f16;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-primary:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-full           { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(26,31,46,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
}

#navbar.scrolled {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
}

.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--accent); }

.nav-cta {
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 2px;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--accent-dim) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(244,162,27,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(58,68,96,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1.8rem;
}

.hero-tag::before { content: '//'; opacity: 0.5; margin-right: 4px; }

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.18;
  pointer-events: none;
}

.circuit-svg { width: 100%; height: auto; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag     { animation: fadeUp 0.6s ease 0.1s both; }
.hero h1      { animation: fadeUp 0.7s ease 0.25s both; }
.hero-sub     { animation: fadeUp 0.7s ease 0.4s both; }
.hero-actions { animation: fadeUp 0.7s ease 0.55s both; }

/* Scroll-reveal (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 1;
  background: var(--steel-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 1.8rem 2rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── OFFER ── */
.offer-section { padding: 7rem 0; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.offer-card {
  background: var(--steel);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.offer-card:hover               { background: var(--steel-mid); }
.offer-card:hover::before       { transform: scaleX(1); }

.offer-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.offer-icon svg { width: 22px; height: 22px; }

.offer-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.offer-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.6rem;
}

/* ── BRANDS ── */
.brands-section {
  padding: 5rem 0;
  background: var(--steel-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.brands-label {
  font-family: var(--font-mono);
  font-size: 1.68rem;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.brand-cell {
  background: var(--steel-mid);
  padding: 1.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.brand-cell:hover { background: var(--steel-light); }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  transition: color var(--transition);
  text-align: center;
}

.brand-cell:hover .brand-name { color: var(--text-muted); }

/* ── PROCESS ── */
.process-section { padding: 7rem 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 1.35rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-border), var(--border), var(--accent-border));
}

.process-step {
  padding: 0 2rem;
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0f16;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── WHY US ── */
.why-section {
  padding: 7rem 0;
  background: var(--steel-mid);
  border-top: 1px solid var(--border);
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.why-card {
  background: var(--steel);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}

.why-card:last-child { margin-bottom: 0; }
.why-card:hover      { border-color: var(--accent-border); }

.why-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.why-card h4 { margin-bottom: 0.3rem; }

.why-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CONTACT ── */
.contact-section { padding: 7rem 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim2);
  border: 1px solid var(--accent-border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-detail-icon svg { width: 16px; height: 16px; }

.contact-detail h5 {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  font-weight: 400;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--steel-mid);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 4px;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--steel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  border-radius: 2px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-input:focus,
.form-textarea:focus { border-color: var(--accent); }

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6fcf97;
  font-family: var(--font-mono);
}

.form-success svg {
  width: 18px;
  height: 18px;
  stroke: #6fcf97;
  flex-shrink: 0;
}

.form-success.visible { display: flex; }


/* ── FOOTER ── */
footer {
  background: #111520;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.75;
  max-width: 900px;
}

.footer-disclaimer strong {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-rodo-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}

.footer-rodo-link:hover { opacity: 0.7; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 2.5rem; }

  #navbar { padding: 1rem 2.5rem; }

  .hero { padding: 7rem 2.5rem 4rem; }
  .hero-visual { width: 320px; right: 2.5rem; }

  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .why-layout { gap: 3rem; }
  .contact-layout { gap: 3rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }

  /* Nav mobile */
  #navbar { padding: 1rem 1.5rem; }

  .nav-toggle { display: flex; 
  
   position: relative;
    z-index: 300;
  }

 .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1a1f2e;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    list-style: none;
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 250;
    overflow: hidden;
  }

  .nav-links.open { right: 0;
  opacity: 1;
    visibility: visible;
  
  }

 .nav-links li {
    display: flex;
    justify-content: center;
    width: 100%;
  }


   .nav-link {
    font-size: 1.3rem;
    text-align: center;
    padding: 0.6rem 0;
    color: var(--text-muted);
  }

 .nav-link:hover { color: var(--accent); }

  .nav-cta {
    margin-top: 0.5rem;
    padding: 0.75rem 2.5rem !important;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 1rem;
  }







  /* Hero */
  .hero { padding: 6rem 1.5rem 4rem; min-height: auto; padding-bottom: 4rem; }
  .hero-visual { display: none; }

  /* Stats */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.2rem 1.5rem; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: none; }

  /* Offer */
  .offer-section { padding: 4rem 0; }
  .offer-grid { grid-template-columns: 1fr; }

  /* Brands */
  .brands-section { padding: 3rem 0; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }

  /* Process */
  .process-section { padding: 4rem 0; }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1rem;
  }
  .process-steps::before { display: none; }

  /* Why + Contact */
  .why-section { padding: 4rem 0; }
  .why-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-section { padding: 4rem 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.2rem; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* moje dodane */
.nav-logo img,
.logo-img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}


/* ── SKLEP ALLEGRO ── */
.sklep-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.allegro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2.2rem;
  background: #FF6000;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #FF6000;
  border-radius: 3px;
  transition: background 0.22s, color 0.22s;
}

.allegro-btn:hover {
  background: #ffffff;
  color: #FF6000;
}

.allegro-logo {
  font-weight: 700;
  font-size: 1rem;
}

/* ── SKUP AUTOMATYKI ── */
.skup-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.skup-cta {
  padding: 2.5rem 3rem;
  background: var(--steel-mid);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.skup-cta-text .section-tag { margin-bottom: 0.5rem; }

.skup-cta-text h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.skup-cta-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.skup-cta .btn-primary { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 768px) {
  .skup-cta { flex-direction: column; align-items: flex-start; gap: 2rem; padding: 2rem; }
  .skup-cta .btn-primary { width: 100%; text-align: center; }
}

.skup-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.skup-cta-btns .btn-ghost {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ── DANE REJESTROWE ── */
.company-box {
  margin-top: 2rem;
  background: var(--steel-mid);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
}

.company-box-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}

.company-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

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

.company-key {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}