/* Hero */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: min(760px, 85vh);
    min-height: 520px;
    overflow: hidden;
    background: #111;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.hero-slider.dragging {
    cursor: grabbing;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1s ease,
        visibility 1s ease;
    pointer-events: none;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Sötét átmenet, hogy a szöveg jól olvasható legyen */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.44) 45%,
            rgba(0, 0, 0, 0.08) 75%,
            rgba(0, 0, 0, 0) 100%
        );
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(5vw, 30px);
    width: min(620px, calc(100% - 60px));
    color: white;
    transform: translateY(-50%);
    pointer-events: auto;
    user-select: text;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.05;
}

.hero-content p {
    margin: 0 0 28px;
    max-width: 570px;
    line-height: 1.5;
}

.hero-button {
    display: inline-block;
    padding: 14px 24px;
    color: white;
    background: #b54d24;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.hero-button:hover {
    background: #963d1c;
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 700px) {
    .hero-slider {
        height: 72vh;
        min-height: 500px;
    }

    .hero-slider::after {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.15) 0%,
                rgba(0, 0, 0, 0.68) 100%
            );
    }

    .hero-content {
        top: auto;
        right: 24px;
        bottom: 75px;
        left: 24px;
        width: auto;
        transform: none;
    }

    .hero-slide img {
        object-position: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-button,
    .hero-dot {
        transition: none;
    }
}

/* Special offer */
#special-offer{
	height: 30vh;
	background: linear-gradient(
    to right,
    rgb(67, 74, 88) 0%,
    rgb(249, 115, 22) 100%
  );

	padding: 2rem 0 .5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#special-offer>p{
	width: 90%;
}

#special-btn{
	margin-top: 1rem;

	box-shadow: 1px 1px #000000;
	border-radius: 2px;
}

/* 20 years */

#twenty{
	padding: 1rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#twenty-txt{
	width: 90%;
	text-align: justify;
}

/* Top services */

.top-s{
	height: 27vh;

	position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
   overflow: hidden;
   content-visibility: visible;
}

.top-s-img{
	z-index: -1;
	height: 27vh;

	content-visibility: visible;
}

.top-s-img>picture{
	display: flex;
	justify-content: center;
	align-items: center;
}

.top-s-text{
	position: absolute;
	margin-top: 1rem;

	border-radius: 2px;

	width: auto;
	background: rgba(107, 114, 128, 0.8);

	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
}

/* Icons */

#icons{
	background: linear-gradient(
	to right,
	rgb(27, 34, 48) 0%,
	rgb(259, 55, 20) 100%
	);
	
	display: flex;
	justify-content: center;
}

#icons-d{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding: 2rem 0;
}

.icon-div{
	width: 40vw;

	display: flex;
	flex-direction: column;
	align-items: center;
}

.icon{
	width: 20vw;
	max-width: 160px;
}
.icon-txt{
	width: 40vw;
}

/* Process */

#process{
	width: 100%;
	display: flex;
	flex-direction: column;
}

#process-u{
	margin-top: 1rem;
	width: 95%;
	align-self: center;
}

#mbs-txt{
  text-align: justify;
}

#steps{
	margin-top: 1rem;
	margin-left: 5%;
	margin-bottom: 1rem;
}

#ref{
	width: 100%;
	display: flex;
	align-items: center;
}

#ref-img-div{
	width: 80%;
	height: 50vw;

	overflow: hidden;
	position: relative;
}
.ref-img{
	position: absolute;
	width: 100%;
}

.arrow{
	width: 10%;
}

#arrow-r{
	 transform: scaleX(-1);
}

.remove-left{
  transform: translateX(40vw);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.remove-right{
  transform: translateX(-40vw);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}


/* Media query: laptops and bigger device */
@media screen and (min-width: 992px){

#special-offer{
	height: auto;
}

.top-s-text{
	margin-left: 55vw;
}

.icon{
	height: 9vw;
	width: 9vw;
}

#icons-d{
	width: 69vw;
}

.icon-div{
	width: 23vw;
}

.icon-txt{
	width: 23vw;
}

/* Prcess */

#process-u{
	display: flex;
}

#process-u>div{
	width: 50%;
}

#ref-img-div{
	height: 300px;

	overflow: hidden;
}

}