/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* =========================================================
   DIRTEX – central site CSS (DesignHog)
   Bricks root font size is 62.5% (1rem = 10px), so px is used.
   ========================================================= */

:root {
	--dx-green: #22a33a;
	--dx-green-light: #2fc24a;
	--dx-green-dark: #1b8a30;
	--dx-dark: #0f1a12;
	--dx-ink: #1b1f1c;
	--dx-muted: #5b665e;
	--dx-bg: #f4f6f3;
	--dx-border: #e3e8e3;
	--dx-white: #ffffff;
	--dx-whatsapp: #25d366;
	--dx-radius: 10px;
}

/* ---------- Base resets ---------- */
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
p + h1, p + h2, p + h3, p + h4,
.brxe-text-basic + .brxe-heading,
.brxe-text + .brxe-heading { margin-top: 0; }
.dx-accent { color: var(--dx-green); }
.dx-dark-bg .dx-accent,
.dx-pbanner .dx-accent { color: var(--dx-green-light); }
img { height: auto; }

/* ---------- Eyebrow / tag ---------- */
.dx-tag {
	font-family: Montserrat, sans-serif;
	font-weight: 800;
	font-style: italic;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--dx-green);
	margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.dx-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: Montserrat, sans-serif;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .3px;
	text-transform: uppercase;
	line-height: 1.2;
	padding: 14px 22px;
	border-radius: 6px;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.dx-btn i, .dx-btn svg { font-size: 18px; width: 18px; height: 18px; }
.dx-btn--lg { padding: 17px 28px; font-size: 15px; }
.dx-btn--green { background: var(--dx-green); color: #fff; }
.dx-btn--green:hover, .dx-btn--green:focus-visible { background: var(--dx-green-dark); color: #fff; }
.dx-btn--outline { border-color: var(--dx-dark); color: var(--dx-dark); background: transparent; }
.dx-btn--outline:hover, .dx-btn--outline:focus-visible { background: var(--dx-dark); color: #fff; }
.dx-btn--white { background: #fff; color: var(--dx-dark); }
.dx-btn--white:hover, .dx-btn--white:focus-visible { background: var(--dx-dark); color: #fff; }
.dx-btn--outline-white { border-color: #fff; color: #fff; background: transparent; }
.dx-btn--outline-white:hover, .dx-btn--outline-white:focus-visible { background: #fff; color: var(--dx-dark); }
.dx-btns { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; }

a:focus-visible, button:focus-visible, .dx-btn:focus-visible {
	outline: 3px solid var(--dx-green-light);
	outline-offset: 3px;
}

/* ---------- Top bar ---------- */
.brxe-section.dx-topbar { background: var(--dx-dark); color: #cfd8d1; font-size: 13px; padding: 9px 20px; }
.dx-topbar__inner { width: 1240px; max-width: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px 26px; flex-wrap: wrap; }
.dx-topbar__group { display: flex; flex-direction: row; gap: 6px 26px; flex-wrap: wrap; }
.dx-topbar a, .dx-topbar .dx-topbar__item { color: #cfd8d1; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.dx-topbar a:hover { color: #fff; }
.dx-topbar i { color: var(--dx-green-light); font-size: 13px; }

/* ---------- Header ---------- */
.brxe-section.dx-header { background: #fff; border-bottom: 1px solid var(--dx-border); padding: 0 20px; }
.dx-header__inner { width: 1240px; max-width: 100%; min-height: 92px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }
.dx-logo img { height: 74px; width: auto; display: block; }
.dx-nav .bricks-nav-menu { gap: 38px; }
.dx-nav .bricks-nav-menu > li > a {
	font-weight: 600; font-size: 15px; color: var(--dx-ink); padding: 8px 0;
	border-bottom: 3px solid transparent; text-decoration: none;
}
.dx-nav .bricks-nav-menu > li > a:hover,
.dx-nav .bricks-nav-menu > li.current-menu-item > a,
.dx-nav .bricks-nav-menu > li > a[aria-current="page"] { color: var(--dx-green); border-bottom-color: var(--dx-green); }
.dx-nav .bricks-mobile-menu-toggle { color: var(--dx-dark); }
.dx-nav .bricks-mobile-menu-wrapper { background: var(--dx-dark); }
.dx-nav .bricks-mobile-menu > li > a { color: #fff; font-family: Montserrat, sans-serif; font-weight: 800; text-transform: uppercase; font-size: 18px; padding: 12px 30px; }
.dx-nav .bricks-mobile-menu > li.current-menu-item > a { color: var(--dx-green-light); }
.dx-header__btns { display: flex; flex-direction: row; gap: 12px; }

/* ---------- Floating WhatsApp ---------- */
.dx-wa-float {
	position: fixed; right: 24px; bottom: 24px; z-index: 999;
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--dx-whatsapp); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	transition: transform .2s;
}
.dx-wa-float:hover, .dx-wa-float:focus-visible { transform: scale(1.06); color: #fff; }
.dx-wa-float i { font-size: 32px; }

/* ---------- Home hero ---------- */
.brxe-section.dx-hero { background: linear-gradient(180deg, #eaf1ea 0%, #fff 100%); padding: 64px 0 0; text-align: center; }
.dx-hero__inner { align-items: center; padding: 0 20px; }
.dx-hero h1 { margin-bottom: 0; }
.dx-hero__lead { font-size: 19px; color: var(--dx-muted); max-width: 720px; margin: 20px auto 30px; line-height: 1.55; }
.dx-hero .dx-btns { justify-content: center; margin-bottom: 40px; }
.dx-hero__img { width: 100%; display: block; }
.dx-hero__img img { width: 100%; height: auto; display: block; }

/* ---------- Trust strip ---------- */
.brxe-section.dx-trust { background: var(--dx-green); color: #fff; padding: 20px; }
.dx-trust__inner { width: 1240px; max-width: 100%; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; }
.dx-trust__item { display: flex; flex-direction: row; align-items: center; gap: 12px; font-family: Montserrat, sans-serif; font-weight: 800; font-style: italic; font-size: 17px; text-transform: uppercase; color: #fff; }
.dx-trust__item i { font-size: 24px; }

/* ---------- Section heads ---------- */
.dx-head { text-align: center; margin-bottom: 48px; align-items: center; width: 100%; }
.dx-head h2 { margin-bottom: 0; }
.dx-head p { color: var(--dx-muted); font-size: 17px; margin-top: 12px; }
.dx-dark-bg { background: var(--dx-dark); color: #fff; }
.dx-dark-bg h2 { color: #fff; }
.dx-dark-bg .dx-head p { color: #aab8ad; }
.dx-light-bg { background: var(--dx-bg); }

/* ---------- Service cards (home) ---------- */
.dx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; }
.dx-card { background: var(--dx-bg); border-radius: var(--dx-radius); padding: 30px 26px; border-top: 4px solid var(--dx-green); }
.dx-icon-circle {
	width: 56px; height: 56px; border-radius: 50%; background: var(--dx-dark); color: var(--dx-green-light);
	display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex-shrink: 0; font-size: 24px;
}
.dx-icon-circle i { font-size: 24px; color: inherit; }
.dx-card h3 { margin-bottom: 8px; text-transform: uppercase; }
.dx-card p { font-size: 15px; line-height: 1.55; color: var(--dx-muted); margin: 0; }
.dx-more { width: 100%; display: flex; flex-direction: row; justify-content: center; margin-top: 40px; }

/* ---------- Why Dirtex ---------- */
.dx-why { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; width: 100%; }
.dx-why__img, .dx-why__img img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; display: block; }
.dx-why h2 { margin-bottom: 18px; font-size: 40px; }
.dx-why__lead { color: var(--dx-muted); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.dx-checklist { list-style: none; margin: 0 0 30px; padding: 0; }
.dx-checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; padding: 9px 0; border-bottom: 1px solid #e6ebe6; }
.dx-checklist li::before {
	content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
	background: var(--dx-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- CTA band ---------- */
.brxe-section.dx-band { background: linear-gradient(100deg, var(--dx-green) 0%, var(--dx-green-dark) 100%); color: #fff; padding: 64px 20px; }
.dx-band__inner { width: 1240px; max-width: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.dx-band h2 { color: #fff; font-size: 44px; line-height: 1; margin: 0; }
.dx-band p { font-size: 18px; margin: 10px 0 0; opacity: .92; color: #fff; }

/* ---------- Footer ---------- */
.brxe-section.dx-footer { background: var(--dx-dark); color: #b9c6bc; padding: 64px 20px 0; font-size: 15px; }
.dx-footer__inner { width: 1240px; max-width: 100%; }
.dx-fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 50px; width: 100%; }
.dx-footer .dx-logo img { height: 96px; }
.dx-footer h4 { font-family: Montserrat, sans-serif; font-weight: 800; font-style: normal; color: #fff; text-transform: uppercase; font-size: 15px; margin-bottom: 16px; letter-spacing: 0; }
.dx-footer__lead { margin-top: 18px; line-height: 1.6; color: #b9c6bc; }
.dx-flinks { display: flex; flex-direction: column; gap: 10px; }
.dx-flinks a, .dx-flinks span { color: #b9c6bc; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.dx-flinks a:hover { color: #fff; }
.dx-flinks i { color: var(--dx-green-light); font-size: 15px; width: 17px; text-align: center; }
.dx-legal { border-top: 1px solid #2a3a2e; padding: 20px 0; font-size: 13px; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; width: 100%; }
.dx-legal a { color: #b9c6bc; text-decoration: none; }
.dx-legal a:hover { color: #fff; }
.dx-legal__links { display: flex; flex-direction: row; gap: 8px 20px; flex-wrap: wrap; }

/* ---------- Inner page banner ---------- */
.brxe-section.dx-pbanner {
	background: linear-gradient(90deg, rgba(15,26,18,.94) 0%, rgba(15,26,18,.78) 55%, rgba(15,26,18,.35) 100%), url('/wp-content/uploads/2026/11/dirtex-mini-digger-skip-trailer-hero.webp') center 55% / cover no-repeat scroll;
	color: #fff; padding: 78px 20px 70px;
}
.dx-pbanner__inner { width: 1240px; max-width: 100%; }
.dx-crumb { font-size: 14px; color: #aab8ad; margin-bottom: 14px; }
.dx-crumb a { color: #aab8ad; text-decoration: none; }
.dx-crumb a:hover { color: #fff; }
.dx-pbanner h1 { color: #fff; font-size: 54px; margin-bottom: 0; }
.dx-pbanner p { font-size: 18px; color: #d5ddd7; max-width: 640px; margin-top: 16px; line-height: 1.55; }

/* ---------- Services list ---------- */
.dx-slist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; }
.dx-srow { display: flex; flex-direction: row; gap: 20px; align-items: flex-start; background: var(--dx-bg); border-radius: var(--dx-radius); padding: 24px 26px; border-left: 4px solid var(--dx-green); }
.dx-srow .dx-icon-circle { margin: 0; }
.dx-srow h3 { margin-bottom: 6px; text-transform: uppercase; }
.dx-srow p { font-size: 15px; color: var(--dx-muted); line-height: 1.55; margin: 0; }

/* ---------- Attachment cards ---------- */
.dx-agrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; width: 100%; }
.dx-acard { background: #fff; border-radius: var(--dx-radius); overflow: hidden; border: 1px solid #e6ebe6; box-shadow: 0 8px 24px rgba(15,26,18,.06); }
.dx-acard__img, .dx-acard__img img { display: block; width: 100%; height: 200px; object-fit: cover; }
.dx-acard__body { padding: 18px 20px 22px; }
.dx-acard h3 { font-size: 17px; margin-bottom: 6px; text-transform: uppercase; }
.dx-acard p { font-size: 14.5px; color: var(--dx-muted); line-height: 1.5; margin: 0; }
.dx-use { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; font-style: italic; color: var(--dx-green); background: #e7f4e9; padding: 4px 10px; border-radius: 20px; }

/* ---------- Contact ---------- */
.dx-cgrid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; width: 100%; }
.dx-cinfo { display: flex; flex-direction: column; gap: 16px; }
.dx-cbox { display: flex; flex-direction: row; gap: 18px; align-items: center; background: var(--dx-bg); border-radius: var(--dx-radius); padding: 22px 24px; text-decoration: none; color: var(--dx-ink); border: 2px solid transparent; transition: border-color .2s; }
a.dx-cbox:hover { border-color: var(--dx-green); }
.dx-cbox .dx-icon-circle { margin: 0; }
.dx-cbox__label { display: block; font-size: 13px; color: var(--dx-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; }
.dx-cbox__value { display: block; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 20px; color: var(--dx-dark); line-height: 1.3; }
.dx-cbox--wa { background: #e7f8ec; border-color: var(--dx-whatsapp); }
.dx-cbox--wa .dx-icon-circle { background: var(--dx-whatsapp); color: #fff; }
.dx-formbox { background: #fff; border: 1px solid var(--dx-border); border-radius: 12px; padding: 38px 40px; box-shadow: 0 10px 30px rgba(15,26,18,.07); }
.dx-formbox h2 { font-size: 30px; margin-bottom: 0; }
.dx-formbox__lead { color: var(--dx-muted); margin: 8px 0 26px; font-size: 15px; }
.dx-form .form-group label { font-size: 13.5px; font-weight: 600; color: var(--dx-ink); margin-bottom: 7px; }
.dx-form input:not([type=checkbox]):not([type=radio]), .dx-form select, .dx-form textarea {
	border: 1px solid #cfd8d1; border-radius: 7px; background: #fbfcfb; padding: 0 14px; font-size: 15px; color: var(--dx-ink); min-height: 50px;
}
.dx-form textarea { padding-top: 14px; min-height: 120px; }
.dx-form input:focus, .dx-form select:focus, .dx-form textarea:focus { border-color: var(--dx-green); outline: 2px solid rgba(34,163,58,.25); }
.dx-form .form-group { margin-bottom: 18px; }
.dx-form button[type=submit], .dx-form .bricks-button {
	background: var(--dx-green); color: #fff; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 14px;
	text-transform: uppercase; letter-spacing: .3px; padding: 14px 22px; border-radius: 6px; border: 0;
}
.dx-form button[type=submit]:hover { background: var(--dx-green-dark); }
.dx-form .form-group.checkbox-group, .dx-form .options-wrapper label { font-size: 13.5px; color: var(--dx-muted); font-weight: 400; }

/* ---------- Default page template (privacy, cookie policy) ---------- */
.brxe-section.dx-page { padding: 70px 20px 90px; }
.dx-page__inner { width: 860px; max-width: 100%; }
.dx-page h1 { font-size: 46px; margin-bottom: 30px; }
.dx-page h2 { font-size: 24px; margin: 34px 0 12px; }
.dx-page h3 { font-size: 18px; margin: 24px 0 10px; }
.dx-page p, .dx-page li { color: var(--dx-ink); line-height: 1.7; }
.dx-page ul, .dx-page ol { padding-left: 22px; margin-bottom: 16px; }

/* ---------- 404 ---------- */
.brxe-section.dx-404 { text-align: center; padding: 120px 20px; }
.dx-404 .dx-btns { justify-content: center; margin-top: 26px; }

/* ---------- Animation (one per page, respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.dx-fade-up { animation: dxFadeUp .6s ease-out both; }
	.dx-grid-3 > *:nth-child(2), .dx-agrid > *:nth-child(4n+2) { animation-delay: .08s; }
	.dx-grid-3 > *:nth-child(3), .dx-agrid > *:nth-child(4n+3) { animation-delay: .16s; }
	.dx-agrid > *:nth-child(4n+4) { animation-delay: .24s; }
}
@keyframes dxFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Complianz banner (brand colours) ---------- */
.cmplz-cookiebanner { border-radius: 10px !important; font-family: Inter, sans-serif; }
.cmplz-cookiebanner .cmplz-title { font-family: Montserrat, sans-serif; font-weight: 800; color: var(--dx-dark); }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background-color: var(--dx-green) !important; border-color: var(--dx-green) !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background-color: #fff !important; border-color: var(--dx-dark) !important; color: var(--dx-dark) !important; }
.cmplz-cookiebanner a { color: var(--dx-green) !important; }
#cmplz-manage-consent .cmplz-manage-consent { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.dx-fcols { grid-template-columns: 1fr 1fr; gap: 36px; }
	.dx-agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dx-why { gap: 40px; }
}
@media (max-width: 991px) {
	.dx-header__btns { display: none; }
	.dx-grid-3, .dx-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dx-slist { grid-template-columns: 1fr; }
	.dx-why, .dx-cgrid { grid-template-columns: 1fr; }
	.dx-why__img, .dx-why__img img { height: 320px; }
	.dx-trust__inner { justify-content: center; }
}
@media (max-width: 767px) {
	.dx-topbar__inner { justify-content: center; }
	.dx-topbar__group--right { display: none; }
	.dx-logo img { height: 60px; }
	.dx-header__inner { min-height: 76px; }
	.brxe-section.dx-hero { padding-top: 44px; }
	.dx-hero__lead { font-size: 17px; }
	.dx-hero .dx-btns { flex-direction: column; align-items: stretch; width: 100%; }
	.dx-hero .dx-btn { justify-content: center; }
	.dx-grid-3, .dx-agrid, .dx-fcols { grid-template-columns: 1fr; }
	.dx-trust__item { font-size: 15px; }
	.dx-band h2 { font-size: 32px; }
	.brxe-section.dx-pbanner { padding: 56px 20px 50px; }
	.dx-pbanner h1 { font-size: 36px; }
	.dx-why h2 { font-size: 30px; }
	.dx-formbox { padding: 28px 22px; }
	.dx-cbox__value { font-size: 17px; word-break: break-word; }
	.dx-page h1 { font-size: 32px; }
	.dx-wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Complianz cookie policy tables on small screens ---------- */
.dx-page__inner { overflow-wrap: anywhere; }
@media (max-width: 400px) {
	.dx-page .cookies-per-purpose { display: block !important; }
	.dx-page .cookies-per-purpose > div { width: auto !important; max-width: 100%; }
}
