/* ===== CUSTOM STYLES - VýkopPráce Bratislava ===== */

/* CSS Custom Properties (overridden by JS from content.json) */
:root {
  --primary: #d4a843;
  --secondary: #1a1a1a;
  --accent: #b5451b;
  --dark: #0f0f0f;
  --light: #f5f0e8;
  --text: #2a2a2a;
  --text_light: #7a7a7a;
  --slate: #3d4f5f;
}

/* ===== BASE ===== */
html {
  scroll-behavior: auto;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary);
  color: var(--secondary);
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 15, 15, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

#navbar .nav-link:hover {
  color: #fff;
}

#navbar .nav-link:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scaleX(-1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0.5) 50%, rgba(15, 15, 15, 0.3) 100%);
}

.hero-accent-line {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin-bottom: 1.5rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--secondary);
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* ===== SERVICES - NUMBERED LIST ===== */
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.4s ease;
}

.service-row:hover {
  background: rgba(212, 168, 67, 0.04);
}

.service-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.06);
  width: 140px;
  display: flex;
  align-items: flex-start;
  transition: color 0.4s ease;
}

.service-row:hover .service-number {
  color: rgba(212, 168, 67, 0.2);
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: center;
}

.service-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  height: 180px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-row:hover .service-image-wrapper {
  opacity: 1;
  transform: translateX(0);
}

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

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

.service-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.service-row:hover .service-title {
  color: var(--accent);
}

.service-desc {
  color: var(--text_light);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ===== ABOUT ===== */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.3), transparent);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.about-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICE DETAIL BLOCKS ===== */
.service-detail-block + .service-detail-block {
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-banner .cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.8);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  position: relative;
  padding: 3rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-quote-mark {
  font-family: 'Archivo', sans-serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

/* ===== MAP / SERVICE AREA ===== */
.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.area-tag:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.3);
}

/* ===== CONTACT ===== */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.contact-dark {
  background: var(--dark);
  color: #fff;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-light {
  background: #fff;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e8e4dc;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: var(--light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

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

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

.contact-form button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 69, 27, 0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible,
.slide-right.visible,
.fade-up.visible,
.scale-in.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger-parent .stagger-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-parent.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.stagger-parent.visible .stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-parent.visible .stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-parent.visible .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-parent.visible .stagger-item:nth-child(4) { transition-delay: 0.2s; }
.stagger-parent.visible .stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-parent.visible .stagger-item:nth-child(6) { transition-delay: 0.3s; }
.stagger-parent.visible .stagger-item:nth-child(7) { transition-delay: 0.35s; }
.stagger-parent.visible .stagger-item:nth-child(8) { transition-delay: 0.4s; }
.stagger-parent.visible .stagger-item:nth-child(9) { transition-delay: 0.45s; }
.stagger-parent.visible .stagger-item:nth-child(10) { transition-delay: 0.5s; }
.stagger-parent.visible .stagger-item:nth-child(11) { transition-delay: 0.55s; }

/* ===== SECTION LABEL ===== */
.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .service-content {
    grid-template-columns: 1fr;
  }

  .service-image-wrapper {
    display: none;
  }

  .service-number {
    font-size: 3.5rem;
    width: 80px;
  }

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

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

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .service-number {
    font-size: 2.5rem;
    width: auto;
    margin-bottom: 0.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

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

  .testimonial-card {
    padding: 2rem;
  }

  .contact-dark,
  .contact-light {
    padding: 2.5rem 1.5rem;
  }
}

/* ===== 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;
  }

  .slide-left, .slide-right, .fade-up, .scale-in,
  .stagger-parent .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
}