/* Paleta de culori definită prin variabile CSS */
  :root {
    --green: #007e7c; /* Verde închis din logo */
    --yellow: #FFD700; /* Galben solar din logo */
    --white: #ffffff;
    --light-green: #e6f9f9;
    --shadow-color: rgba(0, 0, 0, 0.15);
  }


/* Resetări de bază și stil general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}


.logo img {
  height: 50px; /* dimensiune logo */
}
.logo-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.contact-info a:last-child {
  margin-right: 0;
}
.contact-info a:hover {
  text-decoration: underline;
}


/* --- Secțiunea Hero --- */
#hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-content {
  text-align: center;
}
.hero-content h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}
.hero-content p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

/* --- Secțiuni generale (margin/padding) --- */
section:not(#hero) {
  padding: 4em 0;
}
h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: var(--green);
}
h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: var(--green);
}
p {
  margin-bottom: 1em;
}

/* --- Secțiunea Calculator Rentabilitate --- */
.calc-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}
.calc-inputs {
  flex: 1 1 300px;
}
.calc-results {
  flex: 1 1 300px;
  background: var(--light-green);
  padding: 1em;
  border-radius: 8px;
}
.calc-results h3 {
  margin-top: 0;
  margin-bottom: 1em;
}
.calc-results p {
  margin-bottom: 0.5em;
  font-weight: 500;
}

/* --- Formular Cerere Ofertă --- */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1em;
}
.form-field {
  flex: 1;
  min-width: 200px;
}
.form-field label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 600;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 3px rgba(0, 100, 0, 0.3);
}
button.btn {
  padding: 0.6em 2em;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


/* Animație de puls la hover */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

/* Aplicare animatie doar la hover */
.btn-primary:hover,
.btn-secondary:hover {
  transform: scale(1.05);
  animation: pulse 0.6s ease-out;
  filter: brightness(1.1);
}

.btn-primary:hover {
  background: #e0c200; /* galben-auriu puțin mai închis la hover */
}


/* --- Placeholder hartă & recenzii Google --- */
.map-placeholder {
  border: 2px dashed #ccc;
  padding: 2em;
  text-align: center;
}

/* --- Stilizare slider (input range) --- */
input[type=range] {
  width: 100%;
  margin: 0.5em 0 1em;
  cursor: pointer;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  background: #ccc;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--green);
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin-top: -6px; /* centrează butonul pe track */
  cursor: pointer;
}
input[type=range]::-moz-range-track {
  height: 4px;
  background: #ccc;
}
input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--green);
  border: 2px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
}

/* --- Media Queries: stil pentru dispozitive mobile --- */
@media (max-width: 768px) {
  .navbar .container {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
    text-align: center;
  }

  .navbar .contact-info {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    font-size: 0.85em;
  }

  .navbar .logo {
    order: 1;
    height: auto;
    overflow: visible;
  }

  .navbar .logo img {
    transform: scale(1.3);
    margin-top: 0.2em;
  }

  .navbar .nav-buttons {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }

  .navbar .nav-buttons .btn {
    padding: 0.6em 1em;
    font-size: 0.95em;
    width: 100%;
    max-width: 220px;
  }
}

/* HERO - CAROUSEL CU IMAGINI */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-slideshow img.active {
  opacity: 1;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1); /* fundal semitransparent */
  backdrop-filter: blur(10px); /* efect de sticlă mată */
  -webkit-backdrop-filter: blur(10px); /* suport Safari */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5em 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2em;
}

.navbar .logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1em;
}

.contact-info a {
  color: white;
  margin-right: 1.2em;
  font-size: 0.9em;
  text-decoration: none;
}

.nav-links .btn {
  font-weight: bold;
  padding: 0.5em 1em;
  border-radius: 6px;
}
/* === NAVBAR GLASS EFFECT + STRUCTURĂ MODERNĂ === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4); /* Negru transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 0.8em 0;
}

.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
  color: white;
}

/* === STÂNGA: Informații contact === */
.navbar .contact-info {
  justify-self: start;
}
.navbar .contact-info a {
  color: #fff;
  font-size: 0.85em;
  margin-right: 1em;
  text-decoration: none;
}
.navbar .contact-info a:hover {
  text-decoration: underline;
}

/* === CENTRU: Logo === */
.navbar .logo {
  height: 40px; /* păstrează înălțimea dorită pentru navbar */
  overflow: hidden; /* ascunde orice depășește */
  display: flex;
  align-items: center;
}

.navbar .logo img {
  transform: scale(2); /* mărește vizual iconul */

}



/* === DREAPTA: Butoane === */
.navbar .nav-buttons {
  justify-self: end;
  display: flex;
  gap: 0.5em;
}
.navbar .nav-buttons .btn {
  background: var(--gold);
  color: var(--green);
  font-weight: 600;
  padding: 0.4em 1em;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  text-decoration: none;
  transition: background 0.3s;
}
.navbar .nav-buttons .btn:hover {
  background: #e0c200;
  color: var(--green);
}
  /* Beneficii */
    .benefits {
      background: white;
      padding: 4rem 1rem;
      text-align: center;
    }
    .benefits h2 {
      font-size: 2rem;
      color: var(--green);
      margin-bottom: 2rem;
    }
    .benefit-list {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
    }
    .benefit {
      flex: 1 1 200px;
      background: var(--light);
      border-radius: 10px;
      padding: 2rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .benefit img {
      height: 50px;
      margin-bottom: 1rem;
    }
    .benefit h3 {
      color: var(--green);
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }
  .section-grey {
    background-color: #f8f9fa;
    padding: 4em 0;
  }
  .section-white {
    background-color: #fbf4e5;
    padding: 4em 0;
  }
  .section-title {
    text-align: center;
    font-size: 2rem;
    color: #0b8384;
    margin-bottom: 2rem;
  }.section-grey {
    background-color: #f8f9fa;
    padding: 4em 0;
  }

  .section-title {
    text-align: center;
    font-size: 2rem;
    color: #0b8384;
    margin-bottom: 2rem;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(11, 131, 132, 0.6);
    }
    70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(11, 131, 132, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(11, 131, 132, 0);
    }
  }

  .btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  font-size: 1em;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: #096e6f;
  box-shadow: 0 4px 12px rgba(11, 131, 132, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-secondary:hover {
  background-color: var(--green);
  color: #fff;
}

  .btn {
    display: inline-block;
    padding: 0.9em 1.7em;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 20px var(--shadow-color);
  }

  .btn-primary {
    background-color: var(--yellow);
    color: var(--green);
    border: none;
  }

  .btn-primary:hover {
    background-color: #e6c200;
    color: #000;
    transform: translateY(-3px) scale(1.03);
  }

  .btn-secondary {
    background-color: var(--white);
    color: var(--green);
    border: 2px solid var(--green);
  }

  .btn-secondary:hover {
    background-color: var(--green);
    color: var(--white);
    transform: translateY(-3px) scale(1.03);
  }
  .image-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-wrapper img {
  height: 60px;
  object-fit: contain;
}

.garantie-badge {
  background-color: var(--yellow);
  color: var(--green);
  font-weight: bold;
  padding: 1em 0.7em;
  font-size: 0.85em;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: pulse 1.5s infinite ease-in-out;
  height: 50px;
}
.image-wrapper.large-image {
  max-width: 300px;
  position: relative;
  text-align: center;
}

.image-wrapper.large-image img {
  width: 100%;
  border-radius: 10px;
  border: 4px solid white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.image-wrapper.solar-highlight {
  position: relative;
  max-width: 100%;
  margin: 1rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: math;
}

.image-wrapper.solar-highlight img {
  width: 100%;
  display: block;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 126, 124, 0.85);
  color: white;
  width: 100%;
  padding: 1rem;
  text-align: center;
}

.image-overlay h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: bold;
}

.image-overlay p {
  margin: 0.3rem 0 0.8rem;
  font-size: 1rem;
}

.image-overlay .garantie-badge {
  background-color: var(--yellow);
  color: var(--green);
  font-weight: bold;
  padding: 0.5em 1.2em;
  font-size: 0.9em;
  border-radius: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: inline-block;
  margin-top: 0.5rem;
}


.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.equipment-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.equipment-card:hover {
  transform: translateY(-6px);
}

.equipment-card h3 {
  color: var(--green);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-align: center;
}

.equipment-card ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-top: 1rem;
}
.equipment-card p {
  margin-top: 1rem;
}

/* Animatie si stil pentru GARANTIE */
.garantie-highlight {
  display: inline-block;
  margin: 1rem auto 0;
  padding: 0.6em 1.4em;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--green);
  background: var(--yellow);
  border-radius: 30px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  animation: bounceGlow 2s infinite;
  text-align: center;
}

@keyframes bounceGlow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 1);
  }
}
.equipment-card img[alt="Panouri Canadian Solar"] {
  max-height: 80px;

}
.site-constructie {
  background: #f8d7da;
  color: #721c24;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  border-bottom: 2px solid #f5c6cb;
  position: relative;
  z-index: 9999;
}
.ofertaP-btn-fix {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.ofertaP-btn-fix:hover {
  background: #0056b3;
}
/* ========== Formular Ofertă General ========== */

.offer-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  flex: 100%;
}

label {
  margin-bottom: 6px;
  font-weight: 500;
}

input,
select,
textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
}

textarea {
  resize: vertical;
}

.btn-primary {
  background-color: #00796B;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #004d40;
}

.note {
  font-size: 14px;
  color: #555;
}

/* ========== Previzualizare imagini ========== */

#preview-poze img {
  width: 150px;
  height: auto;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#preview-poze button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
}

#preview-poze div {
  position: relative;
}

#clear-all {
  margin-top: 10px;
  background-color: #e53935;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#clear-all:hover {
  background-color: #c62828;
}
  .flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

  .map,
  .reviews {
    flex: 1 1 500px; /* se vor adapta până la minim 500px */
    min-width: 300px; /* protecție pentru ecrane mici */
  }

  iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .map iframe {
    height: 450px;
  }