/*
Theme Name: Damalin
Author: Damalin
Description: Custom classic WordPress theme.
Version: 1.0
Tested up to: 6.8.2
Requires at least: 5.2
Requires PHP: 7.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: damalin
*/

:root {
	--primary-color: #333;
	--active-color: #4b6382;
	--accent-color: #b16128;
}

html {
    height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
	min-height: 100%;
	background-color: #fff;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 16px;
	font-weight: normal;
	font-style: normal;
	font-optical-sizing: auto;
	color: var(--primary-color);
	overflow-y: scroll;
	overflow-wrap: break-word;
}

* :focus-within {
	outline: 0;
}

h1 {
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	font-optical-sizing: auto;
	font-style: normal;
	margin-bottom: 0;
}

h2,
h3,
h4,
h5,
h6 {
	font-family: 'Montserrat', Arial, sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	margin-bottom: 0;
}

a {
	color: var(--active-color);
	text-decoration: none;
	outline: none;
}

.bg-active-color {
	background-color: #4b6382;
}

.bg-active-color-on-hover:hover {
	background-color: #4b6382;
}

.bg-accent-color {
	background-color: #b16128;
}

.transition-bg-color {
	transition: background-color 0.25s ease-in-out;
}

.underline-on-hover:hover {
	text-decoration: underline;
}

/* ===== Bootstrap ===== */

.container-xxl {
	max-width: 1280px;
}

/* ===== Wysiwyg content ===== */

.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
	margin-top: 1.75rem;
	margin-bottom: 1.75rem;
}

.wysiwyg-content img {
	border-radius: 0.5rem;
}

.wysiwyg-content p img:only-child {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.wysiwyg-content p:last-child img:only-child {
    margin-bottom: 0;
}

.wysiwyg-content a {
	text-decoration: underline;
}

.wysiwyg-content a:hover {
	color: var(--active-color);
}

.wysiwyg-content ol,
.wysiwyg-content ul {
	margin-bottom: 1rem;
}

.wysiwyg-content ul {
	list-style-type: none;
}

.wysiwyg-content ul li {
	padding-left: 1.5rem;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/></svg>');
	background-repeat: no-repeat;
	background-size: 1rem;
	background-position: left top 0.25rem;
}

.wysiwyg-content ol {
	list-style-position: inside;
}

.wysiwyg-content ol li {
	margin-top: 0.5rem;
}

.wysiwyg-content ol li::before {
	content: '';
	display: inline-block;
	width: 0.25rem;
}

.wysiwyg-content ul li:not(:first-child),
.wysiwyg-content ol li:not(:first-child) {
	margin-top: 0.5rem;
}

.wysiwyg-content hr {
	margin-top: 1.75rem;
	margin-bottom: 1.75rem;
}

.wysiwyg-content .table-responsive {
	margin-bottom: 1rem;
}

.wysiwyg-content > *:first-child {
    margin-top: 0;
}

.wysiwyg-content > *:last-child {
	margin-bottom: 0;
}

/* ===== Contact Form 7 ===== */

.wpcf7-form-control {
	width: 100%;
    min-height: 2.5rem;
	padding: 0.5rem;
	border: 1px solid #767676;
	border-radius: 0.5rem;
}

textarea.wpcf7-form-control {
	display: block;
}

.wpcf7-acceptance {
	padding: 0;
	border: none;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin-left: 0;
}

.wpcf7-acceptance .wpcf7-list-item label {
	display: flex;
}

.wpcf7-acceptance .wpcf7-list-item-label {
	padding-left: 0.5rem;
    line-height: 1.25;
}

.wpcf7-acceptance input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
    position: relative;
	flex-shrink: 0;
}

.wpcf7-acceptance {
	color: #767676;
}

.wpcf7-acceptance a {
	color: #767676;
	text-decoration: underline;
}

.wpcf7-acceptance a:hover {
	color: var(--active-color);
}

.wpcf7-submit {
	height: 42px;
	color: #fff;
	font-weight: 700;
	background-color: var(--active-color);
	border: 0;
	transition: all 0.25s ease-in-out;
}

.wpcf7-submit:hover {
	background-color: #333;
}

.wpcf7-spinner {
	position: absolute;
    top: 50%;
	left: 0;
    right: 0;
	transform: translateY(-50%);
    margin: 0 auto;
}

.wpcf7-form.submitting .wpcf7-submit {
	color: transparent;
	pointer-events: none;
}

.wpcf7-not-valid-tip {
	margin-top: 0.125rem;
	font-size: 0.875rem;
    line-height: 1.25;
}

.wpcf7-response-output {
	margin: 1.5rem 0 0 0 !important;
	font-size: 0.875rem;
	line-height: 1.25;
}

/* ===== General ===== */

* > p:last-child,
* > ol:last-child,
* > ul:last-child,
* > table:last-child,
* > figure:last-child {
	margin-bottom: 0;
}

/* ===== Site ====== */

html.bp-md .site,
html.bp-lg .site,
html.bp-xl .site,
html.bp-xxl .site {
	padding-top: 4.5rem;
}

/* ===== Header ====== */

html.bp-md body.admin-bar .site-header,
html.bp-lg body.admin-bar .site-header,
html.bp-xl body.admin-bar .site-header,
html.bp-xxl body.admin-bar .site-header {
    margin-top: 32px;
}

.site-header {
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	background-color: rgba(75, 99, 130, 0.8);
	margin-right: var(--vertical-scrollbar, 0px);
	z-index: 99999;
	position: relative;
}

html.bp-md .site-header,
html.bp-lg .site-header,
html.bp-xl .site-header,
html.bp-xxl .site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 4.5rem;
	z-index: 9999;
}

.site-header-logo {
	height: 2.5rem;
}

nav.header-nav ul.nav-menu a {
	color: #fff;
}

nav.header-nav ul.nav-menu a:hover {
	text-decoration: underline;
}

nav.header-nav ul.nav-menu li.current-menu-item a {
	text-decoration: underline;
}

/* ===== Mobile nav ===== */

.mobile-nav-toggle {
    width: 2.5rem;
	height: 2.5rem;
    border: 1px solid #fff;
	border-radius: 0.5rem;
	background-color: transparent;
	background-repeat: no-repeat;
	background-size: 1.25rem;
	background-position: center;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23fff" class="bi bi-list" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/></svg>');
}

.mobile-nav-toggle.is-toggled-on {
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23fff" class="bi bi-x-lg" viewBox="0 0 16 16"><path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"/></svg>');
}

.site-header nav.header-nav {
	transition: transform 0.25s ease-in-out;
}

.site-header nav.header-nav.is-mobile {
	position: fixed;
	top: 100%;
	left: 0;
	right: 0;
	padding: 0.5rem 1.25rem;
	background-color: var(--primary-color);
	transform: translateX(-100%);
}

.site-header nav.header-nav.is-expanded {
	transform: translateX(0);
}

.site-header nav.header-nav.is-mobile ul {
	display: block !important;
}

.site-header nav.header-nav.is-mobile ul li {
	display: block;
	margin-left: 0 !important;
}

.site-header nav.header-nav.is-mobile ul li a {
	display: block;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

/* ===== Breadcrumbs ===== */

.site-breadcrumbs a:hover {
	text-decoration: underline;
}

/* ===== Front page ===== */

.front-page h2 {
	position: relative;
	margin-bottom: 1rem;
}

.front-page h2::after {
	content: '';
	position: absolute;
	width: 5rem;
	height: 0.25rem;
	top: 2.75rem;
	left: 0;
	background-color: var(--accent-color);
}

/* Hero */

html.bp-md .hero,
html.bp-lg .hero,
html.bp-xl .hero,
html.bp-xxl .hero {
	margin-top: -5rem;
}

.front-page .hero .swiper-img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	object-fit: cover;
}

.front-page .hero .swiper-pagination {
	display: inline-flex;
	left: 0 !important;
	width: auto !important;
	bottom: 4rem !important;
	text-align: left;
}

.front-page .hero .swiper-pagination-bullet {
	display: block;
	margin: 0 0.5rem 0 0 !important;
	width: 1.5rem;
	height: 0.25rem;
	background: #fff;
	border-radius: 0.5rem;
}	

.front-page .hero .swiper-pagination-bullet:last-child {
	margin-right: 0 !important;
}

.front-page .hero .swiper-button-prev,
.front-page .hero .swiper-button-next {
	top: auto;
	bottom: 4rem;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.25rem;
	background-color: rgba(75, 99, 130, 0.8);
	color: #fff;
	border-radius: 0.5rem;
}

.front-page .hero .swiper-button-prev {
	right: 3.5rem;
	left: auto;
}

.front-page .hero .swiper-button-next {
	right: 0;
}

.front-page .hero .swiper-button-next:after, .swiper-button-prev:after {
	font-size: 1.25rem;
}

/* Categories */

.front-page .categories .item-link {
	transition: color 0.25s ease-in-out;
}

.front-page .categories .item-link:hover {
	color: #b16128;
}

.front-page .categories .item-title {
	font-size: 1.125rem;
	border-bottom: 1px solid;
}

/* Process */

.front-page .process {
	background-color: #4b6382;
}

.front-page .process .item-number {
	width: 2.5rem;
	height: 2.5rem;
	background-color: #b16128;
	border-radius: 50%;
}

.front-page .process .item-img {
	width: 4rem;
	height: 4rem;
}

.front-page .process .worker {
	filter: drop-shadow(0 0 5rem #f8f9fa);
}

/* Production */

.front-page .production .swiper-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Location */

.map-container {
	min-height: 450px;
}

.map-container iframe {
	width: 100% !important;
	height: 100%;
	border-radius: 0.5rem;
}

.front-page .location .wpcf7-acceptance {
	color: #dcdcdc;
}

.front-page .location .wpcf7-acceptance a {
	color: #dcdcdc;
	text-decoration: underline;
}

.front-page .location .wpcf7-submit:not(:hover) {
	background-color: #b16128;
}

/* ======= Fancybox ======= */

.fancybox-skin {
	border-radius: 0.5rem;
}

.fancybox-inner {
	min-height: min-content;
}

#header-contact-form-container,
#contact-form-container,
#product-contact-form-container {
	width: auto;
	max-width: 25rem;
	padding: 1.25rem;
}

/* FAQ */

.faq .item-header {
	background-color: var(--active-color);
	position: relative;
	cursor: pointer;
}

.faq .item-header::after {
	position: absolute;
	content: '';
	top: 0;
	bottom: 0;
	right: 1.5rem;
	width: 1rem;
	height: 100%;
	background-size: 1rem;
	background-position: center;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23fff" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
	background-repeat: no-repeat;
	transition: transform 0.25s ease-in-out;
}

.faq .item-header.is-toggled-on::after {
	transform: rotate(180deg);
}

.faq .item-body.is-collapsed {
	display: none;
}

.faq .filler {
	background-image: radial-gradient(circle, #767676 1px, transparent 1px);
	background-size: 1rem 1rem;
	margin-left: -0.25rem;
}

/* ===== Catalog ===== */

html.bp-xs .categories-archive-page .categories .item {
	background-color: transparent !important;
}

.categories-archive-page .categories .item-img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.categories-archive-page .categories .item-link:hover .item-title {
	text-decoration: underline;
}

/* ===== Services ===== */

.services-archive-page .services .item-img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ===== Contacts ===== */

.contacts-page .company_details {
	border: 1px solid var(--accent-color);
}

.contacts-page .contact-items .item-title {
	font-size: 1.125rem;
}

.contacts-page .contact-form-container {
	background-color: var(--active-color);
}

.contacts-page .item-icon-container {
	border-radius: 50%;
	width: 3rem;
	height: 3rem;
	background-color: var(--accent-color);
}

.contacts-page .item-icon {
	color: #fff;
}

.contacts-page .wpcf7-acceptance {
	color: #dcdcdc;
}

.contacts-page .wpcf7-acceptance a {
	color: #dcdcdc;
	text-decoration: underline;
}

.contacts-page .wpcf7-submit:not(:hover) {
	background-color: #b16128;
}

.contacts-page .map iframe {
	display: block;
	width: 100%;
	height: 30rem;
}

/* ===== Footer ====== */

.site-footer {
	border-top: 4px solid #b16128;
	background-color: var(--primary-color);
}

.site-footer-logo {
	height: 3rem;
}

.site-footer .divider {
	width: 100%;
	height: 1px;
	background-color: #b16128;
}

nav.footer-nav ul li:not(:first-child) {
    margin-top: 0.5rem;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer .soc-networks .item-img {
	width: 2.5rem;
	height: 2.5rem;
}
