/* =============================================
   VT Čistenie — Custom Styles
   Design: Dark & Premium | Space Grotesk + DM Sans
   Color: Navy dark + Sky Blue accent
   ============================================= */

/* CSS Custom Properties */
:root {
  --primary: #0ea5e9;
  --secondary: #0f172a;
  --accent: #38bdf8;
  --dark: #020817;
  --light: #f0f9ff;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --radius: 16px;
  --transition: 0.3s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* JS handles smooth scroll via Lenis */
}

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

/* ---- Selection ---- */
::selection {
  background: rgba(14, 165, 233, 0.3);
  color: white;
}

/* ---- Focus States ---- */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav-bar {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav-bar.scrolled {
  background: rgba(2, 8, 23, 0.96); /* solid fallback */
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(14, 165, 233, 0.12);
}

.nav-bar .nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.75);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
  padding-bottom: 2px;
}

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

.nav-bar .nav-link:hover {
  color: white;
}

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

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: white;
}

/* Nav white on dark hero */
.nav-bar:not(.scrolled) .nav-logo-text,
.nav-bar:not(.scrolled) .nav-link,
.nav-bar:not(.scrolled) .ham-line {
  color: white;
}

.nav-cta-btn {
  background: var(--primary);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--primary);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta-btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
}

.mobile-nav-link {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.8);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
  transition: color var(--transition);
}

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

/* Hamburger active */
.mobile-menu-open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: var(--dark);
}

.hero-bg-pattern {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.03) 0%, transparent 50%);
  background-size: cover;
}

/* Grid dot pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-cta-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.25);
  transition: all var(--transition);
}

.hero-cta-primary:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.35);
}

.hero-cta-secondary {
  background: transparent;
  color: rgba(226, 232, 240, 0.8);
  border: 2px solid rgba(14, 165, 233, 0.25);
  transition: all var(--transition);
}

.hero-cta-secondary:hover {
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Scroll mouse animation */
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  background: rgba(15, 23, 42, 0.6);
}

.stat-item {
  text-align: center;
  padding: 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(14, 165, 233, 0.15);
}

@media (max-width: 1023px) {
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -2px;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.4;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  background: var(--dark);
}

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
}

.accent-line {
  width: 48px;
  height: 3px;
  border-radius: 4px;
  background: var(--primary);
}

.about-cta-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(14, 165, 233, 0.4);
  transition: all var(--transition);
}

.about-cta-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
  padding: 60px 0;
}

.service-row:last-child {
  border-bottom: none;
}

@media (max-width: 767px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .service-row .service-img-col {
    order: 1 !important;
  }
  .service-row .service-text-col {
    order: 2 !important;
  }
}

.service-img-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(14, 165, 233, 0.12);
  aspect-ratio: 4/3;
}

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

.service-row:hover .service-img-wrap img {
  transform: scale(1.04);
}

.service-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(14, 165, 233, 0.08);
  letter-spacing: -3px;
  margin-bottom: -20px;
  display: block;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.service-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

.service-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  margin-bottom: 16px;
  color: var(--primary);
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
  background: var(--dark);
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid rgba(14, 165, 233, 0.1);
  aspect-ratio: 1/1;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,8,23,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

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

.gallery-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: white;
  font-weight: 500;
}

.gallery-category-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 4px;
}

.gallery-zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(14, 165, 233, 0.1);
  transition: all var(--transition);
}

.feature-card:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: background var(--transition);
}

.feature-card:hover .feature-icon {
  background: rgba(14, 165, 233, 0.2);
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: white;
  margin-bottom: 10px;
}

.feature-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
  background: var(--dark);
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(14, 165, 233, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(14, 165, 233, 0.04);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  line-height: 1.4;
}

.faq-question:hover {
  background: rgba(14, 165, 233, 0.08);
}

.faq-item.open .faq-question {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.35s ease, background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(14, 165, 233, 0.25);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-answer-inner {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  padding: 16px 0 20px;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--dark);
}

.cta-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
}

/* Grid dot overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta-primary-btn {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.3);
  transition: all var(--transition);
}

.cta-primary-btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.35);
}

.cta-secondary-btn {
  background: transparent;
  color: rgba(226, 232, 240, 0.85);
  border: 2px solid rgba(14, 165, 233, 0.25);
  transition: all var(--transition);
}

.cta-secondary-btn:hover {
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-card {
  transition: all var(--transition);
}

.contact-card:hover {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
  transform: translateX(4px);
}

/* Form Inputs */
.form-input {
  background: rgba(14, 165, 233, 0.06) !important;
  border: 1.5px solid rgba(14, 165, 233, 0.15) !important;
  color: #e2e8f0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-input:focus {
  border-color: rgba(14, 165, 233, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: rgba(14, 165, 233, 0.08) !important;
}

.form-input.error {
  border-color: rgba(239, 68, 68, 0.5) !important;
}

.form-submit-btn {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
  transition: all var(--transition);
}

.form-submit-btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.3);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.4);
  flex-shrink: 0;
  transition: background var(--transition);
}

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

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

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

/* =============================================
   SCROLL TO TOP
   ============================================= */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* =============================================
   GSAP ANIMATION INITIAL STATES
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.slide-left {
  opacity: 0;
  transform: translateX(-60px);
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
}

.stagger-parent .stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

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

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

  .stagger-parent .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-dot {
    animation: none !important;
  }
}

/* =============================================
   GLIGHTBOX OVERRIDES
   ============================================= */
.glightbox-clean .gclose {
  background: rgba(14, 165, 233, 0.8);
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 1023px) {
  .hero-title { font-size: 2.75rem; }
  .stat-number { font-size: 2.25rem; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.25rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-item::after { display: none; }
  .service-number { font-size: 3.5rem; }
  .service-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.875rem; }
}

/* =============================================
   SECTION DIVIDER WAVE
   ============================================= */
.wave-divider {
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}
