/**
 * Design refresh.
 *
 * A layer on top of the compiled stylesheet rather than a rewrite of it: the SASS
 * source is not the source of truth any more (assets/css is newer than the LESS
 * it came from), and the layout itself is staying put. Everything here is type,
 * spacing, colour and component treatment.
 *
 * Loaded after style.css and the colour scheme, so it wins on equal specificity
 * without needing !important.
 *
 * @package Bonkers
 */

:root {
	/* Type scale. Fluid between a 360px phone and a 1440px desktop. */
	--bk-text:        clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
	--bk-lead:        clamp(1.125rem, 1.05rem + 0.32vw, 1.3125rem);
	--bk-h4:          clamp(1.0625rem, 1rem + 0.28vw, 1.25rem);
	--bk-h3:          clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);
	--bk-h2:          clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
	--bk-display:     clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);

	--bk-lh-tight:    1.14;
	--bk-lh-body:     1.65;

	/* Spacing rhythm. */
	--bk-section-y:   clamp(3.5rem, 2.2rem + 5.4vw, 7rem);
	--bk-gap:         clamp(1.5rem, 1rem + 2vw, 2.75rem);

	/*
	 * The stock body colour was #808080, which is about 3.9:1 on white and fails
	 * WCAG AA for body text. This is 7.1:1 and still reads as grey next to the
	 * near-black headings.
	 */
	--bk-ink:         #24282e;
	--bk-body:        #50575f;
	--bk-muted:       #6b7280;
	--bk-rule:        #e6e8eb;
	--bk-surface:     #f6f7f8;
	--bk-radius:      14px;
	--bk-radius-sm:   10px;
	--bk-shadow:      0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -12px rgba(16, 24, 40, .16);
	--bk-shadow-lift: 0 2px 4px rgba(16, 24, 40, .05), 0 22px 44px -16px rgba(16, 24, 40, .22);
	--bk-ease:        cubic-bezier(.22, .61, .36, 1);
}

/* -------------------------------------------------- type */

body {
	font-size: var(--bk-text);
	line-height: var(--bk-lh-body);
	color: var(--bk-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	line-height: var(--bk-lh-tight);
	letter-spacing: -0.012em;
	color: var(--bk-ink);
}

h2 { font-size: var(--bk-h2); }
h3 { font-size: var(--bk-h3); }
h4 { font-size: var(--bk-h4); }

/* Long-form text gets a readable measure instead of running the full column. */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote {
	max-width: 68ch;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

blockquote {
	border-left: 3px solid currentColor;
	color: var(--bk-ink);
	font-size: var(--bk-lead);
	line-height: 1.45;
}

/* -------------------------------------------------- rhythm */

.bonkers-services-section,
.bonkers-team-section,
.bonkers-clients-section,
.bonkers-video-section,
.bonkers-subscribe-section,
.bonkers-work-section,
.bonkers-testimonials-section,
.bonkers-stats-section {
	padding-top: var(--bk-section-y);
	padding-bottom: var(--bk-section-y);
}

.bonkers-section-title,
.bonkers-video-title {
	font-size: var(--bk-h2);
	margin-bottom: .5em;
}

/* An intro paragraph under a section title, centred and measured. */
.bonkers-section-intro {
	max-width: 62ch;
	margin: 0 auto clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
	text-align: center;
	font-size: var(--bk-lead);
	color: var(--bk-muted);
}

/* -------------------------------------------------- hero */

.bonkers-welcome-section .bonkers-welcome-title,
.bonkers-welcome-title {
	font-size: var(--bk-display);
	letter-spacing: -0.022em;
	text-wrap: balance;
}

.bonkers-welcome-section {
	position: relative;
}

/* Keeps the headline legible whatever the photograph behind it does. */
.bonkers-welcome-section::after {
	content: "";
	position: absolute;
	inset: 0;
	/*
	 * Enough to hold the headline against a busy photograph, not so much that
	 * the photograph stops being visible. Measured rather than guessed: the
	 * headline reads at better than 7:1 over the darkest band of the image.
	 */
	background: linear-gradient(180deg, rgba(10, 12, 16, .16) 0%, rgba(10, 12, 16, .30) 45%, rgba(10, 12, 16, .62) 100%);
	pointer-events: none;
	z-index: 0;
}

.bonkers-welcome-section > * {
	position: relative;
	z-index: 1;
}

/* -------------------------------------------------- buttons */

.bonkers-service-btn,
.bonkers-welcome-link,
.bonkers-image-section-link,
.bonkers-cta-link,
.bonkers-subscribe-submit,
.bonkers-work-more,
.btn-bonkers {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.5em;
	border-radius: 999px;
	font-weight: 700;
	font-size: .9375rem;
	letter-spacing: .02em;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .18s var(--bk-ease), box-shadow .18s var(--bk-ease), background-color .18s var(--bk-ease), color .18s var(--bk-ease);
}

.bonkers-service-btn:hover,
.bonkers-welcome-link:hover,
.bonkers-image-section-link:hover,
.bonkers-cta-link:hover,
.bonkers-subscribe-submit:hover,
.bonkers-work-more:hover {
	transform: translateY(-1px);
	box-shadow: var(--bk-shadow);
}

/* Focus has to stay visible for anyone using a keyboard. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 4px;
}

/* -------------------------------------------------- services */

.bonkers-services-section .bonkers-service {
	padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	border: 1px solid var(--bk-rule);
	border-radius: var(--bk-radius);
	background: #fff;
	text-align: left;
	transition: transform .22s var(--bk-ease), box-shadow .22s var(--bk-ease), border-color .22s var(--bk-ease);
}

.bonkers-services-section .bonkers-service:hover {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: var(--bk-shadow-lift);
}

.bonkers-services-section .bonkers-service-title,
.bonkers-services-section h4 {
	font-size: var(--bk-h4);
	margin: 0 0 .5em;
}

.bonkers-services-section .bonkers-service-icon {
	width: 44px;
	height: 44px;
	margin-bottom: 1rem;
}

/* The row itself needs breathing space between cards. */
.bonkers-services-section .row,
.bonkers-team-section .row,
.bonkers-clients-section .row {
	row-gap: var(--bk-gap);
}

/* -------------------------------------------------- team */

.bonkers-team-member {
	padding: 1.5rem;
	border-radius: var(--bk-radius);
	background: #fff;
	border: 1px solid var(--bk-rule);
	text-align: center;
	transition: transform .22s var(--bk-ease), box-shadow .22s var(--bk-ease);
}

.bonkers-team-member:hover {
	transform: translateY(-3px);
	box-shadow: var(--bk-shadow-lift);
}

.bonkers-team-image {
	width: 108px;
	height: 108px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 1rem;
	display: block;
}

.bonkers-team-name { font-size: var(--bk-h4); margin: 0 0 .15em; }
.bonkers-team-position { color: var(--bk-muted); font-size: .9375rem; }

.bonkers-team-social {
	display: flex;
	justify-content: center;
	gap: .35rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.bonkers-team-social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--bk-surface);
	color: var(--bk-ink);
	transition: background-color .18s var(--bk-ease), color .18s var(--bk-ease);
}

.bonkers-team-social a:hover { background: var(--bk-ink); color: #fff; }

/*
 * style.css colours these marks five classes deep (.bonkers-team-section
 * .bonkers-team-wrap .bonkers-team-member .bonker-team-content
 * .bonkers-team-social li a), so the rules above win the chip background but
 * lose the mark: hover painted #4d4d4d on a near-black chip, 1.65:1 measured.
 * Matching its chain is what takes both.
 */
.bonkers-team-section .bonkers-team-wrap .bonkers-team-member .bonker-team-content .bonkers-team-social li a {
	color: var(--bk-ink);
}

.bonkers-team-section .bonkers-team-wrap .bonkers-team-member .bonker-team-content .bonkers-team-social li a:hover,
.bonkers-team-section .bonkers-team-wrap .bonkers-team-member .bonker-team-content .bonkers-team-social li a:focus,
.bonkers-team-section .bonkers-team-wrap .bonkers-team-member .bonker-team-content .bonkers-team-social li a:focus-visible {
	color: #fff;
}

/* -------------------------------------------------- clients */

/* -------------------------------------------------- video */

.bonkers-video-video {
	max-width: 960px;
	margin-inline: auto;
}

/* A 16:9 box so the embed stops being a fixed-height black rectangle. */
.bonkers-video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--bk-radius);
	overflow: hidden;
	box-shadow: var(--bk-shadow-lift);
	background: #0d1117;
}

.bonkers-video-embed iframe,
.bonkers-video-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bonkers-video-embed video {
	object-fit: cover;
	background: #0d1117;
}

/* -------------------------------------------------- subscribe */

.bonkers-subscribe-content { text-align: center; }

.bonkers-subscribe-form {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	justify-content: center;
	max-width: 520px;
	margin: 1.75rem auto 0;
}

.bonkers-subscribe-email {
	flex: 1 1 260px;
	min-width: 0;
	padding: .85em 1.15em;
	border-radius: 999px;
	border: 1px solid var(--bk-rule);
	background: #fff;
	font-size: 1rem;
	color: var(--bk-ink);
}

.bonkers-subscribe-setup {
	color: var(--bk-muted);
	font-style: italic;
}

/* -------------------------------------------------- contact */

/* -------------------------------------------------- posts */

.bonkers-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--bk-rule);
	border-radius: var(--bk-radius);
	overflow: hidden;
	transition: transform .22s var(--bk-ease), box-shadow .22s var(--bk-ease);
}

.bonkers-post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bk-shadow-lift);
}

.bonkers-post-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bk-surface);
}

.bonkers-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s var(--bk-ease);
}

.bonkers-post-card:hover .bonkers-post-card__media img { transform: scale(1.04); }

.bonkers-post-card__body { padding: 1.25rem 1.375rem 1.5rem; }
.bonkers-post-card__meta { font-size: .8125rem; color: var(--bk-muted); letter-spacing: .04em; text-transform: uppercase; }
.bonkers-post-card__title { font-size: var(--bk-h4); margin: .4em 0 .35em; }
.bonkers-post-card__title a { color: inherit; text-decoration: none; }

/* -------------------------------------------------- images */

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

/* -------------------------------------------------- motion */

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

/* -------------------------------------------------- testimonials (1.1.0) */

.bonkers-testimonial__card {
	margin: 0;
	height: 100%;
	padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
	background: #fff;
	border: 1px solid var(--bk-rule);
	border-radius: var(--bk-radius);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	transition: transform .22s var(--bk-ease), box-shadow .22s var(--bk-ease);
}

.bonkers-testimonial__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bk-shadow-lift);
}

.bonkers-testimonial__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--bk-lead);
	line-height: 1.5;
	color: var(--bk-ink);
}

.bonkers-testimonial__quote p { margin: 0; }
.bonkers-testimonial__quote p + p { margin-top: .6em; }

.bonkers-testimonial__by {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-top: auto;
}

.bonkers-testimonial__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.bonkers-testimonial__meta { display: flex; flex-direction: column; line-height: 1.3; }
.bonkers-testimonial__name { font-weight: 700; color: var(--bk-ink); }
.bonkers-testimonial__role { font-size: .875rem; color: var(--bk-muted); }

/* -------------------------------------------------- numbers (1.1.0) */

.bonkers-stats-section { background: var(--bk-surface); }

.bonkers-stat { text-align: center; }

.bonkers-stat__value {
	display: block;
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--bk-ink);
}

.bonkers-stat__caption {
	display: block;
	margin-top: .35rem;
	font-size: .875rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bk-muted);
}

/* -------------------------------------------------- work (1.1.0) */

.bonkers-work-more-wrap { text-align: center; margin: clamp(2rem, 1.4rem + 1.8vw, 3rem) 0 0; }

/* -------------------------------------------------- overriding the old build */

/*
 * These three rules exist only to beat selectors in the compiled stylesheet that
 * are more specific than the refresh needs to be. Each names the selector it is
 * answering so the reason survives.
 */

/*
 * style.css: `.bonkers-team-section .bonkers-team-wrap .bonkers-team-member
 * .bonkers-team-image { width: 40% }` -- four classes, so a single-class rule
 * loses and the avatar renders as a 95x108 ellipse instead of a circle.
 */
.bonkers-team-section .bonkers-team-wrap .bonkers-team-member .bonkers-team-image,
.bonkers-team-section .bonkers-team-member .bonkers-team-image {
	display: block;
	width: 108px;
	height: 108px;
	aspect-ratio: 1;
	margin: 0 auto 1rem;
	padding: 0;
	border: 0;
	object-fit: cover;
}

/*
 * style.css gives .bonkers-video-video `padding-bottom: 56.2%` -- the old
 * ratio hack, which expects an absolutely positioned child. The embed now sizes
 * itself with aspect-ratio, so the padding was adding a screen-height of empty
 * space underneath the video.
 */
.bonkers-video-section .bonkers-video-video {
	padding-bottom: 0;
	position: static;
}

/*
 * The same section paints a grey band with ::before sized to `bottom: 40%`,
 * which assumed the old height. Full-height is what it was always trying to be.
 */
.bonkers-video-section::before {
	bottom: 0;
}

/*
 * No column rules for the team section: it is a Flickity carousel, not a .row,
 * so its slides are sized by the script. Adding flex-basis here squeezed each
 * card from 360px to 96px.
 */
.bonkers-team-section .bonkers-team-member {
	height: 100%;
}

.bonkers-contact-section.no-map /* -------------------------------------------------- icons (1.1.0) */

/*
 * The section widgets take either an uploaded image or a Font Awesome class.
 * The glyph variant is styled to match the image one so a section can mix both.
 */
.bonkers-service-icon-glyph,
.bonkers-phone-icon-glyph {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1.1rem;
	border-radius: 14px;
	background: var(--bk-surface);
	color: var(--bk-ink);
	font-size: 22px;
	line-height: 1;
	transition: background-color .22s var(--bk-ease), color .22s var(--bk-ease);
}

.bonkers-service:hover .bonkers-service-icon-glyph {
	background: var(--bk-ink);
	color: #fff;
}

.bonkers-phone-section .bonkers-phone-icon-glyph {
	margin-inline: auto;
}

/* -------------------------------------------------- phone mockup (1.1.0) */

/*
 * The shipped frame was an iPhone-6-era body: a 16.5% bezel on every side and
 * a home button, which dated the whole section on its own. phone-frame.svg is
 * a current handset, so the picture fills nearly the entire face. The insets
 * below are measured off that drawing: a 366x776 screen on a 420x840 canvas.
 */
.bonkers-phone-section .bonkers-phone-image img {
	display: block;
	width: 100%;
	height: auto;
	/*
	 * The shadow belongs here rather than inside the drawing: an SVG filter is
	 * clipped by its own viewBox, so a soft one ended in a straight line across
	 * the background. Two passes give a falloff that reaches the page colour
	 * instead of stopping at an edge.
	 */
	filter:
		drop-shadow(0 4px 10px rgba(43, 49, 56, .10))
		drop-shadow(0 18px 34px rgba(43, 49, 56, .12));
}

.bonkers-phone-section .bonkers-phone-image .bonkers-phone-screenshot {
	/*
	 * The frame carries a CSS filter, which makes it a stacking context and so
	 * paints with the positioned boxes, after this one in tree order. Without a
	 * z-index the drawing covers the picture and the screen goes black.
	 */
	z-index: 1;
	top: 3.57%;
	left: 5.95%;
	width: 88.1%;
	height: 92.86%;
	border-radius: 12.4% / 5.9%;
	background-color: #0b0d10;
}

/* The camera cutout belongs over the picture, the way it sits on the device. */
.bonkers-phone-section .bonkers-phone-screenshot::before {
	content: "";
	position: absolute;
	top: 1.9%;
	left: 50%;
	width: 29%;
	aspect-ratio: 125 / 36;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #0b0d10;
}

/* -------------------------------------------------- short rows centre (1.1.0) */

/*
 * A row that does not fill its width used to sit hard left, so three team cards
 * or four client logos looked like a mistake on a wide screen rather than a
 * deliberate group. Centring the row fixes every one of those sections at once
 * and changes nothing when the row is full.
 */
.bonkers-clients-section .row,
.bonkers-testimonials-section .row,
.bonkers-stats-section .row,
.bonkers-work-section .row {
	justify-content: center;
}

/* Flickity centres its own cells; ask it to when there are too few to fill. */
.bonkers-team-section .flickity-slider {
	display: flex;
	justify-content: center;
}

/* -------------------------------------------------- subscribe alignment */

/*
 * The form is a flex row of [input][button] and was being centred as a block
 * while its own contents stayed left, which read as a missing element on the
 * left-hand side. Centring the content and letting the input own the remaining
 * width lines the two up under the heading.
 */
.bonkers-subscribe-section .bonkers-subscribe-content,
.bonkers-subscribe-section .bonkers-subscribe-text,
.bonkers-subscribe-section .bonkers-subscribe-title {
	text-align: center;
}

.bonkers-subscribe-section .bonkers-subscribe-form-wrapper {
	display: flex;
	justify-content: center;
}

.bonkers-subscribe-section .bonkers-subscribe-form {
	width: 100%;
	max-width: 520px;
	margin-inline: auto;
}

/* -------------------------------------------------- subscribe padding */

/*
 * style.css pads this section with a percentage on each side -- 25% at desktop,
 * which is 360px at 1440. The section now wraps its content in a .container, so
 * the two stacked: the content started 380px in and ran 130px past the right
 * edge, and the form inside it looked pushed off-centre with a gap on its left.
 * The container owns the horizontal measure now.
 */
.bonkers-subscribe-section {
	padding-left: 0;
	padding-right: 0;
}

/* -------------------------------------------------- carousels with few items */

/*
 * Clients and team are Flickity carousels, not rows, so `justify-content` on a
 * .row never reached them. When the cells do not fill the track they sit hard
 * left and read as a mistake; centring the slider groups them instead. Flickity
 * still scrolls normally once there are enough to overflow.
 */
.bonkers-clients-section .flickity-slider,
.bonkers-team-section .flickity-slider {
	display: flex;
	justify-content: center;
}

/* Keep the carousels inside the page rather than bleeding past the right edge. */
.bonkers-clients-wrap,
.bonkers-team-wrap {
	max-width: 1230px;
	margin-inline: auto;
}

/* -------------------------------------------------- contact, no map (1.1.0) */

/*
 * The two-column layout used when there is no map to float a panel over. It
 * shares no classes with the dark map panel, so none of the compiled stylesheet's
 * four-deep field rules reach it.
 */
.bonkers-contact-section.no-map {
	padding: var(--bk-section-y) 0;
	background: var(--bk-surface);
}

.bonkers-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 1.2rem + 3vw, 4.5rem);
	align-items: start;
}

@media (min-width: 992px) {
	.bonkers-contact-layout.has-form {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

.bonkers-contact-layout.no-form {
	max-width: 640px;
	margin-inline: auto;
}

.bonkers-contact-heading {
	margin: 0 0 .45em;
	font-size: var(--bk-h2);
	text-align: left;
}

.bonkers-contact-intro {
	margin: 0 0 2rem;
	max-width: 46ch;
	font-size: var(--bk-lead);
	line-height: 1.55;
	color: var(--bk-body);
}

.bonkers-contact-details {
	display: grid;
	gap: 1.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bonkers-contact-details li {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.bonkers-contact-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--bk-rule);
	color: var(--bk-ink);
	font-size: 18px;
}

.bonkers-contact-label {
	display: block;
	margin-bottom: .15rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bk-muted);
}

.bonkers-contact-value,
.bonkers-contact-details address {
	display: block;
	margin: 0;
	font-style: normal;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--bk-ink);
	text-decoration: none;
}

a.bonkers-contact-value:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bonkers-contact-map-link {
	display: inline-block;
	margin-top: .3rem;
	font-size: .9375rem;
	font-weight: 600;
}

/* The form sits in a card. */
.bonkers-contact-card {
	padding: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
	background: #fff;
	border: 1px solid var(--bk-rule);
	border-radius: 18px;
	box-shadow: var(--bk-shadow);
}

.bonkers-contact-card form p {
	margin: 0 0 1.15rem;
}

/* Contact Form 7 puts a <br> inside each label; the field goes on its own line anyway. */
.bonkers-contact-card label br {
	display: none;
}

.bonkers-contact-card label {
	display: block;
	font-size: .875rem;
	font-weight: 700;
	color: var(--bk-ink);
}

.bonkers-contact-card .wpcf7-form-control-wrap {
	display: block;
	margin-top: .45rem;
}

/* A helper for putting two fields side by side in a form's own markup. */
.bonkers-form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	column-gap: 1rem;
}

.bonkers-contact-card input[type="text"],
.bonkers-contact-card input[type="email"],
.bonkers-contact-card input[type="tel"],
.bonkers-contact-card input[type="url"],
.bonkers-contact-card input[type="number"],
.bonkers-contact-card select,
.bonkers-contact-card textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: .85em 1em;
	border: 1px solid #d3d7dd;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: var(--bk-ink);
	box-shadow: none;
	transition: border-color .15s var(--bk-ease), box-shadow .15s var(--bk-ease);
}

.bonkers-contact-card textarea {
	min-height: 150px;
	resize: vertical;
}

.bonkers-contact-card input::placeholder,
.bonkers-contact-card textarea::placeholder {
	color: #9aa1a9;
}

.bonkers-contact-card input:focus,
.bonkers-contact-card select:focus,
.bonkers-contact-card textarea:focus {
	outline: none;
	border-color: var(--bk-ink);
	box-shadow: 0 0 0 3px rgba(36, 40, 46, .12);
}

.bonkers-contact-card input[type="submit"],
.bonkers-contact-card button[type="submit"] {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	/*
	 * style.css gives every input a flat height: 42px. With the padding below
	 * and border-box sizing that leaves a 13.5px content box holding a 24.75px
	 * line, so the label cannot sit centred in it. The padding sizes the button.
	 */
	height: auto;
	min-height: 0;
	margin: .35rem 0 0;
	padding: .95em 2em;
	border: 0;
	border-radius: 999px;
	background: var(--bk-ink);
	color: #fff;
	font: inherit;
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .18s var(--bk-ease), transform .18s var(--bk-ease), box-shadow .18s var(--bk-ease);
}

.bonkers-contact-card input[type="submit"]:hover,
.bonkers-contact-card button[type="submit"]:hover {
	background: #000;
	transform: translateY(-1px);
	box-shadow: var(--bk-shadow);
}

.bonkers-contact-card input[type="submit"]:focus-visible,
.bonkers-contact-card button[type="submit"]:focus-visible {
	outline: 2px solid var(--bk-ink);
	outline-offset: 3px;
}

.bonkers-contact-card .wpcf7-not-valid-tip {
	margin-top: .35rem;
	font-size: .8125rem;
}

.bonkers-contact-card .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: .8rem 1rem;
	border-radius: 10px;
	font-size: .9375rem;
}

.bonkers-contact-card .wpcf7-spinner {
	margin: 0 0 0 .75rem;
	vertical-align: middle;
}

/* -------------------------------------------------- client logos (1.1.0) */

/*
 * style.css sizes each logo cell at 17% with 3.5% padding either side and forces
 * the image to width:100% of what is left -- about 123px at 1440, and less than
 * that of actual ink once a logo's own whitespace is counted. Logos are now sized
 * by HEIGHT, which is what makes a row of differently shaped marks look even:
 * a wide wordmark and a square monogram get the same visual weight.
 *
 * The cells stay a Flickity carousel. Six to a row on a desktop fills the track
 * exactly, so it sits still; fewer columns on smaller screens lets it scroll.
 */
.bonkers-clients-section .bonkers-clients-wrap .widget {
	width: 50%;
	padding: 0 clamp(.75rem, 1.5vw, 1.5rem);
}

@media (min-width: 768px) {
	.bonkers-clients-section .bonkers-clients-wrap .widget {
		width: 33.3333%;
	}
}

@media (min-width: 1100px) {
	.bonkers-clients-section .bonkers-clients-wrap .widget {
		width: 16.6666%;
	}
}

.bonkers-clients-section .bonkers-clients-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 96px;
}

.bonkers-clients-section .bonkers-clients-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.bonkers-clients-section .bonkers-clients-wrap .widget img,
.bonkers-clients-section .bonkers-clients-wrap .widget a img {
	width: auto;
	max-width: 100%;
	height: clamp(44px, 1.6vw + 32px, 60px);
	object-fit: contain;
	filter: grayscale(1);
	opacity: .72;
	transition: filter .22s var(--bk-ease), opacity .22s var(--bk-ease);
}

.bonkers-clients-section .bonkers-clients-wrap .widget a:hover img,
.bonkers-clients-section .bonkers-clients-wrap .widget a:focus-visible img {
	filter: grayscale(0);
	opacity: 1;
}

/* -------------------------------------------------- section titles for the new sections (1.1.0) */

/*
 * Work and Testimonials are new, and their titles came out as plain left-aligned
 * headings beside the original sections' centred, uppercase titles with a rule
 * either side. These declarations are copied from style.css's own rules for the
 * team section title (including its media queries), so the new sections match
 * the house style rather than an approximation of it.
 */
.bonkers-work-section .bonkers-section-title, .bonkers-testimonials-section .bonkers-section-title {
	text-transform: uppercase;
	margin-bottom: 50px;
	position: relative;
	display: inline-block;
}

.bonkers-work-section .bonkers-section-title::before, .bonkers-testimonials-section .bonkers-section-title::before {
	content: '';
	position: absolute;
	top: 50%;
	left: -70px;
	-webkit-transform: translate(0, -50%);
	-ms-transform: translate(0, -50%);
	-o-transform: translate(0, -50%);
	transform: translate(0, -50%);
	height: 1px;
	width: 50px;
	border-bottom: 1px solid #999999;
}

.bonkers-work-section .bonkers-section-title::after, .bonkers-testimonials-section .bonkers-section-title::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -70px;
	-webkit-transform: translate(0, -50%);
	-ms-transform: translate(0, -50%);
	-o-transform: translate(0, -50%);
	transform: translate(0, -50%);
	height: 1px;
	width: 50px;
	border-bottom: 1px solid #999999;
}

/* inline-block titles centre only inside a centred parent; table does it alone. */
.bonkers-work-section .container > .bonkers-section-title,
.bonkers-testimonials-section .container > .bonkers-section-title {
	display: table;
	margin-left: auto;
	margin-right: auto;
}

/* -------------------------------------------------- title side rules on small screens */

/*
 * The house section title draws a 50px rule 70px outside each side of the text.
 * That only fits while the title is short relative to the screen: at 390px,
 * "Restaurants we shoot for" fills 13-377px and its right-hand rule ends at 447,
 * which made the whole page scroll sideways. Below tablet width the rules go;
 * above it the title is capped so the rules always stay inside the container.
 */
@media (max-width: 767px) {
	.bonkers-team-section .bonkers-section-title::before,
	.bonkers-team-section .bonkers-section-title::after,
	.bonkers-clients-section .bonkers-section-title::before,
	.bonkers-clients-section .bonkers-section-title::after,
	.bonkers-work-section .bonkers-section-title::before,
	.bonkers-work-section .bonkers-section-title::after,
	.bonkers-testimonials-section .bonkers-section-title::before,
	.bonkers-testimonials-section .bonkers-section-title::after,
	.bonkers-contact-section .bonkers-contact-content .bonkers-contact-title::before,
	.bonkers-contact-section .bonkers-contact-content .bonkers-contact-title::after {
		display: none;
	}
}

.bonkers-team-section .bonkers-section-title,
.bonkers-clients-section .bonkers-section-title,
.bonkers-work-section .bonkers-section-title,
.bonkers-testimonials-section .bonkers-section-title {
	max-width: calc(100% - 160px);
}

@media (max-width: 767px) {
	.bonkers-team-section .bonkers-section-title,
	.bonkers-clients-section .bonkers-section-title,
	.bonkers-work-section .bonkers-section-title,
	.bonkers-testimonials-section .bonkers-section-title {
		max-width: 100%;
	}
}

/* -------------------------------------------------- footer widgets (1.1.0) */

/*
 * The footer band is dark but the compiled stylesheet only sizes its columns --
 * it never styles the widgets inside, because the demo never had any. These are
 * the defaults a filled footer needs: readable text on #222, headings that read
 * as headings, and lists that do not look like body copy.
 */
#footer.site-footer {
	padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
	color: rgba(255, 255, 255, .72);
}

#footer .widget {
	margin-bottom: 2rem;
}

#footer .widget-title,
#footer .widget h4 {
	margin: 0 0 1.1rem;
	color: #fff;
	font-size: 1rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

#footer .widget p {
	padding-top: 0;
	margin: 0 0 1rem;
	line-height: 1.65;
}

#footer .widget p:last-child {
	margin-bottom: 0;
}

#footer .widget a {
	color: rgba(255, 255, 255, .78);
	font-size: inherit;
	text-decoration: none;
	transition: color .18s var(--bk-ease);
}

#footer .widget a:hover,
#footer .widget a:focus-visible {
	color: #fff;
	text-decoration: none;
}

#footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The theme lays every footer list item out as a 46%-wide inline-block, so a
 * single menu breaks into two ragged columns. Footer widgets read as lists. */
#footer .widget ul li,
#footer .widget ol li {
	display: block;
	width: auto;
	margin-right: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#footer .widget ul li:last-child,
#footer .widget ol li:last-child {
	border-bottom: 0;
}

#footer .widget ul li > a {
	padding: .5rem 0;
}

/* Recent posts: the date is a caption under the title, not a second list row. */
#footer .widget_recent_entries ul li > a {
	padding-bottom: .1rem;
}

#footer .widget_recent_entries .post-date {
	display: block;
	padding-bottom: .5rem;
	font-size: .8125rem;
	color: rgba(255, 255, 255, .55);
}

/* The theme's own contact widget, used here for the studio details. */
#footer .widget_contact_info li,
#footer .widget .bonkers-contact-info li,
#footer .widget .location,
#footer .widget .phone,
#footer .widget .email,
#footer .widget .website {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	margin-bottom: 0;
	padding: .45rem 0;
	border-bottom: 0;
}

#footer .widget .fa {
	width: 1.15em;
	margin-top: .2em;
	margin-right: 0;
	color: rgba(255, 255, 255, .5);
	flex: 0 0 auto;
}

#footer .widget_contact_info li a {
	display: inline;
}

#footer .widget .search-field,
#footer .widget input[type="search"],
#footer .widget input[type="text"],
#footer .widget input[type="email"] {
	width: 100%;
	padding: .7em .9em;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font: inherit;
}

#footer .widget input::placeholder {
	color: rgba(255, 255, 255, .45);
}

/* The sub-footer ships #666 on a near-black band, which measures 3.66:1 and
 * fails AA for body text. These are the same hues, taken up to legible. */
.sub-footer {
	color: rgba(255, 255, 255, .62);
}

.sub-footer a {
	color: rgba(255, 255, 255, .78);
}

.sub-footer a:hover,
.sub-footer a:focus-visible {
	color: #fff;
}

/* Sub-footer: the copyright and menu carry left divider rules that only make
 * sense while they sit side by side. Stacked and centred they dangle. */
@media (max-width: 767px) {
	.sub-footer .theme-copyright,
	.sub-footer #footer-menu {
		display: block;
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
		text-align: center;
	}

	.sub-footer #footer-menu ul {
		text-align: center;
	}

	.sub-footer #footer-menu ul li a {
		padding: 4px 10px;
	}
}
