/* ==========================
   General Styles
========================== */
*,
*::before, /* Adăugat pentru o mai bună aplicare a box-sizing */
*::after { /* Adăugat pentru o mai bună aplicare a box-sizing */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif; /* Fontul Montserrat aplicat */
  background-color: #dfdfdf;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Previne scroll-ul orizontal nedorit */
}

img {
  max-width: 100%;
  display: block; /* Elimină spațiul suplimentar de sub imagini */
}

.container {
  width: 96%;
  margin: 0 auto; /* Centrează containerul */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif; /* Asigură că titlurile folosesc Montserrat */
  font-weight: 700; /* Titlurile sunt bold */
}

.error {
  color: red;
  font-size: 0.85em;
  margin-top: 4px;
  display: block;
}

/* ==========================
   Header
========================== */
.header-area {
  width: 96%;
  height: 80px;
  margin: 20px auto;
  border-radius: 40px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  padding: 15px 30px;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav .logo img {
  height: 50px;
}

.main-nav .nav {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center; /* Aliniază elementele vertical */
}

.main-nav .nav li a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding-bottom: 4px; /* Spațiu pentru linia de hover */
  transition: color 0.3s ease;
}

.main-nav .nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #473804; /* Culoarea liniei */
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-nav .nav li a:hover,
.main-nav .nav li a.active {
  color: #473804;
}

.main-nav .nav li a:hover::after,
.main-nav .nav li a.active::after {
  width: 100%;
}

.menu-trigger {
  display: none;
  cursor: pointer;
  font-weight: bold;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  background-color: #25d366;
  padding: 8px 15px;
  border-radius: 30px;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-family: 'Arial', sans-serif; /* Păstrează Arial pentru butonul WhatsApp dacă este o cerință specifică */
  font-size: 14px;
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
}

.whatsapp-btn svg {
  flex-shrink: 0;
}

/* ==========================
   Hero Section
========================== */
.hero-section {
  position: relative;
  width: 96%;
  height: calc(100vh - 140px); /* Ajustează după înălțimea headerului sticky */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Overlay semi-transparent pentru lizibilitate */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 40px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #25d366;
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #1ebe57;
}

/* ==========================
   About Section
========================== */
.about-section {
  width: 96%;
  margin: 20px auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  background-color: #f9f6f2;
  /* background-size: cover; */ /* Comentat, nu este necesar dacă nu ai o imagine de fundal aici */
  /* background-position: center; */ /* Comentat */
  /* background-repeat: no-repeat; */ /* Comentat */
  color: #6B4C3B; /* Am setat culoarea textului aici, deoarece era '#fff' dar elementele din container aveau '#6B4C3B' */
  border-radius: 60px;
  overflow: hidden;
  position: relative;
  scroll-margin-top: 80px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* border-radius: 60px; */ /* Comentat, deja setat pe .about-section */
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
  width: 100%; /* Asigură că containerul din interior ia lățimea disponibilă */
  padding: 0 20px; /* Pentru mic padding pe mobil */
}

.about-section h2 {
  margin-bottom: 20px;
  color: #0b0b0b;
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
  font-size: 55px;
  font-weight: 100;
  line-height: 110%;
}

.about-section .style-p{
  margin-top: 20px;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: left;
  gap: 20px;
  z-index: 1;
}

.social-links a {
  color: #fff;
  background-color: #6B4C3B; /* Maro elegant */
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: transform 0.2s, background-color 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  transform: scale(1.15);
  background-color: #3e2b21;
}

/* ==========================
   Servicii Section
========================== */
.services-section {
  width: 96%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #f9f6f2;
  color: #6B4C3B; /* Am setat culoarea textului aici */
  border-radius: 60px; /* Consolidat de la 20px la 60px pentru consistență */
  padding: 60px 20px; /* Padding ajustat pentru a fi consistent */
  margin: 20px auto; /* Margini pentru a evidenția colțurile rotunjite */
  overflow: hidden; /* Asigură-te că conținutul nu depășește marginile rotunjite */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative; /* Ajustat pentru a nu mai fi `sticky` dacă nu este necesar */
  scroll-margin-top: 80px;
}

.services-section h2 {
  margin-bottom: 20px;
  color: #0b0b0b;
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
  font-size: 55px;
  font-weight: 100;
  line-height: 110%;
  text-align: left;
}

.services-section p {
  text-align: left;
}

.services-section h3 {
  margin-bottom: 30px;
  color: #0b0b0b;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  
}

.service-proiectare,
.service-masurare,
.service-mentenanta,
.service-consultanta,
.service-montaj {
  display: flex;
  flex-direction: row; /* ✅ schimbat din column în row */
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-align: left;
}

.proiectare-img,
.masurare-img,
.mentenanta-img,
.consultanta-img,
.montaj-img {
  min-width: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.descriere-proiectare,
.descriere-masurare,
.descriere-mentenanta,
.descriere-consultanta,
.descriere-montaj {
  flex: 1;
}

.service-proiectare:hover,
.service-masurare:hover,
.service-mentenanta:hover,
.service-consultanta:hover,
.service-montaj:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-proiectare:hover i,
.service-masurare:hover i,
.service-mentenanta:hover i,
.service-consultanta:hover i,
.service-montaj:hover i {
  color: #d4a373; /* o nuanță mai deschisă */
}

.separator-line {
  width: 60px;
  height: 2px;
  background-color: #d4a373; /* poți schimba cu altă culoare dorită */
  margin: 10px 0;
  border-radius: 1px;
}

.bg-yellow {
  background-color: #FFD700; /* sau orice nuanță de galben preferi */
}

.no-margin-lr {
  margin-left: 0;
  margin-right: 0;
}

/* ==========================
   Portfolio Section
========================== */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

/* Am consolidat stilurile comune pentru secțiuni (portofoliu, contact, footer) */
.section,
.contact-section,
.footer-area {
  width: 96%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #f9f6f2;
  color: #6B4C3B; /* Culoarea textului setată aici */
  border-radius: 60px; /* Consolidat pentru toate secțiunile */
  padding: 60px 20px; /* Padding consistent */
  margin: 20px auto; /* Margini consistente */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  scroll-margin-top: 80px;
}

.section-heading h2 {
  margin-bottom: 20px;
  color: #0b0b0b;
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
  font-size: 55px;
  font-weight: 100;
  line-height: 110%;
  text-align: left;
}

.card {
  padding: 15px;
  background-color: #fafafa;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.card h3.title {
  font-size: 1.2rem;
  margin-top: 10px;
}

.card p.description {
  font-size: 0.95rem;
  color: #555;
}

.carousel-wrapper {
  position: relative;
  width: 100%; /* Asigură că wrapper-ul ocupă toată lățimea disponibilă */
}

.owl-nav-custom {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* Permite click-urile să treacă prin ele (dacă nu sunt butoane) */
  z-index: 2;
  padding: 0 10px; /* Adaugă un pic de padding pentru săgeți */
}

.owl-nav-custom button {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* Activează click-urile pentru butoane */
  transition: background-color 0.3s;
  cursor: pointer; /* Indicăm că este un element clicabil */
}

.owl-nav-custom button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.galerie {
  position: relative;
  border-radius: 10px;
}

.galerie img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  border-radius: 0 0 10px 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card:hover .description {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   Contact Section
========================== */
.contact-section {
  height: auto;
  text-align: left;
}

.intro-contact {
  width: 100%;
  margin-bottom: 40px;
  text-align: left;
}

.both-form-icons-container {
  display: flex;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
}

.both-form-icons-container::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 2px;
  background-color: #FFD700; /* galben */
  transform: translateX(-50%);
  border-radius: 1px;
  z-index: 1;
}

/* Container formular */
.form-goup-container {
  width: 48%;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Container iconițe contact */
.icons-contact-container {
  width: 48%;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Elemente din iconițe contact */
.box-contact-more {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.icon-contact-more {
  margin-top: 16px;
  width: 40px;
  height: 40px;
}

.text-contact-more-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 2px;
  padding-top: 27px;
}

/* Formular */
.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-input::placeholder {
  color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-textarea {
  min-height: 95px;
  max-width: 100%;
  resize: none;
  height: auto;
}

.form-submit-button-container {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.form-submit {
  background: #1ebe57;
  color: #ffffff;
  border: none;
  margin-top: 10px;
  border-radius: 2px;
  padding: 10px 20px;
  transition: all 0.6s ease-in;
  cursor: pointer;
}

.contact-subtitle {
  color: #1ebe57;
}

.form-submit:hover {
  background-color: #1ebe57; /* o nuanță mai închisă de portocaliu/roșu */
  box-shadow: 0 4px 8px rgba(235, 84, 36, 0.4); /* o umbră subtilă */
  transform: translateY(-2px); /* un mic ridicaj */
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Responsive - mobil */
@media (max-width: 768px) {
  .both-form-icons-container {
    flex-direction: column;
  }
  .form-goup-container,
  .icons-contact-container {
    width: 100%;
    padding: 15px 0;
  }
  .both-form-icons-container::before {
    display: none;
  }
}

/* ==========================
   Footer
========================== */
.footer-area {
  /* Nu mai este nevoie să repetăm stilurile comune de la .section */
  height: auto; /* Lățime dinamică */
  padding: 30px 20px; /* Padding mai mic pentru footer */
  font-size: 0.9rem;
}

/* ==========================
   Responsive Styles
========================== */
@media (max-width: 992px) {
  .main-nav .nav {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 2%; /* Aliniere cu containerul principal */
    width: 96%; /* Lățimea similară cu containerul */
    padding: 20px;
    border-top: 1px solid #ddd;
    border-radius: 40px; /* Consistență cu header-ul */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* Umbră pentru meniu */
    overflow: hidden;
  }

  .main-nav.active .nav {
    display: flex;
  }

  .menu-trigger {
    display: block;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-section {
    padding: 60px 0;
    height: height: calc(100vh - 140px);; /* Asigură că secțiunea hero se adaptează pe ecrane foarte mici */
  }
}

@media (max-width: 768px) {
  .card {
    margin-bottom: 20px;
  }

  .main-nav .logo img {
    height: 40px;
  }

  .hero-section {
    padding: 60px 0;
    height: height: calc(100vh - 140px);; /* Asigură că secțiunea hero se adaptează pe ecrane foarte mici */
  }

  .about-section h2,
  .section-heading h2,
  .contact-section h2,
  .services-section h2 { /* Inclus și serviciile */
    font-size: 1.6rem;
  }

  .services-list {
    grid-template-columns: 1fr; /* o coloană */
  }

  .service-proiectare,
  .service-masurare,
  .service-mentenanta,
  .service-consultanta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .proiectare-img,
  .masurare-img,
  .mentenanta-img,
  .consultanta-img {
    justify-content: center;
  }

  .descriere-proiectare,
  .descriere-masurare,
  .descriere-mentenanta,
  .descriere-consultanta {
    text-align: center;
  }

  .services-section h2 {
    font-size: 36px;
    text-align: center;
  }

  .services-section {
    padding: 40px 10px;
  }
}


@media (max-width: 600px) {
  .services-list {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .hero-section {
    padding: 60px 0;
    height: height: calc(100vh - 140px);; /* Asigură că secțiunea hero se adaptează pe ecrane foarte mici */
  }

  .service-item {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 60px 0;
    height: height: calc(100vh - 140px);; /* Asigură că secțiunea hero se adaptează pe ecrane foarte mici */
  }

  .hero-content {
    padding: 20px; /* Mai puțin padding pe mobil */
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  #contactForm input,
  #contactForm textarea,
  #contactForm button {
    font-size: 0.95rem;
  }

  .about-section,
  .services-section,
  .section, /* Portofoliu */
  .contact-section,
  .footer-area {
    border-radius: 40px; /* Reducem border-radius pe ecrane mici dacă este necesar */
    padding: 40px 15px; /* Mai puțin padding pentru secțiuni */
    margin: 15px auto; /* Margini reduse */
  }
}