/* ============================================================
   ELCOST — Industrial Equipment Website
   ============================================================ */

:root {
  --primary:       #1a3a5c;
  --primary-dark:  #0d2240;
  --accent:        #f5a623;
  --accent-light:  #ffd166;
  --light:         #f0f7ff;
  --border:        #d6e6f5;
  --text:          #1e2d3d;
  --text-muted:    #5a7a96;
  --white:         #ffffff;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 12px rgba(26, 58, 92, 0.08);
  --shadow:        0 6px 28px rgba(26, 58, 92, 0.13);
  --shadow-lg:     0 16px 48px rgba(26, 58, 92, 0.18);
  --transition:    0.25s ease;
  --navbar-h:      72px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: min(1160px, 100% - 2 * 24px);
  margin-inline: auto;
}

/* ── Reusable ── */
.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p  { color: var(--text-muted); font-size: 1.05rem; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}
.nav-logo img { transition: opacity var(--transition); }
.nav-logo:hover img { opacity: .85; }

.nav-menu {
  display: flex;
  gap: 36px;
}
.nav-menu a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .03em;
  position: relative;
  transition: color var(--transition);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('elcost.jpg') center 40% / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 35%, rgba(10,34,64,.62) 0%, transparent 100%),
    linear-gradient(160deg, rgba(13,34,64,.82) 0%, rgba(26,58,92,.72) 50%, rgba(13,34,64,.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 120px 24px 80px;
  margin-inline: auto;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(245,166,35,.18);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--accent-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent-light);
}
.hero-sub {
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-bottom: 36px;
  max-width: 580px;
  margin-inline: auto;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0%   { top: 6px;  opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--primary);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  font-weight: 500;
}

/* ── About ── */
.about {
  padding: 100px 0;
  background: var(--white);
}

/* ── PAGE HEADER (subpages) ── */
.page-header {
  background: var(--primary);
  padding: calc(var(--navbar-h) + 52px) 0 48px;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin: 0;
}
.breadcrumb {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  margin: 0 0 12px;
}
.breadcrumb a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--white); }

/* ── Active nav link ── */
.nav-menu a.active {
  color: var(--accent);
}

/* ── SOFTWARE PAGE ── */
.software-section {
  padding: 80px 0 100px;
  background: var(--white);
}
.sw-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 48px 52px;
  box-shadow: var(--shadow);
}
.sw-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
  margin-bottom: 20px;
}
.sw-icon svg { width: 100%; height: 100%; }
.sw-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sw-title-row h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--primary);
}
.sw-version {
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.sw-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 4px 0 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sw-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.sw-body h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.sw-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.sw-features li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: .95rem;
}
.sw-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.sw-download {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.btn-download svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sw-note {
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
}
@media (max-width: 700px) {
  .sw-card { padding: 28px 20px; }
  .sw-features { grid-template-columns: 1fr; }
}

/* ── MAP ── */
.map-wrap {
  margin-top: 56px;
}
.map-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.map-wrap iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* ── PREZENTARE GENERALA ── */
.overview {
  padding: 100px 0;
  background: var(--light);
}
.overview-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.overview-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text .section-tag { margin-bottom: 14px; }
.about-text h2 { margin-bottom: 22px; }
.about-text p  { color: var(--text-muted); margin-bottom: 16px; font-size: 1.02rem; }

.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23f5a623'/%3E%3Cpolyline points='5,10 8.5,13.5 15,7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

.about-visual { position: relative; }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(.9) saturate(1.1);
}
.about-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.about-badge svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.about-badge strong { display: block; font-size: .92rem; color: var(--primary); font-weight: 700; }
.about-badge span   { font-size: .78rem; color: var(--text-muted); }

/* ── Products ── */
.products {
  padding: 100px 0;
  background: var(--light);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.product-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
}
.product-card--wide .product-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.product-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--light), #d4eaff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.product-card:hover .product-icon {
  background: linear-gradient(135deg, rgba(245,166,35,.15), rgba(245,166,35,.08));
}
.product-icon svg {
  width: 28px; height: 28px;
  color: var(--primary);
  transition: color var(--transition);
}
.product-card:hover .product-icon svg { color: var(--accent); }

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.product-card p {
  color: var(--text-muted);
  font-size: .9rem;
  flex: 1;
  line-height: 1.6;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 700;
  font-size: .88rem;
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}
.card-cta span { transition: transform var(--transition); }
.card-cta:hover { color: var(--primary); }
.card-cta:hover span { transform: translateX(4px); }

/* ── Contact ── */
.contact {
  padding: 100px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-item strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.6;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }

/* Contact Form */
.contact-form {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,.10);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

.contact-form .btn { align-self: flex-start; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1b7f47;
  font-weight: 600;
  font-size: .94rem;
  padding: 12px 16px;
  background: #edfaf3;
  border: 1.5px solid #a3d9bc;
  border-radius: 8px;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--primary-dark);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { margin-bottom: 16px; }
.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
}
.footer-bottom p {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-img-wrap img { height: 320px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--wide { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 64px; }

  .nav-menu {
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
  }
  .nav-menu.open {
    max-height: 240px;
    padding: 16px 0;
  }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 14px 24px; }
  .hamburger { display: flex; }

  .hero-content h1 { font-size: 2rem; }
  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 1 1 48%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .products-grid { grid-template-columns: 1fr; }
  .product-card--wide { grid-column: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about, .products, .contact { padding: 68px 0; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 24px 20px; }
}
