/* Fundal pe toată pagina + text alb */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  position: relative;
  background: url("./images/background.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Overlay global ușor pentru contrast general */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: -1;
}

/* ===== Header (CENTRAT) ===== */
.main-header {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;       /* logo sus, meniu dedesubt */
  align-items: center;          /* CENTRARE pe orizontală */
  justify-content: center;      /* CENTRARE pe verticală */
  gap: 12px;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;               /* logo centrat */
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.9));
  transition: transform .3s ease, filter .3s ease;
}
.logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 15px rgba(255,255,255,1));
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;      /* meniul CENTRAT */
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  font-weight: bold;
  color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  transition: all 0.3s ease-in-out;
}
nav a:hover {
  color: #ffff99 !important;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
  transform: scale(1.05);
}

/* Language menu (mutat spre centru pe mobile) */
.lang-menu {
  display: flex;
  gap: 12px;
  position: absolute;
  right: 24px;
  top: 14px;
  z-index: 10;
}
@media (max-width: 640px) {
  .lang-menu { position: static; order: 3; }
}

.lang-btn {
  color: #fff;
  font-weight: 700;
  background: rgba(0,0,0,0.25);
  padding: 5px 13px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.lang-btn.active, .lang-btn:hover { background: #0072c6; }

.hidden { display: none !important; }

/* ===== Hero (CENTRAT) ===== */
.hero {
  min-height: 60vh;
  display: grid;
  place-items: center;          /* CENTRARE completă */
  text-align: center;
  padding: 40px 16px;
}
.overlay h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.overlay p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #f3f6f9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* ===== Secțiuni (CENTRATE) ===== */
.section {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 30px auto;     /* CENTRARE container */
  padding: 40px 16px;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #fff;
  text-align: center;            /* text centrat în secțiune */
}

/* Lista servicii (cutie centrată, text aliniat frumos la stânga) */
.services-list {
  display: inline-block;         /* îngustează la conținut ca să se poată centra */
  text-align: left;              /* dar elementele rămân aliniate corect */
  margin: 0 auto;
  padding-left: 0;
}
.services-list li {
  list-style: none;
  color: #fff;
  padding: 8px 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

/* ===== Galerie (grid CENTRAT + lightbox) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  justify-items: center;         /* fiecare card centrat în propria coloană */
  justify-content: center;       /* întregul grid centrat în container */
}
.gallery-card picture, .gallery-card img { display: block; width: 100%; }
.gallery-card img {
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-card img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
}

/* Paginare (CENTRATĂ) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;       /* CENTRAT */
  gap: 12px;
  margin: 28px 0 10px;
}
.page-btn {
  background: rgba(0,0,0,.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.page-btn:disabled { opacity: .5; cursor: not-allowed; }
.page-info { opacity: .9; }

/* Lightbox (CENTRAT) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  justify-content: center;       /* CENTRAT */
  align-items: center;           /* CENTRAT */
  padding: 24px;
  text-align: center;            /* text în centru */
}
.lightbox[aria-hidden="false"], .lightbox:target { display: flex; }

.lb-content {
  max-width: 95vw;
  max-height: 85vh;
  text-align: center;
  position: relative;
  margin: 0 auto;                /* CENTRAT */
}
.lb-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  transition: opacity .2s ease;
}

/* Titlu + descriere în alb (CENTRAT) */
.lb-content figcaption {
  margin-top: 14px;
  color: #fff; 
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.lb-content h3 {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 700;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 2.2rem;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  opacity: .9;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  opacity: .9;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }

/* Buton Download */
.btn-download {
  display: inline-block;
  margin-top: 12px;
  background: #0072c6;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.btn-download:hover { background: #005a99; }

/* Spinner (preloader) */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 1s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Contact (CENTRAT) ===== */
.contact-section {
  background: transparent;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;                /* CENTRAT */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
}
.contact-info {
  display: grid;
  gap: 10px;
  justify-items: center;         /* CENTRAT link-urile */
  margin-bottom: 20px;
}
.contact-item {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.contact-item:nth-child(2) { background: #0072c6; } /* Email */
.contact-item:nth-child(3) { background: #128C7E; } /* WhatsApp */
.contact-item:hover { opacity: .85; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 800px;              /* câmpurile nu se duc pe toată lățimea ecranului */
  margin-left: auto;             /* CENTRARE */
  margin-right: auto;            /* CENTRARE */
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact-form .btn-primary {
  background: #0072c6;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form .btn-primary:hover { background: #005a99; }

/* Footer (CENTRAT) */
.footer {
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
  padding: 20px 0 12px 0;
  margin-top: 30px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 700px) {
  .services-list { display: block; text-align: center; }
}
