/* --- HERO & CAROUSEL --- design diagonal cu două culori */
.project-hero {
  background: #1e54c0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 0;
  min-height: 500px;
  max-width: 100vw;
}
.project-hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0 48px 24px;
  gap: 36px;
  position: relative;
  min-height: 500px;
}
.project-hero-content {
  flex: 1 1 0;
  min-width: 320px;
  max-width: 40%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
  position: relative;
  padding-right: 20px;
}

.project-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.project-hero-image img,
.project-hero-image picture,
.project-hero-image .wp-post-image,
.project-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(30,84,192,0.18);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  min-height: 400px;
  background: #eaf0fa;
}

/* Container pentru conținutul principal */
.project-content.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
}

.project-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30,84,192,0.08);
  margin-bottom: 40px;
  padding: 32px 24px;
  transition: box-shadow 0.2s;
}
.with-bg { background: #fff; }
.with-radius { border-radius: 18px; }
.with-shadow { box-shadow: 0 8px 32px rgba(30,84,192,0.08); }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #eaf0fa;
}
/* Testimonials modern */
.testimonials-list blockquote {
  background: #f8faff;
  border-left: 4px solid #1e54c0;
  padding: 18px 24px;
  margin: 0 0 18px 0;
  border-radius: 8px;
  font-style: italic;
  color: #1e54c0;
}
.testimonials-list blockquote footer {
  margin-top: 12px;
  font-weight: bold;
  color: #333;
}
/* Overview specs */
.overview-specs {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.overview-specs li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background-color: #f7f9fc;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(30, 84, 192, 0.08);
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #333;
  border-left: 3px solid #38d996;
}

.overview-specs li:hover {
  box-shadow: 0 4px 12px rgba(30, 84, 192, 0.15);
  transform: translateY(-2px);
}

.overview-specs li i {
  margin-right: 12px;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38d996;
}

.overview-specs li strong {
  margin-right: 5px;
  font-weight: 600;
  color: #333;
}
/* Stiluri pentru separarea vizuală a secțiunilor */
.project-section {
  margin-bottom: 30px;
  padding: 24px 28px;
}

.with-bg {
  background: #ffffff;
}

.with-radius {
  border-radius: 16px;
  overflow: hidden;
}

.with-shadow {
  box-shadow: 0 8px 24px rgba(30, 84, 192, 0.12);
}

/* Text + Image flex */
.text-image-flex {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}
.text-image-flex .text-image-text {
  flex: 2;
}
.text-image-flex .text-image-img {
  flex: 1;
  max-width: 340px;
}
.text-image-flex .text-image-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #eaf0fa;
}

/* Responsive */
@media (max-width: 900px) {
  .project-hero {
    min-height: 600px;
  }
  .project-hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 32px 8px 32px 8px;
    min-height: auto;
  }
  .project-hero-content {
    max-width: 100%;
    min-width: 0;
    padding-bottom: 0;
    margin-bottom: 20px;
  }
  .project-hero-image {
    width: 100%;
    height: 300px;
    bottom: 0;
    top: auto;
    position: relative;
    margin-top: 20px;
  }
  .project-hero-image img,
  .project-main-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-position: center center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .project-content.container {
    padding: 18px 2vw;
  }
  .project-section {
    padding: 18px 10px;
  }
  .overview-specs {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .project-hero-inner {
    padding: 20px 0 20px 0;
  }
  .project-hero-image img {
    height: 140px;
  }
  .project-section {
    padding: 12px 2px;
    margin-bottom: 22px;
  }
  .project-hero-content {
    padding: 40px 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 100%;
  }
}

/* Titlu */
.project-hero-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #ffffff;
  display: block;
  width: 100%;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-overview-content p {
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 95%;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-subtitle {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-subtitle p {
  color: #ffffff;
  margin-bottom: 12px;
}

/* Asigură că textul bold din subtitle este alb */
.project-subtitle strong,
.project-subtitle b {
  color: #ffffff;
  font-weight: 700;
}

/* Link-uri în subtitle cu culoarea verde a site-ului */
.project-subtitle a {
  color: #38d996;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.project-subtitle a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Listă detalii proiect */
.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0 24px 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.project-details li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  transition: all 0.3s ease;
}

.project-details li:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.project-details li i {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #ffffff;
  font-size: 16px;
}

.project-details .detail-area i,
.project-details .detail-method i,
.project-details .detail-difficulty i,
.project-details .detail-location i { color: #38d996; }

.project-details li strong {
  margin-right: 5px;
  font-weight: 600;
}

/* Butoane CTA */
.project-cta {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.project-cta .btn {
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-cta .btn-green {
  background: #4CAF50;
  color: white;
  border: none;
}

.project-cta .btn-outline {
  background: transparent;
  border: 1px solid white;
  color: white;
}

/* --- PROJECT NAV STICKY --- */
#project-nav-sticky {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#project-nav-sticky.sticky {
  position: fixed;
  top: 76px; /* Space from top to avoid overlapping with main menu */
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#project-nav-placeholder {
  display: none;
}

.project-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: max-content;
  width: 100%;
  position: relative;
}

.project-nav a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

/* Active indicator for navigation links */
.project-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 3px;
  background-color: #1e54c0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.project-nav a:hover {
  color: #1e54c0;
}

.project-nav a.active {
  color: #1e54c0;
  font-weight: 600;
}

/* --- PROJECT SECTIONS --- */
.project-sections {
  padding: 0 0 40px;
}

.project-text-section {
  padding: 60px 0;
  border-bottom: 1px solid #eaeaea;
}

.project-text-section:last-child {
  border-bottom: none;
}

.project-text-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Prezentare generală */
.project-overview {
  padding: 60px 0;
}

.overview-content {
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding: 25px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spec-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.spec-value {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

/* Text + Imagine */
.project-text-image {
  display: flex;
  gap: 40px;
  align-items: center;
}

.project-text-image.image-right {
  flex-direction: row;
}

.project-text-image.image-left {
  flex-direction: row-reverse;
}

.text-image-content {
  flex: 1;
}

.text-image-img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-image-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.text-image-img:hover img {
  transform: scale(1.03);
}

.text-image-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimoniale */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.testimonial-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.testimonial-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-content::before {
  content: '"';
  font-size: 3rem;
  color: #1e54c0;
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.author-position {
  font-size: 0.85rem;
  color: #666;
}

/* Video */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.video-item {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Proiecte similare */
.related-projects {
  padding: 60px 0;
  background-color: #f8f9fa;
  margin: 40px 0 0;
}

.related-projects h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.related-project-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.related-project-image {
  height: 200px;
  overflow: hidden;
}

.related-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-project-card:hover .related-project-image img {
  transform: scale(1.05);
}

.related-project-content {
  padding: 20px;
}

.related-project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.related-project-content h3 a {
  color: #1e54c0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-project-content h3 a:hover {
  color: #4CAF50;
}

.related-project-subtitle {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Modal pentru solicitare ofertă */
.modal-oferta {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-oferta.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Stiluri pentru formularul modal de ofertă */
.modal-oferta {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.modal-oferta.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  position: relative;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin: 40px auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #e0e0e0;
  color: #000;
}

.modal-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.modal-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
  text-align: center;
}

/* Stiluri pentru formularul de ofertă */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-row .form-group {
  padding: 0 10px;
  box-sizing: border-box;
}

.col-6 {
  width: 50%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 10px 0;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e53935;
}

.form-feedback {
  font-size: 0.85rem;
  margin-top: 5px;
  color: #666;
}

.form-group.has-error .form-feedback {
  color: #e53935;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.form-notice {
  font-size: 0.85rem;
  color: #666;
}

.required {
  color: #e53935;
}

.form-submit {
  background-color: #1e73be;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
}

.form-submit:hover {
  background-color: #1a5c99;
}

.form-submit .btn-loading {
  display: none;
  margin-left: 8px;
}

.form-submit.loading .btn-text {
  display: none;
}

.form-submit.loading .btn-loading {
  display: inline-block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 48px;
  color: #4caf50;
  margin-bottom: 20px;
}

/* Stiluri pentru checkbox */
.so-accept-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}

.so-accept-group input[type="checkbox"] {
  margin-top: 3px;
}

/* Responsive pentru formular */
@media (max-width: 768px) {
  .form-row .form-group.col-6 {
    width: 100%;
  }
  
  .form-footer {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-notice {
    order: 2;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .project-hero {
    flex-direction: column;
    padding: 0;
    width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .project-hero-content {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    order: 2;
  }
  
  .project-gallery-static, .project-gallery-container {
    position: relative;
    width: 100%;
    height: 250px;
    clip-path: none;
    order: 1;
  }
  
  .project-details li {
    width: 100%;
  }
  
  .project-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .project-cta .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .project-text-image {
    flex-direction: column !important;
    gap: 20px;
  }
  
  .text-image-img {
    width: 100%;
  }
  
  .testimonials-grid,
  .gallery-grid,
  .video-list,
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
  
  #project-nav-sticky.sticky {
    top: 73px; /* Space for mobile menu */
  }
  
  .project-nav {
    padding: 0 10px;
  }
}
