/* Bumblebee Exterior Cleaning – theme styles.
   Colours and fonts are set in theme.json; this file handles layout details. */

:root {
	--bb-radius: 14px;
	--bb-section: clamp(3.5rem, 8vw, 5.5rem);
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

:where(a):focus-visible,
:where(button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--amber);
	outline-offset: 2px;
}

/* Full-width sections sit flush against each other, header and footer. */
.wp-block-post-content > .alignfull,
.wp-site-blocks > footer,
.wp-site-blocks > main,
.bb-header,
.bb-footer { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > header > .alignfull { margin-block-start: 0; }

/* Ordinary pages get breathing room; pages built from full-width sections don't need it. */
.bb-page-title { padding-top: clamp(2.5rem, 6vw, 4rem); }
.bb-page-title:not(:has(.wp-block-post-title)) { display: none; }
.bb-page-content { padding-bottom: var(--bb-section); }
.bb-page-content:has(> .alignfull:last-child) { padding-bottom: 0; }
.bb-page-title:not(:has(.wp-block-post-title)) + .bb-page-content { margin-block-start: 0; }

/* ---------- Sections ---------- */
.bb-section {
	padding-top: var(--bb-section);
	padding-bottom: var(--bb-section);
}
.bb-section-intro { max-width: 680px; }
.bb-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: var(--wp--preset--color--stone);
}
.bb-eyebrow {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-dark);
	margin-bottom: 0;
}
.has-ink-background-color .bb-lead,
.has-ink-background-color .bb-muted { color: #d6d3d1; }
.has-ink-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--gold); }

/* ---------- Top bar & header ---------- */
.bb-topbar {
	font-size: 0.875rem;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}
.bb-topbar p { margin: 0; }
.bb-topbar a { color: var(--wp--preset--color--gold); font-weight: 600; text-decoration: none; }

.bb-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	background: var(--wp--preset--color--white);
}
.bb-logo { margin: 0; }
.bb-logo img { height: 76px; width: auto; display: block; }
.bb-header .wp-block-navigation a { color: var(--wp--preset--color--ink); text-decoration: none; }
.bb-header .wp-block-navigation a:hover { color: var(--wp--preset--color--amber-dark); }
.bb-header .wp-block-button__link { padding: 0.7rem 1.1rem; font-size: 1rem; }

/* ---------- Buttons ---------- */
.bb-btn-dark .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}
.bb-btn-dark .wp-block-button__link:hover { background: #000; color: var(--wp--preset--color--white); }
.bb-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--ink);
}
.bb-btn-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}
.has-honey-background-color .bb-btn-outline .wp-block-button__link { background: var(--wp--preset--color--white); }
.has-honey-background-color .bb-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); }

/* ---------- Hero ---------- */
.bb-hero { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.bb-hero .wp-block-columns { align-items: center; gap: clamp(2rem, 5vw, 3.5rem); }
.bb-hero h1 { margin-top: 0.5rem; }
.bb-trust {
	margin-top: 1.25rem !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--stone);
	margin: 0;
	padding: 0;
	list-style: none;
}
.bb-trust li { margin: 0; }
.bb-stars { color: #b45309; letter-spacing: 2px; }

.bb-quote-card {
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	box-shadow: 0 10px 30px rgba(28, 25, 23, 0.12);
	scroll-margin-top: 1rem;
}
.bb-quote-card h2 { font-size: 1.5rem; margin: 0; }
.bb-quote-card > p { margin: 0.25rem 0 0; }

/* ---------- Quote form ---------- */
.bb-form { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1rem; }
.bb-field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.bb-field label { font-size: 0.875rem; font-weight: 600; }
.bb-field input[type="text"],
.bb-field input[type="tel"],
.bb-field input[type="email"],
.bb-field select,
.bb-field textarea {
	min-height: 46px;
	padding: 0.6rem 0.75rem;
	border: 1px solid #a8a29e;
	border-radius: 8px;
	font: inherit;
	font-size: 1rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	box-sizing: border-box;
	width: 100%;
}
.bb-field--file label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0.5rem;
	border: 2px dashed #d6d3d1;
	border-radius: 8px;
	color: var(--wp--preset--color--stone);
	cursor: pointer;
	text-align: center;
}
.bb-field--file label:hover { border-color: var(--wp--preset--color--amber); }
.bb-file-label { font-size: 0.9375rem; font-weight: 600; }
.bb-file-hint { font-size: 0.8125rem; font-weight: 400; color: var(--wp--preset--color--muted); }
.bb-field--file input[type="file"] { font-size: 0.875rem; }
.bb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bb-form-submit {
	min-height: 52px;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}
.bb-form-note { font-size: 0.8125rem; color: var(--wp--preset--color--muted); margin: 0; }
.bb-form-message {
	padding: 1rem;
	border-radius: 10px;
	margin-top: 1rem;
	font-size: 0.9375rem;
}
.bb-form-message--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bb-form-message--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Service cards ---------- */
.bb-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	gap: 0;
}
.bb-card > .wp-block-image { margin: 0; }
.bb-card > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bb-card-body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.bb-card-body > * { margin: 0; }
.bb-card-body h3 a { color: inherit; text-decoration: none; }
.bb-card-body h3 a:hover { color: var(--wp--preset--color--amber-dark); }
.bb-card-body .bb-muted { color: var(--wp--preset--color--muted); line-height: 1.5; }
.bb-price-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-weight: 600;
	margin-top: auto !important;
	padding-top: 0.4rem;
}

/* ---------- Before & after ---------- */
.bb-job { margin: 0; }
.bb-ba { gap: 4px !important; border-radius: 12px; overflow: hidden; margin-bottom: 0.75rem; }
.bb-ba .wp-block-column { margin: 0; }
.bb-ba .wp-block-image { margin: 0; }
.bb-ba img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.bb-ba.wp-block-columns { flex-wrap: nowrap !important; }
.bb-ba .wp-block-column { flex-basis: 50% !important; }
.bb-job-caption { font-size: 0.9375rem; margin: 0; }

/* ---------- Steps ---------- */
.bb-steps { counter-reset: bb-step; }
.bb-step {
	background: var(--wp--preset--color--honey);
	border-radius: var(--bb-radius);
	padding: 1.5rem;
	counter-increment: bb-step;
}
.has-honey-background-color .bb-step { background: var(--wp--preset--color--white); }
.bb-step::before {
	content: counter(bb-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--amber);
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}
.bb-step > * { margin: 0; }
.bb-step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.bb-step p { color: var(--wp--preset--color--stone); line-height: 1.5; }

/* ---------- Reviews ---------- */
.bb-review {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bb-radius);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.bb-review > * { margin: 0; }
.bb-review-text { font-size: 1.125rem; line-height: 1.55; }
.bb-review-by { font-size: 0.9375rem; color: var(--wp--preset--color--muted); margin-top: auto !important; }

/* ---------- About ---------- */
.bb-about .wp-block-columns { align-items: center; gap: clamp(2rem, 5vw, 3rem); }
.bb-about-photo { margin: 0; }
.bb-about-photo img { border-radius: 16px; width: 100%; aspect-ratio: 10 / 11; object-fit: cover; display: block; }
.bb-pills { gap: 0.6rem !important; }
.bb-pills p {
	margin: 0;
	padding: 0.5rem 0.9rem;
	background: var(--wp--preset--color--honey);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* ---------- Area chips ---------- */
.bb-chips { gap: 0.6rem !important; }
.bb-chips p { margin: 0; }
.bb-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-weight: 500;
}
.bb-chips a:hover { border-color: var(--wp--preset--color--amber); }

/* ---------- FAQ ---------- */
.bb-faq { border-top: 1px solid var(--wp--preset--color--line); }
.bb-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 1.15rem 0;
	margin: 0;
}
.bb-faq summary {
	font-weight: 600;
	font-size: 1.15rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--amber-dark); }
.bb-faq details[open] summary::after { content: "–"; }
.bb-faq details p { color: var(--wp--preset--color--stone); margin: 0.75rem 0 0; }

/* ---------- Price table (service pages) ---------- */
.bb-price-box {
	background: var(--wp--preset--color--mist);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: 1.75rem;
}
.bb-price-box .wp-block-table table { border-collapse: collapse; width: 100%; }
.bb-price-box .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.65rem 0; }
.bb-price-box .wp-block-table td:last-child { text-align: right; font-weight: 700; }
.bb-price-box .wp-block-table { margin: 0; }

/* ---------- CTA band ---------- */
.bb-cta { padding-top: clamp(3rem, 7vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.bb-cta h2 { margin: 0; }
.bb-cta p { margin: 0.4rem 0 0; color: #292524; }
.bb-cta .bb-btn-outline .wp-block-button__link { background: transparent; }

/* ---------- Footer ---------- */
.bb-footer { padding-top: 4rem; padding-bottom: 2rem; color: #d6d3d1; font-size: 0.9375rem; }
.bb-footer h3 { color: var(--wp--preset--color--white); font-size: 1rem; margin: 0 0 0.6rem; }
.bb-footer a { color: #d6d3d1; }
.bb-footer a:hover { color: var(--wp--preset--color--white); }
.bb-footer .bb-footer-phone a { color: var(--wp--preset--color--gold); font-weight: 600; }
.bb-footer-logo { margin: 0; display: inline-block; background: var(--wp--preset--color--white); border-radius: 12px; padding: 8px 12px; }
.bb-footer-logo img { height: 72px; width: auto; display: block; }
.bb-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.bb-footer-links li { margin: 0; }
.bb-footer-bottom { border-top: 1px solid var(--wp--preset--color--stone); padding-top: 1.5rem; margin-top: 2.5rem; font-size: 0.875rem; color: #a8a29e; }
.bb-footer-bottom p { margin: 0; }

/* ---------- Responsive grids ---------- */
@media (max-width: 1023px) {
	.wp-block-group.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
	.wp-block-group.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- Mobile call bar ---------- */
body .wp-block-buttons.bb-mobile-bar { display: none; }
@media (max-width: 781px) {
	body .wp-block-buttons.bb-mobile-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		gap: 0.5rem;
		padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--white);
		box-shadow: 0 -4px 16px rgba(28, 25, 23, 0.12);
	}
	.bb-mobile-bar .wp-block-button { flex: 1; }
	.bb-mobile-bar .wp-block-button__link { width: 100%; padding: 0.8rem 0.5rem; text-align: center; }
	body { padding-bottom: 76px; }
	.bb-hide-mobile { display: none !important; }
	.bb-logo img { height: 60px; }
	.bb-topbar .bb-hide-mobile + p { margin-left: auto; }
}

/* In the editor the fixed bar would cover content. */
.editor-styles-wrapper .wp-block-buttons.bb-mobile-bar { display: flex; position: static; box-shadow: none; padding: 1rem 0; }
