/* SI Volt – minimalist modern CSS */

/* ---------- VARIABILE ---------- */
:root {
  --brand: #0ea5e9;
  --brand-dark: #0369a1;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 25px -12px rgba(2, 132, 199, 0.35);
}

/* ---------- REGLAJ GLOBAL ---------- */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- HEADER MODERN (glass) ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled{
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px -16px rgba(15,23,42,0.2);
  border-color: rgba(15,23,42,0.08);
}
.site-header .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .85rem 1rem;
  gap: .6rem;
}

/* Logo centrat, curat */
.brand{
  font-weight: 800;
  color: #0f172a;            /* text închis, modern */
  font-size: 1.6rem;
  letter-spacing: .3px;
}
.brand img {
    height: 70px;
}
/* Nav pastile, neutre */
.nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.nav a{
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 999px;       /* pastilă */
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .2px;
  color: #0f172a;             /* fără albastru */
  background: rgba(17,24,39,0.06);      /* slate-900 / 5% */
  border: 1px solid rgba(17,24,39,0.10);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}
.nav a:hover{
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-1px);
  border-color: rgba(17,24,39,0.18);
  box-shadow: 0 10px 20px -12px rgba(15,23,42,0.2);
}

/* pe mobil micșorăm ușor spațiile */
@media (max-width: 640px){
  .site-header .container{ padding: .7rem .75rem; gap: .5rem; }
  .brand{ font-size: 1.4rem; }
  .nav{ gap: .5rem; }
  .nav a{ padding: .45rem .8rem; font-size: .93rem; }
}


/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('https://www.levelectricien.com/wp-content/uploads/2025/03/cropped-electricien-villeurbanne-mise-aux-normes-depannage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0.25rem 0;
}
.hero .lead {
  font-size: clamp(1rem, 2.3vw, 1.5rem);
  opacity: 0.95;
}
.btn {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: var(--shadow);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: #ecfeff;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #075985;
  margin-bottom: 2rem;
}

/* ---------- SERVICES ---------- */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.35);
  transition: 0.25s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(2, 132, 199, 0.35);
}
.card .icon {
  color: var(--brand);
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.text-lg {
  font-size: 1.125rem;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}

/* ---------- GALERIE ---------- */
.slider {
  position: relative;
}
.slides {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.slide {
  display: none;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.slide.active {
  display: block;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.slide-btn:hover {
  background: rgba(14, 165, 233, 0.9);
}
.slide-btn.prev {
  left: 8px;
}
.slide-btn.next {
  right: 8px;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 0;
  cursor: pointer;
}
.dot.active {
  background: var(--brand);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-form {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.25);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form .hidden {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 1.25rem;
  margin-top: 2rem;
}

/* ---------- galerie deschidere ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
}

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

/* ---------- ANIMAȚII ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }
}
