/* ===== Energo-Flow — Dark & Premium with Warm Copper ===== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

:root {
  --primary: #c8875a;
  --secondary: #0c0c0c;
  --accent: #3d8b8f;
  --dark: #080808;
  --light: #f2efe9;
  --warm: #1a1612;
  --text-light: #8a8a8a;
}

/* ===== LOADER ===== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.loader-inner { width: 120px; }
.loader-bar {
  height: 2px;
  background: var(--primary);
  animation: loaderSlide 1s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes loaderSlide {
  0% { width: 0; margin-left: 0; }
  50% { width: 100%; margin-left: 0; }
  100% { width: 0; margin-left: 100%; }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(12, 12, 12, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  height: 68px;
  border-bottom: 1px solid rgba(200, 135, 90, 0.08);
}
#navbar .nav-link {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
#navbar .nav-link:hover {
  color: var(--primary);
}
#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#navbar .nav-link:hover::after {
  width: 100%;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--secondary);
  overflow-y: auto;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 12, 12, 1) 0%,
    rgba(12, 12, 12, 0.7) 30%,
    rgba(12, 12, 12, 0.3) 60%,
    rgba(12, 12, 12, 0.5) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin-bottom: 24px;
}
.hero-badges {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-badge-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}
.hero-badge-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--primary);
}

/* ===== SERVICES — ALTERNATING ROWS ===== */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
  overflow: hidden;
}
.service-row:nth-child(even) .service-image { order: 2; }
.service-row:nth-child(even) .service-text { order: 1; }

.service-image {
  position: relative;
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-row:hover .service-image img {
  transform: scale(1.05);
}
.service-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.15);
  transition: background 0.5s ease;
}
.service-row:hover .service-image-overlay {
  background: rgba(12, 12, 12, 0);
}
.service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: var(--warm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.service-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 4rem;
  color: rgba(200, 135, 90, 0.1);
  line-height: 1;
  margin-bottom: 8px;
}
.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200, 135, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.service-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.about-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 50%;
  height: 50%;
  border: 1px solid var(--primary);
  border-radius: 4px;
  z-index: -1;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.about-feature:last-child { border-bottom: none; }
.about-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== PROCESS ===== */
.process-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 48px;
  border-left: 1px solid rgba(200, 135, 90, 0.15);
}
.process-item:last-child { padding-bottom: 0; }
.process-item::before {
  content: attr(data-step);
  position: absolute;
  left: -20px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.9rem;
  color: var(--primary);
}
.process-item-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}
.process-item-desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.925rem;
  line-height: 1.6;
  max-width: 440px;
}

/* ===== CTA BANNER ===== */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2) saturate(0.5);
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.6);
}

/* ===== CONTACT ===== */
.contact-section {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 600px;
}
.contact-dark {
  background: var(--dark);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-light {
  background: var(--light);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.3s ease;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item:hover { padding-left: 8px; }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200, 135, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--secondary);
  background: transparent;
  transition: border-color 0.3s ease;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form button {
  margin-top: 12px;
  padding: 16px 48px;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}
.contact-form button:hover {
  background: var(--primary);
  transform: translateY(-1px);
}
.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover { color: var(--primary); }

/* ===== FLOATING PHONE ===== */
.phone-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(200, 135, 90, 0.35);
  transition: all 0.3s ease;
}
.phone-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 135, 90, 0.45);
}

/* ===== SCROLL TOP ===== */
#scroll-top {
  position: fixed;
  bottom: 96px;
  right: 32px;
  z-index: 50;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .service-row { grid-template-columns: 1fr; min-height: auto; }
  .service-image { height: 280px; }
  .service-row:nth-child(even) .service-image { order: 0; }
  .service-row:nth-child(even) .service-text { order: 0; }
  .service-text { padding: 36px 32px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-dark, .contact-light { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .hero-badges { flex-direction: column; gap: 20px; }
  .hero-content { padding-bottom: 60px; }
  .service-text { padding: 28px 24px; }
  .contact-dark, .contact-light { padding: 40px 24px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
