/* ==========================================================================
   DELINA GROUP — BASE, LAYOUT & COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--dg-header-h) + 24px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	font-family: var(--dg-font);
	font-size: var(--dg-fs-body);
	line-height: var(--dg-lh-body);
	font-weight: var(--dg-fw-regular);
	color: var(--dg-ink);
	background: var(--dg-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden; /* guard against motif overflow; children must not rely on this */
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; font-weight: var(--dg-fw-bold); line-height: var(--dg-lh-heading); letter-spacing: var(--dg-ls-tight); color: var(--dg-charcoal); text-wrap: balance; }
h1 { font-size: var(--dg-fs-h1); line-height: var(--dg-lh-tight); font-weight: var(--dg-fw-black); }
h2 { font-size: var(--dg-fs-h2); font-weight: var(--dg-fw-black); }
h3 { font-size: var(--dg-fs-h3); }
h4 { font-size: var(--dg-fs-h4); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--dg-green-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dg-dur-fast) var(--dg-ease); }
a:hover { color: var(--dg-green-900); }

img, svg, video, picture { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li + li { margin-top: 0.4em; }

figure { margin: 0; }
blockquote { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; border-top: 1px solid var(--dg-line); margin: 2.5rem 0; }

::selection { background: var(--dg-lime); color: var(--dg-green-950); }

/* --------------------------------------------------------------------------
   2. ACCESSIBILITY
   -------------------------------------------------------------------------- */

.dg-skip-link {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -110%);
	z-index: var(--dg-z-skip);
	padding: 0.85rem 1.5rem;
	background: var(--dg-green-900);
	color: #fff;
	font-weight: var(--dg-fw-semi);
	border-radius: 0 0 var(--dg-r-md) var(--dg-r-md);
	text-decoration: none;
	transition: transform var(--dg-dur-fast) var(--dg-ease);
}
.dg-skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; position: absolute;
	white-space: nowrap;
}
.screen-reader-text:focus {
	clip-path: none;
	height: auto; width: auto;
	padding: 0.85rem 1.5rem;
	background: var(--dg-green-900);
	color: #fff;
	z-index: var(--dg-z-skip);
	border-radius: var(--dg-r-sm);
}

/* Visible focus for keyboard users only. */
:focus-visible {
	outline: 3px solid var(--dg-green-700);
	outline-offset: 3px;
	border-radius: 4px;
}
.dg-on-dark :focus-visible,
.dg-footer :focus-visible { outline-color: var(--dg-lime); }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.dg-shell { width: 100%; max-width: var(--dg-max); margin-inline: auto; padding-inline: var(--dg-gutter); }
.dg-container { width: 100%; max-width: var(--dg-content); margin-inline: auto; padding-inline: var(--dg-gutter); }
.dg-narrow { max-width: var(--dg-narrow); margin-inline: auto; }

.dg-section { padding-block: var(--dg-section-y); position: relative; }
.dg-section--sm { padding-block: var(--dg-section-y-sm); }
.dg-section--flush-top { padding-top: 0; }
.dg-section--flush-bottom { padding-bottom: 0; }
.dg-section--alt { background: var(--dg-surface-alt); }
.dg-section--pale { background: var(--dg-pale); }

.dg-grid { display: grid; gap: clamp(1.25rem, 2.2vw, 2rem); }
.dg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
	.dg-grid--3, .dg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.dg-grid--2, .dg-grid--3, .dg-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.dg-stack > * + * { margin-top: var(--dg-stack-gap, 1rem); }

/* --------------------------------------------------------------------------
   4. SECTION HEADINGS
   -------------------------------------------------------------------------- */

.dg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1rem;
	font-size: var(--dg-fs-label);
	font-weight: var(--dg-fw-bold);
	letter-spacing: var(--dg-ls-label);
	text-transform: uppercase;
	color: var(--dg-green-700);
}
.dg-eyebrow::before {
	content: "";
	width: 28px; height: 2px;
	background: var(--dg-lime);
	border-radius: 2px;
	flex: none;
}
.dg-on-dark .dg-eyebrow { color: var(--dg-lime); }

.dg-section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.dg-section-head--center { margin-inline: auto; text-align: center; }
.dg-section-head--center .dg-eyebrow::before { display: none; }
.dg-section-head p { color: var(--dg-ink-soft); font-size: var(--dg-fs-lead); margin-bottom: 0; }
.dg-on-dark .dg-section-head p { color: rgba(255, 255, 255, 0.78); }
.dg-section-head h2 { margin-bottom: 0.55rem; }

.dg-section-head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	max-width: none;
}
@media (max-width: 767px) {
	.dg-section-head--split { flex-direction: column; align-items: flex-start; }
}

/* Highlighted words inside headings */
.dg-hl { color: var(--dg-green-700); }
.dg-on-dark .dg-hl { color: var(--dg-lime); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.dg-btn {
	--_bg: var(--dg-green-900);
	--_fg: #fff;
	--_bd: var(--dg-green-900);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 52px;
	padding: 0.9rem 1.75rem;
	border: 1.5px solid var(--_bd);
	border-radius: var(--dg-r-pill);
	background: var(--_bg);
	color: var(--_fg);
	font-size: 0.8125rem;
	font-weight: var(--dg-fw-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	text-align: center;
	transition: transform var(--dg-dur-fast) var(--dg-ease),
	            box-shadow var(--dg-dur-fast) var(--dg-ease),
	            background-color var(--dg-dur-fast) var(--dg-ease),
	            color var(--dg-dur-fast) var(--dg-ease),
	            border-color var(--dg-dur-fast) var(--dg-ease);
}
.dg-btn:hover {
	--_bg: var(--dg-green-700);
	--_bd: var(--dg-green-700);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--dg-shadow-md);
}
.dg-btn:active { transform: translateY(0); }

.dg-btn__icon { flex: none; transition: transform var(--dg-dur-fast) var(--dg-ease); }
.dg-btn:hover .dg-btn__icon { transform: translateX(4px); }

.dg-btn--secondary { --_bg: transparent; --_fg: var(--dg-green-900); --_bd: var(--dg-line); }
.dg-btn--secondary:hover { --_bg: var(--dg-pale); --_bd: var(--dg-green-700); color: var(--dg-green-900); }

.dg-btn--lime { --_bg: var(--dg-lime); --_fg: var(--dg-green-950); --_bd: var(--dg-lime); }
.dg-btn--lime:hover { --_bg: #9ed24f; --_bd: #9ed24f; color: var(--dg-green-950); }

.dg-btn--ghost-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255, 255, 255, 0.35); }
.dg-btn--ghost-light:hover { --_bg: rgba(255, 255, 255, 0.12); --_bd: #fff; color: #fff; }

.dg-btn--white { --_bg: #fff; --_fg: var(--dg-green-900); --_bd: #fff; }
.dg-btn--white:hover { --_bg: var(--dg-pale); --_bd: var(--dg-pale); color: var(--dg-green-900); }

.dg-btn--sm { min-height: 44px; padding: 0.7rem 1.25rem; font-size: 0.75rem; }
.dg-btn--block { width: 100%; }

.dg-btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Text link with animated arrow */
.dg-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: var(--dg-fw-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dg-green-900);
	text-decoration: none;
}
.dg-link svg { flex: none; transition: transform var(--dg-dur-fast) var(--dg-ease); }
.dg-link:hover { color: var(--dg-green-700); }
.dg-link:hover svg { transform: translateX(5px); }
.dg-on-dark .dg-link { color: var(--dg-lime); }

/* --------------------------------------------------------------------------
   6. CARDS
   -------------------------------------------------------------------------- */

.dg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.4vw, 2.25rem);
	background: var(--dg-white);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-r-xl);
	box-shadow: var(--dg-shadow-sm);
	transition: transform var(--dg-dur) var(--dg-ease-out),
	            box-shadow var(--dg-dur) var(--dg-ease-out),
	            border-color var(--dg-dur) var(--dg-ease-out);
	overflow: hidden;
}
.dg-card--hover:hover,
.dg-card--hover:focus-within {
	transform: translateY(-6px);
	box-shadow: var(--dg-shadow-lg);
	border-color: var(--dg-lime);
}

/* Stretched link: makes the whole card clickable without nesting anchors. */
.dg-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.dg-card__icon {
	display: grid;
	place-items: center;
	width: 60px; height: 60px;
	margin-bottom: 1.25rem;
	border-radius: var(--dg-r-md);
	background: var(--dg-pale);
	color: var(--dg-green-900);
	flex: none;
	transition: background-color var(--dg-dur) var(--dg-ease), color var(--dg-dur) var(--dg-ease);
}
.dg-card--hover:hover .dg-card__icon { background: var(--dg-green-900); color: #fff; }
.dg-card__icon img { width: 34px; height: 34px; object-fit: contain; }

.dg-card__title { font-size: var(--dg-fs-h4); margin-bottom: 0.5rem; }
.dg-card__text { color: var(--dg-ink-soft); font-size: var(--dg-fs-sm); margin-bottom: 1.5rem; }
.dg-card__foot { margin-top: auto; }

/* Media card (news, CSR, gallery) */
.dg-media-card { padding: 0; }
.dg-media-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--dg-pale);
}
.dg-media-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform var(--dg-dur-slow) var(--dg-ease-out);
}
.dg-media-card:hover .dg-media-card__media img { transform: scale(1.05); }
.dg-media-card__body { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }

.dg-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.75rem;
	font-size: var(--dg-fs-label);
	font-weight: var(--dg-fw-bold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dg-ink-faint);
}
.dg-meta__cat { color: var(--dg-green-700); }
.dg-meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.dg-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: var(--dg-r-pill);
	background: var(--dg-pale);
	color: var(--dg-green-900);
	font-size: var(--dg-fs-label);
	font-weight: var(--dg-fw-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. BRAND MOTIFS — Africa map, orbital curves, dot grid
   -------------------------------------------------------------------------- */

.dg-motif {
	position: absolute;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.dg-motif--africa { color: var(--dg-green-900); opacity: 0.05; }
.dg-on-dark .dg-motif--africa { color: #fff; opacity: 0.07; }

.dg-motif--dots {
	background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
	background-size: 18px 18px;
	color: var(--dg-green-700);
	opacity: 0.13;
}

/* Sweeping orbital curve, echoing the DGE logo. */
.dg-curve {
	position: absolute;
	left: 0; right: 0;
	width: 100%;
	line-height: 0;
	pointer-events: none;
	z-index: 2;
}
.dg-curve--bottom { bottom: -1px; }
.dg-curve--top { top: -1px; }
.dg-curve svg { width: 100%; height: auto; display: block; }

.dg-has-motif { position: relative; overflow: hidden; }
.dg-has-motif > .dg-container,
.dg-has-motif > .dg-shell { position: relative; z-index: 1; }

/* Motif placements */
.dg-motif--left { top: 8%; left: -8%; width: min(520px, 44%); }
.dg-footer__motif { top: 50%; right: -4%; transform: translateY(-50%); width: min(520px, 48%); }

/* --------------------------------------------------------------------------
   8. DARK SURFACES
   -------------------------------------------------------------------------- */

.dg-on-dark { color: rgba(255, 255, 255, 0.82); }
.dg-on-dark h1, .dg-on-dark h2, .dg-on-dark h3, .dg-on-dark h4 { color: #fff; }
.dg-on-dark a:not(.dg-btn) { color: var(--dg-lime); }
.dg-on-dark a:not(.dg-btn):hover { color: #fff; }

/* --------------------------------------------------------------------------
   9. HEADER
   -------------------------------------------------------------------------- */

.dg-header {
	position: sticky;
	top: 0;
	z-index: var(--dg-z-header);
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: box-shadow var(--dg-dur-fast) var(--dg-ease),
	            border-color var(--dg-dur-fast) var(--dg-ease);
}
.dg-header.is-stuck { box-shadow: var(--dg-shadow-sm); border-bottom-color: var(--dg-line); }

/* Utility bar */
.dg-utility {
	background: var(--dg-green-950);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.8125rem;
	height: var(--dg-header-utility-h);
}
.dg-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: 100%;
}
.dg-utility__group { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.dg-utility__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.dg-utility__item:hover { color: #fff; }
.dg-utility__item svg { flex: none; opacity: 0.8; }
.dg-utility__divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.18); flex: none; }

.dg-social { display: flex; align-items: center; gap: 0.375rem; }
.dg-social__link {
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	color: inherit;
	transition: background-color var(--dg-dur-fast) var(--dg-ease), color var(--dg-dur-fast) var(--dg-ease);
}
.dg-social__link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (max-width: 1023px) {
	.dg-utility { display: none; }
}

/* Main navigation bar */
.dg-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: var(--dg-header-main-h);
}

.dg-logo { display: inline-flex; align-items: center; flex: none; }
.dg-logo img { max-height: 52px; width: auto; object-fit: contain; }
@media (max-width: 1023px) { .dg-logo img { max-height: 40px; } }

/*
 * Chip treatment for dark surfaces.
 * Used when only the full-colour logo has been supplied: the official mark
 * carries black type that would vanish on the dark green footer, and brand
 * rule 3 forbids recolouring it. A white plate keeps the logo untouched.
 * Upload a reversed logo in Delina Settings → Brand and the chip disappears.
 */
.dg-logo--chip {
	padding: 0.7rem 0.95rem;
	background: #fff;
	border-radius: var(--dg-r-md);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}
.dg-logo--chip img { max-height: 46px; }
@media (max-width: 767px) {
	.dg-logo--chip { padding: 0.6rem 0.8rem; }
	.dg-logo--chip img { max-height: 40px; }
}
.dg-logo__fallback {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
	text-decoration: none;
}
.dg-logo__fallback strong {
	font-size: 1.5rem;
	font-weight: var(--dg-fw-black);
	letter-spacing: -0.02em;
	color: var(--dg-green-900);
}
.dg-logo__fallback span {
	font-size: 0.5625rem;
	font-weight: var(--dg-fw-bold);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--dg-lime-600);
}

/* Desktop menu */
.dg-nav { display: flex; align-items: center; gap: 0.25rem; }
.dg-nav__list { display: flex; align-items: center; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
.dg-nav__list li { margin: 0; }
.dg-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.75rem 0.875rem;
	border-radius: var(--dg-r-sm);
	font-size: 0.875rem;
	font-weight: var(--dg-fw-semi);
	color: var(--dg-charcoal);
	text-decoration: none;
	background: none;
	border: 0;
	white-space: nowrap;
	transition: color var(--dg-dur-fast) var(--dg-ease), background-color var(--dg-dur-fast) var(--dg-ease);
}
.dg-nav__link::after {
	content: "";
	position: absolute;
	left: 0.875rem; right: 0.875rem;
	bottom: 0.4rem;
	height: 2px;
	border-radius: 2px;
	background: var(--dg-lime);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dg-dur-fast) var(--dg-ease);
}
.dg-nav__link:hover,
.dg-nav__link[aria-expanded="true"],
.dg-nav__item.is-current > .dg-nav__link { color: var(--dg-green-900); }
.dg-nav__link:hover::after,
.dg-nav__link[aria-expanded="true"]::after,
.dg-nav__item.is-current > .dg-nav__link::after { transform: scaleX(1); }

.dg-nav__caret { transition: transform var(--dg-dur-fast) var(--dg-ease); }
.dg-nav__link[aria-expanded="true"] .dg-nav__caret { transform: rotate(180deg); }

.dg-header__actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

@media (max-width: 1199px) {
	.dg-nav, .dg-header__actions .dg-btn { display: none; }
}

/* Hamburger */
.dg-burger {
	display: none;
	width: 46px; height: 46px;
	padding: 0;
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-r-sm);
	background: #fff;
	color: var(--dg-green-900);
	place-items: center;
}
@media (max-width: 1199px) { .dg-burger { display: grid; } }
.dg-burger__bars { display: block; width: 20px; height: 14px; position: relative; }
.dg-burger__bars span {
	position: absolute; left: 0;
	width: 100%; height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--dg-dur-fast) var(--dg-ease), opacity var(--dg-dur-fast) var(--dg-ease);
}
.dg-burger__bars span:nth-child(1) { top: 0; }
.dg-burger__bars span:nth-child(2) { top: 6px; }
.dg-burger__bars span:nth-child(3) { top: 12px; }
.dg-burger[aria-expanded="true"] .dg-burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.dg-burger[aria-expanded="true"] .dg-burger__bars span:nth-child(2) { opacity: 0; }
.dg-burger[aria-expanded="true"] .dg-burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   10. MEGA MENU
   -------------------------------------------------------------------------- */

.dg-mega {
	position: absolute;
	left: 0; right: 0;
	top: 100%;
	z-index: var(--dg-z-mega);
	background: #fff;
	border-top: 1px solid var(--dg-line);
	border-bottom: 1px solid var(--dg-line);
	box-shadow: var(--dg-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity var(--dg-dur-fast) var(--dg-ease),
	            transform var(--dg-dur-fast) var(--dg-ease),
	            visibility var(--dg-dur-fast);
}
.dg-mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.dg-mega__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(1.5rem, 2.5vw, 2.75rem);
	padding-block: clamp(2rem, 3vw, 3rem);
}
.dg-mega__group-title {
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--dg-line);
	font-size: var(--dg-fs-label);
	font-weight: var(--dg-fw-bold);
	letter-spacing: var(--dg-ls-label);
	text-transform: uppercase;
	color: var(--dg-lime-600);
}
.dg-mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.dg-mega__list li { margin: 0; }
.dg-mega__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0.75rem;
	margin-inline: -0.75rem;
	border-radius: var(--dg-r-sm);
	color: var(--dg-charcoal);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: var(--dg-fw-medium);
	transition: background-color var(--dg-dur-fast) var(--dg-ease), color var(--dg-dur-fast) var(--dg-ease);
}
.dg-mega__link:hover { background: var(--dg-pale); color: var(--dg-green-900); }
.dg-mega__thumb {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	flex: none;
	border-radius: var(--dg-r-sm);
	background: var(--dg-pale);
	color: var(--dg-green-900);
	overflow: hidden;
}
.dg-mega__thumb img { width: 26px; height: 26px; object-fit: contain; }
.dg-mega__link:hover .dg-mega__thumb { background: var(--dg-green-900); color: #fff; }

.dg-mega__promo {
	grid-column: span 1;
	padding: clamp(1.5rem, 2.2vw, 2rem);
	border-radius: var(--dg-r-lg);
	background: var(--dg-gradient-deep);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
}
.dg-mega__promo h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.5rem; }
.dg-mega__promo p { color: rgba(255, 255, 255, 0.78); font-size: var(--dg-fs-sm); }

/*
 * No-JS fallback: the mega-menu panel is opened by script, so without JS the
 * businesses would be unreachable from the header. Pin it open beneath the nav
 * instead — slightly taller header, but every division stays one click away
 * and crawlers still see the links.
 */
.no-js .dg-mega[hidden] { display: block; }
.no-js .dg-mega {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border-bottom: 0;
}
.no-js .dg-nav__caret { display: none; }

/* --------------------------------------------------------------------------
   11. MOBILE DRAWER
   -------------------------------------------------------------------------- */

.dg-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--dg-z-drawer);
	display: flex;
	flex-direction: column;
	background: #fff;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform var(--dg-dur) var(--dg-ease-out), visibility var(--dg-dur);
	overscroll-behavior: contain;
}
.dg-drawer.is-open { transform: translateX(0); visibility: visible; }

.dg-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem var(--dg-gutter);
	min-height: var(--dg-header-main-h);
	border-bottom: 1px solid var(--dg-line);
	flex: none;
}
.dg-drawer__close {
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-r-sm);
	background: #fff;
	color: var(--dg-charcoal);
}
.dg-drawer__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1rem var(--dg-gutter) 2rem; }
.dg-drawer__foot {
	flex: none;
	padding: 1rem var(--dg-gutter) calc(1rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--dg-line);
	background: var(--dg-surface-alt);
	display: grid;
	gap: 0.75rem;
}

.dg-mnav { list-style: none; margin: 0; padding: 0; }
.dg-mnav li { margin: 0; border-bottom: 1px solid var(--dg-line); }
.dg-mnav__link,
.dg-mnav__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 56px;
	padding: 0.875rem 0;
	border: 0;
	background: none;
	color: var(--dg-charcoal);
	font-size: 1.0625rem;
	font-weight: var(--dg-fw-semi);
	text-align: left;
	text-decoration: none;
}
.dg-mnav__toggle svg { transition: transform var(--dg-dur-fast) var(--dg-ease); flex: none; }
.dg-mnav__toggle[aria-expanded="true"] { color: var(--dg-green-900); }
.dg-mnav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dg-mnav__panel { display: none; padding-bottom: 1rem; }
.dg-mnav__panel.is-open { display: block; }
.dg-mnav__group-title {
	margin: 1rem 0 0.5rem;
	font-size: var(--dg-fs-label);
	font-weight: var(--dg-fw-bold);
	letter-spacing: var(--dg-ls-label);
	text-transform: uppercase;
	color: var(--dg-lime-600);
}
.dg-mnav__sub { list-style: none; margin: 0; padding: 0; }
.dg-mnav__sub li { border: 0; }
.dg-mnav__sub a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.5rem 0;
	color: var(--dg-ink-soft);
	font-size: 0.9375rem;
	font-weight: var(--dg-fw-medium);
	text-decoration: none;
}
.dg-mnav__sub a:hover { color: var(--dg-green-900); }

body.dg-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   12. STICKY MOBILE CONTACT CTA
   -------------------------------------------------------------------------- */

.dg-sticky-cta {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 880;
	display: none;
	gap: 1px;
	background: var(--dg-line);
	padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -6px 24px -12px rgba(40, 43, 43, 0.28);
}
@media (max-width: 767px) { .dg-sticky-cta { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; } }
.dg-sticky-cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 56px;
	background: #fff;
	color: var(--dg-green-900);
	font-size: 0.75rem;
	font-weight: var(--dg-fw-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}
.dg-sticky-cta a.is-primary { background: var(--dg-green-900); color: #fff; }
.dg-sticky-cta a.is-whatsapp { background: #25d366; color: #04301a; }
@media (max-width: 767px) { body { padding-bottom: 56px; } }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */

.dg-footer {
	position: relative;
	background: var(--dg-green-950);
	color: rgba(255, 255, 255, 0.72);
	overflow: hidden;
}
.dg-footer__top { padding-block: clamp(3.5rem, 6vw, 5.5rem); position: relative; z-index: 1; }
.dg-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
	gap: clamp(2rem, 3.5vw, 3.5rem);
}
@media (max-width: 1023px) { .dg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .dg-footer__grid { grid-template-columns: minmax(0, 1fr); } }

.dg-footer h2, .dg-footer h3, .dg-footer h4 { color: #fff; }
.dg-footer__title {
	margin: 0 0 1.5rem;
	font-size: var(--dg-fs-label);
	font-weight: var(--dg-fw-bold);
	letter-spacing: var(--dg-ls-label);
	text-transform: uppercase;
	color: var(--dg-lime);
}
.dg-footer__logo { margin-bottom: 1.25rem; }
.dg-footer__logo img { max-height: 56px; width: auto; }
.dg-footer__logo .dg-logo--chip img { max-height: 46px; }
.dg-footer__tagline {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	font-weight: var(--dg-fw-bold);
	color: #fff;
	letter-spacing: -0.01em;
}
.dg-footer__intro { font-size: var(--dg-fs-sm); margin-bottom: 1.75rem; max-width: 40ch; }

.dg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.dg-footer__list li { margin: 0; }
.dg-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--dg-fs-sm);
	text-decoration: none;
	transition: color var(--dg-dur-fast) var(--dg-ease), transform var(--dg-dur-fast) var(--dg-ease);
}
.dg-footer__list a::before {
	content: "";
	width: 0; height: 1px;
	background: var(--dg-lime);
	transition: width var(--dg-dur-fast) var(--dg-ease);
}
.dg-footer__list a:hover { color: #fff; }
.dg-footer__list a:hover::before { width: 12px; }

.dg-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.125rem; }
.dg-footer__contact li { display: flex; gap: 0.875rem; margin: 0; font-size: var(--dg-fs-sm); }
.dg-footer__contact svg { flex: none; margin-top: 3px; color: var(--dg-lime); }
.dg-footer__contact a { color: inherit; text-decoration: none; }
.dg-footer__contact a:hover { color: #fff; }

.dg-footer .dg-social__link { color: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); width: 38px; height: 38px; }
.dg-footer .dg-social__link:hover { background: var(--dg-lime); border-color: var(--dg-lime); color: var(--dg-green-950); }

.dg-footer__bottom {
	position: relative;
	z-index: 1;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: 1.5rem;
}
.dg-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.8125rem;
}
.dg-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.dg-footer__legal li { margin: 0; }
.dg-footer__legal a { color: rgba(255, 255, 255, 0.66); text-decoration: none; }
.dg-footer__legal a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   14. SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */

.dg-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--dg-dur-slow) var(--dg-ease-out),
	            transform var(--dg-dur-slow) var(--dg-ease-out);
	transition-delay: var(--dg-delay, 0ms);
	will-change: opacity, transform;
}
.dg-reveal.is-visible { opacity: 1; transform: none; }

/* If JS is unavailable, never hide content. */
.no-js .dg-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.dg-reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   15. UTILITIES
   -------------------------------------------------------------------------- */

.dg-text-center { text-align: center; }
.dg-mt-0 { margin-top: 0; }
.dg-mb-0 { margin-bottom: 0; }
.dg-lead { font-size: var(--dg-fs-lead); color: var(--dg-ink-soft); }
.dg-muted { color: var(--dg-ink-soft); }
.dg-ratio-16x10 { aspect-ratio: 16 / 10; }
.dg-cover { width: 100%; height: 100%; object-fit: cover; }
.dg-round-lg { border-radius: var(--dg-r-lg); overflow: hidden; }
.dg-round-xl { border-radius: var(--dg-r-xl); overflow: hidden; }

/* Editor / fallback content styling for page.php and single.php */
.dg-prose { max-width: var(--dg-narrow); }
.dg-prose > * + * { margin-top: 1.15em; }
.dg-prose h2 { margin-top: 2em; }
.dg-prose h3 { margin-top: 1.6em; }
.dg-prose img { border-radius: var(--dg-r-lg); }
.dg-prose blockquote {
	padding: 1.25rem 1.75rem;
	border-left: 3px solid var(--dg-lime);
	background: var(--dg-surface-alt);
	border-radius: 0 var(--dg-r-md) var(--dg-r-md) 0;
	font-size: var(--dg-fs-lead);
	color: var(--dg-green-900);
}
.dg-prose .wp-caption-text,
.dg-prose figcaption { font-size: var(--dg-fs-sm); color: var(--dg-ink-faint); margin-top: 0.5rem; }

.alignwide { max-width: var(--dg-content); }
.alignfull { max-width: none; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
