:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --wrapper-height: auto;

  --bg-color: rgb(236, 236, 236);
  --bg-color-sub: rgb(238, 236, 236);
  --bg-color-dark: rgb(166, 166, 166);
  --bg-color-dark2: rgb(96, 96, 96);
  --bg-color-white: rgb(255, 255, 255);
  --blue-color: rgb(68, 146, 213);
  --dark-blue-color: rgb(2, 40, 255);
  --text-color: black;
}

* {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

li,
h1,
h2,
h3,
h4 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primaryBtn {
  padding: 1rem 2rem;
  background-color: var(--blue-color);
  z-index: 3;
  border-radius: 1rem;
  letter-spacing: 2px;
  border: none;
  font-weight: bolder;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}

.primaryBtn:hover {
  transform: scale(1.05);
  background-color: var(--dark-blue-color);
}

@media screen and (max-width: 500px) {
  .primaryBtn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--bg-color);
  margin-bottom: var(--wrapper-height, auto);
  box-shadow: 0 0 20px 0px black;
  overflow-x: hidden;

  opacity: 0;
  transition: opacity .5s ease;
}

body:has(.privacy-policy) {
  overflow: visible;
}

body.page-loaded {
  opacity: 1;
  pointer-events: all;
}

body.is-fading {
  opacity: 0;
  pointer-events: none;
}

html::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100vw / 2.5);
  height: calc(100vh / 2.5);
  filter: invert(1);
  background-image: url('/wp-content/themes/bestoychev-photography/assets/images/logo-name-without-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  transform: translate(-50%, -50%) scale(0) rotate(80deg);
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

html:has(.is-fading)::before {
  transform: translate(-50%, -50%) scale(1) rotate(0);
  opacity: 1;
  z-index: 100;
}

.limit {
  max-width: 1920px;
  margin-inline: auto;
}

#app {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.before-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-anim {
  opacity: 1;
  transform: translateY(0);
}

/* Popup overflow is handled via JavaScript in price-popup.php */

/* OVERLAY */
.overlayNone {
  display: none;
}

.overlayShow {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1000;
  top: 0;
}

/* ARROW UP */
.arrowUp {
  position: fixed;
  right: 3rem;
  bottom: 6rem;
  cursor: pointer;
  width: 60px;
  opacity: 0.7;
  z-index: 100;
  fill: #393733;
  transition: all 300ms ease-in-out;
}

.arrowUp:hover {
  fill: #141313;
}

.main {
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  border: 1px solid #fff;
  font-family: 'IM Fell French Canon Pro', serif;
  font-size: 1.4rem;
  padding: 2rem 0;
  line-height: 1.6;
}

body:has(.nav.nav-additional-padding) .main {
  padding-top: 100px;
}

body:has(.nav.nav-additional-padding) .main:has(.profileImg) {
  padding-top: 0;
}

body:has(.bestoychev-blog-single .bestoychev-subscribe-form) .main {
  padding-bottom: 0;
}

@media screen and (max-width: 767px) {
  body:has(.nav.nav-additional-padding) .main {
    padding-top: 40px;
  }
}

@media screen and (max-width: 800px) {
  .arrowUp {
    width: 50px;
    right: 1.5rem;
  }
}

/* NAVIGATION STYLES */
.nav {
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bg-color-white);
  width: 100%;
  position: fixed;
  top: 0;
  user-select: none;
  z-index: 100;
  overflow: visible;
  transition: background-color 0.3s ease-in-out;
  padding-block: 8px;
}

.nav.nav-bg-active {
  background: url('/wp-content/themes/bestoychev-photography/assets/images/mountain-range-whole-image.jpg') no-repeat center bottom;
  background-size: cover;
  transition: backdrop-filter 1.5s ease-in-out;
}

.nav.nav-additional-padding {
  padding-block: 12px;
}

.nav.nav-bg-active::before,
.nav:has(ul.mobile)::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  z-index: -1;
  transition: backdrop-filter 0.3s ease;
}

.nav:not(.nav-bg-active)::before {
  backdrop-filter: blur(0);
}

.nav-logo-name {
  cursor: pointer;
  width: auto;
  max-height: 64px;
  object-fit: contain;
  margin-left: 14px;
  filter: invert(1);
}

nav.removeBorder {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  font-size: 1.2rem;
}

ul.mobile {
  background-color: transparent;
  width: 100%;
  top: 100%;
  margin-top: 0;
  position: absolute;
  flex-direction: column;
  color: var(--bg-color-white);
  padding: 1rem 0 1rem 0;
  backdrop-filter: blur(6px);
  background-color: #0000003d;
  display: none;
  z-index: 10;
  left: 0;
  right: 0;
}

@media screen and (max-width: 1023px) {
  ul.mobile,
  #mobileMenu {
    display: flex;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  body.is-menu-open ul.mobile,
  body.is-menu-open #mobileMenu {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

ul.mobile .li {
  letter-spacing: 3px;
  padding: 0.3rem 0.5rem;
  color: var(--bg-color-white);
}

.bar {
  display: none;
  border: none;
  background-color: transparent;
  padding: 10px 0 10px 10px;
  margin-right: 24px;
  cursor: pointer;

  @media screen and (max-width: 1023px) {
	  display: flex;
	  flex-direction: column;
  }

  @media screen and (max-width: 500px) {
	  padding: 6px 0 6px 6px;
  }
}

body.is-menu-open .bar-line {
	&:nth-child(1) {
		transform: translateY(0);
		opacity: 0;
	}

	&:nth-child(2) {
		transform: translateY(0) rotate(-45deg);
	}

	&:nth-child(3) {
		transform: translateY(-2px) rotate(45deg);
	}
}

.bar .bar-line {
	display: block;
	width: 21px;
	height: 2px;
	background-color: #fff;
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;

	&:nth-child(1) {
		transform: translateY(-5px);
	}

	&:nth-child(2) {
		transform: translateY(0);
	}

	&:nth-child(3) {
		transform: translateY(5px);
	}
}

@media screen and (max-width: 1023px) {
  .bar {
    display: block;
  }
  
  #desktopMenu {
    display: none;
  }
}

.list .li {
  cursor: pointer;
  letter-spacing: 2px;
  position: relative;
  padding: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg-color-white);
  transition: all 200ms ease-in-out;
}

.list .active,
.list .li:hover {
  border-bottom: 2px solid;
}

/* Container (Welcome Section) - only for welcome section, not other containers */
#welcomeSection.container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Only apply header styles when inside welcome section */
#welcomeSection .header {
  background: url('/wp-content/themes/bestoychev-photography/assets/images/mountain-range-whole-image.jpg') no-repeat;
  padding-top: 61.93333333%;
  background-size: cover;
  position: relative;
}

#welcomeSection .header img {
  position: absolute;
  top: 0;
  right: 0;
  width: 45.8%;
  height: auto;
  z-index: 7;
  display: block;
}

@font-face {
  font-family: 'Sucrose Bold Two HQ';
  src: url('/wp-content/themes/bestoychev-photography/assets/images/fonts/SucroseBoldTwoHQ.woff2') format('woff2'),
    url('/wp-content/themes/bestoychev-photography/assets/images/fonts/SucroseBoldTwoHQ.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

#welcomeSection .header h1 {
  color-scheme: light;
  color: #ffffffde;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Sucrose Bold Two HQ', sans-serif;
  position: fixed;
  top: 15%;
  right: 4.5%;
  font-size: clamp(0.8rem, 6vw, 10rem);
  line-height: .8;
  margin-top: 0;
  text-align: center;
  transition: opacity .3s ease;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

#welcomeSection .header h1.visible,
#welcomeSection .header .small-title.visible {
  opacity: 1;
}

#welcomeSection .header h1 span {
  display: block;
  color: #ffffffde;
}

#welcomeSection .header .small-title {
  font-family: 'Sucrose Bold Two HQ', sans-serif;
  position: absolute;
  font-size: clamp(.8rem, 3vw, 2rem);
  bottom: -100px;
  right: 0;
  left: 0;
  z-index: 10;
  opacity: 0;
  transition: opacity .3s ease;
  animation: showSmallTitle 1s ease-in forwards;
  color: var(--bg-color-white);
  text-align: center;
}

#welcomeSection .header .small-title.visible {
  opacity: 1;
}

@keyframes showSmallTitle {
  to {
    bottom: 25px;
  }
}

@media all and (max-width: 1600px) {
  #welcomeSection .header h1 {
    top: 15%;
  }
}

@media all and (max-width: 1200px) {
  #welcomeSection .header h1 {
    top: 10%;
  }
}

@media all and (max-width: 767px) {
  #welcomeSection .header h1 {
    top: 8%;
  }

  @keyframes showSmallTitle {
    to {
      bottom: 22px;
    }
  }
}

@media all and (max-width: 500px) {
  #welcomeSection .header h1 {
    top: 6%;
  }

  @keyframes showSmallTitle {
    to {
      bottom: 16px;
    }
  }
}

/* FOOTER STYLES */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  height: var(--wrapper-height);
  z-index: -10;
  padding: 0 0 1rem 0;
  background-image: url('/wp-content/themes/bestoychev-photography/assets/images/others/image (0).webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  user-select: none;
  border-top: 2px solid grey;
  width: 100%;
  overflow-y: auto;
  transition: bottom 0.3s ease-in-out;
  font-size: 1rem;
}

footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Footer Info Styles - Scoped to footer */
footer .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: 1400px;
  padding: 0;
  margin: auto auto 0;
}

footer .info__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}

footer .info__main p {
  color: var(--bg-color-white);
  margin: 0;
  text-align: start;
  font-size: 1rem;
}

footer .info__main p b {
  padding-left: 4px;
  color: var(--bg-color-white);
  font-size: inherit;
}

footer .info__main .mail {
  text-decoration: none;
  color: var(--bg-color-white);
  margin: 0;
  letter-spacing: 0.1rem;
  font-size: 1rem;
}

footer .info__main .mail:hover {
  text-decoration: underline;
}

.bottomText {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  width: 95%;
  max-width: 1400px;
  margin-inline: auto;
  padding-top: 10px;
  color: var(--bg-color-white);
  border-top: 1px solid var(--bg-color-white);
  text-align: center;
}

.bottomText a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

footer .info__list {
  display: flex;
  flex-direction: column;
  text-align: end;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer .info__list .li {
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  font-weight: 600;
  padding-inline: 0.25rem;
  text-decoration: none;
  color: var(--bg-color-white);
  transition: all 200ms ease-in-out;
  font-size: 1rem;
}

footer .info__list .active {
  color: rgb(255 180 119);
}

footer .info__list .li::after {
  content: "";
  position: absolute;
  color: white;
  transition: all 200ms ease-in-out;
}

footer .info__list .li::before {
  content: "";
  position: absolute;
  color: white;
  transition: all 200ms ease-in-out;
}

footer .info__list .li:hover::after {
  bottom: 0;
  left: -0.25rem;
  height: 40%;
  border-left: 2px solid white;
}

footer .info__list .li:hover::before {
  top: 0;
  right: -0.25rem;
  height: 40%;
  border-right: 2px solid white;
}

footer .nav-logo-name {
  margin: 100px auto 20px;
  cursor: pointer;
  width: 250px;
  filter: invert(1);
}

/* Social Media Styles */
.wrapper {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
}

.wrapper .icon {
  margin: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon span {
  position: relative;
  height: 20px;
  width: 20px;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon span a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wrapper .icon span svg {
  fill: white;
  width: 100%;
  height: 100%;
  display: block;
  flex-shrink: 0;
}

.wrapper .icon::after {
  display: none !important;
}

.wrapper .icon.instagram::after {
  display: none !important;
}

.wrapper .icon:hover span a svg {
  fill: white;
  transition: all 0.6s ease-in-out;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.4);
}

.wrapper .icon:hover span {
  color: #fff;
}

.wrapper .icon .tooltip {
  position: absolute;
  top: 0;
  background: #fff;
  color: #fff;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 25px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -35px;
  opacity: 1;
  pointer-events: auto;
}

.wrapper .icon .tooltip:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  background: #fff;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .facebook:hover span {
  background: #3B5999;
}

.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip:before {
  background: #3B5999;
}

.wrapper .instagram:hover span {
  background: #e1306c;
}

.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip:before {
  background: #e1306c;
}

.wrapper .instagram::after {
  display: none !important;
}

.wrapper .github:hover span {
  background: #333;
}

.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip:before {
  background: #333;
}

/* Phone Number */
.phoneNumber {
  display: flex;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  border-radius: 1rem;
  padding: 0;
  color: var(--bg-color-white);
  text-decoration: none;
}

.phoneNumber > svg {
  animation: phoneAnim 1.5s infinite;
}

@keyframes phoneAnim {
  0% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.1) rotate(20deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.phoneNumber svg {
  width: 12px;
  transition: all 300ms ease-in-out;
}

.phoneNumber > span {
  padding-left: .5rem;
  letter-spacing: 1px;
  color: var(--bg-color-white);
}

@media screen and (max-width: 1023px) {
  .nav {
    flex-direction: row;
  }
  
  .bar {
    display: block;
  }
  
  #desktopMenu {
    display: none;
  }

  ul.mobile .li {
    width: 60%;
  }
}

@media screen and (max-width: 1000px) {
  .nav-logo-name {
    width: 150px;
    height: 65px;
  }

  .list {
    font-size: 1rem;
    gap: 1rem;
  }

  .bar {
    width: 1.8rem;
  }

  footer {
    padding: 1rem 0;
    gap: 2rem;
  }

  footer .nav-logo-name {
    margin: 60px auto 20px;
    width: 200px;
  }

  #welcomeSection .header h1 {
    top: 15%;
  }
}

@media screen and (max-width: 767px) {
  .current-offer .item__content--large {
    min-height: 350px;
  }

  #welcomeSection .header h1 {
    top: 8%;
  }

  @keyframes showSmallTitle {
    to {
      bottom: 22px;
    }
  }
}

@media screen and (max-width: 630px) {
  .nav {
    padding-block: 6px;
  }
  
  .nav-logo-name {
    width: 110px;
    height: 52px;
  }

  .bar {
    padding: 0 1rem 0 0;
    width: 1rem;
  }
}

@media screen and (max-width: 500px) {
  .nav-logo-name {
    width: 90px;
    height: 40px;
  }

  .list {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  ul.mobile {
    padding-bottom: 0.5rem;
  }

  #welcomeSection .header h1 {
    top: 6%;
  }

  .main {
    padding: 2rem 0;
  }

  @keyframes showSmallTitle {
    to {
      bottom: 16px;
    }
  }

  footer {
    padding: 0.5rem 0;
    gap: 1rem;
  }

  footer .info {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  footer .info__main {
    gap: 12px;
  }

  footer .info__list {
    gap: 6px;
    padding: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .bottomText {
    font-size: 0.6rem;
  }

  footer .info__main p {
    text-align: center;
  }

  footer .nav-logo-name {
    width: 150px;
  }

  .phoneNumber {
    margin-inline: auto;
    font-size: 1rem;
  }

  .phoneNumber svg {
    width: 20px;
  }

  .wrapper {
    margin-inline: auto;
    justify-content: center;
  }
  
  .wrapper .icon {
    margin: 0 10px;
  }
}

@media screen and (max-width: 450px) {
  footer .nav-logo-name {
    width: 150px;
  }
}


/* ------------------------------------------------------------ */
/* Admin Bar (if header is fixed) */
/* ------------------------------------------------------------ */

body.admin-bar {
	--admin-bar-height: 32px;

	@media screen and (max-width: 782px) {
		--admin-bar-height: 46px;
	}
	
	#wpadminbar {
		position: fixed;
	}

	.nav {
		margin-top: var(--admin-bar-height);
	}
}

/* Shortcode Section - matches related-posts styling */
.bestoychev-shortcode-section {
	max-width: 1180px;
	margin-inline: auto;
	margin-block: 80px;
	width: 100%;
	padding-left: 2rem;
	padding-right: 2rem;
	box-sizing: border-box;
}

/* When inside a container limit, remove extra padding */
.container.limit .bestoychev-shortcode-section,
section.container.limit .bestoychev-shortcode-section {
	padding-left: 0;
	padding-right: 0;
	max-width: 100%;
}