/*
 * Davis Brothers Landing non-critical styles.
 *
 * Above-the-fold (header / hero / trust bar / skip link / reset / design
 * tokens) lives inline in page-landing.php for first paint. This file
 * loads async via the preload pattern in functions.php and covers every
 * section below the trust bar.
 *
 * Section order mirrors the template:
 *   1. Design token additions (form states + neutrals)
 *   2. Shared section padding and H2
 *   3. Services grid
 *   4. Why Us
 *   5. Testimonials
 *   6. How It Works
 *   7. Service Area chips
 *   8. Lead Form + Success panel
 *   9. Final CTA
 *   10. Footer
 *   11. Hover states (hover capable pointers only)
 *   12. Focus states (accessibility)
 *   13. Section reveal animation (prefers-reduced-motion guarded)
 *   14. Breakpoints: 640px, 768px, 1024px
 *
 * Rules: no Google Fonts, no external URLs, no !important, no em dashes,
 * no jQuery. All colors reference CSS custom properties.
 */

/* -------------------------------------------------------------------------
 * 1. Token additions
 * Existing tokens from critical CSS are not redefined. These are additions
 * only needed below the fold (form states and neutrals for cards/chips).
 * ----------------------------------------------------------------------- */
:root {
	--color-surface:     #ffffff;
	--color-neutral-50:  #f7f9fb;
	--color-neutral-100: #eef2f6;
	--color-success:     #2e7d32;
	--color-success-bg:  #e8f5e9;
	--color-error:       #c62828;
	--color-error-bg:    #fdecea;
	--color-footer-bg:   #002D5C;
	--color-shadow-sm:   0 1px 3px rgba(15, 61, 92, 0.08);
	--color-shadow-md:   0 4px 16px rgba(15, 61, 92, 0.12);
	--color-shadow-lg:   0 10px 28px rgba(15, 61, 92, 0.18);
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-pill: 9999px;
}

/* -------------------------------------------------------------------------
 * 2. Shared section patterns
 * Target only sections styled here. The header / hero / trust bar keep
 * their critical-CSS padding.
 * ----------------------------------------------------------------------- */
.dbl-services,
.dbl-why,
.dbl-reviews,
.dbl-how,
.dbl-area,
.dbl-form-section,
.dbl-final-cta {
	padding-block: 3rem;
	padding-inline: 1rem;
}

.dbl-services-inner,
.dbl-why-inner,
.dbl-reviews-inner,
.dbl-how-inner,
.dbl-area-inner,
.dbl-final-cta-inner {
	max-width: 1200px;
	margin-inline: auto;
}

.dbl-form-section .dbl-form-inner {
	max-width: 36rem;
	margin-inline: auto;
}

.dbl-section-h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
	font-weight: 700;
	color: var(--color-primary);
	letter-spacing: -0.01em;
	text-align: center;
	margin: 0 0 3rem;
}

/* Eyebrow label above each section H2. On blue sections (How It Works)
   the override swaps red for muted white. */
.dbl-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-accent);
	text-align: center;
	margin: 0 0 0.75rem;
}

.dbl-how .dbl-eyebrow {
	color: rgba(255, 255, 255, 0.75);
}

/* Brand stripe between hero and the rest of the page. */
.dbl-section-divider {
	height: 4px;
	background: var(--color-accent);
	width: 100%;
}

/* Hero image is a portrait shot of the brothers; default center-crop would
   slice off their faces. Pin the crop near the top so faces stay in frame. */
.dbl-hero-image img {
	object-position: center 22%;
}


/* -------------------------------------------------------------------------
 * 3. Services grid
 * ----------------------------------------------------------------------- */
.dbl-services {
	background-image: var(--texture-dots);
	background-repeat: repeat;
}

.dbl-services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

/* Base card: flex column, equal-height rows. Zero padding + overflow:hidden
   so image cards go flush top-edge without negative margins (fixed the
   Repiping overlap bug). Content padding lives on .dbl-service-card-content. */
.dbl-service-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 0;
	overflow: hidden;
	box-shadow: var(--color-shadow-sm);
	transition: transform 200ms ease, box-shadow 200ms ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Icon-only cards use extra top padding so the icon has breathing room
   above the title (photo cards get that space from the image itself). */
.dbl-service-card--icon {
	padding-top: 2rem;
}

.dbl-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-accent);
	margin: 0 auto 1rem;
}

.dbl-service-icon svg {
	width: 64px;
	height: 64px;
}

/* Service card with image: flush to top corners, no negative margins. */
.dbl-service-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dbl-service-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}

.dbl-service-card--icon .dbl-service-icon {
	padding-inline: 1.5rem;
}

.dbl-service-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.dbl-service-desc {
	color: var(--color-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

.dbl-service-desc p { margin: 0; }

/* Benefit line: margin-top:auto pins to card bottom; top-border = footer. */
.dbl-service-card-benefit {
	margin: auto 0 0;
	padding-top: 1rem;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-style: italic;
	color: var(--color-muted);
	border-top: 1px solid var(--color-border);
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * 3.5 Pull-quote (editorial pause between Services and Why Us)
 * Serif italic quote on white background, muted red quotation mark above,
 * uppercase cite below. Georgia is a system-level serif so no web-font
 * request is introduced.
 * ----------------------------------------------------------------------- */
.dbl-pullquote {
	background: #F0F7FF;
	padding-block: 6rem;
	padding-inline: 1.5rem;
}

.dbl-pullquote-wrap {
	max-width: 44rem;
	margin-inline: auto;
	text-align: center;
	position: relative;
	padding-top: 3rem;
}

/* Opening quote via CSS content (\201C = left double quote). No SVG needed. */
.dbl-pullquote-wrap::before {
	content: "\201C";
	position: absolute;
	top: -0.25rem;
	left: 50%;
	transform: translateX(-50%);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 6rem;
	line-height: 1;
	color: var(--color-accent);
	opacity: 0.25;
	font-weight: 700;
	pointer-events: none;
}

.dbl-pullquote-text {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.375rem, 3vw, 1.875rem);
	line-height: 1.4;
	font-style: italic;
	color: var(--color-text);
	margin: 0 0 1.5rem;
	padding: 0;
	quotes: none;
}

.dbl-pullquote-cite {
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--color-muted);
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * 4. Why Us
 * ----------------------------------------------------------------------- */
.dbl-why {
	background: var(--color-neutral-50);
}

/* Why Us: 3 text-only reasons. Photo moved to the video section poster. */
.dbl-why-layout {
	display: block;
	max-width: 1100px;
	margin-inline: auto;
}

.dbl-why-reasons {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.dbl-why-reason {
	text-align: center;
}

.dbl-why-reason h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.dbl-why-reason p {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0;
}

/* -------------------------------------------------------------------------
 * 5. Testimonials (light blue tint + dot texture; cards stay white)
 * ----------------------------------------------------------------------- */
.dbl-reviews {
	background-color: #F0F7FF;
	background-image: var(--texture-dots);
	background-repeat: repeat;
}

.dbl-reviews-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.dbl-review {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	box-shadow: var(--color-shadow-sm);
	transition: transform 200ms ease, box-shadow 200ms ease;
	display: flex;
	flex-direction: column;
}

.dbl-review-stars {
	display: flex;
	gap: 2px;
	color: var(--color-accent);
	margin-block-end: 0.75rem;
}

.dbl-review-stars svg {
	width: 16px;
	height: 16px;
}

.dbl-review-text {
	margin: 0 0 1rem;
	padding: 0;
	border: none;
	font-style: italic;
	color: var(--color-text);
	line-height: 1.6;
	flex-grow: 1;
}

.dbl-review-text p { margin: 0; }

.dbl-review-attr {
	font-size: 0.875rem;
	color: var(--color-muted);
}

.dbl-review-name {
	font-weight: 700;
	color: var(--color-text);
}

.dbl-review-city { color: var(--color-muted); }

/* -------------------------------------------------------------------------
 * 6. How It Works
 * ----------------------------------------------------------------------- */
.dbl-how {
	background: var(--color-primary);
	background-image: linear-gradient(160deg, #0068CF 0%, #005CB7 100%);
	color: #fff;
}

.dbl-how .dbl-section-h2 { color: #fff; }

.dbl-how-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.dbl-how-step {
	text-align: center;
	max-width: 22rem;
	margin-inline: auto;
}

/* White badge, primary-blue icon (~8.6:1 contrast, AAA). Drop-shadow
   lifts it off the blue gradient. */
.dbl-step-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	background: #ffffff;
	border: none;
	color: var(--color-primary);
	margin: 0 auto 1rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dbl-step-badge svg {
	width: 2rem;
	height: 2rem;
}

.dbl-step-number {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	margin-block-end: 0.25rem;
}

.dbl-how-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
	margin-block-end: 0.5rem;
}

.dbl-how-desc {
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
 * 7. Service Area chips
 * ----------------------------------------------------------------------- */
.dbl-area {
	background: linear-gradient(180deg, var(--color-bg) 0%, #E8F0F9 100%);
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Florida silhouette watermark. */
.dbl-area-map {
	position: absolute;
	right: -3rem;
	top: 50%;
	transform: translateY(-50%);
	width: 280px;
	height: 350px;
	color: var(--color-primary);
	pointer-events: none;
	z-index: 0;
}

.dbl-area-inner {
	position: relative;
	z-index: 1;
}

.dbl-area-intro {
	max-width: 44ch;
	margin: 0 auto 2.5rem;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.5;
}

.dbl-area-intro::before { display: none; }

.dbl-area-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	max-width: 900px;
	margin-inline: auto;
}

.dbl-area-city {
	display: inline-flex;
	align-items: center;
	padding: 0.625rem 1.25rem;
	background: var(--color-surface);
	border: 1px solid rgba(0, 92, 183, 0.2);
	border-radius: var(--radius-pill);
	color: var(--color-primary);
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.2;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

/* -------------------------------------------------------------------------
 * 7.5 Meet the Brothers Video (lazy-loaded YouTube embed)
 * Source footage is portrait 9:16. aspect-ratio reserves the box so there
 * is zero CLS when the iframe swaps in. max-width keeps the portrait
 * player from dominating on desktop; on mobile it fills the column.
 * ----------------------------------------------------------------------- */
.dbl-video-section {
	background: linear-gradient(180deg, var(--color-primary) 0%, #003d7a 100%);
	text-align: center;
	padding-block: 5rem;
	position: relative;
	overflow: hidden;
}

.dbl-video-section .dbl-eyebrow { color: rgba(255, 255, 255, 0.75); }
.dbl-video-section .dbl-section-h2 { color: #ffffff; margin: 0 0 0.5rem; }

.dbl-video-subhead {
	max-width: 44ch;
	margin: 0 auto 2.5rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1rem;
	line-height: 1.5;
}

.dbl-video-player {
	position: relative;
	width: 100%;
	max-width: 360px;
	margin-inline: auto;
	aspect-ratio: 9 / 16;
	background: #000;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.dbl-video-play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: block;
}

.dbl-video-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Video overlay: label at top (away from faces), play icon centered
   absolutely. Gradient is darker at top and bottom, lighter mid-poster
   so the subjects' faces stay clear. */
.dbl-video-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 1.5rem;
	gap: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.4) 100%);
	transition: background 200ms ease;
	pointer-events: none;
}

.dbl-video-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
	transition: transform 200ms ease;
}

.dbl-video-play:hover .dbl-video-play-icon,
.dbl-video-play:focus-visible .dbl-video-play-icon {
	transform: translate(-50%, -50%) scale(1.08);
}

.dbl-video-label {
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.dbl-video-duration {
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

.dbl-video-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* -------------------------------------------------------------------------
 * 8. Lead Form + Success panel
 * ----------------------------------------------------------------------- */
.dbl-form-section {
	background-image: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #E8F0F9 100%);
	background-repeat: no-repeat;
	background-size: cover;
}

.dbl-form-subhead {
	text-align: center;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.5;
	margin-block-end: 1.5rem;
}

.dbl-form-subhead p { margin: 0; }

.dbl-form {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 2rem;
	box-shadow: var(--color-shadow-md);
}

.dbl-field {
	margin-block-end: 1.25rem;
}

.dbl-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-text);
	margin-block-end: 0.5rem;
}

.dbl-form input[type="text"],
.dbl-form input[type="tel"],
.dbl-form input[type="email"],
.dbl-form select,
.dbl-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	font-family: inherit;
	font-size: 1rem; /* 16px minimum prevents iOS focus zoom */
	line-height: 1.4;
	color: var(--color-text);
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dbl-form textarea {
	min-height: 6rem;
	resize: vertical;
}

.dbl-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-inline-end: 2.5rem;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 16px 16px;
	cursor: pointer;
}

.dbl-form-submit {
	width: 100%;
	cursor: pointer;
	margin-block-start: 0.25rem;
}

.dbl-form-submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.dbl-form-error {
	margin-block-start: 1rem;
	padding: 0.75rem 1rem;
	background: var(--color-error-bg);
	border-left: 4px solid var(--color-error);
	color: var(--color-error);
	font-size: 0.9rem;
	border-radius: var(--radius-sm);
}

/* Success panel */
.dbl-form-success {
	background: var(--color-success-bg);
	border: 1px solid rgba(46, 125, 50, 0.3);
	border-radius: var(--radius-md);
	padding: 2rem;
	text-align: center;
	box-shadow: var(--color-shadow-sm);
}

.dbl-form-success-icon {
	display: inline-flex;
	color: var(--color-success);
	margin-block-end: 1rem;
}

.dbl-form-success-headline {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-success);
	margin-block-end: 1rem;
}

.dbl-form-success-body {
	color: var(--color-text);
	line-height: 1.6;
	margin-block-end: 1rem;
}

.dbl-form-success-phone {
	font-weight: 700;
	color: var(--color-primary);
	white-space: nowrap;
}

.dbl-form-success-backup {
	font-size: 0.95rem;
	color: var(--color-muted);
}

.dbl-form-success-backup a {
	color: var(--color-accent);
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * 9. Final CTA
 * ----------------------------------------------------------------------- */
.dbl-final-cta {
	background: var(--color-primary);
	background-image: linear-gradient(160deg, #0068CF 0%, #005CB7 100%);
	color: #fff;
	text-align: center;
	padding-block: 5rem;
}

.dbl-final-cta-inner {
	max-width: 900px;
}

.dbl-final-cta-heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	text-align: center;
}

.dbl-final-cta-support {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 2rem;
	text-align: center;
	line-height: 1.5;
}

.dbl-final-cta-label {
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 700;
	margin: 0 0 0.5rem;
	text-align: center;
}

.dbl-final-cta-phone {
	display: block;
	text-align: center;
	font-size: clamp(2rem, 6vw, 4rem);
	font-weight: 800;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: -0.02em;
	line-height: 1;
	transition: transform 200ms ease;
}

/* -------------------------------------------------------------------------
 * 10. Footer
 * ----------------------------------------------------------------------- */
.dbl-footer {
	background: var(--color-footer-bg);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9375rem;
	line-height: 1.6;
	padding-block: 3.5rem;
	padding-inline: 1.5rem;
}

.dbl-footer-inner {
	max-width: 1100px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	text-align: center;
}

.dbl-footer-business {
	font-weight: 700;
	font-size: 1rem;
	color: #ffffff;
	margin: 0 0 0.25rem;
}

.dbl-footer-meta {
	margin: 0 0 0.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	align-items: center;
	color: rgba(255, 255, 255, 0.9);
}

.dbl-footer-meta > * {
	color: rgba(255, 255, 255, 0.9);
}

.dbl-footer-phone {
	color: #ffffff;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.4);
	text-underline-offset: 3px;
}

.dbl-footer-license {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.7);
}

.dbl-footer-copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------
 * 11. Hover states (hover-capable pointers only)
 * Skipped on touch so we do not leave a stuck :hover state on tap.
 * ----------------------------------------------------------------------- */
@media (hover: hover) {
	.dbl-service-card:hover {
		transform: translateY(-2px);
		box-shadow: var(--color-shadow-lg);
	}

	.dbl-review:hover {
		transform: scale(1.01);
		box-shadow: var(--color-shadow-lg);
	}

	.dbl-area-city:hover {
		background: var(--color-primary);
		border-color: var(--color-primary);
		color: #fff;
	}

	.dbl-btn-primary:hover,
	.dbl-form-submit:hover {
		background: #C91C29; /* accent darkened ~15% (Pantone 2034C -> deeper red) */
		transform: translateY(-2px);
	}

	.dbl-btn-secondary:hover {
		background: var(--color-neutral-50);
	}

	.dbl-final-cta-phone:hover {
		transform: translateY(-2px);
	}

	.dbl-footer-phone:hover { text-decoration-color: #ffffff; }
}

/* -------------------------------------------------------------------------
 * 12. Focus states (accessibility)
 * Visible outline on every interactive element. Inputs get a stronger
 * ring so it is obvious which field is active even on long forms.
 * ----------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.dbl-form input:focus,
.dbl-form select:focus,
.dbl-form textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(242, 45, 58, 0.22);
}

/* -------------------------------------------------------------------------
 * 13. Section reveal animation
 * Opt-in class. Intersection Observer script adds .is-visible when
 * the section enters the viewport. Guarded by prefers-reduced-motion.
 * ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.dbl-section-reveal {
		opacity: 0;
		transform: translateY(1rem);
		transition: opacity 600ms ease, transform 600ms ease;
		will-change: opacity, transform;
	}

	.dbl-section-reveal.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -------------------------------------------------------------------------
 * 13.5 Mobile sticky CTA bar
 * Fixed to viewport bottom on <768px. Slides in (transform 100%->0) when
 * the hero leaves the viewport; slides back out when it returns. Desktop
 * hides it outright via display:none. Body gets bottom padding on mobile
 * so the last piece of content is not obscured.
 * ----------------------------------------------------------------------- */
.dbl-mobile-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--color-accent);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
	z-index: 900;
	transform: translateY(100%);
	transition: transform 300ms ease;
	display: block;
}

.dbl-mobile-cta.is-visible {
	transform: translateY(0);
}

.dbl-mobile-cta-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.0625rem;
	min-height: 56px;
}

.dbl-mobile-cta-label {
	font-size: 0.9375rem;
}

.dbl-mobile-cta-phone {
	font-weight: 800;
}

@media (max-width: 767px) {
	body.dbl-landing { padding-bottom: 56px; }
}

@media (min-width: 768px) {
	.dbl-mobile-cta { display: none; }
}

/* -------------------------------------------------------------------------
 * 14. Breakpoints
 * Mobile-first. Progressive enhancement at 640 / 768 / 1024.
 * ----------------------------------------------------------------------- */
@media (min-width: 640px) {
	.dbl-services-grid { grid-template-columns: 1fr 1fr; }
	.dbl-reviews-list  { grid-template-columns: 1fr 1fr; }

	.dbl-form-submit { width: auto; padding-inline: 2.5rem; }

	.dbl-footer-inner {
		grid-template-columns: 1fr auto 1fr;
		gap: 3rem;
		text-align: left;
		align-items: center;
	}

	.dbl-footer-inner > :last-child {
		text-align: right;
	}

	.dbl-footer-meta {
		align-items: center;
		flex-wrap: wrap;
	}
}

@media (min-width: 768px) {
	.dbl-services,
	.dbl-why,
	.dbl-reviews,
	.dbl-how,
	.dbl-area,
	.dbl-form-section,
	.dbl-final-cta {
		padding-block: 4rem;
		padding-inline: 2rem;
	}

	.dbl-why-reasons { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
	.dbl-area-map    { right: 2rem; width: 320px; height: 400px; }
	.dbl-how-steps  { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

@media (min-width: 1024px) {
	.dbl-services-grid { grid-template-columns: repeat(4, 1fr); }
	.dbl-reviews-list  { grid-template-columns: repeat(4, 1fr); }
}
