/* ══════════════════════ Pagina model MOD 2 ══════════════════════ */

/* ---------- buton floating "inapoi la gama MOD" ---------- */
.mod-back-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 500;
  display: inline-flex; align-items: center; gap: 8px;
  background: #6B7A3A; color: #F7F2EB;
  font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 18px 12px 16px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(44,26,14,.28);
  text-decoration: none; opacity: 1;
  transition: opacity .35s ease, background .2s ease, transform .2s ease; }
.mod-back-float::before { content: '←'; font-size: 14px; line-height: 1; }
.mod-back-float:hover, .mod-back-float:focus {
  background: #8A9E4A; color: #fff; transform: translateY(-2px); text-decoration: none; opacity: 1; }
.mod-back-float.is-dimmed { opacity: .4; }
.mod-back-float.is-dimmed:hover, .mod-back-float.is-dimmed:focus { opacity: 1; }
@media (max-width: 767px) {
  .mod-back-float { left: 12px; bottom: 12px; padding: 10px 16px 10px 14px; font-size: 11px; } }

/* ---------- bara de progres a paginii (7 zone) ---------- */
/* verticala, lipita de marginea din dreapta, fixa -- aceeasi pozitionare
   pe desktop si mobil (doar offset-ul de la margine difera), fara sa
   depinda de layout-ul navbar-ului (nu mai e calculata in JS) --
   eticheta zonei active apare ca un mic "steag" spre stanga punctului */
.m2-progress-nav {
  position: fixed; z-index: 1040; top: 50%; right: 10px; left: auto; bottom: auto;
  transform: translateY(-50%); width: auto; }
.m2-progress-nav ol {
  list-style: none; margin: 0; padding: 10px 6px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: rgba(247,242,235,.85); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.m2-progress-nav ol::before {
  content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px;
  background: rgba(217,207,196,.9); transform: translateX(-50%); }
.m2-progress-nav li { flex: none; display: flex; justify-content: center; position: relative; }
.m2-progress-nav a { display: block; padding: 4px; position: relative; text-decoration: none; }
.m2-progress-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%; position: relative; z-index: 1;
  border: 2px solid #C7BBA8; background: #F7F2EB;
  transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.m2-progress-label {
  position: absolute; top: 50%; left: auto; right: 100%; transform: translate(-2px, -50%);
  font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: #F7F2EB; white-space: nowrap;
  background: rgba(44,26,14,.5); padding: 5px 10px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.m2-progress-nav li.is-done .m2-progress-dot { background: #2C1A0E; border-color: #2C1A0E; }
.m2-progress-nav li.is-active .m2-progress-dot { background: #2C1A0E; border-color: #2C1A0E; transform: scale(1.35); }
.m2-progress-nav li.is-active .m2-progress-label { opacity: 1; transform: translate(-6px, -50%); }

/* pe desktop, bara nu apare deloc pana nu se da scroll -- acelasi moment in
   care navbar-ul devine plin (vezi is-visible, adaugat din JS la 40px);
   pe mobil ramane mereu vizibila (nu are aceasta regula) */
@media (min-width: 768px) {
  .m2-progress-nav {
    right: 24px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease; }
  .m2-progress-nav.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* pe mobil, scoasa deocamdata -- ramane doar pe desktop */
@media (max-width: 767px) {
  .m2-progress-nav { display: none; }
}

/* zonele au nevoie de scroll-margin-top doar cat sa nu se ascunda sub navbar
   cand se sare direct la ele (click pe bara sau pe orice link cu #m2-zone-N) --
   bara e pe margine, verticala, deci nu ocupa loc sus */
#m2-zone-2, #m2-zone-3, #m2-zone-4, #m2-zone-5, #m2-zone-6 { scroll-margin-top: 80px; }

/* ---------- banner ---------- */
.m2-banner {
  min-height: 520px; padding-top: 80px;
  background: url('/img/app/modele/mod-2/cover.jpg') no-repeat center center;
  background-size: cover; position: relative;
  display: flex; align-items: flex-end; padding-bottom: 56px; }
.m2-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,10,4,.35) 0%, rgba(20,10,4,.78) 100%); }
.m2-banner .container { position: relative; z-index: 1; }
.m2-banner-supra {
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: #8A9E4A; margin-bottom: 14px; }
.m2-banner h1 {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 64px; font-weight: 400;
  color: #fff; margin: 0 0 14px; line-height: 1; }
.m2-banner-sub {
  font-family: "DM Sans", sans-serif; font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.6; margin: 0 0 28px; }
.m2-banner-row { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.m2-banner-price-nr {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; color: #fff; }
.m2-banner-price-note {
  display: block; font-family: "DM Sans", sans-serif; font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }

/* ---------- section header (numerotat, ca in fisa de produs) ---------- */
.m2-sec { padding: 72px 0; }
.m2-sec-linen { background: #EDE5D8; padding: 32px 0; }
.m2-sec-tight-top { padding-top: 10px; }
.m2-sec-tight-bottom { padding-bottom: 10px; }
.m2-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; border-bottom: 1px solid #D9CFC4; padding-bottom: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.m2-sec-num {
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #6B5A47; margin: 0 0 6px; }
.m2-sec-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 500; color: #2C1A0E; margin: 0; }
.m2-sec-head-tag {
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #5C4A38; white-space: nowrap; }

/* ---------- calculator randament investitie (doar MOD 2), banda verde ---------- */
/* padding-bottom = acelasi 16px cat e si intre campuri (.m2-calc-field
   margin-bottom), nu spatiul mai mic ramas de la fostul buton Calculeaza */
.m2-calc-section { background: #6B7A3A; padding: 72px 0 16px; }
.m2-calc-section h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 500; color: #2C1A0E; margin: 0 0 14px; }
.m2-calc-text {
  font-family: "DM Sans", sans-serif; font-size: 15px; color: rgba(247,242,235,.85);
  max-width: 60ch; margin: 0 auto; line-height: 1.6; }
.m2-calc-field { margin-bottom: 16px; }
.m2-calc-field label {
  display: block; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: #F7F2EB; margin-bottom: 5px; }
.m2-calc-field input.form-control { background: #F7F2EB; color: #3D2B1F; }
.m2-calc-field input.form-control::placeholder { color: #8A8A8A; opacity: 1; }
.m2-calc-field:last-child { margin-bottom: 0; }
/* aliniata cu marginea de sus a primului camp de input (nu cu eticheta lui) --
   31px e diferenta masurata intre inaltimea etichetei si inceputul coloanei rezultate */
.m2-calc-results { background: #F7F2EB; padding: 30px 32px; min-height: 220px; margin-top: 31px; }
.m2-calc-placeholder { font-family: "DM Sans", sans-serif; font-size: 13.5px; color: #5C4A38; margin: 0; }
.m2-calc-result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid #D9CFC4; }
.m2-calc-result-row:last-child { border-bottom: 0; }
.m2-calc-result-label { font-family: "DM Sans", sans-serif; font-size: 12.5px; letter-spacing: 0.04em; color: #5C4A38; }
.m2-calc-result-value { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 500; color: #2C1A0E; }
.m2-calc-disclaimer { font-family: "DM Sans", sans-serif; font-size: 11.5px; color: rgba(247,242,235,.65); margin: 14px 0 0; line-height: 1.5em; }
@media (max-width: 767px) {
  .m2-calc-section { padding: 48px 0 16px; }
  .m2-calc-results { padding: 24px 22px; margin-top: 20px; }
}

/* ---------- foto mare + caption ---------- */
.m2-photo-lg { width: 100%; height: 460px; object-fit: cover; display: block; }
.m2-photo-caption {
  font-family: "DM Sans", sans-serif; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: #6B5A47; margin: 12px 0 32px; }
.m2-intro {
  font-size: 16px; color: #3D2B1F; line-height: 1.75; max-width: 78ch; margin: 0 0 44px; }

/* ---------- doua coloane: caracteristici + date tehnice ---------- */
.m2-two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 860px) { .m2-two-col { grid-template-columns: 1.1fr 1fr; } }
.m2-col-label {
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #2C1A0E; margin: 0 0 10px; }
.m2-feat-list { list-style: none; margin: 0; padding: 0; }
.m2-feat-list li {
  padding: 5px 0; border-top: 1px solid #D9CFC4; }
.m2-feat-list li:last-child { border-bottom: 1px solid #D9CFC4; }
.m2-feat-list b {
  display: block; font-family: "DM Sans", sans-serif; font-size: 13.5px; font-weight: 700;
  color: #2C1A0E; margin-bottom: 2px; }
.m2-feat-list span { font-size: 14px; color: #5C4A38; line-height: 1.3; }
.m2-feat-list b::before { content: "\25C6"; color: #566329; font-size: 9px; margin-right: 9px; }

.m2-spec-box { border: 1px solid #D9CFC4; background: #FFFDF9; }
.m2-spec-box .row-line {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 4px 22px; border-bottom: 1px solid #EDE5D8; }
.m2-spec-box .row-line:last-child { border-bottom: 0; }
.m2-spec-box .row-line dt { font-size: 14px; color: #5C4A38; margin: 0; }
.m2-spec-box .row-line dd {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 700;
  color: #2C1A0E; margin: 0; text-align: right; }
.m2-spec-note {
  margin-top: 6px; padding: 6px 18px; background: #F2EEE4; border-left: 3px solid #6B7A3A;
  font-family: "DM Sans", sans-serif; font-size: 12.5px; letter-spacing: .02em; color: #5C4A38; text-align: center; }

.m2-spec-col { display: flex; flex-direction: column; }
.m2-spec-col .m2-spec-note { margin-top: auto; }

/* ---------- plan + fatade ---------- */
.m2-plan-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
.m2-plan-img { width: 100%; height: auto; object-fit: contain; background: #EDE5D8; display: block; border: 1px solid #D9CFC4; box-sizing: border-box; padding: 16px; }
.m2-img-link { display: block; cursor: zoom-in; }
.m2-img-link:hover .m2-plan-img { opacity: .92; }

@media (min-width: 860px) {
  .m2-plan-row { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- detaliu de perete ---------- */
.m2-wall-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
.m2-wall-photo-img { width: 100%; height: 320px; object-fit: cover; display: block; border: 1px solid #D9CFC4; }
.m2-wall-info { display: flex; flex-direction: column; justify-content: center; }
.m2-wall-info .m2-col-label { margin-bottom: 16px; }

@media (min-width: 860px) {
  .m2-wall-row { grid-template-columns: 1.1fr 1fr; align-items: stretch; gap: 40px; }
  .m2-wall-photo-img { height: 100%; min-height: 340px; }
}

.m2-wall-list { list-style: decimal; margin: 0; padding: 0 0 0 22px; }
.m2-wall-list li {
  font-size: 14.5px; color: #3D2B1F; line-height: 1.6; padding: 10px 0; border-top: 1px solid #D9CFC4; }
.m2-wall-list li:last-child { border-bottom: 1px solid #D9CFC4; }
.m2-wall-list li::marker { color: #6B5A47; font-family: "DM Mono", monospace; font-weight: 600; }

/* ---------- galerie ---------- */
.m2-photo-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 620px) { .m2-photo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .m2-photo-grid { grid-template-columns: repeat(3, 1fr); } }
.m2-gallery-trigger { display: block; overflow: hidden; }
.m2-gallery-trigger img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform .4s ease, opacity .2s ease; cursor: zoom-in; }
.m2-gallery-trigger:hover img { transform: scale(1.04); opacity: .92; }

/* ---------- lightbox (poze marite) ---------- */
.m2-lightbox {
  display: none; position: fixed; inset: 0; background: rgba(20,10,4,.92);
  z-index: 9999; align-items: center; justify-content: center; padding: 60px; }
.m2-lightbox.is-open { display: flex; }
.m2-lightbox { overflow: hidden; }
.m2-lightbox img {
  max-width: 100%; max-height: 100%; box-shadow: 0 10px 60px rgba(0,0,0,.5);
  cursor: zoom-in; transition: transform .3s ease; }
.m2-lightbox img.is-zoomed { transform: scale(1.5); cursor: zoom-out; }
.m2-lightbox-close {
  position: absolute; top: 24px; right: 32px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #F7F2EB; font-family: "DM Sans", sans-serif; font-size: 26px; line-height: 1;
  cursor: pointer; background: transparent; border: 1px solid rgba(247,242,235,.4);
  border-radius: 50%; padding: 0; transition: background .2s ease, border-color .2s ease; }
.m2-lightbox-close:hover { background: rgba(247,242,235,.12); border-color: rgba(247,242,235,.8); }

.m2-lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent; border: 1px solid rgba(247,242,235,.4);
  border-radius: 50%; padding: 0; transition: background .2s ease, border-color .2s ease; }
.m2-lightbox-arrow:hover { background: rgba(247,242,235,.12); border-color: rgba(247,242,235,.8); }
.m2-lightbox-arrow::before {
  content: ''; display: block; width: 12px; height: 12px;
  border-style: solid; border-color: #F7F2EB; border-width: 0 2px 2px 0; }
.m2-lightbox-prev { left: 24px; }
.m2-lightbox-prev::before { transform: rotate(135deg); margin-left: 4px; }
.m2-lightbox-next { right: 24px; }
.m2-lightbox-next::before { transform: rotate(-45deg); margin-right: 4px; }

@media (max-width: 767px) {
  .m2-lightbox { padding: 20px 16px; }
  .m2-lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  .m2-lightbox-arrow { width: 38px; height: 38px; }
  .m2-lightbox-arrow::before { width: 9px; height: 9px; }
  .m2-lightbox-prev { left: 8px; }
  .m2-lightbox-next { right: 8px; } }

/* ---------- repere rapide sub banner ---------- */
.m2-quickfacts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid #D9CFC4; border-bottom: 1px solid #D9CFC4; margin: 0 0 10px; }
@media (min-width: 700px) { .m2-quickfacts { grid-template-columns: repeat(4, 1fr); } }
.m2-quickfacts div { padding: 22px 20px; border-right: 1px solid #D9CFC4; border-bottom: 1px solid #D9CFC4; }
@media (min-width: 700px) { .m2-quickfacts div { border-bottom: 0; } }
.m2-quickfacts div:nth-child(2n) { border-right: 0; }
@media (min-width: 700px) {
  .m2-quickfacts div:nth-child(2n) { border-right: 1px solid #D9CFC4; }
  .m2-quickfacts div:last-child { border-right: 0; }
}
.m2-quickfacts dt {
  font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #6B5A47; margin: 0 0 6px; }
.m2-quickfacts dd {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; color: #2C1A0E; margin: 0; }

/* ---------- buton catre configurator (sub plan + fatade) ---------- */
.m2-configurator-cta-row { text-align: center; margin-top: 40px; }

/* ---------- puls la hover pe butonul catre configurator (mod-2/3/4, acelasi cod) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mod-configurator-cta:hover, .mod-configurator-cta:focus {
    animation: mod-cta-pulse 1s ease-in-out infinite; }
}
@keyframes mod-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107,122,58,.55); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(107,122,58,0); }
}

/* ---------- configurator de pret ---------- */
/* scroll-margin-top 136px = 80px navbar + ~56px bara de progres fixa de sub el (doar desktop,
   vezi .m2-progress-nav mai jos -- pe mobil bara e verticala, pe margine, nu ocupa loc sus) */
.m2-configurator-band {
  background: #2C1A0E; padding: 90px 0; scroll-margin-top: 136px; }
.m2-configurator-eyebrow {
  font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: #8A9E4A;
  text-align: center; margin: 0 0 14px; }
.m2-configurator-h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 300;
  color: #F7F2EB; text-align: center; margin: 0 0 44px; }

.pc-configurator { max-width: 760px; margin: 0 auto; }
.pc-groups {
  display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
@media (min-width: 620px) { .pc-groups { grid-template-columns: 1fr 1fr; } }

.pc-group-label {
  display: block; font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: #6B5A47; margin-bottom: 8px; }
.pc-select {
  width: 100%; background: rgba(247,242,235,.06); border: 1px solid rgba(168,144,112,.5);
  color: #F7F2EB; font-family: "DM Sans", sans-serif; font-size: 14.5px;
  padding: 12px 14px; border-radius: 2px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #A89070 50%), linear-gradient(135deg, #A89070 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.pc-select:focus { outline: none; border-color: #8A9E4A; }
.pc-select option { color: #2C1A0E; }

.pc-total {
  border-top: 1px solid rgba(168,144,112,.4); padding-top: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pc-total-estimate { text-align: left; }
.pc-send-btn {
  flex: 0 0 auto; max-width: 300px; white-space: normal; line-height: 1.4;
  padding: 16px 26px; border-radius: 0; text-align: center; }
@media (max-width: 619px) {
  .pc-total { flex-direction: column; gap: 24px; }
  .pc-total-estimate { text-align: center; }
  .pc-send-btn { max-width: 100%; } }
.pc-total-label {
  display: block; font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #6B5A47; margin-bottom: 10px; }
.pc-total-value {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 44px; color: #8A9E4A; }
.pc-total-currency {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; color: #8A9E4A; margin-left: 4px; }
.pc-total-note {
  font-family: "DM Sans", sans-serif; font-size: 12.5px; color: #6B5A47; margin: 10px 0 0; }

/* ---------- livrare si montaj ---------- */
.m2-delivery-section { display: flex; min-height: 260px; background: #6B7A3A; }
.m2-delivery-photo { flex: 0 0 42%; max-width: 42%; position: relative; overflow: hidden; }
.m2-delivery-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m2-delivery-cnt { flex: 1; display: flex; align-items: center; padding: 44px 56px; }
.m2-delivery-cnt-inner { max-width: 560px; }
.m2-delivery-cnt p {
  font-family: "DM Sans", sans-serif; font-size: 16px; font-weight: 300;
  color: #F7F2EB; line-height: 1.7; margin: 0; }

@media (max-width: 767px) {
  .m2-banner h1 { font-size: 44px; }
  .m2-banner-sub { font-size: 14px; }
  .m2-photo-lg { height: 260px; }
  .m2-sec { padding: 48px 0; }
  .m2-sec-head h2 { font-size: 26px; }
  .m2-sec-tight-top { padding-top: 10px; }
  .m2-sec-tight-bottom { padding-bottom: 10px; }
  .m2-configurator-band { padding: 56px 0; scroll-margin-top: 80px; }
  .m2-configurator-h2 { font-size: 28px; }
  .m2-configurator-cta-row .btn-cta {
    display: inline-block; max-width: 100%; white-space: normal;
    padding: 14px 22px; font-size: 12px; line-height: 1.4; }
  .m2-delivery-section { flex-direction: column; min-height: 0; }
  .m2-delivery-photo { flex: none; max-width: 100%; height: 220px; }
  .m2-delivery-cnt { padding: 32px 24px; }
}
