/*
Theme Name: WebPlovdiv
Theme URI: 
Author: Martin Serbezov
Author URI: 
Description: Modern WordPress Block Theme
Requires at least: 7.1
Tested up to: 7.1
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: webplovdiv
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

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Headings */
.single-post .entry-content h2 {
    margin-top: var(--wp--preset--spacing--40);
}

.single-post .entry-content h3,
#faq h3 {
    margin-top: var(--wp--preset--spacing--30);
}

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

/* Focus styles */
:where *:focus {
	outline: none;
}

/* Transition to links & buttons */
a,
.wp-element-button,
.wp-block-button__link {
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-0.125rem);
}

/* Increase the Navigation Responsive Open & Close Icon Size */
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	width: 26px;
	height: 26px;
}

/* 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
 * https://github.com/WordPress/gutenberg/issues/55190
 */
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.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

/* Foooter */
footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Footer Logo */
footer.wp-block-template-part img {
	height: auto;
	max-width: 100%;
	width: 200px;
}

/* Home Page */
#about svg,
#contact svg,
#package-includes svg {
	padding: .75rem;
	border-radius: 1rem;
	background-color: var(--wp--preset--color--accent-3);
}

#portfolio a:hover {
	text-decoration: none;
}

#about .wp-block-column,
#packages .wp-block-column,
#portfolio .wp-block-column,
#portfolio .wp-block-column img,
#packages > .wp-block-group:last-child {
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

#about .wp-block-column:hover,
#portfolio .wp-block-column:hover,
#packages .wp-block-column:hover,
#packages > .wp-block-group:last-child:hover {
	box-shadow: var(--wp--preset--shadow--element-shadow);
}

#portfolio .wp-block-column,
#portfolio .wp-block-column .wp-block-image {
	overflow: hidden;
}

#portfolio .wp-block-column img {
	transition-duration: 500ms;
}

#portfolio .wp-block-column:hover img {
	transform: scale(1.05);
}

/* Details  */
.wp-block-details {
	width: 100%;
}

.wp-block-details summary {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.wp-block-details summary::marker {
    color: var(--wp--preset--color--accent-1);
}

.wp-block-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

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

.wp-block-details summary::after {
    content: "+";
    color: var(--wp--preset--color--accent-1);
	font-size: var(--wp--preset--font-size--x-large);
    font-weight: 100;
}

.wp-block-details[open] summary::after {
    content: "−";
}

/* List */
ul {
	padding-left: 1rem;
}

/* Form */
form label {
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
	font-weight: 600;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--x-small);
}

form input,
form textarea,
form select {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.4;
	padding: calc(1rem - 1px) calc(1rem - 1px);
	border-radius: 0.75rem;
	border: 1px solid var(--wp--preset--color--borders);
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

form input:focus,
form textarea:focus,
form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

form button {
	cursor: pointer;
	background-color: var(--wp--preset--color--accent-1);
	border-radius: 0.75rem;
	border-width: 0;
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-style: inherit;
	font-weight: 600;
	letter-spacing: inherit;
	line-height: inherit;
	padding-top: 1rem;
	padding-right: 2rem;
	padding-bottom: 1rem;
	padding-left: 2rem;
	text-decoration: none;
	text-decoration-thickness: auto;
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

form button:hover {
	background-color: var(--wp--preset--color--accent-2);
	border-color: transparent;
	color: var(--wp--preset--color--base);
	transform: translateY(-0.125rem);
}

/* Price */
.price mark {
	font-size: var(--wp--preset--font-size--xx-large);
    font-weight: 800;
}

@media (max-width: 480px) {
	.price mark {
		display: block;
		margin-bottom: var(--wp--preset--spacing--20);
	}
}

/* Images */
.wp-block-post-featured-image > a {
	overflow: hidden;
	border-radius: 0.625rem;
}
.wp-block-post-featured-image > a img {
	transition: all .2s;
}

.wp-block-post-featured-image > a:hover img {
	transform: scale(1.05);
}
