/* ==========================================================================
   Cant și Colț – mobilă la comandă din PAL și MDF, Cluj-Napoca
   Melamină albă, antracit și o dungă portocalie: cantul de pe muchia plăcii.
   Colțurile sunt drepte, ca o placă debitată; muchia „cantuită” apare la
   cartonașe, butoane și titluri.
   ========================================================================== */

:root {
	--cc-ink: #2A2C2E;
	--cc-ink-deep: #1B1C1E;
	--cc-text: #3A3733;
	--cc-muted: #6F6A62;
	--cc-edge: #C8551E;
	--cc-edge-dark: #A8441A;
	--cc-edge-soft: #F6DFD2;
	--cc-paper: #F5F3EE;
	--cc-white: #FFFFFF;
	--cc-oak: #C9A27A;
	--cc-oak-soft: #EADCC8;
	--cc-sage: #8E9E86;
	--cc-line: #DDD8CF;

	--cc-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--cc-sans: "Figtree", system-ui, sans-serif;
}

body {
	background: var(--cc-paper);
	color: var(--cc-text);
	font-family: var(--cc-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

h1, h2, h3, h4 {
	font-family: var(--cc-display);
	font-weight: 700;
	color: var(--cc-ink);
	line-height: 1.04;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.1vw, 3.2rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--cc-edge); }

p { max-width: 62ch; }
a { color: var(--cc-ink); text-decoration-color: var(--cc-edge); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--cc-edge-dark); }
:focus-visible { outline: 3px solid var(--cc-edge); outline-offset: 3px; }

/* Butoanele: placă cu cant pe muchia de jos. */
.elementor-button { border-radius: 3px; font-weight: 600; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.cc-btn-line .elementor-button { background: transparent; color: var(--cc-ink); box-shadow: inset 0 0 0 2px currentColor, inset 0 -5px 0 var(--cc-edge); }
.cc-btn-line .elementor-button:hover { background: var(--cc-white); color: var(--cc-ink); }

.cc-kicker { margin: 0; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cc-edge); }
.cc-kicker::before { content: ""; display: inline-block; width: 1.6rem; height: 3px; margin-right: 0.6rem; vertical-align: middle; background: currentColor; }
.cc-hint { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--cc-muted); }

/* ---------- Logo ---------- */

.cc-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--cc-ink); font: 700 1.55rem/1 var(--cc-display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.cc-logo:hover { color: var(--cc-ink); }
.cc-logo i { font-style: normal; font-weight: 500; color: var(--cc-muted); }
.cc-mark { width: 30px; height: 30px; flex: none; }
.cc-mark__board { fill: var(--cc-oak); }
.cc-mark__edge { fill: none; stroke: var(--cc-edge); stroke-width: 4; stroke-linecap: square; }
.cc-dark .cc-logo, .cc-dark .cc-logo:hover { color: #fff; }
.cc-dark .cc-logo i { color: #B9B4AA; }

/* ---------- Desenele ---------- */

.cc-draw { aspect-ratio: auto; }
.cc-svg { display: block; width: 100%; height: auto; }
.cc-hero-art { padding: 1.2rem 1.2rem 0; border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 -6px 0 var(--cc-edge), 0 30px 60px -40px rgba(27, 28, 30, 0.6); }

/* ---------- Calculatorul ---------- */

.cc-config { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; }
.cc-config__controls { display: grid; gap: 1.3rem; padding: 1.5rem; border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line), inset 6px 0 0 var(--cc-edge); }
.cc-config fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.cc-config fieldset[hidden], .cc-config [hidden] { display: none !important; }
.cc-config legend { margin-bottom: 0.55rem; padding: 0; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cc-muted); }
.cc-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cc-opt { position: relative; margin: 0; cursor: pointer; }
.cc-opt input, .cc-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.cc-opt span { display: block; padding: 0.55rem 0.85rem; border: 1.5px solid var(--cc-line); border-radius: 3px; background: var(--cc-paper); font-weight: 500; font-size: 0.95rem; color: var(--cc-ink); line-height: 1.25; }
.cc-opt:hover span { border-color: var(--cc-ink); }
.cc-opt input:checked + span { border-color: var(--cc-ink); background: var(--cc-ink); color: #fff; box-shadow: inset 0 -3px 0 var(--cc-edge); }
.cc-opt input:focus-visible + span, .cc-swatch input:focus-visible + span { outline: 3px solid var(--cc-edge); outline-offset: 2px; }

.cc-range { display: flex; align-items: center; gap: 1rem; }
.cc-range input { flex: 1; min-width: 0; accent-color: var(--cc-edge); height: 28px; }
.cc-range output { min-width: 5.5rem; font: 700 1.4rem var(--cc-display); color: var(--cc-ink); text-align: right; }

.cc-swatches { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.cc-swatch { position: relative; display: grid; justify-items: center; gap: 0.25rem; margin: 0; cursor: pointer; }
.cc-swatch span { display: block; width: 2.6rem; height: 2.6rem; border-radius: 3px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.cc-swatch span.is-wood { background-color: #C9A27A; background-image: repeating-linear-gradient(172deg, transparent 0 5px, rgba(120, 80, 40, 0.35) 5px 6px, transparent 6px 11px); }
.cc-swatch em { font-style: normal; font-size: 0.75rem; color: var(--cc-muted); white-space: nowrap; }
.cc-swatch input:checked + span { box-shadow: 0 0 0 2px var(--cc-paper), 0 0 0 4px var(--cc-ink); }
.cc-swatch input:checked ~ em { color: var(--cc-ink); font-weight: 600; }

.cc-checks { display: grid; gap: 0.5rem; }
.cc-check { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0; cursor: pointer; font-weight: 500; color: var(--cc-ink); line-height: 1.35; }
.cc-check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; accent-color: var(--cc-edge); }
.cc-check small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--cc-muted); }

.cc-config__result { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.cc-config__canvas { padding: 1rem 1rem 0; border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line); }
.cc-quote { padding: 1.4rem 1.5rem; border-radius: 4px; background: var(--cc-ink); color: #CFCBC3; box-shadow: inset 0 -6px 0 var(--cc-edge); }
.cc-quote p { margin: 0; max-width: none; }
.cc-quote__label { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cc-quote__price { margin: 0.3rem 0 0.2rem !important; font: 700 clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem)/1.1 var(--cc-display); color: #fff; letter-spacing: -0.02em; }
.cc-quote__weeks { font-size: 0.95rem; }
.cc-quote__lines { margin: 1rem 0; padding: 0.8rem 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.92rem; }
.cc-quote__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }
.cc-quote__lines b { flex: none; font-weight: 600; color: #fff; }
.cc-quote__cta { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 3px; background: var(--cc-edge); color: #fff; font-weight: 700; text-decoration: none; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2); }
.cc-quote__cta:hover { background: var(--cc-edge-dark); color: #fff; }

.cc-cut { border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line); }
.cc-cut summary { padding: 1rem 1.3rem; font-weight: 700; color: var(--cc-ink); cursor: pointer; }
.cc-cut summary::marker { color: var(--cc-edge); }
.cc-cut p { margin: 0 1.3rem 0.8rem; font-size: 0.92rem; color: var(--cc-muted); }
.cc-cut__table { width: calc(100% - 2.6rem); margin: 0 1.3rem 1.2rem; border-collapse: collapse; font-size: 0.95rem; }
.cc-cut__table th, .cc-cut__table td { padding: 0.45rem 0; border: 0; border-top: 1px dashed var(--cc-line); background: none !important; text-align: left; font-weight: 400; vertical-align: top; line-height: 1.4; }
.cc-cut__table td { padding-left: 1rem; text-align: right; font-weight: 700; color: var(--cc-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-config__note { margin: 0; font-size: 0.85rem; color: var(--cc-muted); max-width: none; }

/* Pe telefon, prețul rămâne la vedere cât timp schimbi opțiunile. */
.cc-mbar { display: none; }
@media (max-width: 1024px) {
	.cc-mbar { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-radius: 4px; background: var(--cc-ink); color: #fff; text-decoration: none; box-shadow: inset 0 -4px 0 var(--cc-edge), 0 12px 30px -10px rgba(0, 0, 0, 0.5); transform: translateY(140%); transition: transform 0.2s ease; }
	.cc-mbar.is-on { transform: none; }
	.cc-mbar:hover { color: #fff; }
	.cc-mbar small { display: block; font-size: 0.75rem; color: #B9B4AA; }
	.cc-mbar strong { font: 700 1.1rem var(--cc-display); }
	.cc-mbar span:last-child { flex: none; font-weight: 700; color: #F2B08F; }
}
@media (prefers-reduced-motion: reduce) { .cc-mbar { transition: none; } }

/* ---------- Ce facem ---------- */

.cc-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cc-line); }
.cc-rooms li { position: relative; padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--cc-line); }
.cc-rooms li:not(:nth-child(3n + 1)) { padding-left: 1.6rem; border-left: 1px solid var(--cc-line); }
.cc-rooms__n { font: 700 0.85rem var(--cc-display); color: var(--cc-edge); }
.cc-rooms h3 { margin: 0.3rem 0 0.4rem; }
.cc-rooms h3 a { text-decoration: none; }
.cc-rooms h3 a:hover { text-decoration: underline; text-decoration-color: var(--cc-edge); }
.cc-rooms p { margin: 0; font-size: 0.97rem; }

/* ---------- Materiale ---------- */

.cc-materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.cc-material { display: flex; flex-direction: column; padding: 1.4rem; border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line); }
.cc-material__sample { height: 90px; margin-bottom: 1.1rem; border-radius: 2px; box-shadow: inset 0 -6px 0 var(--cc-edge); }
.cc-material--pal .cc-material__sample { background: repeating-linear-gradient(174deg, #C9A27A 0 7px, #B68D63 7px 8px, #CDA780 8px 15px); }
.cc-material--folie .cc-material__sample { background: linear-gradient(90deg, #8E9E86 0 46%, #7D8D75 46% 50%, #8E9E86 50%); box-shadow: inset 0 -6px 0 var(--cc-edge), inset 0 0 0 10px #93A38B; }
.cc-material--mat .cc-material__sample { background: linear-gradient(135deg, #2F5560, #3A6370 60%, #2F5560); }
.cc-material h3 { margin: 0 0 0.4rem; }
.cc-material p { margin: 0; font-size: 0.97rem; }
.cc-material__bars { display: grid; gap: 0.35rem; margin: 1rem 0; padding: 0; list-style: none; font-size: 0.88rem; }
.cc-material__bars li { display: flex; justify-content: space-between; align-items: center; }
.cc-meter { display: inline-flex; gap: 3px; }
.cc-meter i { width: 1.6rem; height: 0.45rem; background: var(--cc-line); }
.cc-meter i:nth-child(-n + 1) { background: var(--cc-ink); }
.cc-meter[style*="--n:2"] i:nth-child(-n + 2), .cc-meter[style*="--n:3"] i { background: var(--cc-ink); }
.cc-material__price { margin-top: auto !important; padding-top: 0.6rem; font: 700 1.2rem var(--cc-display); color: var(--cc-ink); }

/* ---------- Proiecte ---------- */

.cc-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.cc-project__art { display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 1rem 1rem 5px; border-radius: 4px; background: #ECE8E1; box-shadow: inset 0 0 0 1px var(--cc-line), inset 0 -5px 0 var(--cc-edge); }
.cc-project__art .cc-draw { width: 100%; height: 100%; }
.cc-project__art .cc-svg { width: 100%; height: 100%; }
.cc-project__place { margin: 0.9rem 0 0.15rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cc-edge); }
.cc-project h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.cc-project p:last-child { margin: 0; font-size: 0.95rem; color: var(--cc-muted); }

/* ---------- Pași și automatizări ---------- */

.cc-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.cc-steps li { counter-increment: step; position: relative; padding: 1.4rem 1.4rem 1.4rem 1.6rem; border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line), inset 5px 0 0 var(--cc-edge); }
.cc-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 1.1rem; right: 1.3rem; font: 700 2.2rem/1 var(--cc-display); color: var(--cc-oak-soft); }
.cc-steps__when, .cc-flow__when { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cc-edge); }
.cc-steps h3 { margin: 0.25rem 0 0.35rem; }
.cc-steps p { margin: 0; font-size: 0.97rem; }

.cc-flow { position: relative; display: grid; margin: 0; padding: 0 0 0 2rem; list-style: none; }
.cc-flow::before { content: ""; position: absolute; left: 0.5rem; top: 0.5rem; bottom: 0.5rem; width: 3px; background: var(--cc-edge); }
.cc-flow li { position: relative; padding: 0 0 1.4rem; }
.cc-flow li::before { content: ""; position: absolute; left: -2rem; top: 0.3rem; width: 1.05rem; height: 1.05rem; background: var(--cc-ink-deep); box-shadow: inset 0 0 0 3px var(--cc-edge); }
.cc-flow li:last-child { padding-bottom: 0; }
.cc-flow h3 { margin: 0.1rem 0 0.2rem; font-size: 1.25rem; }
.cc-flow p { margin: 0; color: #B9B4AA; }

/* ---------- Asistentul ---------- */

.cc-chat { display: flex; flex-direction: column; border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line), 0 30px 60px -40px rgba(27, 28, 30, 0.6); overflow: hidden; }
.cc-chat__head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; background: var(--cc-ink); color: #CFCBC3; box-shadow: inset 0 -4px 0 var(--cc-edge); }
.cc-chat__head p { margin: 0; line-height: 1.3; }
.cc-chat__head strong { display: block; color: #fff; }
.cc-chat__head span { font-size: 0.88rem; }
.cc-chat__avatar { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 3px; background: var(--cc-paper); }
.cc-chat__avatar .cc-mark { width: 24px; height: 24px; }
.cc-chat__log { display: flex; flex-direction: column; gap: 0.6rem; height: 320px; padding: 1.1rem; overflow-y: auto; }
.cc-chat__msg { max-width: 86%; margin: 0; padding: 0.7rem 0.95rem; border-radius: 4px; font-size: 0.97rem; line-height: 1.5; }
.cc-chat__msg--bot { align-self: flex-start; background: var(--cc-paper); color: var(--cc-text); box-shadow: inset 3px 0 0 var(--cc-oak); }
.cc-chat__msg--me { align-self: flex-end; background: var(--cc-ink); color: #fff; }
.cc-chat__typing { display: flex; gap: 4px; }
.cc-chat__typing i { width: 7px; height: 7px; background: var(--cc-muted); animation: cc-dot 1s infinite ease-in-out; }
.cc-chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.cc-chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cc-dot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cc-chat__typing i { animation: none; } }
.cc-chat__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1.1rem 0.8rem; }
.cc-chip { padding: 0.4rem 0.75rem; border: 1.5px solid var(--cc-line); border-radius: 3px; background: transparent; color: var(--cc-ink); font: 500 0.88rem var(--cc-sans); cursor: pointer; }
.cc-chip:hover, .cc-chip:focus { border-color: var(--cc-ink); background: var(--cc-paper); color: var(--cc-ink); }
.cc-chat__form { display: flex; gap: 0.5rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--cc-line); }
.cc-chat__form input { flex: 1; min-width: 0; min-height: 44px; padding: 0.5rem 0.9rem; border: 1.5px solid var(--cc-line); border-radius: 3px; background: var(--cc-paper); font: 400 1rem var(--cc-sans); }
.cc-chat__form input:focus { border-color: var(--cc-ink); outline: none; }
.cc-chat__form button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 3px; background: var(--cc-edge); color: #fff; font: 600 0.95rem var(--cc-sans); cursor: pointer; }
.cc-chat__form button:hover { background: var(--cc-edge-dark); }
.cc-chat__note { margin: 0; padding: 0.8rem 1.1rem 1rem; font-size: 0.82rem; color: var(--cc-muted); background: var(--cc-paper); max-width: none; }

/* ---------- Liste, cartonașe, formular ---------- */

.cc-list { margin: 0; padding: 0; list-style: none; }
.cc-list li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; }
.cc-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.9rem; height: 0.9rem; border-left: 3px solid var(--cc-edge); border-top: 3px solid var(--cc-edge); }

.cc-card { padding: 1.5rem; border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line), inset 0 4px 0 var(--cc-edge); }
.cc-card h3 { margin: 0 0 0.4rem; }
.cc-card p { margin: 0; }

.cc-form { border-radius: 4px; background: var(--cc-white); box-shadow: inset 0 0 0 1px var(--cc-line), inset 0 6px 0 var(--cc-edge); }
.cc-form .elementor-field-group .elementor-field-textual,
.cc-form .elementor-field-group select { border: 1.5px solid var(--cc-line); border-radius: 3px; background: var(--cc-paper); }
.cc-form .elementor-field-group .elementor-field-textual:focus,
.cc-form .elementor-field-group select:focus { border-color: var(--cc-ink); box-shadow: none; }
.cc-form .elementor-field-type-acceptance label { font-size: 0.9rem; }

/* ---------- Secțiunile închise ---------- */

.cc-dark { color: #CFCBC3; }
.cc-dark h1, .cc-dark h2, .cc-dark h3, .cc-dark h4, .cc-dark .elementor-heading-title { color: #fff; }
.cc-dark .elementor-widget-text-editor { color: #CFCBC3; }
.cc-dark a:not(.elementor-button) { color: #fff; }
.cc-footer p { margin-bottom: 0.3em; }

@media (max-width: 1024px) {
	.cc-config { grid-template-columns: 1fr; }
	.cc-config__result { position: static; }
	.cc-materials, .cc-projects, .cc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cc-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cc-rooms li, .cc-rooms li:not(:nth-child(3n + 1)) { padding: 1.4rem 1.4rem 1.6rem 0; border-left: 0; }
	.cc-rooms li:nth-child(2n) { padding-left: 1.4rem; border-left: 1px solid var(--cc-line); }
}
@media (max-width: 767px) {
	.cc-materials, .cc-projects, .cc-steps, .cc-rooms { grid-template-columns: 1fr; }
	.cc-rooms li:nth-child(2n) { padding-left: 0; border-left: 0; }
	.cc-config__controls { padding: 1.2rem 1.1rem 1.2rem 1.4rem; }
	.cc-quote { padding: 1.2rem; }
	.cc-chat__log { height: 300px; }
}
