/* ===================================
   PACKMEDIA - STYL INSPIROWANY MAKUCHLABEL.PL
   Minimalistyczny, prosty, biznesowy
   =================================== */

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

:root {
  /* Kolory - jasna z szarymi i czerwonym akcentem */
  --primary-red: #dc143c;
  --primary-red-dark: #b01030;
  --gray-900: #2d2d2d;
  --gray-800: #3a3a3a;
  --gray-700: #4a4a4a;
  --gray-600: #666666;
  --gray-500: #808080;
  --gray-400: #999999;
  --gray-300: #cccccc;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;

  --font-primary: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --section-padding: 80px;
  --container-max-width: 1200px;
  --transition: all 0.3s ease;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* TytuBy sekcji */
.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.btn-primary:hover {
  background: var(--primary-red-dark);
  border-color: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
  background: var(--gray-800);
  color: var(--white);
  border-color: var(--gray-800);
}

.btn-secondary:hover {
  background: var(--gray-900);
}

.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border-color: var(--gray-400);
}

.btn-outline:hover {
  background: var(--gray-800);
  color: var(--white);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ===================================
   NAVIGATION - Styl makuchlabel.pl
   =================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

/* Top bar z kontaktem - jak makuchlabel.pl */
.top-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.6rem 20px;
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
}

.top-bar-contact svg {
  width: 16px;
  height: 16px;
  color: var(--primary-red);
}

.top-bar-contact a {
  color: var(--gray-700);
}

.top-bar-contact a:hover {
  color: var(--primary-red);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.logo {
  display: block;
  line-height: 0;
  margin-right: auto;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: flex-end;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-link::after {
    bottom: 0;
  }
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  margin-top: 1rem;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--primary-red);
}

.nav-cta {
  display: none;
}

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-800);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===================================
   HERO - Prosty i minimalistyczny
   =================================== */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, var(--gray-100) 0%, var(--white) 100%);
  margin-top: 110px;
  padding: 80px 0;
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.parallax-bg,
.scroll-indicator {
  display: none;
}

/* Hero with Image */
.hero-with-image {
  position: relative;
  background: none;
  overflow: hidden;
}

.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(45, 45, 45, 0.6) 100%);
  z-index: 2;
}

.hero-with-image .hero-content {
  position: relative;
  z-index: 3;
}

.hero-with-image .hero-title,
.hero-with-image .hero-subtitle {
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Full Width Image Section */
.full-width-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.full-width-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Parallax effect for full-width images */
.full-width-image.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.full-width-image.parallax img {
  display: none;
}

/* ===================================
   WHY US - "DLACZEGO MY?"
   =================================== */

.why-us {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 35px;
  height: 35px;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.8;
}

/* ===================================
   SERVICES
   =================================== */

.services {
  padding: var(--section-padding) 0;
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.service-card {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(even) {
  grid-template-columns: 55% 45%;
  direction: rtl;
}

.service-card:nth-child(even) .service-content {
  direction: ltr;
}

.service-image {
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content h3 {
  font-size: 1.6rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.service-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-features {
  margin-bottom: 2rem;
}

.service-features li {
  padding: 0.6rem 0;
  color: var(--gray-700);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Offer Items - New Style Similar to O-Firmie */
.offer-items {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.offer-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.offer-item-reverse {
  direction: rtl;
}

.offer-item-reverse .offer-text {
  direction: ltr;
}

.offer-text h3 {
  font-size: 1.8rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.offer-text p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.offer-features {
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}

.offer-features li {
  padding: 0.6rem 0;
  color: var(--gray-700);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.offer-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.1rem;
}

.offer-image img {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: var(--transition-smooth);
}

.offer-item:hover .offer-image img {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* ===================================
   TECHNOLOGY
   =================================== */

.technology {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.tech-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: center;
}

.tech-text h3 {
  font-size: 1.6rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tech-text p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.tech-list li {
  padding: 0.8rem 0;
  color: var(--gray-700);
  position: relative;
  padding-left: 2rem;
}

.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--primary-red);
  border-radius: 50%;
}

.tech-stats {
  display: grid;
  gap: 2rem;
}

.stat-item {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 4px;
  text-align: center;
  border-left: 4px solid var(--primary-red);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateX(10px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-700);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ===================================
   VIDEO SECTION
   =================================== */

.video-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.video-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================================
   CTA
   =================================== */

.cta {
  padding: 80px 0;
  background: var(--gray-900);
}

.cta-content {
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cta p {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

.parallax .parallax-bg {
  display: none;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col ul li a {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--primary-red);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-list svg {
  width: 18px;
  height: 18px;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
}

.social-links svg {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card,
  .tech-content {
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-image {
    min-height: 250px;
  }

  .offer-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .offer-item-reverse {
    direction: ltr;
  }

  .offer-image img {
    height: 350px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-container {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .top-bar-contact {
    gap: 0.3rem;
  }

  .navbar {
    z-index: 1002;
  }

  /* Mobile menu backdrop */
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  /* Hide desktop menu, show mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    gap: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Mobile menu header with MENU text */
  .nav-menu::before {
    content: "MENU";
    display: block;
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--gray-900);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Close button in menu - positioned relative to menu width */
  .nav-menu.active::after {
    content: "×";
    position: absolute;
    top: 0.5rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 2rem;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    z-index: 11;
    transition: all 0.2s ease;
  }

  /* Hide desktop hamburger inside mobile menu */
  .nav-menu .nav-toggle {
    display: none !important;
  }

  /* Menu items - reduced spacing */
  .nav-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--gray-800);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
  }

  .nav-menu .nav-link:hover {
    background: var(--gray-50);
    color: var(--primary-red);
  }

  .nav-menu .nav-link.active {
    color: var(--primary-red);
    background: rgba(220, 20, 60, 0.05);
  }

  /* Dropdown styling */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    background: var(--gray-50);
    width: 100%;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 0.6rem 1.5rem 0.6rem 2.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
  }

  .dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary-red);
  }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    z-index: 1003;
  }

  /* Hide hamburger when menu is open */
  body.menu-open .nav-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    min-height: 500px;
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-content {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .top-bar-container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 15px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-large {
    width: 100%;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
