/*
Theme Name: HOCR
Theme URI: 
Author: Knorr
Author URI: 
Description: Home Creative
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hocr
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
/*
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}*/

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
*/
.more-link {
	display: block;
}





/*
 * Contact form overrides to align with the ContactUs reference layout.
 */
:root {
	--contact-form-field-bg: #f4f4f4;
	--contact-form-field-border: #111111;
	--contact-form-field-text: #1a1a1a;
	--contact-form-field-placeholder: #5b5b5b;
	--contact-form-button-bg: #000000;
	--contact-form-button-text: #ffffff;
}

.contact-form-wrapper {
	margin: 0 auto;
	max-width: 720px;
	padding: 20px 12px 40px;
}

.contact-form-wrapper h2 {
	font-size: 38px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 28px;
}

.contact-form-wrapper .form-row {
	display: flex !important;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 22px;
	width: 100%;
}

.contact-form-wrapper .form-field {
	display: block;
	flex: 1 1 calc(50% - 9px);
	min-width: 0;
	width: 100%;
}

.contact-form-wrapper .form-row.single .form-field {
	/*flex-basis: 100%;*/
}

.contact-form-wrapper .form-row > .form-field > .wpcf7-form-control-wrap,
.contact-form-wrapper .form-row > .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}


.wpcf7-form-control-wrap {
  display: block;
  position: relative;
  margin-right: 10px;
}


.contact-form-wrapper .checkbox-field .wpcf7-list-item {
	display: block !important;
	margin: 0 0 12px;
}

.contact-form-wrapper .checkbox-field .wpcf7-list-item:last-child {
	margin-bottom: 0;
}

.contact-form-wrapper .checkbox-field .wpcf7-list-item input {
	margin-top: 4px;
	margin-right: 8px;
}

.contact-form-wrapper .form-note {
  font-family: var(--wp--preset--font-family--libre-caslon-text);
	color: black;
	font-size: 20px;
  font-weight: 400;
	font-style: normal;
	margin: -4px 0 18px;
}

.contact-form-wrapper .checkbox-row {
	margin-bottom: 24px;
}

.contact-form-wrapper .submit-row {
	margin-top: 12px;
}

.wpcf7 input[type=color],
.wpcf7 input[type=date],
.wpcf7 input[type=datetime-local],
.wpcf7 input[type=datetime],
.wpcf7 input[type=email],
.wpcf7 input[type=month],
.wpcf7 input[type=number],
.wpcf7 input[type=search],
.wpcf7 input[type=tel],
.wpcf7 input[type=text],
.wpcf7 input[type=time],
.wpcf7 input[type=url],
.wpcf7 input[type=week],
.wpcf7 select,
.wpcf7 textarea {
	background-color: var(--contact-form-field-bg);
	border: 1px solid var(--contact-form-field-border);
	border-radius: 6px;
	color: var(--contact-form-field-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	padding: 12px 18px;
	box-shadow: none;
	transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  max-width: 270px;
}

.wpcf7 textarea {
  max-width: none;
}

.wpcf7 input[type=color]::placeholder,
.wpcf7 input[type=date]::placeholder,
.wpcf7 input[type=datetime-local]::placeholder,
.wpcf7 input[type=datetime]::placeholder,
.wpcf7 input[type=email]::placeholder,
.wpcf7 input[type=month]::placeholder,
.wpcf7 input[type=number]::placeholder,
.wpcf7 input[type=search]::placeholder,
.wpcf7 input[type=tel]::placeholder,
.wpcf7 input[type=text]::placeholder,
.wpcf7 input[type=time]::placeholder,
.wpcf7 input[type=url]::placeholder,
.wpcf7 input[type=week]::placeholder,
.wpcf7 textarea::placeholder {
	color: var(--contact-form-field-placeholder);
	font-style: italic;
	opacity: 1;
}

.wpcf7 textarea {
	min-height: 190px;
}

.wpcf7 input[type=color]:hover,
.wpcf7 input[type=date]:hover,
.wpcf7 input[type=datetime-local]:hover,
.wpcf7 input[type=datetime]:hover,
.wpcf7 input[type=email]:hover,
.wpcf7 input[type=month]:hover,
.wpcf7 input[type=number]:hover,
.wpcf7 input[type=search]:hover,
.wpcf7 input[type=tel]:hover,
.wpcf7 input[type=text]:hover,
.wpcf7 input[type=time]:hover,
.wpcf7 input[type=url]:hover,
.wpcf7 input[type=week]:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover {
	border-color: var(--contact-form-field-border);
	background-color: var(--contact-form-field-bg);
}

.wpcf7 input[type=color]:focus,
.wpcf7 input[type=date]:focus,
.wpcf7 input[type=datetime-local]:focus,
.wpcf7 input[type=datetime]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 input[type=month]:focus,
.wpcf7 input[type=number]:focus,
.wpcf7 input[type=search]:focus,
.wpcf7 input[type=tel]:focus,
.wpcf7 input[type=text]:focus,
.wpcf7 input[type=time]:focus,
.wpcf7 input[type=url]:focus,
.wpcf7 input[type=week]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: #000000;
	outline: none;
	box-shadow: none !important;
}

.wpcf7 input[type=submit] {
	background-color: var(--wp--preset--color--accent-8);
	border: 1px solid var(--wp--preset--color--accent-8);
	border-radius: 6px;
	color: var(--contact-form-button-text);
	cursor: pointer;
	display: inline-block;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 16px 42px;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.submit-row .wpcf7-submit {
	width: auto;
}

.wpcf7 input[type=submit]:hover,
.wpcf7 input[type=submit]:focus {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--contact-form-button-text);
	outline: none;
	box-shadow: none;
}

.wpcf7 input[type=checkbox],
.wpcf7 input[type=radio] {
	-webkit-appearance: auto;
	appearance: auto;
	background-color: #ffffff;
	border: 1px solid var(--contact-form-field-border);
	border-radius: 6px;
	box-shadow: none;
	display: inline-block;
	height: auto;
	margin: 0 10px 0 0;
	padding: 0;
	width: auto;
}

.wpcf7 input[type=checkbox]::before,
.wpcf7 input[type=radio]::before {
	content: none !important;
}

.wpcf7-checkbox label,
.wpcf7-acceptance label,
.wpcf7-radio label {
	align-items: flex-start;
	display: flex;
	gap: 8px;
}

@media (max-width: 640px) {
	.contact-form-wrapper {
		padding: 16px 0 32px;
	}

	.contact-form-wrapper .form-row {
		flex-direction: column;
	}

	.contact-form-wrapper h2 {
		font-size: 30px;
	}

	.wpcf7 input[type=submit] {
		width: 100%;
		text-align: center;
	}
}
