/* ============================================================
   styles.css — wspolne style sukcesytoprocesy.pl
   Zrodlo kanoniczne: wyekstrahowane 1:1 z index.html.
   Zawiera: reset, tokeny, nav + burger + mobile menu,
   stopke (klasy), widget Dory. Style specyficzne dla stron
   pozostaja w ich blokach <style> i nadpisuja ten plik.
   ============================================================ */


/* --- Reset i tokeny --- */

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

:root {
  --beige: #F3EEE1;          /* tło bazowe — rozjaśnione (2026-07), lżejsze i bardziej uniwersalne */
  --terracotta: #C26F51;
  --text-dark: #2C2C2C;
  --text-medium: #5A5A5A;
  --white: #FFFFFF;
  /* lifting 2026-07: rozszerzenie ciepłej skali */
  --cream: #FBF7EE;          /* jasne powierzchnie sekcji przełamujących */
  --ink: #2A211A;            /* ciepła czerń: ciemne sekcje, stopka */
  --terracotta-deep: #A85B40; /* stany hover/active przycisków */
  --line: rgba(44, 34, 26, 0.14); /* obramowania */
}

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--beige);
}


/* --- Nawigacja --- */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--beige);
  padding: 20px 0;
  box-shadow: 0 1px 0 rgba(44, 34, 26, 0.08);
  z-index: 1000;
  transition: transform 0.35s ease;
}

nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-container {
  width: 320px;
}

.nav-logo-container svg {
  display: block;
  width: 100%;
  height: auto;
}

.scrambled-letter {
  opacity: 0.7;
}

#logo-reference-text {
  opacity: 0;
  pointer-events: none;
}

#logo-animated-state {
  opacity: 1;
}

#logo-final-state {
  opacity: 0;
}

.nav-cta {
  background: var(--terracotta);
  color: var(--cream);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-cta::before {
  content: none;
}

.nav-cta-full {
  display: inline;
}

.nav-cta:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.3s;
}

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

.nav-link.active {
  color: var(--terracotta);
}

.nav-badge {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.4;
  animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.burger-btn {
  display: none;
  order: -1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger-icon {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--terracotta);
  position: relative;
  transition: background 0.3s;
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--terracotta);
  transition: transform 0.3s, top 0.3s;
}

.burger-icon::before {
  top: -8px;
}

.burger-icon::after {
  top: 8px;
}

.burger-btn.open .burger-icon {
  background: transparent;
}

.burger-btn.open .burger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.burger-btn.open .burger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--beige);
  z-index: 999;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(44, 44, 44, 0.1);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--terracotta);
}

.mobile-menu a.active {
  color: var(--terracotta);
}


/* --- Stopka --- */

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 64px 40px 32px;
  border-top: 3px solid var(--terracotta);
}

footer a {
  color: var(--beige);
  text-decoration: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 56px;
  margin-bottom: 40px;
}

.footer-logo-main {
  font-family: 'Work Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--beige);
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.2;
}

.footer-logo-tag {
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--terracotta);
  margin: 8px 0 0 0;
  font-style: italic;
  line-height: 1.4;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--beige);
}

.footer-section p {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--beige);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}


/* --- Nawigacja: burger poniżej 1080px --- */
/* Pełny poziomy nav (logo + 5 linków + CTA) mieści się komfortowo
   dopiero powyżej ~1080px; niżej przełączamy na burger, żeby linki
   się nie łamały. */
@media (max-width: 1080px) {
  .burger-btn {
    display: block;
  }

  .nav-logo-container {
    width: 180px;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-links .nav-link {
    display: none;
  }

  .nav-container {
    padding: 0 24px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-cta {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .nav-logo-container {
    width: 150px;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .mobile-menu {
    padding: 100px 24px 40px;
  }

  .mobile-menu a {
    font-size: 20px;
  }
}


/* --- Widget Dory (KSeF) --- */

.dora-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  padding: 12px 16px 12px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  font-family: 'Work Sans', sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  max-width: 320px;
}
.dora-widget.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dora-widget__avatar {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #030B0D;
}
.dora-widget__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dora-widget__content {
  flex: 1;
  min-width: 0;
}
.dora-widget__title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(228, 214, 179, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-align: center;
}
.dora-widget__status {
  font-size: 15px;
  font-weight: 600;
  color: #E4D6B3;
  margin-bottom: 6px;
  line-height: 1.3;
}
.dora-widget__footer {
  text-align: center;
}
.dora-widget__link {
  font-size: 12px;
  color: #C26F51;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.dora-widget__link:hover {
  opacity: 0.8;
}
.dora-widget__link svg {
  width: 12px;
  height: 12px;
}
.dora-widget__time {
  font-size: 12px;
  color: rgba(228, 214, 179, 0.5);
  margin-left: 8px;
}
.dora-widget__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}
.dora-widget__close:hover {
  background: rgba(255,255,255,0.2);
}
.dora-widget__close svg {
  width: 10px;
  height: 10px;
  stroke: rgba(228, 214, 179, 0.7);
  stroke-width: 2;
}
.dora-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.dora-widget__dot--ok { background: #4CAF50; }
.dora-widget__dot--warn { background: #FFC107; }
.dora-widget__dot--error { background: #F44336; }

@media (max-width: 480px) {
  .dora-widget {
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
  .dora-widget__avatar {
    width: 60px;
    height: 60px;
  }
  .dora-widget__status {
    font-size: 14px;
  }
}
