/* ============================================
   DURCHMONT s.r.o. - Custom Styles
   ============================================ */

/* CSS Variables */
:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #152a45;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-background: #f8f9fa;
  --color-foreground: #1f2937;
  --color-muted: #6b7280;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-foreground);
  background-color: var(--color-background);
}

/* Typography */
.text-accent {
  color: var(--color-accent) !important;
}

.text-primary-custom {
  color: var(--color-primary) !important;
}

/* Header */
.header-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.header-custom.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-custom .navbar-brand {
  color: white;
  transition: color 0.3s ease;
}

.header-custom.scrolled .navbar-brand {
  color: var(--color-primary);
}

.header-custom .nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.header-custom.scrolled .nav-link {
  color: var(--color-foreground);
}

.header-custom .nav-link:hover {
  color: var(--color-accent);
}

.header-custom .navbar-toggler-icon {
  filter: invert(1);
}

.header-custom.scrolled .navbar-toggler-icon {
  filter: none;
}

/* Buttons */
.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: white;
}

.btn-outline-light-custom {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('hero-construction.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(21, 42, 69, 0.9) 100%);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
}

.badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Sections */
.section-padding {
  padding: 5rem 0;
}

.section-padding-sm {
  padding: 3rem 0;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 40px rgba(30, 58, 95, 0.1);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(30, 58, 95, 0.05) 100%);
  border-radius: 0.75rem;
}

/* Why Choose Us Section */
.why-choose-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Trust Cards */
.trust-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(30, 58, 95, 0.05) 100%);
  border-radius: 0.75rem;
  margin: 0 auto 1rem;
}

/* Gallery Section */
.gallery-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(30, 58, 95, 0.15);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Contact Section */
.contact-info-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 1rem;
  color: white;
}

.contact-info-box h3 {
  color: white !important;
}

.contact-info-box .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.contact-info-box .text-dark {
  color: white !important;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
}

.contact-icon-wrapper .text-primary-custom {
  color: var(--color-accent) !important;
}

.contact-link {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-form-box {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-control {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Footer */
.footer-custom {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Utilities */
.w-100 {
  width: 100%;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 80px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .benefits-list {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .benefit-item {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .why-choose-box {
    padding: 1.5rem;
  }
}

/* Modal */
#galleryModal .modal-content {
  border: none;
  border-radius: 1rem;
}

#galleryModal .modal-body img {
  max-height: 80vh;
  object-fit: contain;
}