/* ====================================
   CLEAN & INDUSTRIAL DESIGN SYSTEM (SCOPED)
   ==================================== */
.es-wrapper, .es-wrapper * {
  box-sizing: border-box;
}

:root {
  --enerset-blue: #0F172A;
  --enerset-red: #E51C3C;
  --enerset-red-hover: #C41E3A;
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --radius-std: 8px;
  --radius-l: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --container-width: 1200px;
}

/* Wrapper */
.es-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.es-wrapper img { max-width: 100%; height: auto; display: block; }
.es-wrapper a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
.es-wrapper ul { list-style: none; padding: 0; margin: 0; }

/* Layout Utilities */
.es-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.es-section { padding: 80px 0; }
.es-section-alt { background-color: #F1F5F9; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

/* Animations */
.es-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.es-reveal.visible { opacity: 1; transform: translateY(0); }

/* Headings */
.es-heading { font-weight: 800; color: var(--enerset-blue); line-height: 1.2; margin-bottom: 16px; }
.es-heading-lg { font-size: 2.5rem; }
.es-heading-md { font-size: 2rem; text-align: center; }
.es-subtitle { text-align: center; color: var(--text-muted); font-size: 1.125rem; max-width: 700px; margin: 0 auto 48px auto; }

/* ====================================
   HERO SECTION (CENTERED + FLEX)
   ==================================== */
.es-hero { 
  background-color: var(--enerset-blue);
  background-image: url('https://enerset-shop.rs/wp-content/uploads/2026/02/snosmelting-oppkjorsel-full_1590x894.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; 
  padding: 120px 0; 
  position: relative; 
  overflow: hidden;
  min-height: 600px; 
  display: flex;
  align-items: center;
  margin-top: -1px;
}

.es-hero::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
  pointer-events: none; 
}

/* OKVIR CENTRIRAN */
.es-hero-frame {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85); 
  backdrop-filter: blur(12px);         
  -webkit-backdrop-filter: blur(12px);
  padding: 48px;
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 800px; /* Malo širi okvir */
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);

  /* CENTRIRANJE */
  margin-left: auto;
  margin-right: auto;
  
  /* FLEXBOX ZA ELEMENTE */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* BACK LINK LEVO */
.es-back-link {
  align-self: flex-start; /* Gura ga levo */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.es-back-link:hover {
  color: #fff;
  transform: translateX(-4px);
}

.es-badge { 
  display: inline-block; 
  background: rgba(255,255,255,0.1); 
  border: 1px solid rgba(255,255,255,0.2); 
  padding: 6px 12px; 
  border-radius: 4px; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: #E2E8F0; 
  margin-bottom: 24px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

.es-hero h1 { 
  font-size: clamp(2rem, 3.5vw, 3.2rem); 
  font-weight: 900; 
  margin: 0 0 24px 0; 
  line-height: 1.1; 
  color: #fff; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.es-hero p { 
  font-size: 1.125rem; 
  color: #CBD5E1; 
  margin-bottom: 0; 
  line-height: 1.7;
}

/* Benefits Grid */
.es-benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.es-benefit-item { display: flex; align-items: flex-start; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-std); transition: transform 0.2s, box-shadow 0.2s; }
.es-benefit-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #cbd5e1; }
.es-num { font-size: 2.5rem; font-weight: 900; color: rgba(15, 23, 42, 0.08); line-height: 1; flex-shrink: 0; }
.es-benefit-content h3 { margin: 0 0 8px 0; font-size: 1.25rem; font-weight: 700; color: var(--enerset-blue); }
.es-benefit-content p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Products Grid */
.es-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.es-product-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-std); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.es-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--enerset-red); }
.es-prod-img-box { height: 200px; overflow: hidden; position: relative; background: #f1f5f9; }
.es-prod-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.es-product-card:hover .es-prod-img-box img { transform: scale(1.05); }
.es-prod-tag { position: absolute; top: 12px; right: 12px; background: rgba(15, 23, 42, 0.9); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.es-prod-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.es-prod-body h3 { margin: 0 0 10px 0; font-size: 1.25rem; font-weight: 700; color: var(--enerset-blue); }
.es-prod-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.es-features-list { margin-bottom: 24px; }
.es-features-list li { position: relative; padding-left: 18px; font-size: 0.85rem; color: #475569; margin-bottom: 6px; }
.es-features-list li::before { content: "•"; color: var(--enerset-red); position: absolute; left: 0; font-weight: bold; }
.es-btn { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; padding: 12px 20px; background-color: transparent; border: 2px solid var(--enerset-blue); color: var(--enerset-blue); font-weight: 700; font-size: 0.9rem; border-radius: 6px; cursor: pointer; }
.es-btn:hover { background-color: var(--enerset-blue); color: #fff; }

/* Sigmian List Styling */
.es-sigmian-wrapper { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-std); padding: 30px; margin-top: 40px; }
.es-sigmian-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 15px; }
.es-sigmian-header h3 { font-size: 1.5rem; font-weight: 800; color: var(--enerset-blue); margin: 0; }
.es-sigmian-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.es-sigmian-col h4 { color: var(--enerset-red); font-weight: 700; font-size: 1.1rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.es-sigmian-list { font-size: 0.85rem; color: #475569; }
.es-sigmian-list li { padding: 6px 0; border-bottom: 1px dashed #E2E8F0; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.es-sigmian-list li:last-child { border-bottom: none; }
.es-sigmian-list strong { color: var(--enerset-blue); font-weight: 600; }
.es-sigmian-tag { font-size: 0.7rem; background: #F1F5F9; padding: 2px 6px; border-radius: 4px; color: #64748B; font-weight: 600; }

/* Tech Grid */
.es-tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.es-tech-item { background: #fff; padding: 24px; border-radius: var(--radius-std); border-left: 4px solid var(--enerset-red); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.es-tech-item h4 { margin: 0 0 8px 0; color: var(--enerset-blue); font-size: 1.1rem; font-weight: 700; }
.es-tech-item p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* CTA Footer */
.es-cta { background-color: #1E293B; color: #fff; text-align: center; padding: 60px 24px; border-radius: var(--radius-l); margin-top: 60px; }
.es-cta h2 { font-size: 2rem; margin: 0 0 16px 0; color: #fff; }
.es-cta p { color: #94A3B8; max-width: 600px; margin: 0 auto 32px auto; }
.es-btn-primary { display: inline-block; padding: 14px 32px; background-color: var(--enerset-red); color: #fff; font-weight: 700; border-radius: 6px; font-size: 1.1rem; }
.es-btn-primary:hover { background-color: var(--enerset-red-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229, 28, 60, 0.4); }

/* Responsive */
@media (max-width: 968px) {
  /* .es-hero-grid removed */
  .es-products-grid { grid-template-columns: repeat(2, 1fr); }
  .es-sigmian-grid { grid-template-columns: 1fr; gap: 20px; }
  .es-hero { padding: 80px 0; min-height: auto; }
  .es-hero-frame { padding: 32px; }
}
@media (max-width: 640px) {
  .es-benefits-grid { grid-template-columns: 1fr; }
  .es-products-grid { grid-template-columns: 1fr; }
  .es-tech-grid { grid-template-columns: 1fr; }
  .es-hero-frame { padding: 24px; }
}