/* ======================================
   2dni.sk - Dark & Premium Theme
   ====================================== */

/* CSS Custom Properties */
:root {
  --primary: #d4a843;
  --secondary: #1a1a2e;
  --accent: #d4a843;
  --dark: #0e0b1a;
  --light: #ffffff;
  --text: #ffffff;
  --text-muted: #a0a0b0;
  --card-bg: #15112a;
  --card-border: #2a2540;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Logo Styling */
.nav-logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  color: var(--primary);
}

/* Navbar */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(14, 11, 26, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(42, 42, 58, 0.5);
}

.nav-link {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dropdown */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-chevron {
  transition: transform 0.3s ease;
}

.nav-dropdown-wrapper:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  min-width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(212, 168, 67, 0.1);
  color: var(--primary);
}

/* Mobile sub-link indent */
.mobile-nav-sublink {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 2px solid var(--card-border);
  margin-left: 0.5rem;
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

/* Hero Video Background */
#hero-video-bg {
  z-index: 0;
}

#hero-yt-player {
  /* Scale up to cover the section with no letterboxing */
  width: 120vw;
  height: 120vh;
  min-width: 120vw;
  min-height: 120vh;
  transform: translate(-50%, -50%);
}

#hero-yt-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Dark overlay on top of video to keep text readable */
.hero-video-overlay {
  z-index: 1;
  background: rgba(14, 11, 26, 0.65);
}

/* Hero Background Pattern (sits above video overlay for subtle texture) */
.hero-bg-pattern {
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(20, 20, 31, 0.4) 0%, rgba(14, 11, 26, 0.6) 70%);
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 168, 67, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.02) 0%, transparent 50%);
}

/* Hero CTA */
.hero-cta {
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.15);
}

.hero-cta:hover {
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.25);
}

/* Hero Feature */
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9375rem;
}

.hero-feature svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Pricing Cards */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  opacity: 0.5;
  pointer-events: none;
}

.pricing-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.pricing-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text);
  padding: 4px 0;
}

.pricing-feature svg {
  color: var(--primary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--card-border);
  margin: 1.25rem 0;
}

.pricing-addons-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-addon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 3px 0;
}

.pricing-addon-price {
  color: var(--primary);
  font-weight: 500;
}

.pricing-delivery {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.pricing-delivery-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-price-block {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.pricing-original-price {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 0.75rem;
}

.pricing-current-price {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.pricing-card:not(.featured) .pricing-cta {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

.pricing-card:not(.featured) .pricing-cta:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-card.featured .pricing-cta {
  background: var(--primary);
  color: var(--dark);
  border: 1px solid var(--primary);
}

.pricing-card.featured .pricing-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Third plan (eshop) has gray/silver cta */
.pricing-card:last-child .pricing-cta {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.pricing-card:last-child .pricing-cta:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Image Placeholders */
.img-placeholder {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(212, 168, 67, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(212, 168, 67, 0.02) 0%, transparent 50%);
}

.img-placeholder::after {
  content: attr(data-alt);
  position: relative;
  z-index: 1;
  opacity: 0.5;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

.img-placeholder svg {
  position: absolute;
  opacity: 0.15;
  width: 48px;
  height: 48px;
}

/* Tvorba page sections */
.text-section-text p {
  margin-bottom: 1rem;
}

/* Bullet lists */
.content-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.content-list-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

.content-list-item strong {
  color: var(--text);
}

/* Comparison columns */
.comparison-col {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
}

.comparison-col h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.comparison-subtitle {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 3px 0;
  line-height: 1.5;
}

.comparison-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 14px;
  height: 14px;
}

.comparison-item.pro svg {
  color: #4ade80;
}

.comparison-item.con svg {
  color: #f87171;
}

/* Gallery images */
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item .img-placeholder {
  aspect-ratio: 16/10;
  border-radius: 0;
  border: none;
}

/* Contact Form */
.form-group label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

/* Job listing */
.job-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.job-card-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.job-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
  margin-right: 1.5rem;
}

.job-link:hover {
  color: var(--primary);
}

/* Job card links (3-col grid) */
.job-card-link {
  text-decoration: none;
  transition: transform 0.3s ease;
}

.job-card-link:hover {
  transform: translateY(-3px);
}

.job-card-link img {
  transition: transform 0.3s ease;
}

.job-card-link:hover img {
  transform: scale(1.03);
}

/* Footer */
.footer-company-name {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-address {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.footer-contact-line {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact-line a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.3s ease;
}

.footer-contact-line a:hover {
  opacity: 0.8;
}

.footer-hours-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-hour-row {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 2px 0;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link::before {
  content: '\2022';
  margin-right: 0.5rem;
}

/* Scenario blocks (Telefonista page) */
.scenario-block {
  padding-left: 1rem;
  border-left: 2px solid var(--card-border);
  margin-bottom: 0.5rem;
}

.scenario-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.scenario-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Rich text content links */
.rich-text-content a,
#tel-contact-description a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ======================================
   Scroll-triggered CSS animations
   ====================================== */
.anim {
  will-change: opacity, transform;
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-slide-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.anim-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-slide-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.anim-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.anim-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Scroll to top */
#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .anim-fade-up,
  .anim-slide-left,
  .anim-slide-right,
  .anim-scale-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .pricing-current-price {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .hero-bg-pattern {
    background: radial-gradient(ellipse at center, rgba(20, 20, 31, 0.5) 0%, rgba(14, 11, 26, 0.75) 70%);
  }

  .hero-video-overlay {
    background: rgba(14, 11, 26, 0.75);
  }
}

@media (max-width: 480px) {
  .pricing-card-title {
    font-size: 1.125rem;
  }

  .pricing-current-price {
    font-size: 1.75rem;
  }
}