/*
Theme Name: Dropyard
Theme URI: https://example.com/dropyard
Author: Dropyard
Description: A bold, job-site inspired block theme for dumpster rental and hauling businesses. Built to pair with the BinFlow booking plugin: the animated booking form sits in the homepage hero, and a live size guide reads your fleet straight from BinFlow. Includes a full homepage, blog, page templates, 404, three style variations and editable patterns for every section.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dropyard
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, style-variations, translation-ready, wide-blocks, one-column, business
*/

/* ==========================================================================
   Global polish
   ========================================================================== */

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, .wp-block-site-title, .wp-block-post-title, .wp-block-query-title {
	font-stretch: 112%;
	text-wrap: balance;
}

::selection { background: var(--wp--preset--color--signal); color: #fff; }

:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--signal);
	outline-offset: 3px;
	border-radius: 4px;
}

[id] { scroll-margin-top: 90px; }

/* ==========================================================================
   Header
   ========================================================================== */

.dy-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
}
.admin-bar .dy-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dy-header { top: 0; position: relative; } }

.dy-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.dy-mark { width: 40px; height: 40px; flex: none; display: block; }
.dy-header .wp-block-site-title a { text-decoration: none; }
.dy-header .wp-block-site-title { text-transform: uppercase; letter-spacing: .02em; }

.dy-header .wp-block-navigation a { text-decoration: none; position: relative; }
.dy-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
	background: var(--wp--preset--color--signal);
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.dy-header .wp-block-navigation .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.dy-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--asphalt) !important;
	color: #fff !important;
}

.dy-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dy-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--wp--preset--color--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .dy-hide-mobile { display: none !important; } }

/* ==========================================================================
   Signature motifs
   ========================================================================== */

/* Hazard stripe band (block style + utility) */
.is-style-hazard-top { position: relative; }
.is-style-hazard-top::before,
.dy-stripe {
	content: "";
	display: block;
	height: 10px;
	background: repeating-linear-gradient(-45deg, var(--wp--preset--color--signal) 0 14px, var(--wp--preset--color--asphalt) 14px 28px);
}
.is-style-hazard-top::before { position: absolute; top: 0; left: 0; right: 0; }

/* Eyebrow / stencil label */
.is-style-eyebrow,
.dy-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--signal-dark);
}
.has-asphalt-background-color .is-style-eyebrow,
.dy-footer .is-style-eyebrow,
.dy-page-hero .is-style-eyebrow,
.has-asphalt-background-color .dy-eyebrow { color: var(--wp--preset--color--signal); }
.has-signal-background-color .is-style-eyebrow { color: var(--wp--preset--color--asphalt); }
.is-style-eyebrow::before { content: "■ "; font-size: .7em; vertical-align: 2px; }

/* Card */
.is-style-dy-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--concrete);
	border-radius: 18px;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.is-style-dy-card:hover {
	transform: translateY(-4px);
	border-color: #d5cfc4;
	box-shadow: 0 24px 40px -28px rgba(21, 23, 28, .45);
}

/* Blueprint grid background for dark sections */
.is-style-blueprint {
	background-image:
		linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) !important;
	background-size: 44px 44px !important;
}

/* Outline button on dark */
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid rgba(255,255,255,.35) !important;
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { border-color: #fff !important; }

.wp-block-button__link { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button__link:active { transform: translateY(1px); }

/* ==========================================================================
   Homepage sections
   ========================================================================== */

/* Trust strip */
.dy-trust .dy-trust-item { display: flex; align-items: center; gap: 14px; }
.dy-icon {
	width: 46px; height: 46px; border-radius: 12px; flex: none;
	display: grid; place-items: center;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--asphalt);
}
.dy-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dy-icon.is-signal { background: var(--wp--preset--color--signal); color: #fff; }
.dy-icon.is-dark { background: rgba(255,255,255,.08); color: var(--wp--preset--color--signal); }

/* Steps */
.dy-steps { counter-reset: dy-step; }
.dy-step { position: relative; }
.dy-step .dy-step-num {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 125%;
	font-weight: 900;
	font-size: clamp(3.5rem, 6vw, 5rem);
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 2px var(--wp--preset--color--signal);
	margin: 0;
}
@media (min-width: 782px) {
	.dy-steps > .wp-block-column:not(:last-child) .dy-step::after {
		content: ""; position: absolute; top: 34px; right: -30px; width: 40px; height: 2px;
		background: repeating-linear-gradient(90deg, var(--wp--preset--color--concrete) 0 6px, transparent 6px 12px);
	}
}

/* Size guide */
.dy-size-art { background: linear-gradient(#fbfaf7, #f0ece5); border-radius: 12px; padding: 14px 10px 0; overflow: hidden; }
.dy-size-art svg { width: 100%; height: auto; display: block; }
.dy-size-art .b-body { fill: var(--wp--preset--color--signal); }
.dy-size-art .b-lip { fill: var(--wp--preset--color--signal-dark); }
.dy-size-art .b-rib { stroke: rgba(0,0,0,.18); stroke-width: 2; }
.dy-size-art .b-rail { fill: #3a3d44; }
.dy-size-art .b-person { fill: #b9b3a9; }
.dy-size-art .b-ground { stroke: #d7d1c6; stroke-width: 2; }
.dy-size-art .b-dim { fill: #6b6f78; font: 600 9px var(--wp--preset--font-family--mono); }
.dy-size-card .wp-block-heading { margin: 0; }
.dy-size-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dy-chip {
	display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--steel);
}
.dy-price { font-family: var(--wp--preset--font-family--display); font-stretch: 112%; font-weight: 800; }

/* Lists with check / cross marks */
.is-style-dy-check, .is-style-dy-cross { list-style: none; padding-left: 0 !important; }
.is-style-dy-check li, .is-style-dy-cross li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.is-style-dy-check li::before, .is-style-dy-cross li::before {
	position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1;
}
.is-style-dy-check li::before { content: "✓"; background: #dcf3e5; color: #12703f; }
.is-style-dy-cross li::before { content: "✕"; background: #fde4df; color: #b3261e; }

/* FAQ */
.dy-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--concrete);
	padding: 1.15rem 0;
}
.dy-faq .wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 108%;
	font-weight: 700;
	font-size: 1.15rem;
	cursor: pointer;
	list-style: none;
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.dy-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.dy-faq .wp-block-details summary::after {
	content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; font-size: 1.3rem; font-weight: 500;
	background: var(--wp--preset--color--paper);
	transition: transform .3s ease, background .3s ease, color .3s ease;
}
.dy-faq .wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--wp--preset--color--signal); color: #fff; }
.dy-faq .wp-block-details > *:not(summary) { margin-top: .75rem; color: var(--wp--preset--color--steel); max-width: 680px; }

/* CTA band */
.dy-cta { position: relative; overflow: hidden; }
.dy-cta-truck { position: absolute; right: -20px; bottom: 0; width: min(420px, 45vw); opacity: .9; pointer-events: none; }
@media (max-width: 781px) { .dy-cta-truck { display: none; } }

/* Reveal on scroll */
.dy-js .dy-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.dy-js .dy-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dy-reveal { opacity: 1; transform: none; transition: none; } }
.block-editor-block-list__layout .dy-reveal, .editor-styles-wrapper .dy-reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages & blog
   ========================================================================== */

.dy-page-hero { position: relative; overflow: hidden; }
.dy-page-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
	background: repeating-linear-gradient(-45deg, var(--wp--preset--color--signal) 0 12px, var(--wp--preset--color--asphalt) 12px 24px);
}

.dy-post-card { height: 100%; overflow: hidden; }
.dy-post-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.dy-post-card .wp-block-post-featured-image img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.dy-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.dy-post-card .wp-block-post-title a { text-decoration: none; }
.dy-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--signal); }

.wp-block-query-pagination a, .wp-block-query-pagination .current {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 10px; text-decoration: none; font-weight: 700;
}
.wp-block-query-pagination .current { background: var(--wp--preset--color--asphalt); color: #fff; }

.wp-block-post-content > * + h2 { margin-top: 1.8em; }
.wp-block-post-content img { border-radius: 14px; }

/* 404 */
.dy-404-num {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 125%; font-weight: 900; line-height: .85;
	font-size: clamp(6rem, 18vw, 13rem);
	color: transparent; -webkit-text-stroke: 3px var(--wp--preset--color--signal);
	margin: 0;
}
.dy-404-truck { width: min(360px, 80%); margin: 0 auto; display: block; }
.dy-404-truck .w { transform-box: fill-box; transform-origin: center; animation: dy-spin 1s linear infinite; }
.dy-404-truck .t { animation: dy-drive 5s ease-in-out infinite; }
@keyframes dy-spin { to { transform: rotate(360deg); } }
@keyframes dy-drive { 0%, 100% { transform: translateX(-24px); } 50% { transform: translateX(24px); } }

/* Footer */
.dy-footer a { text-decoration: none; }
.dy-footer a:hover { color: var(--wp--preset--color--signal) !important; }
.dy-footer .wp-block-navigation { gap: .5rem; }

/* ==========================================================================
   BinFlow booking form integration
   ========================================================================== */

body .bf-root {
	--bf-font: var(--wp--preset--font-family--body);
	--bf-mono: var(--wp--preset--font-family--mono);
}
.bf-root .bf-hero-title,
.bf-root .bf-steptitle,
.bf-root .bf-size-name,
.bf-root .bf-done-title,
.bf-root .bf-summary-total strong,
.bf-root .bf-size-price b {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 112%;
}
.bf-root .bf-hero-title { font-stretch: 118%; letter-spacing: -0.03em; }
.bf-root.bf-layout-hero .bf-hero { padding-top: clamp(40px, 6vw, 80px); }
.dy-book-anchor { margin-block-start: 0 !important; }
.dy-book-anchor > .bf-root.bf-layout-hero { margin-top: 0; }

.dy-noplugin {
	border: 2px dashed var(--wp--preset--color--signal);
	border-radius: 18px;
}

/* Stagger reveals inside grids */
.dy-js .wp-block-group > .dy-reveal:nth-child(2), .dy-js .wp-block-column:nth-child(2) > .dy-reveal { transition-delay: .08s; }
.dy-js .wp-block-group > .dy-reveal:nth-child(3), .dy-js .wp-block-column:nth-child(3) > .dy-reveal { transition-delay: .16s; }
.dy-js .wp-block-group > .dy-reveal:nth-child(4) { transition-delay: .24s; }
.dy-js .wp-block-group > .dy-reveal:nth-child(5) { transition-delay: .32s; }

.dy-size-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)) !important; }

.wp-block-search__input {
	border: 1.5px solid var(--wp--preset--color--concrete) !important;
	border-radius: 12px !important;
	padding: 0.85rem 1rem !important;
	background: var(--wp--preset--color--white);
	font: inherit;
}
.wp-block-search__input:focus { border-color: var(--wp--preset--color--signal) !important; outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--signal) 18%, transparent); }
.wp-block-search__button { border-radius: 12px !important; }
.wp-block-post-content h2 { font-size: var(--wp--preset--font-size--x-large); }
.wp-block-post-content h3 { font-size: var(--wp--preset--font-size--large); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea {
	border: 1.5px solid var(--wp--preset--color--concrete); border-radius: 12px; padding: .8rem 1rem; background: #fff; font: inherit;
}
.dy-plain-list { list-style: none; }

/* BinFlow local SEO pages */
.dy-location .bf-location-body h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.2rem; }
.dy-location .bf-location-body > h2:first-child { margin-top: 0; }
.dy-location .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--concrete); padding: 1.1rem 0; }
.dy-location .wp-block-details summary { font-family: var(--wp--preset--font-family--display); font-stretch: 108%; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.bf-blocks { --bf-accent: var(--wp--preset--color--signal); --bf-dark: var(--wp--preset--color--asphalt); }
.bf-blocks h3, .bf-size-body .bf-from strong { font-family: var(--wp--preset--font-family--display); font-stretch: 112%; }
