/* ===================================
   WOJTYRA - Style główne
   Pieczątki, druk i usługi biurowe
   =================================== */

/* === ZMIENNE CSS === */
:root {
  /* Kolory Light Mode */
  --primary-color: #2c5f8d;
  --primary-dark: #1a3a52;
  --primary-light: #4a7ba7;
  --secondary-color: #d4a574;
  --accent-color: #e8b55f;

  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #e8ecf1;

  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;

  --border-color: #d4d4d4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  --transition-speed: 0.3s;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* === TYPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-dark);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-speed);
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-nav a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed);
}

.navbar-nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
  gap: 0.25rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #2c5f8d;
  border-radius: 2px;
  transition: all var(--transition-speed);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === SEKCJE === */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #f0f4f8 0%, #e1e8ed 100%);
  background-image: url('../images/hero-light.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  color: var(--primary-color);
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .subtitle {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.hero .hero-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === PRZYCISKI === */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(44, 95, 141, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(44, 95, 141, 0.2);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 141, 0.3);
}

.hero .btn-secondary {
  color: white;
  border-color: white;
}

.hero .btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* === KARTY === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  border: 1px solid var(--border-color);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
}

/* === FORMULARZE === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-success {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* === TABS (dla sekcji Wycena/Kontakt) === */
.tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-speed);
  flex: 1;
  min-width: 200px;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tab-content.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform var(--transition-speed);
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section:first-child h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* === ANIMACJE === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .navbar-container {
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
  }

  .navbar-brand {
    font-size: 1.5rem;
    order: 1;
    flex: 1;
  }

  .navbar-nav {
    order: 3;
    width: 100%;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 0;
    margin: 0;
  }

  .navbar-nav.mobile-active {
    display: flex;
  }

  .navbar-nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
  }

  .navbar-nav a {
    display: block;
    padding: 1.25rem;
    font-size: 1.1rem;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  .hero {
    min-height: 90vh;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero .subtitle {
    font-size: 1.3rem;
  }

  .hero .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .tabs-nav {
    flex-direction: column;
    gap: 0;
  }

  .tab-btn {
    width: 100%;
    min-width: auto;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
  }

  .tab-btn.active {
    background: var(--bg-secondary);
    border-bottom: 3px solid var(--primary-color);
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .cookie-popup {
    padding: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Form grid na mobile - 1 kolumna */
  form [style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }

  form [style*="grid-template-columns: 1fr 1fr"] .form-group {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1.15rem;
  }

  .navbar-brand {
    font-size: 1.35rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }
}
