/*
 * "Despre noi" — the approved V3 language applied to page 31.
 *
 * Tokens, `.layout`, `.label` and `.btn` come from v3.css unchanged. This file
 * adds only the Elementor plumbing they need off the homepage plus this page's
 * sections. Scoped to the `iq-despre` body class.
 */

/* ── Elementor plumbing ───────────────────────────────────────────────────── */

body.iq-despre .elementor .e-con {
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--container-max-width: none;
	--content-width: 100%;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--grid-gap: 0px;
}

body.iq-despre .elementor .e-con-inner { display: contents; }
body.iq-despre .elementor .elementor-widget { width: 100%; }
body.iq-despre .elementor .elementor-widget-container { display: block; }

body.iq-despre .elementor .elementor-widget-image,
body.iq-despre .elementor .elementor-widget-image .elementor-image,
body.iq-despre .elementor .elementor-widget-image figure { margin: 0; line-height: 0; }

body.iq-despre .elementor :is(.dn-cta__inner, .dn-cta__actions) { flex-direction: row; }

/* ── Scoped reset ─────────────────────────────────────────────────────────── */

:where(body.iq-despre .elementor) *,
:where(body.iq-despre .elementor) *::before,
:where(body.iq-despre .elementor) *::after { box-sizing: border-box; }

:where(body.iq-despre .elementor) img { display: block; max-width: 100%; height: auto; }

:where(body.iq-despre .elementor) :is(h1, h2, h3) {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: var(--track-display);
	line-height: var(--lh-tight);
}

:where(body.iq-despre .elementor) p { margin: 0; }
:where(body.iq-despre .elementor) a { color: inherit; text-decoration: none; text-underline-offset: .2em; }

body.iq-despre .elementor {
	font-family: var(--font-body);
	font-size: var(--t-body);
	line-height: var(--lh-body);
	color: var(--ink);
	background: var(--paper);
}

body.iq-despre .wd-page-title,
body.iq-despre .wd-sidebar,
body.iq-despre .widget-area,
body.iq-despre .wd-scroll-top { display: none !important; }

body.iq-despre .elementor .elementor-widget-text-editor p + p { margin-block-start: 12px; }

/* Woodmart draws the focus ring with `!important` from its own variables. */
body.iq-despre {
	--wd-otl-width: 3px;
	--wd-otl-style: solid;
	--wd-otl-color: var(--red);
	--wd-otl-offset: 3px;
}
body.iq-despre .dn-cta__inner { --wd-otl-color: #FFFFFF; }

body.iq-despre .elementor :is(a, button):focus-visible {
	outline: 3px solid var(--wd-otl-color, var(--red));
	outline-offset: 3px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

/* `all: unset` must be first or it wipes what precedes it. */
body.iq-despre .elementor .btn .elementor-button {
	all: unset;
	box-sizing: border-box;
	outline-offset: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid var(--red);
	background: var(--red);
	color: #FFFFFF;
	font-family: var(--font-display);
	font-size: var(--t-small);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
body.iq-despre .elementor .btn--light .elementor-button { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
body.iq-despre .elementor .btn--light .elementor-button:hover,
body.iq-despre .elementor .btn--light .elementor-button:focus-visible { background: var(--sunk); border-color: var(--sunk); color: var(--ink); }

body.iq-despre .elementor .dn-cta__link .elementor-button {
	all: unset;
	box-sizing: border-box;
	outline-offset: 3px;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	color: #FFFFFF;
	font-family: var(--font-display);
	font-size: var(--t-small);
	font-weight: 600;
	cursor: pointer;
}
body.iq-despre .elementor .dn-cta__link .elementor-button:hover,
body.iq-despre .elementor .dn-cta__link .elementor-button:focus-visible { text-decoration: underline; }

body.iq-despre .dn-cta__actions .elementor-widget { padding: 0; width: auto; }
body.iq-despre .dn-cta__actions .elementor-button-wrapper { width: 100%; }

/* Inline links in prose. */
body.iq-despre :is(.dn-shop__link, .dn-area__link) a { color: var(--red); text-decoration: underline; }

/* ── 1. Head ──────────────────────────────────────────────────────────────── */

body.iq-despre .dn-head { padding-block: var(--sp-md) 0; }
body.iq-despre .dn-head__inner { grid-column: col 1 / col 9; }

body.iq-despre .dn-crumbs { font-size: var(--t-small); color: var(--graphite); }
body.iq-despre .dn-crumbs a:hover,
body.iq-despre .dn-crumbs a:focus-visible { color: var(--red); text-decoration: underline; }
body.iq-despre .dn-crumbs [aria-current] { color: var(--ink); }

body.iq-despre .dn-head__inner .label { display: block; margin-block-start: 18px; }
body.iq-despre .dn-title { margin-block: 10px 12px; font-size: clamp(34px, 3.6vw, 56px); }
body.iq-despre .dn-lead { max-width: 56ch; color: var(--graphite); font-size: var(--t-lead); }

/* ── 2. What we do ────────────────────────────────────────────────────────── */

body.iq-despre .dn-what { padding-block: var(--sp-lg) 0; row-gap: var(--sp-md); }

body.iq-despre .dn-what__text { grid-column: col 1 / col 7; }
body.iq-despre .dn-what__text .label { display: block; }
body.iq-despre .dn-what__title { margin-block: 10px 14px; font-size: var(--t-h2); }
body.iq-despre .dn-what__body { color: var(--graphite); }

body.iq-despre .dn-what__apps { grid-column: col 8 / content-end; }
body.iq-despre .dn-what__appsTitle { font-size: var(--t-h3); margin-block-end: 14px; }

body.iq-despre .dn-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--col-gap);
}

body.iq-despre .dn-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: var(--sp-sm);
	background: var(--sunk);
}
body.iq-despre .dn-card__title { font-size: var(--t-h3); }
body.iq-despre .dn-card__body { color: var(--graphite); font-size: 16px; }

/* ── 3. The workshop ──────────────────────────────────────────────────────── */

body.iq-despre .dn-shop { padding-block: var(--sp-lg) 0; row-gap: var(--sp-sm); }

body.iq-despre .dn-shop__media { grid-column: col 1 / col 7; }
body.iq-despre .dn-shop__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

body.iq-despre .dn-shop__body {
	grid-column: col 8 / content-end;
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
body.iq-despre .dn-shop__body .label { display: block; }
body.iq-despre .dn-shop__title { font-size: var(--t-h2); }
body.iq-despre .dn-shop__text { color: var(--graphite); }

body.iq-despre .dn-kit {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-sm);
	margin-block-start: 4px;
	padding-block-start: var(--sp-sm);
	border-block-start: 1px solid var(--rule);
}
body.iq-despre .dn-kit__label { flex: 1 0 100%; }
body.iq-despre .dn-kit__item { display: flex; flex-direction: column; gap: 2px; }
body.iq-despre .dn-kit__qty {
	font-family: var(--font-display);
	font-size: clamp(22px, 1.8vw, 28px);
	font-weight: 600;
	line-height: 1;
	color: var(--red);
}
body.iq-despre .dn-kit__name { font-size: 16px; }

/* ── 4. Service area ──────────────────────────────────────────────────────── */

body.iq-despre .dn-area { padding-block: var(--sp-lg) 0; }
body.iq-despre .dn-area__inner {
	grid-column: col 1 / col 9;
	padding-block-start: var(--sp-md);
	border-block-start: 2px solid var(--ink);
}
body.iq-despre .dn-area__inner .label { display: block; }
body.iq-despre .dn-area__title { margin-block: 10px 12px; font-size: var(--t-h2); }
body.iq-despre .dn-area__body { max-width: 58ch; color: var(--graphite); }
body.iq-despre .dn-area__link { margin-block-start: 12px; }

/* ── 5. Routes ────────────────────────────────────────────────────────────── */

body.iq-despre .dn-routes { padding-block: var(--sp-lg) 0; row-gap: var(--sp-md); }
body.iq-despre .dn-routes__head { grid-column: col 1 / col 9; }
body.iq-despre .dn-routes__head .label { display: block; margin-block-end: 10px; }
body.iq-despre .dn-routes__title { font-size: var(--t-h2); }

body.iq-despre .dn-routes__grid {
	grid-column: col 1 / content-end;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--col-gap);
}

body.iq-despre .dn-route {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: var(--sp-sm);
	border: 1px solid var(--rule);
	transition: border-color var(--dur) var(--ease);
}
body.iq-despre .dn-route:has(.dn-route__cta:hover) { border-color: var(--ink); }
body.iq-despre .dn-route:has(.dn-route__cta:focus-visible) { border-color: var(--ink); outline: 3px solid var(--red); outline-offset: 3px; }

body.iq-despre .dn-route__title { font-size: var(--t-h3); }
body.iq-despre .dn-route__body { color: var(--graphite); font-size: 16px; }
body.iq-despre .dn-route__foot { margin-block-start: auto; padding-block-start: 12px; }
body.iq-despre .dn-route__cta { color: var(--red); font-family: var(--font-display); font-weight: 600; font-size: var(--t-small); }

/* Elementor positions every element, so the foot's wrappers step out of the way
   before the link is stretched over the whole card. */
body.iq-despre .dn-route__foot,
body.iq-despre .dn-route__foot .elementor-element,
body.iq-despre .dn-route__foot .elementor-widget-container { position: static; }
body.iq-despre .elementor .dn-route__cta:focus-visible { outline: none; }
body.iq-despre .dn-route__cta { --wd-otl-width: 0; }
body.iq-despre .dn-route__cta::after { content: ''; position: absolute; inset: 0; z-index: 2; }

/* ── 6. Closing CTA ───────────────────────────────────────────────────────── */

body.iq-despre .dn-cta { padding-block: var(--sp-lg); }

body.iq-despre .dn-cta__inner {
	grid-column: col 1 / content-end;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-sm);
	padding: var(--sp-md);
	background: var(--red-deep);
	color: var(--inv-text);
}

body.iq-despre .dn-cta__text { flex: 0 1 auto; width: auto; max-width: 56ch; }
body.iq-despre .dn-cta__text .label { display: block; }
body.iq-despre .dn-cta__title { color: #FFFFFF; font-size: clamp(22px, 1.9vw, 30px); margin-block: 10px 8px; }
body.iq-despre .dn-cta__body { color: rgba(255, 255, 255, .86); max-width: 52ch; }

body.iq-despre .dn-cta__actions {
	flex: 0 0 auto;
	width: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-sm);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
	body.iq-despre .dn-head__inner,
	body.iq-despre .dn-area__inner,
	body.iq-despre .dn-routes__head { grid-column: col 1 / col 11; }
	body.iq-despre .dn-what__text,
	body.iq-despre .dn-shop__media { grid-column: col 1 / col 6; }
	body.iq-despre .dn-what__apps,
	body.iq-despre .dn-shop__body { grid-column: col 7 / content-end; }
}

@media (max-width: 900px) {
	/* Stacked, the applications block needs air above its heading. */
	body.iq-despre .dn-what__apps { margin-block-start: var(--sp-md); }

	body.iq-despre .dn-what__text,
	body.iq-despre .dn-what__apps,
	body.iq-despre .dn-shop__media,
	body.iq-despre .dn-shop__body { grid-column: col 1 / content-end; }
	body.iq-despre .dn-routes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	body.iq-despre .dn-head__inner,
	body.iq-despre .dn-area__inner,
	body.iq-despre .dn-routes__head { grid-column: col 1 / content-end; }

	body.iq-despre .dn-grid,
	body.iq-despre .dn-routes__grid { grid-template-columns: minmax(0, 1fr); }

	body.iq-despre .dn-cta__inner,
	body.iq-despre .dn-cta__actions { flex-direction: column; align-items: stretch; }
	body.iq-despre .dn-cta__text,
	body.iq-despre .dn-cta__actions { width: 100%; max-width: none; }
	body.iq-despre .dn-cta__actions .elementor-widget { width: 100%; }
	body.iq-despre .dn-cta__actions .elementor-widget > .elementor-widget-container { flex: 1 1 auto; width: 100%; }
	body.iq-despre .elementor .btn .elementor-button { width: 100%; }
	body.iq-despre .elementor .dn-cta__link .elementor-button { justify-content: flex-start; }

	body.iq-despre :is(.dn-shop__link, .dn-area__link) a { display: inline-flex; align-items: center; min-height: 44px; }
}
