/* ------------------------------
   JN PlastFix – profesionální ladění
   ------------------------------ */

:root {
  /* Professional dark theme with premium touches */
  --bg-900: hsl(220, 15%, 8%);
  --bg-800: hsl(220, 12%, 12%);
  --bg-700: hsl(220, 10%, 16%);
  --surface: hsl(220, 8%, 20%);
  --surface-light: hsl(220, 6%, 24%);

  /* Premium text colors */
  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(220, 6%, 75%);
  --text-muted: hsl(220, 8%, 55%);

  /* Professional accent colors */
  --accent-primary: hsl(45, 100%, 65%);
  --accent-secondary: hsl(45, 90%, 58%);
  --accent-hover: hsl(45, 100%, 72%);

  /* Professional borders and shadows */
  --border-subtle: hsl(220, 8%, 30%);
  --border-accent: hsl(45, 60%, 45%);
  --shadow-elegant: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 0 1px rgba(255, 193, 7, 0.15);

  /* Modern radius */
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Smooth transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    hsl(220, 15%, 8%) 0%,
    hsl(220, 12%, 12%) 50%,
    hsl(220, 10%, 16%) 100%
  );
  --gradient-card: linear-gradient(
    145deg,
    hsl(220, 8%, 20%) 0%,
    hsl(220, 6%, 24%) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    hsl(45, 100%, 65%) 0%,
    hsl(45, 90%, 58%) 100%
  );
  --gradient-ambient: radial-gradient(
    600px 300px at 50% 0%,
    hsla(45, 100%, 65%, 0.15) 0%,
    transparent 60%
  );
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--gradient-hero);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ---------- Header & nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(20px);
  background: hsla(220, 15%, 8%, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-primary);
}

.brand-name strong {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--accent-primary);
}

.nav a:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: clip;
}

.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 24px 0;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.hero-title .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0 auto 32px;
  max-width: 720px;
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

.badges {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badges li {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.badges li:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-elegant);
}

.hero-ambient {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: var(--gradient-ambient);
  pointer-events: none;
  filter: blur(22px);
  opacity: 0.9;
}

/* ---------- Layout blocks ---------- */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 32px 0;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
  border-color: hsla(45, 100%, 65%, 0.3);
}

.card h3 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card p {
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  font-weight: 500;
}

.list {
  margin: 16px 0 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-secondary);
}

.list li {
  margin: 8px 0;
  position: relative;
  padding-left: 20px;
}

.list li::before {
  content: '•';
  color: var(--accent-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.timeline li {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: var(--transition-smooth);
  position: relative;
}

.timeline li::before {
  content: counter(timeline-counter);
  counter-increment: timeline-counter;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  color: var(--bg-900);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.timeline {
  counter-reset: timeline-counter;
}

.timeline li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
  border-color: hsla(45, 100%, 65%, 0.3);
}

.timeline span {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.timeline small {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Prices ---------- */
.price {
  text-align: center;
}

.price-tag {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 16px 0 8px 0;
}

.muted {
  color: var(--text-secondary);
  font-weight: 500;
}

.disclaimer {
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 32px;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: hsla(45, 100%, 65%, 0.3);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 16px 0 0 0;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: hsla(220, 8%, 20%, 0.5);
  backdrop-filter: blur(8px);
  margin-top: 40px;
}

.site-footer .container {
  padding: 32px 0;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Focus states ---------- */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Kontakt blok ---------- */
.contact-card {
  padding: 32px;
}

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-list a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-list .icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ---------- Logo shine ---------- */
.brand-name {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.brand-name::after {
  content: '';
  position: absolute;
  inset: 0;
  left: -120%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
}

.brand-name.shine::after {
  animation: logo-shine 1.1s ease-out forwards;
}

@keyframes logo-shine {
  0% {
    left: -120%;
  }
  100% {
    left: 130%;
  }
}

/* ---------- Kontakt layout & typografie ---------- */
.contact-grid {
  display: flex !important;
  gap: 32px;
  align-items: stretch;
}

.contact-grid .contact-card {
  flex: 0 0 550px;
  max-width: 750px;
}

.contact-grid .map-block {
  flex: 1 1 auto;
  margin-top: 0;
  width: 100%;
  min-width: 0;
}

.contact-grid .map-thumb {
  display: block;
  width: 100%;
  max-width: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition-smooth);
}

.contact-grid .map-thumb:hover {
  box-shadow: var(--shadow-elegant);
  border-color: hsla(45, 100%, 65%, 0.3);
}

.contact-grid .map-iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 820px) {
  .contact-grid {
    flex-direction: column;
  }
  .contact-grid .contact-card {
    flex-basis: auto;
    max-width: none;
  }
}

.contact-card {
  font-size: clamp(1.06rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.contact-card > p strong {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-card .contact-list li {
  margin: 16px 0;
  gap: 16px;
}

.contact-card .icon {
  width: 28px;
  height: 28px;
}

.contact-card .icon svg {
  width: 1.2em;
  height: 1.2em;
}

@media (max-width: 420px) {
  .contact-card {
    font-size: 1.06rem;
  }
}

/* ---------- Mobile navigation ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--gradient-card);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.nav-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 0;
    top: calc(100% + 16px);
    width: min(92vw, 320px);
    display: grid;
    gap: 8px;
    padding: 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elegant);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    z-index: 2000;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    backdrop-filter: blur(8px);
  }

  .nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin: 0;
  }

  .nav[data-open='true'] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header.nav-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}

/* ---------- Timeline mobilní úprava ---------- */
@media (max-width: 720px) {
  .timeline li {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .timeline li::before {
    align-self: flex-start;
  }
}

/* ---------- Enhanced animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.4);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}
