/* ========================================
   Ideálne stavby — Sharp & Corporate Design
   Archivo + DM Sans
   Light mode + Construction Amber accent
   Animation: Fade & Rise + Stagger Cascade
   ======================================== */

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.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.10s; }
.stagger-parent.visible .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-parent.visible .stagger-item:nth-child(4) { transition-delay: 0.20s; }
.stagger-parent.visible .stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-parent.visible .stagger-item:nth-child(6) { transition-delay: 0.30s; }
.stagger-parent.visible .stagger-item:nth-child(7) { transition-delay: 0.35s; }
.stagger-parent.visible .stagger-item:nth-child(8) { transition-delay: 0.40s; }

@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;
  }
  .fade-up, .slide-right, .scale-in, .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Hero --- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,27,31,0.95) 0%, rgba(27,27,31,0.6) 40%, rgba(27,27,31,0.3) 100%);
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

.hero-stats-bar {
  background: rgba(27, 27, 31, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.hero-stat-item {
  padding: 24px 32px;
}

/* --- Navbar --- */
.navbar-corporate {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-corporate.scrolled {
  background: rgba(247, 246, 243, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 27, 31, 0.06);
}

/* --- Services Bento Grid --- */
.services-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-bento-card {
  background: #ffffff;
  border: 1px solid rgba(27, 27, 31, 0.06);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 137, 14, 0.08);
  border-color: rgba(212, 137, 14, 0.25);
}

.service-bento-card.featured {
  grid-column: span 2;
  background: #1B1B1F;
}

.service-bento-card.featured h3 {
  color: #ffffff;
}

.service-bento-card.featured p {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

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

/* --- Features Numbered --- */
.feature-numbered-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-numbered-card:hover {
  border-color: rgba(212, 137, 14, 0.3);
  transform: translateY(-4px);
}

.feature-number {
  font-family: 'Archivo', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 137, 14, 0.15);
  margin-bottom: -8px;
}

/* --- Contact --- */
.contact-info-card {
  background: #F7F6F3;
  border: 1px solid rgba(27, 27, 31, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.contact-form-wrap {
  background: #F7F6F3;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(27, 27, 31, 0.05);
}

.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #E5E4E0;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #1B1B1F;
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: #D4890E;
  box-shadow: 0 0 0 3px rgba(212, 137, 14, 0.1);
}

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

.contact-form-wrap label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1B1B1F;
  margin-bottom: 6px;
  display: block;
}

/* --- CTA Banner --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 31, 0.8);
  z-index: 1;
}

.cta-section img.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-section .cta-content {
  position: relative;
  z-index: 2;
}

/* --- Brands --- */
.brand-item {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: rgba(27, 27, 31, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.brand-item:hover {
  color: #D4890E;
}

/* --- Mobile Menu --- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 27, 31, 0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-overlay a {
  font-family: 'Archivo', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #F7F6F3;
  transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover {
  color: #D4890E;
}

/* --- Hamburger --- */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  position: absolute;
  left: 0;
  transition: 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span { background: #F7F6F3; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* --- Scroll to top --- */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #D4890E;
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(212, 137, 14, 0.15);
}

.scroll-top-btn.show { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: #B8750A; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-bento-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .services-bento-grid {
    grid-template-columns: 1fr;
  }
  .service-bento-card.featured {
    grid-column: span 1;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form-wrap {
    padding: 24px;
  }
}

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