/* ============================================
   EcraneLED.ro - Professional Dark Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --el-bg-primary: #0a0e27;
  --el-bg-secondary: #0d1117;
  --el-bg-tertiary: #0d1b3e;
  --el-bg-card: rgba(255,255,255,0.03);
  --el-accent: #00aaff;
  --el-accent-dark: #0066cc;
  --el-accent-hover: #0077cc;
  --el-text-primary: #ffffff;
  --el-text-secondary: rgba(255,255,255,0.7);
  --el-text-muted: rgba(255,255,255,0.5);
  --el-border: rgba(255,255,255,0.08);
  --el-border-accent: rgba(0,170,255,0.2);
  --el-orange: #ff8c00;
  --el-gradient-accent: linear-gradient(135deg, #00aaff, #0066cc);
  --el-gradient-bg: linear-gradient(135deg, #0a0e27 0%, #0d1b3e 40%, #0a1628 100%);
  --el-radius: 12px;
  --el-radius-lg: 16px;
  --el-shadow: 0 4px 20px rgba(0,0,0,0.3);
  --el-shadow-accent: 0 4px 20px rgba(0,120,255,0.3);
}

/* --- Global Resets for Theme --- */
body {
  background: var(--el-bg-secondary) !important;
  color: var(--el-text-primary);
}

/* --- Hero Sections --- */
.el-hero {
  background: var(--el-gradient-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.el-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,170,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(0,120,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.el-hero-compact {
  min-height: auto;
  padding: 160px 0 100px;
}

/* Hero with background image */
.el-hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.el-hero-bg::before {
  background: linear-gradient(135deg, rgba(10,14,39,0.88) 0%, rgba(13,27,62,0.82) 40%, rgba(10,22,40,0.85) 100%);
}
.el-hero-bg .container {
  position: relative;
  z-index: 2;
}

/* --- Badge --- */
.el-badge {
  display: inline-block;
  background: rgba(0,170,255,0.15);
  border: 1px solid rgba(0,170,255,0.3);
  color: var(--el-accent);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* --- Titles --- */
.el-title {
  color: var(--el-text-primary);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.el-title-hero {
  font-size: 3.2rem;
}
.el-title-section {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.el-title .accent,
.el-title-section .accent {
  background: linear-gradient(90deg, var(--el-accent), var(--el-accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Subtitles --- */
.el-subtitle {
  color: var(--el-text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}
.el-subtitle-hero {
  font-size: 1.2rem;
  max-width: 520px;
  margin-bottom: 36px;
}
.el-subtitle-section {
  margin-bottom: 60px;
}

/* --- Buttons --- */
.el-btn {
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.el-btn-primary {
  background: var(--el-gradient-accent);
  color: #fff !important;
  box-shadow: var(--el-shadow-accent);
}
.el-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0,120,255,0.45);
  color: #fff !important;
}
.el-btn-outline {
  background: transparent;
  color: var(--el-accent) !important;
  border: 2px solid rgba(0,170,255,0.4);
}
.el-btn-outline:hover {
  background: rgba(0,170,255,0.1);
  border-color: var(--el-accent);
  color: var(--el-accent) !important;
}
.el-btn-sm {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* --- Sections --- */
.el-section {
  padding: 100px 0;
}
.el-section-dark {
  background: var(--el-bg-secondary);
}
.el-section-darker {
  background: linear-gradient(180deg, var(--el-bg-primary), var(--el-bg-secondary));
}
.el-section-gradient {
  background: var(--el-gradient-bg);
}

/* --- Cards --- */
.el-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--el-border);
  border-radius: var(--el-radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: all 0.3s ease;
}
.el-card:hover {
  border-color: var(--el-border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.el-card h3, .el-card h4 {
  color: var(--el-text-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.el-card p {
  color: var(--el-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Card with image */
.el-card-img {
  padding: 0;
  overflow: hidden;
}
.el-card-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.el-card-img:hover img {
  transform: scale(1.03);
}
.el-card-img .el-card-body {
  padding: 28px;
}
.el-card-img .el-card-body h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* Accent card */
.el-card-accent {
  background: linear-gradient(135deg, rgba(0,170,255,0.08), rgba(0,100,255,0.04));
  border: 1px solid rgba(0,170,255,0.15);
}

/* --- Icon Box --- */
.el-icon-box {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0,170,255,0.2), rgba(0,100,255,0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  flex-shrink: 0;
}

/* --- Check List --- */
.el-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.el-checklist li {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.el-check::before {
  content: '✓';
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--el-gradient-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* --- Gallery --- */
.el-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.el-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--el-radius);
  border: 1px solid var(--el-border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.el-gallery img:hover {
  border-color: rgba(0,170,255,0.4);
  transform: scale(1.02);
}
.el-gallery-4 {
  grid-template-columns: repeat(4, 1fr);
}
.el-gallery-4 img {
  height: 220px;
}

/* --- Hero Image Grid --- */
.el-hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.el-hero-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--el-radius);
  border: 1px solid var(--el-border-accent);
}
.el-hero-images img.span-2 {
  grid-column: span 2;
  height: 220px;
}

/* --- Spec Rows --- */
.el-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.el-spec-row:last-child {
  border-bottom: none;
}
.el-spec-label {
  color: var(--el-accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.el-spec-value {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- Tables --- */
.el-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--el-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.el-table thead th {
  background: var(--el-gradient-accent);
  color: #fff;
  padding: 16px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: none;
}
.el-table tbody td {
  background: var(--el-bg-card);
  color: rgba(255,255,255,0.85);
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.el-table tbody tr:hover td {
  background: rgba(0,170,255,0.06);
}
.el-table tbody td:first-child {
  color: var(--el-accent);
  font-weight: 600;
  text-align: left;
  padding-left: 20px;
}
.el-price {
  color: var(--el-orange) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

/* --- Banner --- */
.el-banner {
  background: linear-gradient(135deg, rgba(0,170,255,0.12), rgba(0,80,200,0.08));
  border: 1px solid var(--el-border-accent);
  border-radius: var(--el-radius-lg);
  padding: 40px;
  text-align: center;
}
.el-banner h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.el-banner p {
  color: var(--el-text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* --- CTA Section --- */
.el-cta {
  background: linear-gradient(135deg, #0a1628, #0d1b3e);
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.el-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0,170,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.el-cta-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.el-cta-text {
  color: var(--el-text-secondary);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.el-cta-contacts {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.el-cta-contact {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.el-cta-contact a {
  color: var(--el-accent);
  text-decoration: none;
  font-weight: 600;
}
.el-cta-contact a:hover {
  text-decoration: underline;
}

/* --- Feature Columns --- */
.el-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Lightbox --- */
.el-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.el-lightbox.active {
  display: flex;
}
.el-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,170,255,0.2);
}

/* --- Stats --- */
.el-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.el-stat {
  text-align: center;
}
.el-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--el-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.el-stat-label {
  color: var(--el-text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* --- Form styling --- */
.el-form input,
.el-form textarea {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--el-border) !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 14px 18px !important;
  font-size: 0.95rem !important;
  transition: border-color 0.3s ease !important;
}
.el-form input:focus,
.el-form textarea:focus {
  border-color: var(--el-accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0,170,255,0.1) !important;
}
.el-form input::placeholder,
.el-form textarea::placeholder {
  color: var(--el-text-muted) !important;
}
.el-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Footer Override --- */
.el-footer {
  background: #060a1a !important;
  padding: 60px 0 40px;
  border-top: 1px solid var(--el-border);
}
.el-footer h5 {
  color: var(--el-accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.el-footer p, .el-footer a {
  color: var(--el-text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}
.el-footer a:hover {
  color: var(--el-accent);
}
.el-footer-bottom {
  border-top: 1px solid var(--el-border);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: var(--el-text-muted);
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .el-title-hero { font-size: 2.6rem; }
  .el-features-row { grid-template-columns: repeat(2, 1fr); }
  .el-gallery-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .el-title-hero { font-size: 2.2rem; }
  .el-title-section { font-size: 1.8rem; }
  .el-cta-title { font-size: 2rem; }
  .el-hero-images { display: none; }
  .el-gallery { grid-template-columns: 1fr 1fr; }
  .el-gallery-4 { grid-template-columns: 1fr 1fr; }
  .el-section { padding: 60px 0; }
  .el-cta { padding: 60px 0; }
  .el-cta-contacts { flex-direction: column; align-items: center; gap: 16px; }
  .el-features-row { grid-template-columns: 1fr; }
  .el-stats { gap: 30px; }
}
@media (max-width: 576px) {
  .el-title-hero { font-size: 1.8rem; }
  .el-gallery { grid-template-columns: 1fr; }
  .el-gallery-4 { grid-template-columns: 1fr; }
  .el-btn { padding: 12px 24px; font-size: 0.95rem; }
}

/* --- Navbar fix for dark theme --- */
.navbar-fixed-top {
  background: rgba(10, 14, 39, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* --- Cere Oferta navbar button --- */
.el-nav-oferta,
.nav-dropdown .el-nav-oferta {
  color: #ff8000 !important;
  font-weight: 700 !important;
  border: 2px solid rgba(255,255,255,0.85) !important;
  border-radius: 6px !important;
  padding: 7px 30px !important;
  margin: 0 0 0 8px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.2px !important;
  font-size: 0.9rem !important;
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-shadow: none !important;
  filter: none !important;
}
.el-nav-oferta:hover,
.nav-dropdown .el-nav-oferta:hover {
  background: rgba(255,128,0,0.12) !important;
  border-color: #ff8000 !important;
  color: #ff8000 !important;
  text-decoration: none !important;
}

/* --- Schema / SEO structured footer --- */
.el-contact-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.el-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--el-text-secondary);
}
.el-contact-item a {
  color: var(--el-accent);
  text-decoration: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.el-animate {
  animation: fadeInUp 0.6s ease forwards;
}
