/*
Theme Name: Nick Theme
Theme URI: https://wordpress.org
Author: Oleh Markevych
Author URI: https://webrarium.com
Description: Nick Med
Requires at least: 6.4
Requires PHP: 7.0
Version: 1
Tags: custom
*/
:root {
  --primary-color: #2ca3f1;
  --secondary-color: #00d8c2;
  --text-color: #03121d;
  --heading-color: #034069;
  --bg-start-color: #f2f8fe;
  --bg-end-color: #fff;
  --border-radius: 10px;
}

@font-face {
  font-family: "Philosopher";
  src: url("/wp-content/themes/nicktheme/assets/fonts/Philosopher-Bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: "Roboto";
  src: url("/wp-content/themes/nicktheme/assets/fonts/Roboto-Regular.ttf");
  font-weight: 400;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Philosopher";
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: 1.5;
  text-wrap: balance;
}
h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  text-transform: uppercase;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
.subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 650px;
}
body {
  font-size: 18px;
  font-family: "Roboto";
  color: var(--text-color);
  line-height: 1.3;
  min-height: 100vh;
}
section {
  padding: 5rem 0;
}
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

.btn {
  text-transform: uppercase;
  border-radius: 30px;
  font-size: 20px;
  font-family: "Philosopher";
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--primary-color);
  border: 2px var(--primary-color) solid;
  line-height: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.centered-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (width<900px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 15px;
  }
  .subtitle {
    font-size: 1rem;
  }
  section {
    padding: 2rem 0;
  }
}

/* header */

header {
/*   padding: 20px 0; */
  font-size: 16px;
  font-family: "Philosopher";
  font-weight: 700;
  background-color: white;
  border-bottom: 1px var(--primary-color) solid;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  left: 0;
  z-index: 2;
}
.menu-wrp {
  display: flex;
  gap: 20px;
  align-items: center;
}
.custom-logo-link img {
  display: block;
  position: relative;
  z-index: 10;
  height: 100%;
  width: 150px;
}
#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header-nav__list a {
  text-decoration: none;
}
.header-nav__list a:hover {
  color: var(--primary-color);
}
.header-nav__list {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.menu-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav_map {
	background-color: transparent;
	padding: 5px 20px;
}
.nav_map img {
	transition: all .2s ease-in;
}
.nav_map:hover img {
	transform: scale(1.1)
}
.nav-phone {
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-phone img {
  transition: transform 0.2s ease-in;
}
.nav-phone:hover {
  color: var(--primary-color);
}
.nav-phone:hover img {
  transform: rotate(-30deg);
}
.brg {
  display: none;
  position: relative;
  width: 30px;
  height: 16px;
  cursor: pointer;
  margin-left: 20px;
  z-index: 10;
}
@media (width<1170px) {
/*   header {
    padding: 10px 0;
  } */
  .brg {
    display: block;
    margin-left: auto;
  }

  #nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: white;
    transition: height 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 9;
  }
  #nav.show {
    height: 100%;
    overflow-y: auto;
    padding-top: 90px;
    padding-bottom: 100px;
    justify-content: flex-start;
  }
  .header-nav__list {
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    gap: 20px;
  }
  .header-nav__list a {
    padding: 10px 0;
    display: block;
  }
  .menu-btns {
    flex-direction: column;
    margin: 20px 0 0;
    gap: 30px;
  }
}
/* mobile-only nav — hidden on desktop */
.mobile-nav {
  display: none;
}
@media (width<1170px) {
  .mobile-nav {
    display: block;
    margin-top: 10px;
  }
  .mobile-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    gap: 20px;
    padding: 0;
    font-size: 20px;
    font-family: "Philosopher";
    font-weight: 700;
  }
  .mobile-nav__list a {
    text-decoration: none;
    padding: 10px 0;
    display: block;
    color: inherit;
  }
  .mobile-nav__list a:hover {
    color: var(--primary-color);
  }
}

.line {
  height: 2px;
  width: 100%;
  background-color: var(--primary-color);
  position: absolute;
  border-radius: 50vw;
  transition: all 0.4s ease;
}
.line:first-child {
  top: 0;
}
.line:nth-child(2) {
  top: 50%;
  transform: translatey(-50%);
  opacity: 1;
}
.line:nth-child(3) {
  bottom: 0;
}
.brg.open {
  transform: rotate(45deg);
  transition: transform 0.4s ease;
}
.brg.open .line:first-child {
  top: 50%;
  transform: translatey(-50%);
}
.brg.open .line:nth-child(2) {
  opacity: 0;
}
.brg.open .line:nth-child(3) {
  bottom: 50%;
  transform: translatey(50%) rotate(90deg);
}

/* hero section */

.hero-section {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 90vh;
  height: 90vh;
  position: relative;
  margin-top: -15px;
}
.layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: 900px;
  max-width: max(900px, 60vw);
  background: linear-gradient(
    90deg,
    white 0%,
    rgba(255, 255, 255, 0.77) 80%,
    transparent 100%
  );
  z-index: 0;
}
.hero-wrp {
  max-width: 650px;
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-btns {
  margin-top: 4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (width<500px) {
  .hero-section {
    padding: 40px 0;
    min-height: 80vh;
    height: auto;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-wrp {
    justify-content: flex-start;
  }
  .hero-btns {
    flex-direction: column;
    align-items: start;
  }
  .hero-wrp .subtitle {
    max-width: 80%;
  }
}

/* services section */
.services-section {
  background-color: var(--bg-start-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(315px, 0.33fr));
  gap: 1rem;
  padding: 2rem 0;
  justify-content: center;
}
.service-cat-card {
  border-radius: var(--border-radius);
  background-color: white;
  text-align: center;
  transition: all 0.3s ease;
}
.service-cat-card a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 3rem 2rem 2rem;
  height: 100%;
}
.service-cat-card a img {
  margin-bottom: auto;
}
.service-cat-card a h3 {
  margin: auto;
}
.service-cat-card a svg {
  position: absolute;
  top: 5px;
  right: 5px;
  transition: transform 0.3s ease;
  transform-origin: top right;
}
.service-cat-card:hover {
  -webkit-box-shadow: 4px 6px 12px -1px rgba(120, 120, 120, 0.47);
  -moz-box-shadow: 4px 6px 12px -1px rgba(120, 120, 120, 0.47);
  box-shadow: 4px 6px 12px -1px rgba(120, 120, 120, 0.47);
}
.service-cat-card:hover a svg {
  transform: scale(1.1);
}

/* Priority section */

.priority-wrp h2,
.priority-wrp h3 {
  color: white;
}
.priority-wrp > img {
  max-width: 100%;
}
.priority-wrp {
  background-color: var(--heading-color);
  color: white;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  border-radius: var(--border-radius);
}
.priority-main {
  padding: 3rem 0 3rem 3rem;
}
.priority-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}
.priority-item {
  display: flex;
  gap: 1rem;
}
@media (width<700px) {
  .priority-wrp {
    grid-template-columns: 1fr;
  }
  .priority-wrp > img {
    max-width: 250px;
    justify-self: center;
  }
  .priority-main {
    padding: 1rem 0 1rem 1rem;
  }
  .priority-item img {
    width: 40px;
    height: 40px;
    justify-self: start;
  }
  .priority-item h3 {
    margin-bottom: 0.5rem;
  }
}

/* Values section */
.values-wrp {
  display: grid;
  gap: 1rem;
}
.values-item {
  display: grid;
  grid-template-columns: 0.6fr 1fr 0.3fr;
  align-items: center;
  gap: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--bg-start-color);
  padding: 1rem 2rem;
}
.values-item img {
  place-self: end;
}
.v-title {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.v-title h3 {
  margin: 0;
  line-height: 1.1;
}
.v-text {
  line-height: 1.6;
}
.values-num {
  display: block;
  font-family: "Philosopher";
  font-size: 2rem;
  color: var(--primary-color);
}
@media (width<800px) {
  .values-item {
    grid-template-columns: 1fr;
    position: relative;
    padding: 1rem;
  }
  .values-item img {
    width: 30px;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }
  .values-num {
    font-size: 1.5rem;
    line-height: 1;
  }
}

/* Testimonials section */
.testimonials-section {
  background-color: var(--bg-start-color);
}
.testimonials-wrp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-txt {
  font-size: 16px;
  line-height: 1.6;
}
.testimonial-item .client {
  margin-top: auto;
  display: grid;
  grid-template-columns: max-content auto;
  row-gap: 10px;
  column-gap: 10px;
  justify-items: start;
  font-family: "Philosopher";
  align-items: center;
}
.testimonial-item .client b {
  grid-column: 1/3;
}
.testimonial-item .client .t-map-link {
  display: inline-flex;
  line-height: 1;
  text-decoration: none;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}
.testimonial-item .client .t-map-link img {
  transition: all 0.3s ease;
}
.testimonial-item .client .t-map-link:hover img {
  transform: scale(1.1);
}
@media (width<500px) {
  .testimonials-wrp {
    display: grid;
    grid-template-columns: 1fr;
  }
  .testimonial-item > svg {
    width: 30px;
  }
}

.zapys-form {
  font-family: "Roboto" !important;
}
.form-wrapper {
  background-color: var(--bg-start-color);
  padding: 2rem;
  margin-inline: auto;
  max-width: 790px;
  border-radius: var(--border-radius);
}
.form-submit::before {
  content: url("/wp-content/themes/nicktheme/assets/icons/btn-arrow.svg");
  position: absolute;
  right: 20px;
  top: 5px;
}
.form-submit {
  display: flex;
  width: 100% !important;
  text-transform: uppercase !important;
  justify-content: center;
  background-color: var(--primary-color) !important;
  align-items: center !important;
  border-radius: 50px !important;
  font-family: "Philosopher" !important;
  font-size: 1.2rem !important;
  position: relative !important;
}
.wpforms-field-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
}
.form-message {
  grid-column: 1/3;
}
.wpforms-container .wpforms-submit-spinner {
  position: absolute !important;
  top: 8px;
  right: 21px;
}

.contact-soc-links-wrp {
  background-color: var(--bg-start-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-soc-links-wrp a {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-family: "Pholisopher";
  font-weight: 700;
}
.contact-soc-links-wrp a img {
  transition: all 0.3s ease;
}
.contact-soc-links-wrp a:hover img {
  transform: scale(1.1);
}
@media (width<650px) {
  .form-wrapper {
    padding: 2rem 1rem 1rem;
  }
  .contact-section h2 {
    margin: 0;
  }
  .wpforms-field-container {
    grid-template-columns: 1fr;
  }
  input {
    font-size: 14px !important;
  }
  .form-message {
    grid-column: 1/2;
  }
  .contact-soc-links-wrp a img {
    width: 40px;
  }
  .contact-soc-links-wrp {
    padding: 1rem;
  }
  .form-submit::before {
    display: none;
  }
}

/* partners section */
.partners-section {
  background-color: var(--primary-color);
}
.partners-section h2 {
  color: white;
}
.partners-wrp {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.partner-img {
  max-width: 155px;
}
@media (width<700px) {
  .partner-img {
    max-width: 80px;
  }
}

/* contacts */
.contacts-section {
  color: var(--heading-color);
}
.contacts-wrp {
  display: grid;
  grid-template-columns: minmax(450px, 0.75fr) 1fr;
  gap: 1rem;
}
.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contacts-item-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}
.contacts-item {
  border-radius: var(--border-radius);
  background-color: var(--bg-start-color);
  padding: 3rem;
  display: grid;
  gap: 1rem;
}
.contacts-item-row.schedule {
  align-items: flex-start;
}
.contacts-item-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contacts-section .nav-phone {
  gap: 20px;
  font-size: 1.2rem;
  font-family: "Philosopher";
  font-weight: 700;
}
.schedule p:not(:last-child) {
  margin-bottom: 1em;
}
@media (width<925px) {
  .contacts-wrp {
    grid-template-columns: 1fr;
  }
  .contacts-item img {
    max-width: 30px;
  }
  .contacts-item {
    padding: 2rem;
  }
  .contacts-item-map {
    min-height: 400px;
  }
}

/* footer */
footer {
  background-color: var(--primary-color);
  padding: 4rem 0;
  color: white;
  --gap: 10vw;
}
.f-top {
  font-family: "Philosopher";
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.f-top-left {
  display: grid;
  gap: 1rem;
}
footer .custom-logo-link img {
  width: 260px;
  max-width: 100%;
  height: 100%;
  z-index: 1;
}
.f-soc {
  display: flex;
  gap: 1rem;
}
.f-soc a {
  display: block;
  transition: transform 0.3s ease;
}
.f-soc a:hover {
  transform: scale(1.1);
}
.f-top-right {
  display: flex;
  column-gap: var(--gap);
  row-gap: 1rem;
  flex-wrap: wrap;
}
.footer-nav__list {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-rows: repeat(4, 1fr);
  height: 100%;
}
.footer-nav__list li {
  display: flex;
  align-items: center;
}
.footer-nav__list li a {
  text-decoration: none;
}
.footer-nav__list li a:hover {
  text-decoration: underline;
}
.f-divider {
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  margin: 2rem 0;
}
.f-bottom {
  font-size: 0.8rem;
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  flex-wrap: wrap;
}
.f-bottom > a {
  text-decoration: none;
}
@media (width<500px) {
  .f-top {
    justify-content: center;
  }
  .f-soc {
    justify-content: space-evenly;
  }
}
/* breadcrumbs */
.breadcrumbs {
  margin-top: -2.5rem;
  margin-bottom: 2rem;
  font-family: "Philosopher";
}
@media (width<900px) {
  .breadcrumbs {
    margin-top: 0;
    margin-bottom: 2rem;
  }
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs a {
  text-decoration: none;
  text-transform: lowercase;
}
.breadcrumbs .bc-active {
  text-transform: lowercase;
  color: var(--primary-color);
}
/* open category page */
.open-cat-hero {
  background-color: var(--bg-start-color);
  padding: 2rem;
  border-radius: var(--border-radius);

}
	.open-cat-hero__inner h1 {
		margin-bottom:0
	}
.open-cat-hero__inner {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: min-content auto min-content;
	gap: 1rem;
	justify-items: start;
	align-items: center;
}
.cat-img {
	grid-row: 1/4;
	grid-column:2/3;
	border-radius: var(--border-radius);
}
.open-cat-hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.open-cat-services {
  display: grid;
  margin-top: 2rem;
}
.open-cat-service {
  padding: 0.5rem 0;
  border-bottom: 1px solid lightgrey;
}
.open-cat-service a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.open-cat-service a svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.open-cat-service a:hover h2 {
  color: var(--primary-color);
}
.open-cat-service a:hover svg {
  transform: rotate(45deg);
}
.open-cat-service a h2 {
  text-transform: none;
  margin: 0;
  line-height: 1.1;
  font-size: 1.5rem;
}
@media (width<1150px){
.open-cat-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	}	
}

@media (width<550px) {
  .open-cat-hero {
    padding: 1rem;
  }
}

/* open service page */

.open-service-hero {
  background-color: var(--primary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.open-service-hero h1 {
  color: white;
  line-height: 1.2;
}
.service-content {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 2rem;
  align-items: start;
}
.service-img {
  border-radius: var(--border-radius);
}
.faq-wrp {
  display: grid;
  gap: 1rem;
}
.faq-item ul,
.faq-item ol {
  list-style-position: inside;
}
.faq-item p:not(:last-child),
.faq-item li {
  margin-bottom: 0.6rem;
}
.faq-item {
  background-color: var(--bg-start-color);
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  display: grid;
  grid-template-rows: min-content 0fr;
  transition: all 0.5s ease;
  row-gap: 0rem;
	line-height: 1.5;
}
.faq-item.open {
  grid-template-rows: min-content 1fr;
  row-gap: 1rem;
}
.faq-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-item__head svg {
  transform: rotate(45deg);
  transition: all 0.5s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-item__head svg {
  transform: rotate(90deg);
}
.faq-item__head h2 {
  text-transform: none;
  font-size: 1.3em;
  line-height: 1.1;
  margin: 0;
}
.faq-item__answer {
  overflow: hidden;
}
.service-content-right {
  display: grid;
  gap: 2rem;
  justify-items: start;
}
.warning {
  background-color: var(--heading-color);
  border-radius: var(--border-radius);
  color: white;
  padding: 2rem;
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 2rem;
}
.warning .star {
  color: var(--primary-color);
  font-size: 5em;
  font-family: "Philosopher";
  line-height: 60%;
}
@media (width<900px) {
  .service-content {
    display: flex;
    flex-direction: column;
  }
  .service-img {
    display: none;
  }
}
@media (width<550px) {
  .open-service-hero {
    padding: 1rem;
  }
  .faq-item {
    padding: 1rem;
  }
  .service-img {
    display: block;
  }
  .warning {
    padding: 1rem;
    gap: 1rem;
  }
}
