/* M pup - Transport in Logistika
   Modern Minimalist Design */

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #ed8936;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo img {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}

nav a:hover::after {
  width: 100%;
}

.lang-switch {
  width: 48px;
  padding: 0.4rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  background: transparent;
  text-align: center;
}

.lang-switch:hover {
  border-color: var(--primary);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: 0.2s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

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

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 2.5rem;
}

.service-card h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Fleet truck showcase (single full-width image) */
.fleet-truck-showcase {
  max-width: 980px;
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  height: 350px;
}

.fleet-truck-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fleet Section */
.fleet-category-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.fleet-category-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Fleet Layout - Image + Tiles */
.card-stack {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 980px;
  margin: 2rem auto;
}

.card-stack-image {
  flex: 1;
  max-width: 500px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
}

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

.card-stack-image--gallery {
  position: relative;
  overflow: visible;
}

.card-stack-image--gallery img {
  border-radius: 16px;
}

.stack-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.stack-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.stack-nav.prev { left: 0.75rem; }
.stack-nav.next { right: 0.75rem; }

.card-stack-tiles {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fleet-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid transparent;
}

.fleet-card:hover {
  border-color: var(--accent);
}

.fleet-card.active {
  border-color: var(--primary);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.25);
}

.fleet-card-info {
  flex: 1;
}

.fleet-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.fleet-specs {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}

.fleet-specs strong {
  color: var(--text);
}

.fleet-price {
  padding: 0.4rem 0.75rem;
  background: var(--primary);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  white-space: nowrap;
  margin-left: 1rem;
}

/* Motorhome Section */
.motorhome-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.motorhome-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.motorhome-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.motorhome-gallery img:hover {
  transform: scale(1.05);
}

.motorhome-gallery img:first-child {
  grid-column: span 3;
  height: 280px;
}

.motorhome-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

.pricing-table tr:hover td {
  background: var(--bg-alt);
}

/* Warehouse Section */
.warehouse-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.warehouse-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.warehouse-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin: 0;
  font-weight: 500;
}

.contact-item a {
  font-weight: 500;
  font-size: 1.1rem;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  background: var(--bg-alt);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

footer a {
  color: white;
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
  color: white;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.section-header p {
  color: var(--text-light);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 1rem;
  user-select: none;
  display: none;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.lightbox.has-nav .lightbox-nav {
  display: block;
}

/* Zoomable images */
.zoomable {
  cursor: zoom-in;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .motorhome-showcase {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  section {
    padding: 3rem 0;
  }

  .card-stack {
    flex-direction: column;
    gap: 1.5rem;
  }

  .card-stack-image {
    max-width: 100%;
  }

  .card-stack-image img {
    height: 280px;
  }

  .card-stack-tiles {
    flex: none;
    width: 100%;
  }

  .motorhome-gallery img:first-child {
    height: 200px;
  }

  .motorhome-gallery img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    font-size: 0.8rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.5rem;
  }
}
