/* NOEBI_HOME_CLARITY_V1 — homepage claritate pe structura existentă (index-v1) */

#homepage_search {
  scroll-margin-top: 120px;
}

/* Hero panel — diferență vizibilă față de vechiul slogan pe foto */
.mero-hero.nb-clarity-hero::before {
  background: linear-gradient(120deg, rgba(21, 37, 54, 0.78) 0%, rgba(21, 37, 54, 0.45) 55%, rgba(21, 37, 54, 0.28) 100%) !important;
}

.nb-clarity-hero-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 32px 22px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.mero-hero .nb-clarity-h1.mero-hero-title {
  color: #1e3348 !important;
  text-shadow: none !important;
  font-size: clamp(1.85rem, 4.8vw, 2.85rem) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  margin-bottom: 0.85rem !important;
  letter-spacing: -0.02em;
  text-align: center;
}

.mero-hero .nb-clarity-lead.mero-hero-lead {
  color: #5c6b7a !important;
  text-shadow: none !important;
  font-size: clamp(1rem, 2.4vw, 1.2rem) !important;
  font-weight: 500 !important;
  margin: 0 auto 1.25rem !important;
  max-width: 40rem;
  text-align: center;
}

.mero-hero .nb-clarity-eyebrow {
  color: #c4a35a !important;
  text-shadow: none !important;
  opacity: 1 !important;
  margin-bottom: 0.65rem;
}

.nb-clarity-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto 1.25rem;
  max-width: 560px;
}

@media (min-width: 992px) {
  .nb-clarity-hero-panel {
    padding: 44px 44px 34px;
    max-width: 1040px;
  }
}

.nb-clarity-cta-row .btn {
  min-height: 48px;
  min-width: 44px;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nb-clarity-cta-primary {
  background: var(--color-primary, #5B86B7) !important;
  border-color: var(--color-primary, #5B86B7) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(91, 134, 183, 0.35);
}

.nb-clarity-cta-primary:hover {
  filter: brightness(0.94);
  color: #fff !important;
}

.nb-clarity-cta-secondary {
  background: #fff !important;
  border: 1.5px solid #c4a35a !important;
  color: #1e3348 !important;
}

.nb-clarity-cta-secondary:hover {
  background: #fffaf0 !important;
  color: #1e3348 !important;
}

/* Search card — păstrează #homepage_search, mai lizibil */
.mero-hero .mero-search-box.nb-clarity-search {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.mero-hero .mero-search-box.nb-clarity-search input {
  color: #1a1a1a !important;
}

.mero-hero .mero-search-box.nb-clarity-search input::placeholder {
  color: #6b7280 !important;
}

.mero-hero .mero-search-box.nb-clarity-search i {
  color: #5c6b7a !important;
}

.mero-hero .mero-search-box.nb-clarity-search .input-group-custom {
  border-color: #e5e7eb !important;
}

@media (max-width: 768px) {
  .mero-hero .mero-search-box.nb-clarity-search .input-group-custom {
    border-bottom-color: #e5e7eb !important;
  }
}

.mero-hero .nb-clarity-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8f9fa;
  opacity: 0.92;
  margin-bottom: 0.55rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Categorii — spațiere curată */
.mero-categories.nb-clarity-cats {
  padding-top: 56px;
  padding-bottom: 56px;
}

.mero-categories.nb-clarity-cats .section-mero-title,
.mero-categories.nb-clarity-cats .section-title .title {
  letter-spacing: -0.02em;
}

/* CTA profesioniști — bloc distinct, fără a concura cu hero */
.professional-cta-section.nb-clarity-pro {
  background: linear-gradient(135deg, #1e3348 0%, #152536 100%) !important;
  border: none !important;
  border-radius: 20px;
  margin-left: 12px;
  margin-right: 12px;
  padding: 28px 20px !important;
  box-shadow: 0 12px 28px rgba(21, 37, 54, 0.22);
}

.professional-cta-section.nb-clarity-pro .professional-cta-title {
  color: #fff !important;
}

.professional-cta-section.nb-clarity-pro p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.professional-cta-section.nb-clarity-pro .btn-primary {
  background: var(--color-secondary, #baa782) !important;
  border-color: var(--color-secondary, #baa782) !important;
  color: #152536 !important;
  box-shadow: none !important;
}

.professional-cta-section.nb-clarity-pro .btn-primary:hover {
  filter: brightness(1.06);
  color: #152536 !important;
}

@media (min-width: 992px) {
  .professional-cta-section.nb-clarity-pro {
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px;
    padding: 36px 40px !important;
  }
}

/* Works — carduri mai simple pe fundal deschis */
.works-area.nb-clarity-works {
  background-color: #f7f5f2 !important;
  background-image: none !important;
}

.works-area.nb-clarity-works .content-title .title,
.works-area.nb-clarity-works .content-title p,
.works-area.nb-clarity-works .color-white {
  color: #1e3348 !important;
}

.works-area.nb-clarity-works .card {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #e3e0da !important;
  box-shadow: 0 8px 20px rgba(30, 51, 72, 0.06);
}

.works-area.nb-clarity-works .card .card-title,
.works-area.nb-clarity-works .card .card-text,
.works-area.nb-clarity-works .card .card-icon,
.works-area.nb-clarity-works .card .color-white,
.works-area.nb-clarity-works .card .color-light {
  color: #1e3348 !important;
}

.works-area.nb-clarity-works .card .card-icon {
  color: var(--color-primary, #5B86B7) !important;
}

.works-area.nb-clarity-works .line.bg-white {
  background: var(--color-secondary, #baa782) !important;
}

.nb-clarity-sec-sub {
  font-size: 1rem;
  margin-top: 6px !important;
  margin-bottom: 8px !important;
}

/* 3 pași pe grid — ca MERO „Cum funcționează”, fără slider confuz */
/* Un rând: desktop 4 egale; mobil scroll orizontal (iOS/Android) */
.nb-clarity-steps-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
}

.nb-clarity-step-col {
  flex: 0 0 min(78vw, 260px);
  max-width: min(78vw, 260px);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 992px) {
  .nb-clarity-steps-row {
    overflow: visible;
    scroll-snap-type: none;
    gap: 16px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .nb-clarity-step-col {
    flex: 1 1 0;
    max-width: none;
  }
}

.nb-clarity-step-card {
  background: #fff !important;
  border: 1px solid #e3e0da !important;
  box-shadow: 0 8px 20px rgba(30, 51, 72, 0.06);
  padding: 22px 18px !important;
}

.nb-clarity-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary, #5B86B7);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.nb-clarity-step-card .card-icon {
  color: var(--color-primary, #5B86B7) !important;
  font-size: 1.4rem;
}

.nb-clarity-step-card .card-title {
  color: #1e3348 !important;
  font-size: 1.05rem !important;
}

.nb-clarity-step-card .card-text {
  color: #5c6b7a !important;
  font-size: 0.92rem !important;
}

.nb-clarity-packages-late {
  padding-top: 12px;
  border-top: 1px solid #e8e4dc;
  background: #faf9f7;
}

/* Pachete: rămân după CTA pro — accent subtil că e traseu profesionist */
.noebi-home-pkg {
  scroll-margin-top: 80px;
}

@media (max-width: 575px) {
  .nb-clarity-hero-panel {
    padding: 26px 16px 20px;
    border-radius: 18px;
  }

  .nb-clarity-cta-row .btn {
    flex: 1 1 100%;
    width: 100%;
    min-height: 48px;
  }

  .nb-clarity-step-card .card-title {
    font-size: 1rem !important;
  }

  .professional-cta-section.nb-clarity-pro {
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 16px;
  }
}

/* NOEBI_HOME_ADVANTAGES_V1 — carduri scurte, tip Despre noi */
.nb-clarity-advantages {
  background: #f7f5f2;
}

.nb-clarity-adv-card {
  background: #fff;
  border: 1px solid #e3e0da;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 8px 20px rgba(30, 51, 72, 0.05);
  box-sizing: border-box;
}

.nb-clarity-adv-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(91, 134, 183, 0.12);
  color: var(--color-primary, #5B86B7);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.nb-clarity-adv-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3348;
  margin: 0 0 8px;
  line-height: 1.3;
}

.nb-clarity-adv-text {
  font-size: 0.95rem;
  color: #5c6b7a;
  line-height: 1.45;
}

@media (max-width: 575px) {
  .nb-clarity-advantages {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }
  .nb-clarity-adv-card {
    padding: 18px 16px;
  }
}

/* NOEBI_HOME_CLEARER_V1 — ierarhie: search dominant + oferte/trust compact pe mobil */
.nb-clarity-hero .nb-clarity-search {
  margin-top: 0.35rem;
}

.nb-clarity-hero .mero-search-btn {
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nb-clarity-offers .section-title,
.nb-clarity-offers .title {
  text-align: center;
  width: 100%;
  justify-content: center;
}

.nb-clarity-offers .section-title.title-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nb-clarity-trust .content-title .title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem) !important;
}

@media (max-width: 767px) {
  .nb-clarity-offers {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }

  .nb-clarity-offers .section-title {
    margin-bottom: 24px !important;
  }

  .nb-clarity-trust {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }

  .nb-clarity-hero .nb-clarity-h1.mero-hero-title {
    font-size: clamp(1.7rem, 6.2vw, 2.1rem) !important;
  }
}

/* NOEBI_HOME_FAQ_V1 — FAQ scurt pe homepage */
.nb-clarity-faq {
  background: #fff;
  border-top: 1px solid #e8e4dc;
}

.nb-clarity-faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.nb-clarity-faq-item {
  border: 1px solid #e3e0da;
  border-radius: 14px;
  background: #faf9f7;
  margin-bottom: 10px;
  overflow: hidden;
}

.nb-clarity-faq-q {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: #1e3348;
  padding: 16px 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nb-clarity-faq-q::-webkit-details-marker {
  display: none;
}

.nb-clarity-faq-q::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  font-weight: 700;
  color: var(--color-primary, #5B86B7);
  flex-shrink: 0;
}

.nb-clarity-faq-item[open] .nb-clarity-faq-q::after {
  content: "–";
}

.nb-clarity-faq-a {
  padding: 0 18px 16px;
  color: #5c6b7a;
  font-size: 0.98rem;
  line-height: 1.5;
}

.nb-clarity-faq-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary, #5B86B7);
  text-decoration: none;
  min-height: 44px;
  touch-action: manipulation;
}

.nb-clarity-faq-more:hover {
  text-decoration: underline;
  color: #1e3348;
}

@media (max-width: 575px) {
  .nb-clarity-faq {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }
  .nb-clarity-faq-q {
    font-size: 0.98rem;
    padding: 14px 14px;
  }
  .nb-clarity-faq-a {
    padding: 0 14px 14px;
    font-size: 0.95rem;
  }
}
