/*
Theme Name: Kimberley Bosso
Author: Ehsan
Description: Custom theme ported from the original kbosso.com CMS design. Front-end CSS lives in assets/css (the original production bundles, unchanged apart from image paths).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: kbosso
*/

/*
 * Our own styles. The original site's CSS lives unchanged in assets/css
 * (see inc/assets.php); anything added for WordPress goes here.
 */

/* Admin bar: push the fixed header below it so the full site is visible when logged in */
.admin-bar #fixedContainer {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar #fixedContainer {
		top: 46px;
	}
}

/* WordPress lets the admin bar scroll away on phones; keep it fixed so the header doesn't slide under it */
@media screen and (max-width: 600px) {
	.admin-bar #wpadminbar {
		position: fixed;
	}
}

/*
 * Sidebar contact form (Fluent Forms), styled like the old CMS side form.
 * The original CSS targets "#side-contact-form form div" and input[type=text];
 * Fluent nests two divs per field and uses tel/email inputs, so remap here.
 */
#side-contact-form .fluentform form div {
	background: none;
	margin: 0;
	padding: 0;
}

#side-contact-form .fluentform .ff-el-group {
	display: block;
	background: #fafafa;
	margin: 0 0 .8em 0;
	padding: .5em;
}

#side-contact-form .fluentform .ff-el-form-control,
#side-contact-form .fluentform .ff-el-form-control:focus {
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	min-height: 0;
	font-family: Lato, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	vertical-align: middle;
	background: #fafafa;
}

/* old global "form textarea" rule */
#side-contact-form .fluentform textarea.ff-el-form-control {
	min-height: 12em;
	margin-bottom: 1rem;
}

#side-contact-form .fluentform .ff-el-form-control::placeholder {
	color: #757575;
	opacity: 1;
}

/* submit: same as the old #sidebutton */
#side-contact-form .fluentform .ff_submit_btn_wrapper {
	background: none;
	padding: 0;
}

#side-contact-form .fluentform .ff-btn-submit {
	font-family: Lato, sans-serif;
	font-size: 1.15em; /* old global "form input[type=submit]" rule */
	text-transform: uppercase;
	padding: .6em 1em;
	cursor: pointer;
	background: #333;
	border: 2px solid #333;
	border-radius: 0;
	text-align: center;
	color: #fff;
	margin-top: .8em;
	letter-spacing: 1px;
	font-weight: 600;
	opacity: 1;
}

#side-contact-form .fluentform .ff-btn-submit:hover {
	background: #121212;
	border: 2px solid #121212;
	color: #fff;
}

#side-contact-form .fluentform .error {
	font-size: 11px;
	margin-top: .3em;
}

/*
 * Footer social icons added under Theme Settings > Social media > Other networks
 * with an uploaded image: same grey circle as the Font Awesome icons (.fa rule
 * in the original CSS), image tinted grey and white on hover like the glyphs.
 */
.bottomSmIcon .kb-social-img {
	display: inline-block;
	box-sizing: content-box;
	width: 19px;
	height: 20px;
	padding: .55em;
	font-size: 20px;
	background: #f1f1f1;
	border-radius: 22px;
	transition: all .3s;
}

.bottomSmIcon .kb-social-img img,
.bottomSmIcon .kb-social-img img:hover {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0;
	border: 0;
	background: none;
	filter: brightness(0) opacity(.36); /* ≈ #a3a3a3 on the grey circle */
	transition: filter .3s;
}

.bottomSmIcon a:hover .kb-social-img {
	background: #c59b43;
}

.bottomSmIcon a:hover .kb-social-img img {
	filter: brightness(0) invert(1); /* white */
}
