/*
 * Breezy Note Buyers: supplemental styles.
 * Design tokens live in theme.json; this file covers what theme.json can't.
 */

/* ---------- Accessibility ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
	border-radius: 2px;
}

:where(.has-navy-background-color, .has-blue-background-color) :where(a, button, summary):focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Comfortable tap targets for buttons and menu links. */
.wp-element-button,
.wp-block-navigation-item__content,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-height: var(--wp--custom--tap-target);
}

.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.wp-element-button:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ---------- Header ---------- */

.bnb-topbar {
	font-size: var(--wp--preset--font-size--small);
}

.bnb-topbar p {
	margin: 0;
	line-height: 1.45;
}

.bnb-topbar .wp-block-group {
	gap: 0.15rem 1.5rem;
}

/* Phones: the phone number centered, on one line. */
@media (max-width: 599px) {
	.bnb-topbar .wp-block-group {
		justify-content: center;
	}

	.bnb-topbar p {
		white-space: nowrap;
	}
}

.bnb-topbar a {
	color: inherit;
	font-weight: 600;
}

.bnb-header {
	border-bottom: 1px solid var(--wp--preset--color--mist);
}

.bnb-logo {
	margin: 0;
	flex-shrink: 0;
}

.bnb-logo img {
	display: block;
	width: clamp(150px, 18vw, 210px) !important;
	height: auto;
}

.bnb-header .wp-block-navigation__container {
	gap: 0.25rem 1.5rem;
	align-items: center;
}

.bnb-header .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
}

/* "Get My Cash Offer" menu item rendered as a button. */
.bnb-header .bnb-nav-cta > .wp-block-navigation-item__content {
	padding: 0.6rem 1.15rem;
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white) !important;
	text-decoration: none;
}

.bnb-header .bnb-nav-cta > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--navy);
	text-decoration: underline;
}

/* Mobile overlay menu. */
.bnb-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ivory) !important;
	padding: var(--wp--preset--spacing--50) clamp(1rem, 4vw, 2rem);
}

.bnb-header .wp-block-navigation__responsive-container.is-menu-open,
.bnb-header .is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--navy) !important;
}

.bnb-header .is-menu-open .wp-block-navigation__responsive-container-content,
.bnb-header .is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
}

.bnb-header .is-menu-open .wp-block-navigation__container {
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--large);
}

.bnb-header .is-menu-open .bnb-nav-cta > .wp-block-navigation-item__content {
	padding: 0.7rem 1.4rem !important;
	margin-top: 0.5rem;
	color: var(--wp--preset--color--white) !important;
}

.bnb-header .wp-block-navigation__responsive-container-open svg,
.bnb-header .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

/* ---------- Content components ---------- */

.bnb-eyebrow {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	letter-spacing: 0.01em;
}

.bnb-card {
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--wp--custom--radius);
	padding: var(--wp--preset--spacing--40);
	box-shadow: var(--wp--preset--shadow--soft);
}

.bnb-card > :first-child {
	margin-top: 0;
}

/* Checkmark list used for short trust points. */
.bnb-checks {
	list-style: none;
	padding-left: 0 !important;
}

.bnb-checks li {
	position: relative;
	padding-left: 1.75rem;
}

.bnb-checks li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.45em;
	width: 0.45rem;
	height: 0.8rem;
	border: solid var(--wp--preset--color--blue);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.has-navy-background-color .bnb-checks li::before {
	border-color: var(--wp--preset--color--gold);
}

.bnb-checks--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
}

.bnb-checks--inline li {
	margin: 0;
}

/*
 * Process timeline: numbered steps joined by a line, with a typical-timing label
 * (the <em> in each step). Vertical on phones and tablets; one horizontal row of
 * six on wide screens. Built from real text, so it's readable, responsive and
 * accessible (an ordered list), unlike an image graphic.
 */
.bnb-steps {
	list-style: none;
	counter-reset: bnb-step;
	padding-left: 0 !important;
	display: grid;
	gap: 0;
	grid-template-columns: 1fr;
}

.bnb-steps > li {
	counter-increment: bnb-step;
	position: relative;
	margin: 0;
	padding: 0 0 var(--wp--preset--spacing--40) 4rem;
}

/* Number circle. */
.bnb-steps > li::before {
	content: counter(bnb-step);
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1;
	box-shadow: 0 0 0 5px var(--wp--preset--color--ivory);
}

/* Connecting line down to the next step. */
.bnb-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.375rem - 1px);
	top: 2.75rem;
	bottom: 0;
	width: 2px;
	background: var(--wp--preset--color--sky);
}

.bnb-steps > li strong {
	display: block;
	padding-top: 0.35rem;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
}

/* Typical-timing label. */
.bnb-steps > li em {
	display: table;
	margin: 0.4rem 0 0.5rem;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	color: var(--wp--preset--color--blue);
	font-style: normal;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5;
}

@media (min-width: 1100px) {
	.bnb-steps {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--30);
	}

	.bnb-steps > li {
		padding: 4rem 0 0;
		text-align: center;
	}

	.bnb-steps > li::before {
		left: 50%;
		transform: translateX(-50%);
	}

	/* Horizontal line to the next circle. */
	.bnb-steps > li:not(:last-child)::after {
		left: calc(50% + 1.375rem);
		right: calc(-50% - var(--wp--preset--spacing--30) + 1.375rem);
		top: calc(1.375rem - 1px);
		bottom: auto;
		width: auto;
		height: 2px;
	}

	/* Same title height in every column, so the timing labels line up. */
	.bnb-steps > li strong {
		padding-top: 0;
		font-size: 1.15rem;
		min-height: 2.6em;
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}

	.bnb-steps > li em {
		white-space: nowrap;
	}

	.bnb-steps > li em {
		margin-left: auto;
		margin-right: auto;
		font-size: 0.95rem;
	}
}

/* FAQ accordions. */
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	min-height: var(--wp--custom--tap-target);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::before {
	content: "+";
	flex: 0 0 1.75rem;
	height: 1.75rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 700;
}

.wp-block-details[open] summary::before {
	content: "\2212";
}

.wp-block-details > :not(summary) {
	padding-left: 2.5rem;
}

/* Full-width homepage sections sit flush with each other. */
.wp-block-post-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

/* Hero mark: about 18% smaller so the headline leads; hidden on small screens to keep CTAs high. */
.bnb-hero__mark img {
	display: block;
	max-width: 82%;
	height: auto;
	margin-inline: auto;
}

@media (max-width: 781px) {
	.bnb-hero__mark {
		display: none !important;
	}

	/* Single-column hero: ~7% smaller H1 and tighter spacing so the CTA arrives sooner. */
	.bnb-hero {
		padding-top: var(--wp--preset--spacing--40) !important;
	}

	.bnb-hero h1 {
		font-size: calc(var(--wp--preset--font-size--display) * 0.93);
		margin-top: 0.25rem !important;
	}

	.bnb-hero h1 + p {
		margin-top: 0.75rem;
	}

	.bnb-hero .bnb-eyebrow {
		margin-bottom: 0;
	}
}

/* Why Sell: light benefit items with a check icon instead of cards. */
.bnb-benefit {
	position: relative;
	padding-left: 3.25rem;
}

.bnb-benefit::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--blue);
}

.bnb-benefit::after {
	content: "";
	position: absolute;
	left: 0.82rem;
	top: 0.55rem;
	width: 0.5rem;
	height: 0.95rem;
	border: solid var(--wp--preset--color--blue);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.bnb-benefit > * {
	margin-block: 0;
}

.bnb-benefit > * + * {
	margin-top: 0.35rem;
}

/* Why Breezy: editorial ruled list. */
.bnb-rule-list > .wp-block-group {
	border-top: 1px solid var(--wp--preset--color--mist);
	padding-block: var(--wp--preset--spacing--30);
}

.bnb-rule-list > .wp-block-group > * {
	margin-block: 0;
}

.bnb-rule-list > .wp-block-group > * + * {
	margin-top: 0.35rem;
}

/* Personal approach: subtle gold rule beside the copy. */
.bnb-personal {
	border-left: 3px solid var(--wp--preset--color--gold);
	padding-left: var(--wp--preset--spacing--40);
}

.bnb-more-link a {
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tap-target);
}

.bnb-more-link a::after {
	content: "\2192";
	margin-left: 0.4rem;
	text-decoration: none;
	display: inline-block;
}

/* Inline (mid-page) CTA. */
.bnb-inline-cta p {
	margin: 0;
}

.bnb-inline-cta a:not(.wp-element-button) {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tap-target);
	font-weight: 600;
}

/* ---------- Footer (light) ---------- */

.bnb-footer {
	border-top: 1px solid var(--wp--preset--color--mist);
}

.bnb-footer h2 {
	color: var(--wp--preset--color--navy);
}

.bnb-footer a {
	color: var(--wp--preset--color--navy);
}

.bnb-footer a:hover {
	color: var(--wp--preset--color--blue);
}

.bnb-footer .bnb-logo img {
	width: clamp(160px, 18vw, 200px) !important;
}

.bnb-footer-links {
	list-style: none;
	padding-left: 0 !important;
}

.bnb-footer-links li + li {
	margin-top: 0.25rem;
}

.bnb-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--tap-target);
}

.bnb-footer-legal {
	border-top: 1px solid var(--wp--preset--color--mist);
	padding-top: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--40);
}

.bnb-footer-legal p {
	margin: 0;
}

/* ---------- Testimonials ---------- */

.bnb-testimonial-quote,
.bnb-testimonial-card {
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	border: 0;
}

.bnb-testimonial-quote p,
.bnb-testimonial-card p {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.5;
	color: var(--wp--preset--color--navy);
}

.bnb-testimonial-quote cite,
.bnb-testimonial-card cite {
	display: block;
	margin-top: 0.5rem;
	font-style: normal;
	font-weight: 600;
	font-size: 1rem;
	color: var(--wp--preset--color--slate);
}

.bnb-testimonial-card {
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-left: 4px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius);
}

.bnb-video-toggle {
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--white);
	padding: 0.5rem var(--wp--preset--spacing--40);
}

.bnb-video-heading {
	margin-top: var(--wp--preset--spacing--50) !important;
	font-size: var(--wp--preset--font-size--x-large);
}

.bnb-video-frame {
	margin-top: var(--wp--preset--spacing--30);
	padding-left: 0 !important;
}

.bnb-video-frame iframe {
	display: block;
	width: 100%;
	height: 80vh;
	min-height: 560px;
	border: 0;
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--mist);
}

/* Quote shown just above the offer form: same width as the form. */
.bnb-form-quote {
	max-width: 46rem;
	margin: 0 auto var(--wp--preset--spacing--40) !important;
	padding-left: var(--wp--preset--spacing--30);
	border-left: 3px solid var(--wp--preset--color--gold);
}

.bnb-form-quote cite a {
	font-weight: 600;
}

/* ---------- FAQ page groups ---------- */

.bnb-faq-group {
	margin-top: var(--wp--preset--spacing--50) !important;
	margin-bottom: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--x-large);
}

.bnb-faq-group:first-child {
	margin-top: 0 !important;
}

/* ---------- Notes we purchase ---------- */

.bnb-note-types {
	list-style: none;
	padding-left: 0 !important;
}

.bnb-note-types li {
	margin: 0;
	padding: 0.6rem 0;
	border-top: 1px solid var(--wp--preset--color--mist);
}

.bnb-note-types li:first-child {
	border-top: 0;
	padding-top: 0;
}

.bnb-note-types strong {
	display: block;
	color: var(--wp--preset--color--navy);
}

.bnb-notes h3 {
	margin-bottom: 0.5rem;
}

/* ---------- Contact ---------- */

.bnb-contact-list {
	list-style: none;
	padding-left: 0 !important;
}

.bnb-contact-list li + li {
	margin-top: 0.5rem;
}

.bnb-contact a {
	white-space: nowrap;
}

/* Contact details: comfortable width, aligned to the page heading (not centered). */
.is-layout-constrained > .bnb-contact {
	max-width: 52rem;
	margin-left: max(0px, calc((100% - 74rem) / 2)) !important;
}

/* About: left-aligned with the heading, at a comfortable reading width. */
.is-layout-constrained.bnb-about > * {
	max-width: 46rem;
	margin-left: max(0px, calc((100% - 74rem) / 2)) !important;
}
.bnb-about > h2:not(:first-child) {
	margin-top: var(--wp--preset--spacing--50);
}
