/* Hero section widget  */
.hero-ultra-1 {
  position: relative;
  height: 86rem;
  margin-top: -12rem;
}

.hero-ultra-1 .background {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-ultra-1 .background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  z-index: 1;
}

.hero-ultra-1 .background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.85);
  clip-path: polygon(35% 0, 100% 0%, 100% 100%, 55% 100%);
}

.hero-ultra-1 .background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: var(--color-primary);
  opacity: 0.8;
  clip-path: polygon(0 0, 35% 0, 55% 100%, 0 100%);

}

.hero-ultra-1 .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;                
  max-width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 58%;
  flex-direction: column;
}
.hero-ultra-1 .hero-content img {
    width: 65rem;
}
.hero-ultra-1 .hero-content::before{ 
     content: "";
     background-color: var(--color-white);
     width: 100%;
     height: 600px;
     position: absolute;
     bottom: 0;
     z-index: 8;
     clip-path: polygon(0 80%, 90% 80%, 100% 120%, 0 100%);
}

.hero-ultra-1 .hero-content .info-box {
    display: flex;
    position: absolute;
    gap: 2rem;
    bottom: 0;
    z-index: 9;
}

.hero-ultra-1 .hero-content .info-box .the-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-white);
    gap: 1rem;
    width: 20rem;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.hero-ultra-1 .hero-content .info-box .the-box .box-title {
    color: var(--color-primary);
    font-weight: 900;
    font-size: 1.8rem;
}
.hero-ultra-1 .hero-content .info-box .the-box .box-content{
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    padding: 1rem;
    background-color: var(--color-primary);
}


.hero-ultra-1 .hero-content .info-box .the-box .address {
    display: flex;
    gap: 1rem;
}
.hero-ultra-1 .hero-content .info-box .the-box .address img {
    width: 4.8rem;
    padding: 1rem;
    background-color: var(--color-primary);
    
}


.hero-ultra-1 .hero-text {
  position: absolute;
  top: 30%;
  right: 5%;
  z-index: 5;                
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  width: 58%;
  flex-direction: column;
}

.hero-ultra-1 .hero-text h1 {
    color: var(--color-white);
    font-size: 4.4rem;
    font-weight: 900;
    line-height: 164%;
}

.hero-ultra-1 .hero-text h2 {
    color: var(--color-primary);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 164%;
}

.hero-ultra-1 .hero-text p {
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 181%;
    text-align: justify;
    border-right: 6px solid var(--color-primary);
    padding-right: 1rem;
}
.hero-ultra-1 .hero-text .h-btn-section {
    display: flex;
    gap: 1rem;
}
.hero-ultra-1 .hero-text .h-btn {
    display: flex;
    font-size: 1.8rem;
    font-weight: 600;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    color: var(--color-white);
    justify-content: center;
}
.hero-ultra-1 .hero-text .h-btn.btn-1 {
    background-color: var(--color-primary);
}
.hero-ultra-1 .hero-text .h-btn.btn-2 {
    background-color: var(--color-black);
}

@media screen and (max-width:600px){
	.hero-ultra-1{
		margin-bottom:10rem;
	}
	.hero-ultra-1 .hero-content {
    top: 50rem;
    width: 100%; 
		gap:0;
}
	.hero-ultra-1 .hero-text h2 , .hero-ultra-1 .hero-text p ,.hero-ultra-1 .hero-text .h-btn-section{
		display:none;
	}
	.hero-ultra-1 .hero-text h1 {
    font-size: 2.4rem;
}
	.hero-ultra-1 .hero-text {
    top: 15%;
}
	.hero-ultra-1 .hero-content .info-box {
       position: unset;
		flex-direction: column;
		width: 100%;
}
.hero-ultra-1 .hero-content .info-box .the-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--color-white);
    gap: 1rem;
    width: 100%; 

    justify-content: space-between;
}
	.hero-ultra-1 .hero-content::before {
   display:none;
}
}


/* Hover */

/* --- Hover جذاب برای info-box کارت‌ها --- */
.hero-ultra-1 .hero-content .info-box .the-box{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease;
  will-change: transform;
}

/* نوار گرادیانی خیلی ظریف پایین کارت (حس premium) */
.hero-ultra-1 .hero-content .info-box .the-box::after{
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 3px;
  opacity: .0;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transition: opacity .35s ease, transform .35s ease;
  transform: translateY(6px);
}

/* افکت Shine روی کارت */
.hero-ultra-1 .hero-content .info-box .the-box::before{
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(18deg) translateX(-20%);
  opacity: 0;
  transition: opacity .35s ease, transform .7s ease;
  pointer-events: none;
}

.hero-ultra-1 .hero-content .info-box .the-box:hover{
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.hero-ultra-1 .hero-content .info-box .the-box:hover::before{
  opacity: 1;
  transform: rotate(18deg) translateX(180%);
}

.hero-ultra-1 .hero-content .info-box .the-box:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* متن و اجزای داخلی هم کمی “زنده” بشن */
.hero-ultra-1 .hero-content .info-box .the-box .box-title{
  transition: transform .35s ease, letter-spacing .35s ease;
}

.hero-ultra-1 .hero-content .info-box .the-box:hover .box-title{
  transform: translateY(-2px);
  letter-spacing: .2px;
}

/* باکس محتوا: نرم‌تر و جذاب‌تر روی هاور */
.hero-ultra-1 .hero-content .info-box .the-box .box-content{
  transition: transform .35s ease, filter .35s ease;
}

.hero-ultra-1 .hero-content .info-box .the-box:hover .box-content{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* آیکن آدرس: کمی چرخش و پالس */
.hero-ultra-1 .hero-content .info-box .the-box .address img{
  transition: transform .35s ease, filter .35s ease;
}

.hero-ultra-1 .hero-content .info-box .the-box:hover .address img{
  transform: rotate(-6deg) scale(1.08);
  filter: brightness(1.05);
}

/* احترام به کاربرهایی که موشن رو دوست ندارن */
@media (prefers-reduced-motion: reduce){
  .hero-ultra-1 .hero-content .info-box .the-box,
  .hero-ultra-1 .hero-content .info-box .the-box::before,
  .hero-ultra-1 .hero-content .info-box .the-box::after,
  .hero-ultra-1 .hero-content .info-box .the-box *{
    transition: none !important;
    animation: none !important;
  }
}


/*Hover */
/* =========================
   Hero Buttons - برق روی دکمه (No radius)
========================= */

.hero-ultra-1 .hero-text .h-btn-section .h-btn{
  position: relative;
  overflow: hidden; /* برای برق */
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}

/* برق (Shine) */
.hero-ultra-1 .hero-text .h-btn-section .h-btn::before{
  content:"";
  position:absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.10) 35%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.10) 65%,
    transparent 100%
  );
  transform: rotate(18deg) translateX(-30%);
  opacity: 0;
  pointer-events:none;
}

/* هاور */
.hero-ultra-1 .hero-text .h-btn-section .h-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.14);
  filter: brightness(1.03);
}

/* وقتی هاور شد، برق رد میشه */
.hero-ultra-1 .hero-text .h-btn-section .h-btn:hover::before{
  opacity: 1;
  animation: ultra-btn-shine .75s ease-out forwards;
}

@keyframes ultra-btn-shine{
  0%   { transform: rotate(18deg) translateX(-40%); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: rotate(18deg) translateX(260%); opacity: 0; }
}

/* فلش: تکون جذاب */
.hero-ultra-1 .hero-text .h-btn-section .h-btn svg{
  transition: transform .18s ease, opacity .18s ease;
}
.hero-ultra-1 .hero-text .h-btn-section .h-btn:hover svg{
  transform: translateX(-5px);
  opacity: .95;
}

/* برای کاربرهای reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-ultra-1 .hero-text .h-btn-section .h-btn,
  .hero-ultra-1 .hero-text .h-btn-section .h-btn::before,
  .hero-ultra-1 .hero-text .h-btn-section .h-btn svg{
    transition: none !important;
    animation: none !important;
  }
}
