/* ==========================================================================
   DubaiGlass design system
   Palette: the DubaiGlass logo blue on cool paper; ink is a blue-black.
   Type: Archivo variable (width + weight). Expanded width for display, normal for text.
   Signature: the frosted "pane" — a translucent glass panel with a green leading edge.
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	--dg-ink: #0e1726;
	--dg-ink-2: #344055;
	--dg-ink-3: #5c6880;
	--dg-paper: #f6f8fa;
	--dg-white: #ffffff;
	--dg-mist: #e7ecf3;
	--dg-line: #cfd7e3;
	--dg-edge: #2a5bb0;
	--dg-edge-deep: #1d4a9a;
	--dg-edge-light: #afc6ee;
	--dg-radius: 6px;
	--dg-wrap: 1240px;
	--dg-gutter: clamp(16px, 4vw, 40px);
	--dg-sec: clamp(56px, 8vw, 112px);
	--dg-font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--dg-shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 12px 32px rgba(14, 23, 38, .08);
	--dg-ease: cubic-bezier(.2, .7, .2, 1);
	--dg-header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--dg-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--dg-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	color: var(--dg-ink);
	background: var(--dg-paper);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--dg-edge-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--dg-ink); }
:focus-visible { outline: 2px solid var(--dg-edge); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 640; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dg-skip { position: absolute; left: 16px; top: -100px; z-index: 1001; background: var(--dg-ink); color: #fff; padding: 10px 16px; border-radius: var(--dg-radius); }
.dg-skip:focus { top: 12px; color: #fff; }

.dg-wrap { width: 100%; max-width: var(--dg-wrap); margin-inline: auto; padding-inline: var(--dg-gutter); }

/* ---------- Type roles ---------- */
.dg-display {
	font-stretch: 118%;
	font-weight: 660;
	font-size: clamp(2.1rem, 1.35rem + 3.3vw, 4.1rem);
	line-height: 1.02;
	letter-spacing: -.028em;
	text-wrap: balance;
}
.dg-h2 {
	font-stretch: 112%;
	font-weight: 640;
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
	line-height: 1.08;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.dg-h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; }
.dg-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--dg-ink-2); max-width: 60ch; }
.dg-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 18px;
	font-size: .75rem; font-weight: 640; letter-spacing: .14em; text-transform: uppercase;
	color: var(--dg-edge-deep);
}
.dg-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--dg-edge); }
.dg-muted { color: var(--dg-ink-3); }

/* ---------- Buttons ---------- */
.dg-btn {
	--b: var(--dg-ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 22px;
	font: inherit; font-size: .9375rem; font-weight: 620; letter-spacing: .005em; line-height: 1.1;
	text-decoration: none; white-space: nowrap;
	border: 1.5px solid transparent; border-radius: var(--dg-radius);
	cursor: pointer;
	transition: background-color .2s var(--dg-ease), color .2s var(--dg-ease), border-color .2s var(--dg-ease), transform .2s var(--dg-ease);
}
.dg-btn:active { transform: translateY(1px); }
.dg-btn .dg-ico { width: 20px; height: 20px; flex: none; }
.dg-btn--wa, .dg-btn--solid { background: var(--dg-edge-deep); color: #fff; }
.dg-btn--wa:hover, .dg-btn--solid:hover { background: var(--dg-ink); color: #fff; }
.dg-btn--line { border-color: var(--dg-ink); color: var(--dg-ink); background: transparent; }
.dg-btn--line:hover { background: var(--dg-ink); color: #fff; }
.dg-btn--ghost { color: var(--dg-ink); background: transparent; padding-inline: 12px; }
.dg-btn--ghost:hover { color: var(--dg-edge-deep); }
.dg-btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.dg-btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.dg-btn--text { background: none; color: var(--dg-ink-2); text-decoration: underline; padding-inline: 8px; }
.dg-btn[disabled] { opacity: .6; cursor: progress; }
.dg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.dg-header { position: sticky; top: 0; z-index: 900; background: rgba(246, 248, 250, .92); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.dg-header.is-scrolled { border-bottom-color: var(--dg-line); box-shadow: 0 6px 24px rgba(14, 23, 38, .06); }
.dg-header__util { background: var(--dg-ink); color: #c7d0de; font-size: .8125rem; }
.dg-header__util-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.dg-header__util a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dg-header__util a:hover { color: #fff; }
.dg-header__util .dg-ico { width: 15px; height: 15px; color: var(--dg-edge-light); }
.dg-header__util-note { color: #8e9bb3; }
.dg-header.is-scrolled .dg-header__util { display: none; }
.dg-header__main { display: flex; align-items: center; gap: 24px; min-height: var(--dg-header-h); }
.dg-header__brand { color: var(--dg-ink); text-decoration: none; flex: none; }

.dg-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--dg-ink); }
.dg-logo__mark { width: auto; height: 44px; }
.dg-logo__text { font-stretch: 120%; font-weight: 560; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.dg-logo__text b { font-weight: 760; color: var(--dg-edge-deep); }
.dg-logo--light .dg-logo__mark { height: 52px; }
.dg-logo--light { color: #fff; }
.dg-logo--light .dg-logo__text b { color: var(--dg-edge-light); }

.dg-nav { margin-left: auto; }
.dg-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.dg-nav__item { position: relative; }
.dg-nav__link {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
	font: inherit; font-size: .9375rem; font-weight: 560; color: var(--dg-ink); text-decoration: none;
	background: none; border: 0; cursor: pointer; border-radius: var(--dg-radius);
}
.dg-nav__link:hover, .dg-nav__link[aria-current="page"] { color: var(--dg-edge-deep); }
.dg-nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--dg-edge); border-radius: 0; }
.dg-nav__toggle svg { transition: transform .2s; }
.dg-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.dg-sub {
	position: absolute; top: calc(100% + 10px); left: -16px; width: min(720px, 80vw);
	background: var(--dg-white); border: 1px solid var(--dg-line); border-top: 2px solid var(--dg-edge);
	border-radius: 0 0 var(--dg-radius) var(--dg-radius); box-shadow: var(--dg-shadow);
	padding: 14px;
}
.dg-sub[hidden] { display: none; }
.dg-sub__grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dg-sub__grid a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--dg-radius); text-decoration: none; color: var(--dg-ink); }
.dg-sub__grid a:hover, .dg-sub__grid a[aria-current="page"] { background: var(--dg-mist); }
.dg-sub__title { font-weight: 640; font-size: .9375rem; }
.dg-sub__text { font-size: .8125rem; line-height: 1.45; color: var(--dg-ink-3); }
.dg-sub__all { display: inline-flex; align-items: center; gap: 8px; margin: 8px 14px 4px; font-weight: 600; font-size: .875rem; text-decoration: none; }
.dg-sub__all .dg-ico { width: 16px; height: 16px; }

.dg-header__cta { display: flex; align-items: center; gap: 6px; }
.dg-header__cta .dg-btn { min-height: 44px; font-size: .875rem; }
.dg-header__wa { padding-inline: 16px; }

.dg-burger { display: none; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 4px 0 10px; background: none; border: 0; font: inherit; font-weight: 600; font-size: .9375rem; color: var(--dg-ink); cursor: pointer; }
.dg-burger__bars, .dg-burger__bars::before, .dg-burger__bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--dg-ease), background-color .2s; }
.dg-burger__bars::before, .dg-burger__bars::after { content: ""; position: absolute; left: 0; }
.dg-burger__bars::before { top: -7px; }
.dg-burger__bars::after { top: 7px; }
.dg-burger[aria-expanded="true"] .dg-burger__bars { background: transparent; }
.dg-burger[aria-expanded="true"] .dg-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.dg-burger[aria-expanded="true"] .dg-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

.dg-mobile-nav { border-top: 1px solid var(--dg-line); background: var(--dg-paper); max-height: calc(100dvh - var(--dg-header-h)); overflow-y: auto; padding: 8px 0 28px; }
.dg-mobile-nav[hidden] { display: none; }
.dg-mobile-nav__label { margin: 12px 0 4px; font-size: .75rem; font-weight: 640; letter-spacing: .14em; text-transform: uppercase; color: var(--dg-edge-deep); }
.dg-mobile-nav__list { list-style: none; }
.dg-mobile-nav__list a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--dg-line); color: var(--dg-ink); text-decoration: none; font-weight: 560; font-size: 1.0625rem; }
.dg-mobile-nav__list a[aria-current="page"] { color: var(--dg-edge-deep); }
.dg-mobile-nav__list--pages { margin-top: 18px; }
.dg-mobile-nav__addr { margin: 20px 0 0; font-size: .875rem; color: var(--dg-ink-3); }

@media (max-width: 1080px) {
	.dg-header__call span { display: none; }
	.dg-header__call { padding-inline: 10px; }
	.dg-nav__link { padding: 0 9px; }
}
@media (max-width: 900px) {
	:root { --dg-header-h: 64px; }
	.dg-nav, .dg-header__cta, .dg-header__util { display: none; }
	.dg-burger { display: inline-flex; }
}

/* ---------- Sections ---------- */
.dg-main { display: block; }
.dg-sec { padding-block: var(--dg-sec); }
.dg-sec--mist { background: var(--dg-mist); }
.dg-sec--ink { background: var(--dg-ink); color: #dde4ee; }
.dg-sec--ink .dg-h2, .dg-sec--ink .dg-h3 { color: #fff; }
.dg-sec--ink .dg-eyebrow { color: var(--dg-edge-light); }
.dg-sec--ink .dg-eyebrow::before { background: var(--dg-edge-light); }
.dg-sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.dg-sec__head .dg-h2 { margin: 0; }
.dg-sec__head p { margin: 0; color: var(--dg-ink-2); max-width: 52ch; }
.dg-sec--ink .dg-sec__head p { color: #b6c1d3; }
@media (max-width: 800px) { .dg-sec__head { grid-template-columns: 1fr; } }

/* ---------- Home hero: text column + justified photo row (no overlay on photos) ---------- */
.dg-hero2 { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--dg-white) 0%, var(--dg-paper) 100%); border-bottom: 1px solid var(--dg-line); }
.dg-hero2__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.dg-hero2__text .dg-display { margin-bottom: 18px; font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.5rem); }
.dg-hero2__text .dg-lead { margin: 0; }
.dg-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--dg-line); font-size: .875rem; color: var(--dg-ink-2); }
.dg-trust li { display: inline-flex; align-items: center; gap: 8px; }
.dg-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dg-edge); }
.dg-hgal { display: flex; gap: clamp(8px, 1vw, 14px); align-items: flex-start; }
.dg-hgal__item { margin: 0; flex-basis: 0; min-width: 0; }
.dg-hgal__item img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; border-radius: var(--dg-radius); box-shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 10px 28px rgba(14, 23, 38, .10); background: var(--dg-mist); }
.dg-hgal__item figcaption { margin-top: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.dg-hgal__item figcaption a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--dg-ink); text-decoration: none; }
.dg-hgal__item figcaption a:hover { color: var(--dg-edge-deep); }
.dg-hgal__item figcaption .dg-ico { width: 14px; height: 14px; }
@media (max-width: 900px) {
	.dg-hero2__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.dg-hero2 { padding-top: 20px; }
	.dg-hero2__text .dg-display { font-size: 2.05rem; }
	.dg-hero2 .dg-actions .dg-btn { flex: 1 1 100%; }
	.dg-hgal__item figcaption { font-size: .75rem; }
	.dg-hgal__item figcaption .dg-ico { display: none; }
	.dg-hgal__item figcaption a { min-height: 28px; line-height: 1.25; }
	.dg-trust { font-size: .8125rem; gap: 6px 14px; }
}

/* ---------- Inner page hero: photo at its natural ratio ---------- */
.dg-phero { padding: clamp(20px, 3vw, 36px) 0 var(--dg-sec); }
.dg-phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(20px, 3vw, 40px); }
.dg-phero__media { position: relative; margin: 0; justify-self: end; max-width: min(100%, 620px); }
.dg-phero__media img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(78vh, 720px); border-radius: var(--dg-radius); box-shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 16px 40px rgba(14, 23, 38, .12); }
.dg-phero__media::before { content: ""; position: absolute; left: -14px; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--dg-edge); }
.dg-phero .dg-display { margin-bottom: 20px; }
.dg-facts { list-style: none; display: grid; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--dg-line); font-size: .9375rem; color: var(--dg-ink-2); }
.dg-facts li { display: flex; gap: 10px; align-items: baseline; }
.dg-facts li::before { content: ""; flex: none; width: 8px; height: 8px; border: 1.5px solid var(--dg-edge); transform: translateY(-1px); }
@media (max-width: 860px) {
	.dg-phero__grid { grid-template-columns: 1fr; }
	.dg-phero__media { order: -1; justify-self: center; }
	.dg-phero__media img { max-height: 64vh; }
	.dg-phero__media::before { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.dg-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--dg-ink-3); }
.dg-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dg-line); }
.dg-crumbs a { color: var(--dg-ink-3); text-decoration: none; }
.dg-crumbs a:hover { color: var(--dg-edge-deep); text-decoration: underline; }

/* ---------- Service cards ---------- */
.dg-service-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.dg-service-card a { display: flex; flex-direction: column; height: 100%; color: var(--dg-ink); text-decoration: none; background: var(--dg-white); border-radius: var(--dg-radius); overflow: hidden; box-shadow: 0 0 0 1px var(--dg-line); transition: box-shadow .25s var(--dg-ease), transform .25s var(--dg-ease); }
.dg-service-card a:hover { box-shadow: 0 0 0 1px var(--dg-edge), var(--dg-shadow); transform: translateY(-2px); }
.dg-service-card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--dg-mist); }
.dg-service-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--dg-ease); }
.dg-service-card a:hover .dg-service-card__media img { transform: scale(1.02); }

.dg-service-card__media::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dg-edge); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--dg-ease); }
.dg-service-card a:hover .dg-service-card__media::after { transform: scaleY(1); }
.dg-service-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.dg-service-card__title { font-stretch: 110%; font-weight: 660; font-size: 1.1875rem; letter-spacing: -.012em; }
.dg-service-card__text { font-size: .9375rem; color: var(--dg-ink-2); line-height: 1.5; }
.dg-service-card__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 620; font-size: .875rem; color: var(--dg-edge-deep); }
.dg-service-card__more .dg-ico { width: 16px; height: 16px; transition: transform .2s; }
.dg-service-card a:hover .dg-service-card__more .dg-ico { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .dg-service-card a, .dg-service-card__media img { transition: none; } .dg-service-card a:hover { transform: none; } .dg-service-card a:hover .dg-service-card__media img { transform: none; } }
@media (max-width: 1000px) { .dg-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dg-service-grid { grid-template-columns: 1fr; } }

/* ---------- Options / feature cards ---------- */
.dg-options { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--dg-line); border: 1px solid var(--dg-line); border-radius: var(--dg-radius); overflow: hidden; }
.dg-options li { background: var(--dg-paper); padding: 26px 24px 24px; }
.dg-sec--mist .dg-options li { background: var(--dg-white); }
.dg-options h3 { font-size: 1.0625rem; font-weight: 660; margin-bottom: 8px; }
.dg-options p { margin: 0; font-size: .9375rem; color: var(--dg-ink-2); line-height: 1.55; }
@media (max-width: 1000px) { .dg-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dg-options { grid-template-columns: 1fr; } }
.dg-options .dg-tag { display: inline-block; margin-bottom: 12px; font-size: .6875rem; font-weight: 660; letter-spacing: .12em; text-transform: uppercase; color: var(--dg-edge-deep); }

/* ---------- Process steps (a real sequence) ---------- */
.dg-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.dg-steps li { counter-increment: step; position: relative; padding-top: 22px; border-top: 2px solid var(--dg-line); }
.dg-steps li::before { content: counter(step); position: absolute; top: -15px; left: 0; display: grid; place-items: center; width: 28px; height: 28px; font-size: .8125rem; font-weight: 700; color: #fff; background: var(--dg-edge-deep); border-radius: 50%; }
.dg-sec--ink .dg-steps li { border-top-color: rgba(255, 255, 255, .18); }
.dg-steps h3 { font-size: 1.0625rem; font-weight: 660; margin: 8px 0 8px; }
.dg-steps p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--dg-ink-2); }
.dg-sec--ink .dg-steps p { color: #b6c1d3; }
@media (max-width: 900px) { .dg-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .dg-steps { grid-template-columns: 1fr; } }

/* ---------- Gallery: masonry at natural proportions (no cropping) ---------- */
.dg-gallery { list-style: none; columns: 4 220px; column-gap: clamp(8px, 1.2vw, 14px); }
.dg-gallery li { break-inside: avoid; margin-bottom: clamp(8px, 1.2vw, 14px); }
.dg-gallery__item { display: block; position: relative; overflow: hidden; border-radius: var(--dg-radius); background: var(--dg-mist); }
.dg-gallery__item img { width: 100%; height: auto; transition: transform .5s var(--dg-ease), opacity .3s; }
.dg-gallery__item:hover img { transform: scale(1.025); }
.dg-gallery__item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 3px 0 0 var(--dg-edge); opacity: 0; transition: opacity .25s; }
.dg-gallery__item:hover::after, .dg-gallery__item:focus-visible::after { opacity: 1; }
.dg-sec--mist .dg-gallery__item { background: #d8e0eb; }
@media (max-width: 600px) { .dg-gallery { columns: 2; } }
@media (prefers-reduced-motion: reduce) { .dg-gallery__item img { transition: none; } .dg-gallery__item:hover img { transform: none; } }

.dg-project-group + .dg-project-group { margin-top: clamp(48px, 6vw, 80px); }
.dg-project-group__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--dg-line); }
.dg-project-group__head h2 { margin: 0; }
.dg-project-group__head a { font-weight: 600; font-size: .9375rem; }

/* ---------- Lightbox slider ---------- */
html.dg-lb-open { overflow: hidden; }
.dg-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 22, .94); color: #fff; overflow: hidden; touch-action: pan-y pinch-zoom; }
.dg-lightbox::backdrop { background: rgba(8, 12, 22, .6); }
.dg-lightbox__stage { position: absolute; inset: 64px 88px 72px; display: flex; align-items: center; justify-content: center; }
.dg-lightbox__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s ease-out; user-select: none; -webkit-user-drag: none; }
.dg-lightbox__img.is-ready { opacity: 1; }
.dg-lightbox__count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .875rem; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dg-lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(14, 23, 38, .55); color: #fff; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.dg-lightbox__btn:hover { background: var(--dg-edge-deep); border-color: var(--dg-edge-deep); }
.dg-lightbox__btn:active { transform: scale(.96); }
.dg-lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dg-lightbox__btn[hidden] { display: none !important; }
.dg-lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.dg-lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
.dg-lightbox__close { top: 10px; right: 16px; }
@media (max-width: 767px) {
	.dg-lightbox__stage { inset: 60px 8px 84px; }
	.dg-lightbox__prev, .dg-lightbox__next { top: auto; bottom: 14px; margin-top: 0; }
	.dg-lightbox__prev { left: 16px; }
	.dg-lightbox__next { right: 16px; }
	.dg-lightbox__count { bottom: 26px; }
	.dg-lightbox__close { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .dg-lightbox__img { transition: none; } }

/* ---------- Split (text + media): photo at its natural ratio ---------- */
.dg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dg-split__media { margin: 0; justify-self: center; }
.dg-split__media img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(74vh, 680px); border-radius: var(--dg-radius); box-shadow: var(--dg-shadow); }
.dg-split--flip .dg-split__media { order: 2; }
@media (max-width: 860px) { .dg-split { grid-template-columns: 1fr; } .dg-split--flip .dg-split__media { order: 0; } .dg-split__media img { max-height: 60vh; } }

/* ---------- Prose ---------- */
.dg-prose { max-width: 760px; }
.dg-prose h2 { font-stretch: 110%; font-size: 1.5rem; margin-top: 2em; }
.dg-prose h3 { font-size: 1.1875rem; margin-top: 1.6em; }
.dg-prose ul, .dg-prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.dg-prose li { margin-bottom: .35em; }
.dg-main--post { padding: 32px 0 var(--dg-sec); }
.dg-list { list-style: none; padding: 0 !important; }
.dg-list li { padding: 12px 0; border-bottom: 1px solid var(--dg-line); }

/* ---------- FAQ ---------- */
.dg-faq { border-top: 1px solid var(--dg-line); }
.dg-faq details { border-bottom: 1px solid var(--dg-line); }
.dg-faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 620; font-size: 1.0625rem; line-height: 1.4; }
.dg-faq summary::-webkit-details-marker { display: none; }
.dg-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--dg-edge-deep), var(--dg-edge-deep)) center / 14px 2px no-repeat, linear-gradient(var(--dg-edge-deep), var(--dg-edge-deep)) center / 2px 14px no-repeat; transition: transform .25s var(--dg-ease); }
.dg-faq details[open] summary::after { transform: rotate(45deg); }
.dg-faq summary:hover { color: var(--dg-edge-deep); }
.dg-faq__a { padding: 0 48px 24px 0; color: var(--dg-ink-2); max-width: 72ch; }
.dg-faq__a p:last-child { margin-bottom: 0; }
.dg-faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.dg-faq-layout > div:first-child { position: sticky; top: calc(var(--dg-header-h) + 32px); }
@media (max-width: 860px) { .dg-faq-layout { grid-template-columns: 1fr; } .dg-faq-layout > div:first-child { position: static; } }

/* ---------- CTA band: solid band, photo beside the text (never behind it) ---------- */
.dg-cta { background: var(--dg-ink); color: #dde4ee; }
.dg-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.dg-cta__text .dg-h2 { color: #fff; margin-bottom: 14px; }
.dg-cta__text p { color: #b6c1d3; margin: 0; max-width: 46ch; }
.dg-cta .dg-btn--line { color: #fff; border-color: rgba(255, 255, 255, .5); }
.dg-cta .dg-btn--line:hover { background: #fff; color: var(--dg-ink); }
.dg-cta .dg-btn--wa { background: var(--dg-edge); }
.dg-cta .dg-btn--wa:hover { background: #fff; color: var(--dg-ink); }
.dg-cta__media { margin: 0; justify-self: end; }
.dg-cta__media img { display: block; width: auto; height: auto; max-width: 100%; max-height: 380px; border-radius: var(--dg-radius); }
@media (max-width: 860px) { .dg-cta__inner { grid-template-columns: 1fr; } .dg-cta__media { justify-self: start; } .dg-cta__media img { max-height: 260px; } }

/* ---------- Projects: category chips ---------- */
.dg-chips { position: sticky; top: calc(var(--dg-header-h) + 8px); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin-bottom: 28px; background: var(--dg-paper); scrollbar-width: none; }
.dg-chips::-webkit-scrollbar { display: none; }
.dg-chips a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--dg-line); border-radius: 999px; background: var(--dg-white); color: var(--dg-ink); font-size: .875rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.dg-chips a:hover, .dg-chips a:focus-visible { border-color: var(--dg-edge); color: var(--dg-edge-deep); }
.dg-project-group { scroll-margin-top: calc(var(--dg-header-h) + 72px); }

/* ---------- Contact page ---------- */
.dg-contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.dg-contact-card { background: var(--dg-white); border-radius: var(--dg-radius); box-shadow: 0 0 0 1px var(--dg-line); padding: clamp(22px, 3vw, 36px); }
.dg-contact-list { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.dg-contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.dg-contact-list .dg-ico { color: var(--dg-edge-deep); margin-top: 2px; }
.dg-contact-list strong { display: block; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dg-ink-3); font-weight: 640; }
@media (max-width: 860px) { .dg-contact-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.dg-404 { padding: clamp(48px, 8vw, 104px) 0 var(--dg-sec); }
.dg-404 .dg-service-grid { margin-top: 56px; }

/* ---------- Footer ---------- */
.dg-footer { background: var(--dg-ink); color: #b6c1d3; font-size: .9375rem; }
.dg-footer a { color: #e2e8f1; text-decoration: none; }
.dg-footer a:hover { color: #fff; text-decoration: underline; }
.dg-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(56px, 7vw, 88px); }
.dg-footer__intro p { margin: 20px 0 0; max-width: 42ch; line-height: 1.6; }
.dg-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dg-footer__actions .dg-btn--wa { background: var(--dg-edge); }
.dg-footer__actions .dg-btn--wa:hover { background: #fff; color: var(--dg-ink); }
.dg-footer__h { margin: 4px 0 16px; font-size: .75rem; font-weight: 660; letter-spacing: .14em; text-transform: uppercase; color: var(--dg-edge-light); }
.dg-footer__col ul { list-style: none; display: grid; gap: 10px; }
.dg-footer__contact address { display: grid; gap: 14px; }
.dg-footer__contact address a { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.dg-footer__contact .dg-ico { width: 18px; height: 18px; color: var(--dg-edge-light); margin-top: 3px; }
.dg-footer__social { margin: 18px 0 0; }
.dg-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.dg-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; }
.dg-footer__bottom p { margin: 0; }
.dg-footer__legal { list-style: none; display: flex; gap: 20px; }
@media (max-width: 1000px) { .dg-footer__top { grid-template-columns: 1fr 1fr; } .dg-footer__intro { grid-column: 1 / -1; } }
@media (max-width: 560px) { .dg-footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Mobile contact bar ---------- */
.dg-mbar { display: none; }
@media (max-width: 767px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.dg-mbar { position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(246, 248, 250, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--dg-line); }
	.dg-mbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--dg-radius); font-weight: 640; font-size: 1rem; text-decoration: none; }
	.dg-mbar__btn--call { color: var(--dg-ink); box-shadow: inset 0 0 0 1.5px var(--dg-ink); }
	.dg-mbar__btn--wa { color: #fff; background: var(--dg-edge-deep); }
	.dg-mbar__btn--wa:hover, .dg-mbar__btn--wa:focus { color: #fff; }
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .dg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--dg-ease), transform .7s var(--dg-ease); }
.js .dg-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .dg-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Elementor compatibility (pages built later in Elementor) ---------- */
.elementor-page .dg-main > .elementor { width: 100%; }
