/* =========================================================================
   D-Zigners - Sitewide base typography
   Divi injects its own inline font-family rules (from Divi > Theme
   Customizer > General Settings > Typography), which can win against a
   plain CSS file loaded earlier. These rules use !important so the
   brand fonts (Dublin for headings, Articulat CF for body/UI) apply
   everywhere regardless of load order.
   ========================================================================= */

body,
input,
textarea,
select,
button,
.et_pb_module,
#top-menu-nav #top-menu > li > a {
	font-family: var(--dz-font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_module_header,
.entry-title {
	font-family: var(--dz-font-display) !important;
}

/* Divi's core stylesheet applies word-wrap/overflow-wrap: break-word
   (and in places word-break: break-all) fairly aggressively as a
   defensive measure against overflow, which - now that our own layouts
   size their text containers deliberately - was showing up as words
   being split mid-letter onto the next line instead of wrapping whole.
   Overriding back to normal breaking (whole words wrap together;
   overflow-wrap: break-word only kicks in as a last resort for a
   single word that's actually wider than its container) sitewide. */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
span,
a,
div {
	word-break: normal !important;
	overflow-wrap: normal !important;
	-webkit-hyphens: none !important;
	hyphens: none !important;
}

body {
	color: var(--dz-text);
}

a {
	color: var(--dz-accent);
}

/* =========================================================================
   Prevent a stray bottom horizontal scrollbar. The Our Process timeline
   (css/home.css) uses a "full-bleed" 100vw technique
   (width:100vw; margin-left:calc(50% - 50vw)) to break out of its
   container - in some browsers 100vw includes the vertical scrollbar's
   own width, which is a few pixels wider than the visible viewport and
   creates exactly this kind of edge-case horizontal overflow. Clipping
   it here is the standard, safe fix - nothing visible is lost, since
   the overflowing sliver is off-screen by design already.
   ========================================================================= */
/* IMPORTANT: overflow-x:hidden on html/body (the old approach) silently
   breaks position:sticky everywhere on the page in most browsers, because
   it turns html/body into a new scroll container and sticky descendants
   (like .dz-site-header) can no longer stick to the viewport. overflow-x:
   clip achieves the same "no stray horizontal scrollbar" result without
   that side effect. */
html {
	overflow-x: clip;
	max-width: 100%;
}

body {
	overflow-x: clip;
	max-width: 100%;
}

/* =========================================================================
   This theme never uses Divi's native sidebar widget area - every page
   here is a fully custom template. Home/Contact were manually set to
   Divi's "No Sidebar" page layout, but pages Divi treats as archives/
   virtual pages (the WooCommerce Shop archive, and potentially Cart/
   Checkout) don't expose that same per-page setting and fall back to
   Divi's default right-sidebar layout, squeezing our full-width content
   into a narrow column next to a stray default widget sidebar. Hiding
   it here and expanding the content column to full width fixes this
   sitewide regardless of any Divi admin setting.
   ========================================================================= */
#sidebar {
	display: none !important;
}

#left-area {
	width: 100% !important;
	float: none !important;
}

img,
video {
	max-width: 100%;
	height: auto;
}

/* =========================================================================
   Shared components - button system, eyebrow label, scroll reveal.
   These live here (loaded on every page) rather than in css/home.css
   (homepage-only) because the sitewide custom header/footer also use
   them - e.g. the footer's "Get a Quote" button and the eyebrow-style
   headings. Ported 1:1 from the approved static preview.
   ========================================================================= */

/* ---------- Eyebrow label ---------- */
.dz-eyebrow {
	display: inline-block;
	font-family: var(--dz-font-body);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dz-accent);
	margin: 0 0 var(--dz-space-sm);
}

/* ---------- Buttons ---------- */
.dz-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--dz-font-body);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 16px 30px;
	border-radius: 999px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.dz-btn__arrow {
	display: inline-flex;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dz-btn:hover .dz-btn__arrow {
	transform: translateX(4px);
}

.dz-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
}

.dz-btn:hover::before {
	left: 130%;
}

.dz-btn--dark {
	background: var(--dz-black);
	color: var(--dz-white);
	box-shadow: 0 10px 30px rgba(17, 18, 17, 0.22);
}

.dz-btn--dark:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(17, 18, 17, 0.32);
}

.dz-btn--accent {
	background: var(--dz-accent);
	color: var(--dz-white);
	box-shadow: 0 10px 30px rgba(219, 77, 0, 0.28);
}

.dz-btn--accent:hover {
	background: var(--dz-accent);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(219, 77, 0, 0.36);
}

/* Secondary button: black outline, fills solid black on hover. */
.dz-btn--outline {
	background: transparent;
	color: var(--dz-black);
	border-color: var(--dz-black);
}

.dz-btn--outline:hover {
	background: var(--dz-black);
	color: var(--dz-white);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(17, 18, 17, 0.24);
}

/* Light outline variant - used on dark photo/gradient backgrounds (CTA band). */
.dz-btn--outline-light {
	background: transparent;
	color: var(--dz-white);
	border-color: rgba(255, 255, 255, 0.55);
}

.dz-btn--outline-light:hover {
	background: var(--dz-white);
	color: var(--dz-black);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.dz-btn--sm {
	padding: 12px 20px;
	font-size: 11px;
}

.dz-btn--block {
	display: flex;
	width: 100%;
}

/* ---------- Scroll reveal: DISABLED per request ============
   The white-fade-gradient entrance animation has been removed. The
   .dz-reveal / .dz-reveal--1..4 classes are still printed by the PHP
   templates and still get .dz-revealed added by js/header.js's
   IntersectionObserver, but neither does anything visually now -
   sections just render normally with no transform/gradient veil. */
.dz-reveal {
	position: relative;
}

/* =========================================================================
   D-Zigners - Shared page hero + body wrapper, used sitewide by the Shop
   archive, single product, Cart, Checkout, and About Us templates.
   Mirrors the pattern used on the Contact page (css/contact.css
   .dz-contact-hero).
   ========================================================================= */
.dz-page-hero {
	position: relative;
	background: var(--dz-bg-soft);
	padding: var(--dz-space-lg) 0 var(--dz-space-md);
	text-align: center;
}

.dz-page-hero__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 32px;
}

.dz-page-hero__title {
	font-family: var(--dz-font-display);
	font-weight: 700;
	font-size: clamp(24px, 2.8vw, 34px);
	line-height: 1.2;
	color: var(--dz-text);
	margin: 0;
}

.dz-page-body {
	background: var(--dz-white);
	padding-top: 60px;
	padding-bottom: var(--dz-space-2xl);
}

/* Divi's own #main-content .container carries its own padding-top
   (58px) that was stacking on top of .dz-page-body's padding above,
   nearly doubling the gap before page content on shop/checkout/etc.
   pages. Zeroed out here per the fix confirmed live in DevTools. */
body:not(.et-tb) #main-content .container,
body:not(.et-tb-has-header) #main-content .container {
	padding-top: 0;
}

.dz-page-body__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

#dz-cart .dz-page-body__inner,
#dz-checkout .dz-page-body__inner {
	max-width: 1140px;
}

@media (max-width: 600px) {
	.dz-page-hero {
		padding: var(--dz-space-md) 0 var(--dz-space-sm);
	}

	.dz-page-body {
		padding: var(--dz-space-xl) 0;
	}
}

/* =========================================================================
   Page loader - shown while the page (and its images/fonts/etc.) is
   still loading, sitewide. Markup is printed via
   dzigners_render_page_loader() on wp_body_open (functions.php,
   priority 1 so it's the very first thing in <body>). header.js adds
   body.dz-loaded once window "load" fires (with a safety timeout in
   case some resource never fires it), which fades this out.
   ========================================================================= */
.dz-loader {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dz-white);
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.dz-loaded .dz-loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.dz-loader__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.dz-loader__logo {
	width: 180px;
	max-width: 46vw;
	height: auto;
	object-fit: contain;
	animation: dz-loader-pulse 1.6s ease-in-out infinite;
}

.dz-loader__ring {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid var(--dz-border);
	border-top-color: var(--dz-accent);
	animation: dz-loader-spin 0.9s linear infinite;
}

@keyframes dz-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes dz-loader-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.55;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dz-loader__ring {
		animation: none;
	}
	.dz-loader__logo {
		animation: none;
	}
}

/* =========================================================
   Shop "Coming Soon"
   Shown on the homepage Shop section (--home) and on the Shop page
   + product category archives (--shop) while Customizer > Shop:
   Coming Soon is ticked.
   ========================================================= */
.dz-coming-soon__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	margin-bottom: var(--dz-space-md);
	border: 1px solid var(--dz-border);
	border-radius: 999px;
	background: var(--dz-white);
	font-family: var(--dz-font-body);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dz-text);
}

.dz-coming-soon__dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dz-accent);
}

/* Soft "live" ring - an expanding outline, not a glow. */
.dz-coming-soon__dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid var(--dz-accent);
	border-radius: 50%;
	opacity: 0;
	animation: dz-cs-ping 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes dz-cs-ping {
	0%   { transform: scale(0.6); opacity: 0.7; }
	100% { transform: scale(1.9); opacity: 0; }
}

.dz-coming-soon__title {
	font-family: var(--dz-font-display);
	font-weight: 700;
	font-size: clamp(40px, 5.2vw, 72px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--dz-text);
	margin: 0 0 var(--dz-space-md);
	padding: 0;
}

.dz-coming-soon__text {
	max-width: 520px;
	margin: 0 0 var(--dz-space-lg);
	font-family: var(--dz-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--dz-text-muted);
}

/* ---------- Cart illustration (both layouts) ---------- */
.dz-coming-soon__cart {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	animation: dz-cs-float 6s ease-in-out infinite alternate;
}

/* Parcels bob slightly out of step with the cart. */
.dz-coming-soon__parcels {
	transform-box: fill-box;
	transform-origin: center bottom;
	animation: dz-cs-parcels 3.2s ease-in-out infinite alternate;
}

@keyframes dz-cs-float {
	from { transform: translate3d(0, -8px, 0); }
	to   { transform: translate3d(0, 8px, 0); }
}

@keyframes dz-cs-parcels {
	from { transform: translateY(0) rotate(0deg); }
	to   { transform: translateY(-5px) rotate(-1.5deg); }
}

/* ---------- Homepage: split panel ---------- */
.dz-coming-soon--home {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: stretch;
	max-width: 1180px;
	margin: 0 auto;
	background: var(--dz-bg-soft);
	border: 1px solid var(--dz-border);
	border-radius: 28px;
	overflow: hidden;
}

.dz-coming-soon--home .dz-coming-soon__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 72px 64px;
}

.dz-coming-soon__art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 440px;
	padding: 48px;
	box-sizing: border-box;
	background:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0) 0 0 / 24px 24px,
		var(--dz-black);
	color: var(--dz-cream);
}

.dz-coming-soon__art .dz-coming-soon__cart {
	max-width: 300px;
}

@media (max-width: 900px) {
	.dz-coming-soon--home {
		grid-template-columns: 1fr;
		border-radius: 20px;
	}

	.dz-coming-soon__art {
		order: -1;
		min-height: 260px;
		padding: 36px;
	}

	.dz-coming-soon__art .dz-coming-soon__cart {
		max-width: 200px;
	}

	.dz-coming-soon--home .dz-coming-soon__content {
		padding: 44px 24px 48px;
	}
}

/* ---------- Shop page: full-height stage ---------- */
.dz-coming-soon--shop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - var(--dz-header-h));
	min-height: calc(100svh - var(--dz-header-h));
	padding: 100px 32px;
	box-sizing: border-box;
	overflow: hidden;
	background:
		radial-gradient(circle at 1px 1px, rgba(17, 18, 17, 0.07) 1px, transparent 0) 0 0 / 26px 26px,
		var(--dz-bg-soft);
}

.dz-coming-soon--shop .dz-coming-soon__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 720px;
	text-align: center;
}

.dz-coming-soon__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 200px;
	margin-bottom: var(--dz-space-lg);
	padding: 34px;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--dz-white);
	border: 1px solid var(--dz-border);
	box-shadow: var(--dz-shadow);
	color: var(--dz-black);
}

.dz-coming-soon--shop .dz-coming-soon__title {
	font-size: clamp(48px, 7.4vw, 112px);
}

.dz-coming-soon--shop .dz-coming-soon__text {
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 640px) {
	.dz-coming-soon--shop {
		padding: 64px 20px 80px;
		min-height: 0;
	}

	.dz-coming-soon__icon {
		width: 150px;
		height: 150px;
		padding: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dz-coming-soon__cart,
	.dz-coming-soon__parcels,
	.dz-coming-soon__dot::after { animation: none; }
}

/* Nothing can be bought yet, so the header cart icon would only open an
   empty drawer. */
.dz-shop-coming-soon .dz-cart-wrap {
	display: none !important;
}
