/*!
Theme Name: Format-barbershop
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: format-barbershop
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Format-barbershop is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

@font-face {
    font-family: "Comfortaa";
    font-weight: 400;
    font-display: fallback;
    src: url("/wp-content/themes/formatbarbershop/fonts/Comfortaa-Regular.woff2") format("woff2");

}

@font-face {
    font-family: "Comfortaa";
    font-weight: 700;
    font-display: fallback;
    src: url("/wp-content/themes/formatbarbershop/fonts/Comfortaa-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-weight: 400;
    font-display: fallback;
    src: url("/wp-content/themes/formatbarbershop/fonts/Roboto-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-weight: 700;
    font-display: fallback;
    src: url("/wp-content/themes/formatbarbershop/fonts/Roboto-Bold.woff2") format("woff2");
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", ui-sans-serif, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
}

.body-is-active {
    touch-action: none;
    -ms-touch-action: none;
    overflow: hidden;
}

input,
textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
}

input[type="submit"] {
    width: auto;
    display: inherit;
    color: #fff;
    background: #4f8bce;
    padding: 16px 50px;
    margin: 30px auto 0;
    cursor: pointer;
}

iframe {
    max-width: 100%;
    vertical-align: middle;
    border: none;
}

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

h2 {
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 24px;
    line-height: 35px;
    text-align: center;
    color: #243580;
}

h3 {
    font-family: "Roboto";
    font-weight: 700;
    font-size: 20px;
    line-height: 22px;
    color: #fff;
}

p {
    margin: 15px 0;
    font-size: 14px;
    color: #303030;
}

ul {
    margin: 0 0 20px 40px;
    font-size: 14px;
    color: #303030;
}

ul li {
    padding-left: 0;
    margin-bottom: 15px;
    list-style: disc;
    background: none;
}

ul li::marker {
    font-size: 12px;
}

.container {
    position: relative;
    max-width: 1170px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/*header*/
.main-header.sticky {
    position: sticky;
    top: 0;
    z-index: 9;
}

.main-header__top {
    border-bottom: 4px solid #000000;
    padding: 5px 0;
    position: relative;
    background: white;
    z-index: 9;
}

.main-header__top>.container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    height: inherit;
    padding: 10px 20px;
}

.main__button {
    border: 2px solid #000;
    border-radius: 50px;
    padding: 5px 15px 5px 15px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.main-header__nav {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: transform 0.3s ease 0s;
    transform: translate(-100%, 0px);
    overflow: hidden;
    background: #ffffff;
}

.page-header {
    padding: 200px 0 200px 0;
    position: relative;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.page-header__background {
    position: fixed;
    top: 0;
    z-index: 1;
}

.page-header__background:before {
    content: "";
    filter: blur(7px);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header__background img {
    height: 100vh;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 46% 100%;
    object-position: 46% 100%;
    filter: blur(4px);
}

.page-header>.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
    z-index: 2;
    color: white;
}

.page-header_title {
    text-align: center;
    margin-top: 25px;
    font-size: 2em;
}

.page-header__button {
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 5px 40px 5px 40px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    width: fit-content;
    font-size: 20px;
    margin: 50px auto 25px auto;
    box-shadow: 0px 6px 20px 0px rgb(0 0 0 / 50%);
    border-radius: 20px;
    z-index: 99999;
    position: relative;
    transition-duration: 0.3s, 0.3s;
}

.main-header__menu {
    display: flex;
    gap: 25px;
    margin: 0 -20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.main-header__list {
    display: flex;
    gap: 45px;
    margin: 0;
}

.main-header__list-item {
    list-style-type: none;
    margin: 0;
}

.main-header__list-link {
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    padding: 5px;
    border: 2px solid #fff;
}

.main-header__contact {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
}

.main-header__social {
    display: flex;
    gap: 10px;
}

.main-header__social a {
    width: 50px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 16px;
}

.phone-link:hover {
    text-decoration: underline;
}

.phone-img {
    width: 30px;
}

section {
    position: relative;
    z-index: 2;
}

.page-title {
    margin: 0px auto 40px auto;
    padding: 5px 30px;
    font-size: 32px;
    --angle: 0deg;
    width: fit-content;
    height: fit-content;
    border: 2px solid;
    color: #fff;
    border-image: conic-gradient(from var(--angle), #fff, #fff, #fff, #fff, #0000, #0000, #0000, #0000) 1;
    animation: 3s rotate linear infinite;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.page-section {
    padding: 40px 0;
}

.page-team__items {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 50px;
    padding: 0 25px;
}

.page-team__item {
    cursor: pointer;
}

.page-team__item--card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.page-team__image {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    text-align: center;
}

.page-team__image img {
    border-radius: 20px;
}

.page-team__subtitle {
    margin-top: 20px;
    font-size: 30px;
    color: #000;
    font-weight: 700;
}

.page-team__content {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: rgba(255, 255, 255, 0.5) 0px 6px 20px 0px;
    z-index: 99999;
    gap: 5px;
    background: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 0 25px;
    transform: rotateY(180deg);
}

.page-team__paragraph {
    font-size: 16px;
    color: #515151;
    font-weight: 500;
}

.page-team__text {
    color: #000;
    text-align: left;
}

.page-team__text p {
    margin: 0 0 10px 0;
}

.page-team__button,
.page-portfolio__button {
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 5px 40px 5px 40px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    width: fit-content;
    font-size: 20px;
    margin: 50px auto 25px auto;
    box-shadow: 0px 6px 20px 0px rgb(0 0 0 / 50%);
    border-radius: 20px;
    z-index: 99999;
    position: relative;
    transition-duration: 0.3s, 0.3s;
}

.page-team__button:hover,
.page-header__button:hover,
.page-portfolio__button:hover {
    background: #fff;
    color: #000;
}

.page-price {
    padding: 40px 0;
}

.page-price__header-text {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-price__header-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.page-price__header-button {
    padding: 10px 20px;
    cursor: pointer;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.page-price__header-button:disabled {
    background: #fff;
    color: #000;
}

.page-price__header-button.active {
    background: #fff;
    color: #000;
}

.price__items {
    display: flex;
    width: 100%;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.price__item {
    position: absolute;
    opacity: 0;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.price__item.active {
    position: relative;
    opacity: 1;
}

.price__item:nth-child(odd) .price__item-row {
    background: #fff;
    color: #000;
}

.price__item:nth-child(even) .price__item-row {
    background: #000;
    color: #fff;
}

.price__item-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 5px;
    z-index: 2;
}

.price__item-row:first-child {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.price__item-more {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out;
}

.price__item-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.price__item-title span {
    font-size: 14px;
    font-weight: 500;
}

.price__item-title span:first-child {
    font-size: 20px;
    font-weight: 700;
}

.price__item-title span.price__item-text {
    color: #999999;
}

.price__item-value {
    text-align: right;
    font-weight: 700;
}

.price__item-btn {
    position: relative;
    z-index: 9999;
    width: 0px;
    height: 0px;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid #ffffff;
    margin: 15px auto;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.price__item-btn.active {
    display: none;
}

.price__item-btn-active {
    display: none;
    position: relative;
    z-index: 9999;
    width: 0px;
    height: 0px;
    cursor: pointer;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid #ffffff;
    margin: 15px auto;
    animation: pulse 2s infinite;
}

.price__item-btn-active.active {
    display: flex;
}

.price__item-btn.active {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.page-portfolio {
    padding: 40px 0;
}

.page-portfolio__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.page-portfolio__item {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-portfolio__item:hover {
    cursor: pointer;
}

.page-portfolio__item.full-width {
    grid-column: 1/3;
    margin: 0 auto;
}

.portfolio__img {
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    height: 250px;
    width: 100%;
}

.page-about {
    padding: 40px 0;
}

.page-about__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.page-about__paragraph,
.page-about__paragraph p {
    color: #fff;
    font-size: 18px;
}

footer {
    z-index: 2;
    position: relative;
    background: #fff;
}

.page-footer__container {
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
    padding: 20px 0;
}

.page-footer__container>.container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-footer__container .container iframe {
    width: 100%;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 75px;
    width: 100%;
}

.footer__logo-img {
    width: 55%;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__social a {
    width: 75px;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__address {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 16px;
}

.footer__adress-img {
    width: 30px;
}

.footer__adress-paragraph:hover {
    text-decoration: underline;
}

.page-footer__footer-bottom {
    padding: 5px 20px;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.photo-overlay img {
    max-width: 100%;
    max-height: 100%;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    background-color: transparent;
    border: 1px solid;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

@media screen and (min-width: 768px) {
    .page-header__background {
        width: 100%;
    }

    .page-header>.container {
        gap: 40px;
    }

    .page-header_title {
        font-size: 50px;
    }

    .page-header__description {
        font-size: 30px;
    }

    .page-header__button {
        font-size: 24px;
    }

    .page-team__items {
        grid-template-columns: 1fr 1fr;
    }

    .page-team__items.page-team__items-one {
        grid-template-columns: 1fr;
    }

    .page-team__items.page-team__items-one .page-team__item {
        max-width: 500px;
        margin: 0 auto;
    }

    .page-price__header {
        display: flex;
        align-items: center;
        gap: 25px;
        margin-bottom: 30px;
    }

    .page-price__header-text,
    .page-price__header-buttons {
        margin-bottom: 0px;
    }

    .page-portfolio__items {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 85px 30px;
    }

    .portfolio__img {
        height: 450px;
    }

    .page-about__items {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .page-about__items img {
        order: 1;
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

    .about__video {
        order: 1;
    }

    .page-about__items p {
        order: 0;
    }

    .footer__content {
        flex-direction: row;
        align-items: center;
    }

    .page-footer__footer-bottom {
        font-size: 20px;
    }

    .page-header__button,
    .page-team__button,
    .page-features__button,
    .page-portfolio__button {
        font-size: 24px;
    }
}

@media screen and (min-width: 992px) {
    .main-header__top {
        display: none;
    }

    .main-header__nav {
        z-index: 999999;
        position: relative;
        border-top: 4px solid #000000;
        border-bottom: 4px solid #000000;
        padding: 10px;
        background: #fff;
        transform: translate(0px, 0px);
    }

    .page-title {
        padding: 15px 30px;
        font-size: 50px;
    }
}

@media screen and (min-width: 1024px) {
    .page-team__items {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .page-team__items.page-team__items-two {
        grid-template-columns: 1fr 1fr;
    }
}

.page-service a {
    text-decoration: none;
}

.page-service__item {
    position: relative;
    overflow: hidden;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 8px solid #fff;
    width: 100%;
    height: 500px;
    font-weight: bold;
    text-shadow: 1px 2px 9px black;
}

.page-service__title {
    color: #fff;
    font-size: 40px;
    z-index: 9;
}
.service__video {
    position: absolute;
    z-index: 1;
}
.page-service__paragraph {
    color: #fff;
    font-weight: 400;
    font-size: 18px;
    z-index: 9;
}
.page-service__button {
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 5px 40px 5px 40px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    width: fit-content;
    font-size: 20px;
    margin: 50px auto 25px auto;
    box-shadow: 0px 6px 20px 0px rgb(0 0 0 / 50%);
    border-radius: 20px;
    z-index: 99999;
    position: relative;
    transition-duration: 0.3s, 0.3s;
}

@media screen and (min-width: 992px) {
    .page-service__item {
        height: 800px;
    }
}