/* INDUTECH Apparatebau GmbH | Ergil-inspired Corporate Design */

:root {
  /* Primary - INDUTECH Green */
  --primary: #00A94F;
  --primary-light: #00C65E;
  --primary-dark: #008C3E;
  --primary-muted: rgba(0, 169, 79, 0.1);

  /* Dark Green (footer, dark sections) */
  --dark-green: #00572D;
  --darker-green: #004D25;

  /* Neutrals — Ergil palette */
  --white: #FFFFFF;
  --light-gray: #f8f8f8;
  --border-color: #e6e6e6;
  --hover-bg: #eeeeee;
  --text-dark: #333333;
  --text-body: #444444;
  --text-muted: #666666;
  --text-light: #999999;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--white);
  color: var(--text-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text-dark);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal - opacity only */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.active {
  opacity: 1;
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(9) { transition-delay: 0.45s; }

/* ====== NAVBAR - Ergil style: white bg, simple links, color change on hover ====== */
.nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-premium.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nav-logo-img {
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

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

/* No underline effects — Ergil style */
.nav-link::after {
  display: none;
}

/* ====== BUTTONS - Ergil style ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(0, 169, 79, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--primary);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ====== HERO - Full-width image banner with overlay ====== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,57,29,0.85) 0%, rgba(0,57,29,0.5) 60%, rgba(0,57,29,0.3) 100%);
}

/* ====== PRODUCT CARDS - Modern overlay style ====== */
.pcard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.pcard-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.4s ease;
}

.pcard:hover .pcard-img img {
  transform: scale(1.1);
  filter: brightness(0.55);
}

/* Title bar — sits at the bottom as a persistent overlay */
.pcard-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  transition: opacity 0.35s ease;
  z-index: 3;
}

.pcard:hover .pcard-bar {
  opacity: 0;
}

.pcard-bar i {
  color: var(--primary);
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.pcard-bar h3 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Hover detail panel — fades in over the darkened image */
.pcard-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.75rem;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

.pcard:hover .pcard-detail {
  opacity: 1;
}

.pcard-detail p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.pcard:hover .pcard-detail p {
  transform: translateY(0);
  opacity: 1;
}

.pcard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  transition: all 0.3s ease;
  transform: translateY(12px);
  opacity: 0;
}

.pcard:hover .pcard-link {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.18s;
}

.pcard-link:hover {
  background: var(--primary);
  color: var(--white);
}

.pcard-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.pcard:hover .pcard-link i {
  transform: translateX(3px);
}

/* ====== CAPABILITY CARDS - Ergil stat boxes ====== */
.cap-card-light {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cap-card-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cap-card-number {
  font-family: 'Open Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.cap-card-label-light {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cap-card-desc-light {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* ====== SECTION LABEL ====== */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ====== STAT PILLS ====== */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.625rem 1.25rem;
  transition: all 0.3s ease;
}

.stat-pill:hover {
  border-color: rgba(0, 169, 79, 0.3);
}

/* ====== CONTACT ITEMS ====== */
.contact-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.contact-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ====== FOOTER ====== */
.footer {
  background: var(--dark-green);
}

.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

/* ====== BACK TO TOP ====== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  border-radius: 6px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 169, 79, 0.2);
}

/* ====== MOBILE MENU ====== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  padding: 5rem 2rem 2rem;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

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

/* ====== GALLERY MODAL ====== */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,57,29,0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 6px;
}

.gallery-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-title {
  position: absolute;
  top: 24px;
  left: 24px;
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.gallery-counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100% - 140px);
  padding: 0 80px;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.gallery-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.gallery-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 90vw;
  overflow-x: auto;
  border-radius: 8px;
}

.gallery-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 4px;
}

.gallery-thumb:hover {
  opacity: 0.7;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

/* ====== LANGUAGE DROPDOWN ====== */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-menu {
  min-width: 160px;
  z-index: 100;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown.open .fa-chevron-down {
  transform: rotate(180deg);
}

.fa-chevron-down {
  transition: transform 0.3s ease;
}

.lang-btn.active {
  background: rgba(0, 169, 79, 0.08);
  color: var(--primary) !important;
}

/* ====== UTILITY ====== */
.gradient-text {
  background: linear-gradient(135deg, #CA8A04 0%, #EAB308 50%, #CA8A04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .gallery-nav.prev { left: 10px; }
  .gallery-nav.next { right: 10px; }

  .gallery-main {
    padding: 0 50px;
  }

  .hero-banner {
    min-height: 400px;
  }
}
