/* =========================================================
   Mobis – stiluri
   ========================================================= */
:root {
  --cream: #fcf8f2;
  --sand: #f4ede3;
  --beige: #e8ddce;
  --taupe: #bca999;
  --taupe-dark: #8c7867;
  --ink: #2b2724;
  --muted: #7b726b;
  --line: #e8dfd3;
  --green: #2f5d57;
  --green-dark: #23463f;
  --green-soft: #dde8e4;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -30px rgba(60, 45, 30, .35);
  --header-h: 72px;
  --hero-photo: url('hero-wardrobe.jpg');
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ===== Bază ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--cream); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-dark); margin-bottom: 14px; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head--left { text-align: left; margin: 0; }
.section-head p { color: var(--muted); }

/* ===== Butoane ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid var(--green);
  background: var(--green); color: var(--white); font-weight: 500; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--small { padding: 10px 20px; font-size: .92rem; }
.btn--full { width: 100%; }
.btn--wa { background: var(--white); color: var(--ink); border-color: var(--ink); padding: 11px 20px; font-size: .92rem; white-space: nowrap; }
.btn--wa:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(252, 248, 242, .94); backdrop-filter: blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.55rem; font-weight: 400; letter-spacing: -.02em; text-decoration: none; color: inherit; }
.logo__img { display: block; height: 46px; width: auto; }
.logo--footer .logo__img { height: 40px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: .95rem; opacity: .95; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__pill { border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 18px; }
.nav__pill:hover { background: var(--ink); color: var(--white); text-decoration: none !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: currentColor; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: min(760px, calc(100vh - var(--header-h))); display: flex; align-items: center; overflow: hidden; }
.hero__scene { position: absolute; inset: 0; background: var(--sand); pointer-events: none; }
.hero__photo { position: absolute; inset: 0; background: var(--hero-photo) 65% center / cover no-repeat; opacity: var(--hero-photo-opacity, 1); }
.hero__scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(252, 248, 242, .96) 0%, rgba(252, 248, 242, .85) 32%, rgba(252, 248, 242, .32) 60%, rgba(252, 248, 242, .06) 100%); }
.hero__content { position: relative; z-index: 4; padding-block: 60px; }
.hero__content > * { max-width: 560px; }
.hero__eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; color: var(--taupe-dark); }
.hero__content p { font-size: 1.12rem; color: #5d544d; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ===== Avantaje ===== */
.perks { padding: 64px 0; border-bottom: 1px solid var(--line); }
.perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.perk { display: flex; gap: 18px; }
.perk svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perk p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===== Produse ===== */
.products { padding: 96px 0; }
.products__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.products__grid > .product:only-child { grid-column: 1 / -1; width: 100%; max-width: 560px; justify-self: center; }
.product { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__art { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.product__art svg { width: 62%; height: auto; transition: transform .4s; }
.product:hover .product__art svg { transform: scale(1.04); }
.product__art--photo { overflow: hidden; }
.product__art--photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 45%; transition: transform .4s; }
.product:hover .product__art--photo img { transform: scale(1.04); }
.product__art--blue { background: linear-gradient(180deg, #eef1f2, #e3e7e8); }
.product__art--sand { background: linear-gradient(180deg, #f3ece2, #ebe1d4); }
.product__body { padding: 26px 28px 30px; }
.product__body p { color: var(--muted); }

/* ===== Pași ===== */
.steps { padding: 90px 0; background: var(--sand); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps__list li { padding: 24px 20px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.steps__list b { display: block; color: var(--taupe); font-weight: 300; font-size: 2rem; margin-bottom: 10px; }
.steps__list h3 { font-size: 1rem; }
.steps__list p { color: var(--muted); font-size: .9rem; margin: 0; }
.steps--compact { padding: 60px 0; }

/* ===== Întrebări ===== */
.faq { padding: 96px 0; }
.faq__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--green); transition: transform .25s; }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { color: var(--muted); padding-right: 40px; }

/* ===== Despre ===== */
.about { padding: 90px 0; background: var(--beige); }
.about__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.about p { color: #5d544d; font-size: 1.05rem; }

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--green); color: var(--cream); }
.contact .eyebrow { color: #b9d3cc; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info p { color: rgba(252, 248, 242, .8); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; }
.contact__list span { color: #b9d3cc; font-size: .88rem; }
.contact__list a { text-decoration: none; }
.contact__form { background: var(--cream); color: var(--ink); padding: 34px; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-row textarea { resize: vertical; }
.form-row :focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.form-status { margin: 12px 0 0; min-height: 1.4em; font-size: .9rem; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: #a8442f; }

/* ===== Footer ===== */
.footer { background: var(--taupe); color: var(--white); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.footer nav a, .footer__inner > div a:not(.logo) { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { text-decoration: underline; }
.footer p { opacity: .85; margin-top: 10px; }
.footer__bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.3); font-size: .85rem; opacity: .85; }
.logo--footer { font-size: 1.35rem; }

/* =========================================================
   CONFIGURATOR
   ========================================================= */
.cfg { position: relative; height: calc(100vh - var(--header-h)); min-height: 620px; max-height: 1000px; }
.cfg-stage { position: absolute; inset: 0; background: #ece5dc; overflow: hidden; }
.cfg-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cfg-canvas:active { cursor: grabbing; }
.crumbs { position: absolute; top: 20px; left: 24px; z-index: 2; font-size: .88rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink); }
.cfg-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem; }
.cfg-hint { position: absolute; left: 24px; top: 46px; z-index: 2; margin: 0; font-size: .8rem; color: var(--muted); }
.cfg-tools {
  position: absolute; z-index: 2; bottom: 24px; left: calc((100% - 448px) / 2); transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 6px; background: var(--white); border-radius: 999px; box-shadow: var(--shadow);
}
.cfg-tools button { display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: .9rem; }
.cfg-tools button:hover { background: var(--sand); }
.cfg-tools button + button { position: relative; }
.cfg-tools svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfg-tools button.is-active, .cfg-tools button.is-active:hover { background: var(--green); color: var(--white); }
.cfg-tools button.is-active svg { stroke: var(--white); }

.cfg-panel {
  position: absolute; z-index: 3; top: 20px; right: 24px; bottom: 20px; width: 400px;
  overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px 28px;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 60px -20px rgba(60,45,30,.35);
  scrollbar-width: thin;
}
.cp-head { position: sticky; top: -24px; z-index: 2; margin: -24px -24px 6px; padding: 24px 24px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.cp-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; letter-spacing: -.01em; }
.cp-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cp-price { font-size: 1.6rem; font-weight: 600; color: var(--green-dark); display: flex; align-items: center; gap: 6px; }
.cp-help { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); background: none; color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1; padding: 0; }
.cp-helpbox { margin: 12px 0 0; padding: 10px 12px; background: var(--sand); border-radius: var(--radius-sm); font-size: .85rem; color: var(--muted); }
.cp-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cp-sec:last-child { border-bottom: 0; }
.cp-sec h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: baseline; gap: 8px; }
.cp-sub { font-size: .85rem; font-weight: 400; color: var(--muted); }
.cp-link { display: inline-block; margin-top: 10px; font-size: .86rem; color: var(--green); text-underline-offset: 3px; }

.cp-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; cursor: pointer; transition: border-color .2s; }
.svc:hover { border-color: var(--taupe); }
.svc input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.svc b { margin-left: auto; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.svc:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

.cp-dim { display: grid; grid-template-columns: 76px 86px 1fr; align-items: center; gap: 12px; margin-bottom: 10px; }
.cp-dim label { font-size: .92rem; }
.cp-num { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; height: 40px; background: var(--white); }
.cp-num:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.cp-num input { width: 100%; border: 0; outline: none; background: none; font-weight: 600; padding: 0; -moz-appearance: textfield; }
.cp-num input::-webkit-outer-spin-button, .cp-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cp-num span { color: var(--muted); font-size: .85rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--beige); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #5d5a57; border: 3px solid var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.25); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #5d5a57; border: 3px solid var(--white); box-shadow: 0 1px 6px rgba(0,0,0,.25); cursor: pointer; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--green-soft); }

.cp-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.sw { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s; padding: 0; }
.sw:hover { transform: scale(1.08); }
.sw.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--green); }

.cp-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cp-opt > span { font-size: .92rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sand); border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: .86rem; color: var(--muted); }
.seg button.is-active { background: var(--ink); color: var(--white); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--sand); border-radius: 999px; }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--white); font-size: 1.15rem; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper b { min-width: 30px; text-align: center; }

.cp-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.cp-tabs button { flex: none; border: 0; padding: 7px 14px; border-radius: 999px; background: var(--sand); font-size: .85rem; }
.cp-tabs button.is-active { background: var(--ink); color: var(--white); }
.cp-fills { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.fill { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: .76rem; line-height: 1.2; text-align: center; transition: border-color .2s; }
.fill:hover { border-color: var(--taupe); }
.fill.is-active { border-color: var(--ink); background: var(--cream); }
.fill svg { width: 40px; height: 52px; }
.cp-note { margin: 0 0 14px; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.cp-structure-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.cp-structure-choice svg { width: 64px; height: 48px; }
.cp-opt--stack { align-items: flex-start; flex-direction: column; }
.cp-dim[hidden] { display: none; }
.fill:focus-visible, .seg button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.i-frame { fill: var(--cream); stroke: #6e6660; stroke-width: 1.4; }
.i-line { stroke: #6e6660; stroke-width: 1.4; fill: none; }
.i-rod { stroke: #6e6660; stroke-width: 2; stroke-linecap: round; }
.i-cloth { fill: #b5c4cc; }
.i-box { fill: #ece4d8; stroke: #6e6660; stroke-width: 1; }

.cfg-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 100; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.info { padding: 80px 0; }
.info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.info__grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.info__grid p { color: var(--muted); margin: 0; }
.info__about { max-width: 760px; }
.info__about p { color: var(--muted); font-size: 1.05rem; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .cfg { height: auto; max-height: none; min-height: 0; }
  .cfg-stage { position: relative; height: 58vh; min-height: 360px; }
  .cfg-tools { left: 50%; bottom: 14px; }
  .cfg-panel { position: static; width: auto; margin: -24px 12px 0; border-radius: var(--radius); }
  .cp-head { position: static; }
  .cfg-bar {
    display: flex; position: sticky; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(0,0,0,.3);
  }
  .cfg-bar strong { font-size: 1.3rem; color: var(--green-dark); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .logo__img { height: 38px; }
  .nav__pill { order: 9; margin-top: 16px; text-align: center; border-bottom: 1.5px solid currentColor !important; }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { min-height: 640px; align-items: flex-start; }
  .hero__content { padding-top: 56px; }
  .hero__photo { background-position: 80% center; }
  .hero__scene::after { background: linear-gradient(180deg, rgba(252, 248, 242, .96) 0%, rgba(252, 248, 242, .86) 38%, rgba(252, 248, 242, .24) 75%, rgba(252, 248, 242, .08) 100%); }
  .perks__grid, .products__grid, .info__grid { grid-template-columns: 1fr; }
  .perks__grid { gap: 28px; }
  .faq__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo { opacity: 1; }
}
@media (max-width: 560px) {
  .steps__list { grid-template-columns: 1fr 1fr; }
  .cp-dim { grid-template-columns: 70px 80px 1fr; gap: 8px; }
  .cp-swatches { grid-template-columns: repeat(6, 1fr); }
  .cfg-tools__wide span { display: none; }
  .cfg-hint { display: none; }
  .contact__form { padding: 22px; }
  .cfg-bar .btn--wa { padding: 10px 14px; font-size: .85rem; }
}
