/* ============================================
   DulKop s.r.o. — Custom Styles
   Dark & Premium / Slide-from-sides GSAP
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #E8A020;
  --primary-dark: #C8880A;
  --accent: #F5B942;
  --dark: #0D0D0D;
  --mid: #1C1C1C;
  --mid2: #252525;
  --light: #F5F0E8;
  --text-main: #E8E0D0;
  --text-muted: #9A9080;
  --radius: 4px;
  --transition: 0.25s ease;
}

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

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

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--primary);
  color: var(--dark);
  padding: 0.5rem 1rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Page Loader ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.5s ease;
}
.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(232,160,32,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: 0.1em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section Labels ---------- */
.section-label-wrap {}
.section-label {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  border: 1px solid rgba(232,160,32,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: transparent;
}
.site-nav.scrolled {
  background: rgba(13,13,13,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* Logo mark */
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 10px;
  border: 2.5px solid var(--dark);
  border-radius: 1px;
}
.logo-mark.small { width: 28px; height: 28px; }
.logo-mark.small::before { width: 12px; height: 7px; border-width: 2px; }

/* Nav links */
#nav-links a {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(232,224,208,0.75);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  padding-bottom: 2px;
}
#nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.25s ease;
}
#nav-links a:hover,
#nav-links a:focus { color: var(--primary); }
#nav-links a:hover::after,
#nav-links a:focus::after { width: 100%; }

/* When nav transparent (over hero) — white links */
.site-nav:not(.scrolled) #nav-links a { color: rgba(255,255,255,0.8); }
.site-nav:not(.scrolled) .logo-main { color: #fff; }
.site-nav:not(.scrolled) #nav-cta { background: var(--primary); color: #0D0D0D; }

/* Hamburger */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#mobile-menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
#mobile-menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(13,13,13,0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: max-height 0.35s ease;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu.open { max-height: 480px; }

#mobile-nav-links a {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s ease;
}
#mobile-nav-links a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero-section { min-height: 100vh; }

.hero-bg img { object-position: center; }

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.55) 0%,
    rgba(13,13,13,0.35) 50%,
    rgba(13,13,13,0.85) 100%
  );
}

.hero-diagonal {
  height: 80px;
  background: var(--dark);
  -webkit-clip-path: polygon(0 100%, 100% 0, 100% 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 5;
}

.hero-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1.5px;
  background: var(--primary);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hero-headline { letter-spacing: -0.03em; }

.hero-btn-primary {
  box-shadow: 0 2px 12px rgba(232,160,32,0.2);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(232,160,32,0.3);
}
.hero-btn-secondary:hover { transform: translateY(-2px); }

/* Stats bar */
.hero-stats-bar {
  bottom: 0;
  z-index: 20;
}
.hero-stats-inner {
  background: rgba(28,28,28,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.hero-stat-item {
  padding: 1.5rem 2.5rem;
  text-align: center;
}
.hero-stat-value {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* ---------- About ---------- */
.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img-wrap img {
  transition: transform 0.6s ease;
}
.about-img-wrap:hover img { transform: scale(1.03); }

.about-img-accent {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}

.about-img-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(13,13,13,0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.1rem;
}

/* About stats */
.about-stat-card {
  background: rgba(13,13,13,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.about-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
}
.about-stat-value {
  font-family: 'Archivo', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.04em;
}
.about-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* ---------- Services Zigzag ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.service-row:last-child { border-bottom: none; }

.service-img-cell {
  overflow: hidden;
  height: 400px;
}
.service-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-row:hover .service-img-cell img { transform: scale(1.04); }

.service-text-cell {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--dark);
}
.service-number {
  font-family: 'Archivo', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(232,160,32,0.08);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: -1rem;
}
.service-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

/* Reversed row */
.service-row.reversed .service-img-cell { order: 2; }
.service-row.reversed .service-text-cell { order: 1; }

@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row.reversed .service-img-cell { order: 1; }
  .service-row.reversed .service-text-cell { order: 2; }
  .service-text-cell { padding: 2rem; }
  .service-img-cell { height: 260px; }
}

/* ---------- Equipment ---------- */
.equip-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.equip-img-wrap img { transition: transform 0.6s ease; }
.equip-img-wrap:hover img { transform: scale(1.03); }

.equip-brand-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(13,13,13,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232,160,32,0.35);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.equip-badge-wrap {}
.equip-feature-badge {
  display: inline-block;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.35);
  color: var(--primary);
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  border-radius: 2px;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.attachment-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.attachment-tag:hover { border-color: rgba(232,160,32,0.3); color: var(--text-main); }
.attachment-tag i { color: var(--primary); flex-shrink: 0; }

@media (max-width: 768px) {
  .attachments-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Gallery ---------- */
.gallery-masonry {
  columns: 3;
  column-gap: 0.75rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: background 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(13,13,13,0.5); }

.gallery-caption {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) { .gallery-masonry { columns: 2; } }
@media (max-width: 600px) { .gallery-masonry { columns: 1; } }

/* ---------- Features / Why Us ---------- */
.features-accent-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.features-numbered-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--mid);
  padding: 2rem;
  position: relative;
  transition: background 0.25s ease;
}
.feature-card:hover { background: #222; }

.feature-step {
  font-family: 'Archivo', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(232,160,32,0.12);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: -0.5rem;
}
.feature-icon-wrap {
  width: 36px;
  height: 36px;
  background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.feature-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 640px) { .features-numbered-grid { grid-template-columns: 1fr; } }

/* ---------- CTA Section ---------- */
.cta-overlay {
  background: linear-gradient(
    to right,
    rgba(13,13,13,0.88) 0%,
    rgba(13,13,13,0.7) 100%
  );
}

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  padding: 1.25rem;
  background: rgba(13,13,13,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.contact-card:hover { border-color: rgba(232,160,32,0.25); }

.contact-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-card-value { display: block; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.form-input {
  background: rgba(13,13,13,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.1);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }

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

.form-submit {
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(232,160,32,0.15);
}
.form-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,160,32,0.25);
}
.form-submit:focus { outline: 3px solid rgba(232,160,32,0.4); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form-status.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}
.form-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
}
.form-status.hidden { display: none; }

/* ---------- Footer ---------- */
.footer { background: #0D0D0D; }

#footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}
#footer-links a:hover { color: var(--primary); }

#footer-contact li a,
#footer-contact li span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
#footer-contact li a:hover { color: var(--primary); }
#footer-contact li i { color: var(--primary); width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.whatsapp-float:focus { outline: 3px solid rgba(37,211,102,0.4); }

/* ---------- Scroll to top ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover { background: var(--primary); color: var(--dark); }
.scroll-top-btn:focus { outline: 3px solid rgba(232,160,32,0.4); }

/* ---------- GLightbox overrides ---------- */
.glightbox-clean .gslide-description { background: rgba(13,13,13,0.95); }
.glightbox-clean .gdesc-inner .gslide-title { color: var(--text-main); font-family: 'Archivo', sans-serif; }

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