/* =============================================================================
   PackLabs – Homepage Styles
   =============================================================================
   Fonts import – Raleway (800 pro nadpisy, 600 pro semi-bold, 400 base)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&display=swap');


/* =============================================================================
   CSS VARIABLES & ROOT
   ============================================================================= */

#plx {
  /* -- Barvy -- */
  --pl-blue:        #0066ff;
  --pl-blue-dark:   #0052cc;
  --pl-blue-light:  #e8f0fe;
  --pl-text:        #0e1320;
  --pl-muted:       #5d6679;
  --pl-border:      #e4e7ee;
  --pl-surface:     #f7f8fb;
  --pl-bg-alt:      #f0f3f8;

  /* -- Spacing & shape -- */
  --pl-radius:      14px;
  --pl-radius-sm:   9px;

  /* -- Shadows -- */
  --pl-shadow:      0 4px 24px rgba(2, 8, 23, 0.07);
  --pl-shadow-md:   0 8px 36px rgba(2, 8, 23, 0.10);
  --pl-shadow-lg:   0 16px 52px rgba(2, 8, 23, 0.14);

  /* -- Easing -- */
  --pl-ease:        cubic-bezier(0.22, 1, 0.36, 1);

  /* -- Base typography -- */
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--pl-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Global resets scoped to #plx */
#plx img {
  max-width: 100%;
  height: auto;
  display: block;
}

#plx a {
  color: inherit;
  text-decoration: none;
}

#plx button {
  font-family: inherit;
}


/* =============================================================================
   LAYOUT – Sections & Containers
   ============================================================================= */

/* Every section – white base */
#plx .sc {
  position: relative;
  background: #fff !important;
  overflow: visible;
}

/* Alternating bg – odd sections tinted via infinite box-shadow trick */
#plx .sc:nth-of-type(odd) {
  background: var(--pl-bg-alt) !important;
  box-shadow: 0 0 0 100vmax var(--pl-bg-alt);
  clip-path: inset(0 -100vmax);
}

/* Wide container – grids, hero */
#plx .ct {
  max-width: 1120px;
  margin-inline: auto;
  padding: 80px 24px;
}

/* Narrow container – FAQ, contact */
#plx .ct-sm {
  max-width: 700px;
  margin-inline: auto;
  padding: 80px 24px;
}


/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

a.toggle-window.cart-count,
button.top-nav-button.top-nav-button-login {
    display: none !important;
}


/* Eyebrow / label */
#plx .ey {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pl-blue);
  margin-bottom: 8px;
}

/* H1 – hero headline */
#plx .h1 {
  font-size: clamp(36px, 5.8vw, 58px);
  line-height: 1.06;
  font-weight: 800;
  color: var(--pl-text);
  margin: 4px 0 20px;
  letter-spacing: -0.02em;
}

#plx .h1 .ac {
  color: var(--pl-blue);
}

/* H2 – section headings */
#plx .h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  color: var(--pl-text);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

/* Lead / perex */
#plx .ld {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--pl-muted);
  max-width: 58ch;
  line-height: 1.7;
  margin-bottom: 24px;
}


/* =============================================================================
   REVEAL ON SCROLL
   ============================================================================= */

@media (prefers-reduced-motion: no-preference) {

  #plx [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--pl-ease),
                transform 0.65s var(--pl-ease);
  }

  #plx [data-reveal].vis {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delays pro grid children */
  #plx [data-reveal][data-delay="1"] { transition-delay: 0.10s; }
  #plx [data-reveal][data-delay="2"] { transition-delay: 0.20s; }
  #plx [data-reveal][data-delay="3"] { transition-delay: 0.30s; }
}

/* Fallback – pokud reduced-motion → ihned viditelné */
@media (prefers-reduced-motion: reduce) {
  #plx [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* =============================================================================
   BADGES – hero pills
   ============================================================================= */

#plx .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}

#plx .badge {
  font-size: 13px;
  font-weight: 600;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--pl-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

#plx .badge:hover {
  border-color: var(--pl-blue);
  background: var(--pl-blue-light);
}


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

#plx .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1.5px solid var(--pl-border);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: var(--pl-text);
  white-space: nowrap;
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease;
}

/* Primary – blue */
#plx .btn-p {
  background: var(--pl-blue);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 102, 255, 0.30);
}

/* Ghost – transparent outline */
#plx .btn-g {
  background: transparent;
}

/* Hovers */
#plx .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--pl-shadow-md);
  border-color: var(--pl-blue);
}

#plx .btn-p:hover {
  background: var(--pl-blue-dark);
  box-shadow: 0 6px 26px rgba(0, 102, 255, 0.38);
}

/* CTA row */
#plx .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}


/* =============================================================================
   HERO
   ============================================================================= */

#plx .hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

#plx .hero-media {
  position: relative;
}

/* Hlavní foto */
#plx .hero-img {
  width: min(580px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--pl-shadow-lg);
  transition: transform 0.6s var(--pl-ease);
}

#plx .hero-media:hover .hero-img {
  transform: scale(1.015);
}

/* Floating detail foto – overlapping bottom-right */
#plx .hero-float {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 42%;
  min-width: 160px;
  z-index: 2;
}

#plx .hero-float img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(10, 22, 50, 0.22);
  border: 5px solid #fff;
  transition: transform 0.5s var(--pl-ease);
}

#plx .hero-media:hover .hero-float img {
  transform: translateY(-4px) rotate(1deg);
}


/* =============================================================================
   SERVICE CARDS
   Sdílené styly pro Benefits (3-col) i Služby (4-col)
   ============================================================================= */

/* Grid – default 4 columns */
#plx .srv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Card shell */
#plx .srv-card {
  background: #fff;
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  overflow: hidden;
  box-shadow: var(--pl-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--pl-ease),
              box-shadow 0.35s var(--pl-ease);
}

#plx .srv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pl-shadow-lg);
}

/* Image wrapper – relative pro badge */
#plx .srv-top {
  position: relative;
  overflow: hidden;
}

/* Foto */
#plx .srv-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s var(--pl-ease);
}

#plx .srv-card:hover .srv-img {
  transform: scale(1.04);
}

/* Badge – top-left pill */
#plx .srv-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--pl-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.35);
}

/* Card body */
#plx .srv-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#plx .srv-body h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--pl-text);
  line-height: 1.3;
}

#plx .srv-body > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--pl-muted);
  line-height: 1.55;
}

/* CTA button inside card */
#plx .srv-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 13px 20px;
  background: var(--pl-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--pl-radius-sm);
  transition: background 0.2s ease,
              transform 0.15s ease,
              box-shadow 0.2s ease;
}

#plx .srv-cta:hover {
  background: var(--pl-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 102, 255, 0.30);
}


/* ── Expandable "Naše zakázky" ────────────────────────────────────────────── */

#plx .srv-exp {
  width: 100%;
  padding: 13px 0 5px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--pl-blue);
  cursor: pointer;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s ease;
}

#plx .srv-exp:hover {
  color: var(--pl-blue-dark);
}

/* Šipka – rotuje při otevření */
#plx .srv-exp::after {
  content: "▼";
  font-size: 9px;
  display: inline-block;
  transition: transform 0.4s var(--pl-ease);
}

#plx .srv-card.open .srv-exp::after {
  transform: rotate(180deg);
}

/* Cases kontejner – height animace */
#plx .srv-cases {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--pl-ease);
}

#plx .srv-card.open .srv-cases {
  max-height: 800px;
}

/* Jednotlivá zakázka */
#plx .srv-case {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--pl-border);
}

#plx .srv-case img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--pl-radius-sm);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

#plx .srv-case:hover img {
  transform: scale(1.05);
}

#plx .srv-case-txt h5 {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pl-text);
}

#plx .srv-case-txt p {
  margin: 0;
  font-size: 12.5px;
  color: var(--pl-muted);
  line-height: 1.5;
}


/* =============================================================================
   PŘÍPADOVÁ STUDIE (Volvo)
   ============================================================================= */

#plx .cs-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Foto */
#plx .cs-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--pl-shadow-lg);
  transition: transform 0.55s var(--pl-ease);
}

#plx .cs-wrap:hover .cs-img {
  transform: scale(1.02);
}

/* Stats row */
#plx .cs-stats {
  display: flex;
  gap: 0;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 2px solid var(--pl-border);
  border-bottom: 2px solid var(--pl-border);
}

#plx .cs-stat {
  flex: 1;
  text-align: center;
  position: relative;
}

/* Vertical divider mezi stats */
#plx .cs-stat + .cs-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--pl-border);
}

#plx .cs-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--pl-blue);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#plx .cs-label {
  display: block;
  font-size: 12px;
  color: var(--pl-muted);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Popis case study */
#plx .cs-desc {
  font-size: 15px;
  color: var(--pl-muted);
  line-height: 1.7;
  margin: 0 0 24px;
}


/* =============================================================================
   FAQ ACCORDION
   ============================================================================= */

#plx .faq-w {
  max-width: 900px;
  margin: 0 auto;
}

/* Item wrapper */
#plx .fi {
  border: 1px solid var(--pl-border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease,
              border-color 0.3s ease;
}

#plx .fi:hover {
  border-color: #d0d5df;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

#plx .fi.active {
  border-color: var(--pl-blue);
  box-shadow: 0 2px 16px rgba(0, 102, 255, 0.10);
}

/* Question button */
#plx .fq {
  width: 100%;
  padding: 20px 52px 20px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: var(--pl-text);
  position: relative;
  background: #fff;
  border: none;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

#plx .fq:hover {
  background: var(--pl-surface);
}

#plx .fi.active .fq {
  color: var(--pl-blue);
}

/* +/− icon */
#plx .fq::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--pl-blue);
  font-weight: 300;
  width: 22px;
  text-align: center;
}

#plx .fi.active .fq::after {
  content: "−";
}

/* Answer – animated expand */
#plx .fa {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  opacity: 0;
  transition: max-height 0.5s var(--pl-ease),
              opacity 0.35s ease,
              padding 0.35s ease;
  color: var(--pl-muted);
  font-size: 15px;
  line-height: 1.75;
}

#plx .fi.active .fa {
  max-height: 360px;
  opacity: 1;
  padding: 0 24px 24px;
}


/* =============================================================================
   CONTACT STRIP
   ============================================================================= */

#plx .cstrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px;
  max-width: 880px;
  margin: 0 auto;
}

#plx .c-i {
  display: flex;
  align-items: center;
  gap: 14px;
}

#plx .c-i .ico {
  font-size: 22px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pl-surface);
  border-radius: 50%;
  border: 1px solid var(--pl-border);
}

#plx .c-i strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--pl-text);
}

#plx .c-i span {
  display: block;
  font-size: 13px;
  color: var(--pl-muted);
  margin-top: 2px;
}


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

/* Tablet – 1050px */
@media (max-width: 1050px) {

  #plx .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #plx .hero-media {
    max-width: 540px;
    margin: 0 auto;
  }

  #plx .hero-img {
    width: 100%;
  }

  #plx .cs-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #plx .cs-img {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* 2-col grids – 900px */
@media (max-width: 900px) {
  #plx .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Mobile – 640px */
@media (max-width: 640px) {

  #plx .ct,
  #plx .ct-sm {
    padding: 52px 18px;
  }

  #plx .hero-float {
    width: 38%;
    right: -2%;
    bottom: -8%;
  }

  #plx .srv-grid {
    grid-template-columns: 1fr;
  }

  #plx .cstrip {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  #plx .cs-stats {
    gap: 0;
  }

  #plx .h1 {
    font-size: clamp(30px, 8vw, 42px);
  }
}
