html,
body {
  margin: 0;
  padding: 0;

  background: #000;
  color: #f4f4f4;
}

/* اینترو (بنر بالا) */

#hero-intro {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 60px 16px 0;
  background: radial-gradient(circle at top, #0d0d0d 0%, #020202 65%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.hero-logo--corner {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 140px;
  z-index: 3;
}

.hero-canvas {
  position: relative;
  width: min(960px, 100%);
  height: min(760px, 90vh);
}

.hero-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-layer--glow {
  width: min(1000px, 135%);
  bottom: 135px;
  filter: blur(2px);
  opacity: 0.95;
}

.hero-layer--fifty {
  width: min(580px, 80%);
  bottom: 330px;
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.75));
}

.hero-layer--stand {
  width: min(720px, 92%);
  bottom: 0;
}

.hero-layer--floor {
  width: 160%;
  bottom: -60px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  #hero-intro {
    padding-top: 40px;
  }

  .hero-logo {
    width: 120px;
  }

  .hero-logo--corner {
    width: 90px;
    top: 18px;
    left: 18px;
  }

  .hero-canvas {
    height: 520px;
  }

  .hero-layer--fifty {
    bottom: 270px;
    width: 82%;
  }

  .hero-layer--stand {
    width: 92%;
    bottom: 0;
  }

  .hero-layer--floor {
    width: 200%;
    bottom: -20px;
  }
}

/* محتوای زیر بنر */

#content-wrapper {
  display: block;
  background: #030303;
  color: #f4f4f4;
  border-top: 1px solid #2b2b2b;
  border-radius: 32px 32px 0 0;
  /* padding-top: 32px; */
  position: relative;
  z-index: 1;
}

/* کانتینر عمومی */

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* سکشن دسته‌بندی */

#category-section {
  background: #0e0e0e;
  border-radius: 32px 32px 0 0;
  padding: 96px 0px !important;
}

.category-scroll {
  overflow-x: auto;
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.category-item {
  min-width: 110px;
  text-align: center;
  color: #f4f4f4;
  margin-inline: 0.1rem;
  flex: 0 0 auto;
}

.category-item:hover {
  cursor: pointer;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  max-width: 720px;
  height: 60vh;
  max-height: 520px;
  transform: translate(-50%, -45%);
  background: radial-gradient(
    circle at center,
    rgba(255, 106, 20, 0.7) 0%,
    rgba(255, 106, 20, 0.45) 35%,
    rgba(17, 17, 17, 0) 70%
  );
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}

.category-icon-wrap {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.category-icon-wrap img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.category-flag-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.category-flag {
  width: 32px;
  height: auto;
  object-fit: contain;
}

.category-title {
  margin-top: 0;
  font-size: 18px;
  color: #f2a983;
  line-height: 100%;
  text-align: center;
}

/* شمارش معکوس */

#countdown-section {
  position: relative;
  background: #0e0e0e;
  overflow: hidden;
  /* background-color: #000; */
  padding: 80px 16px !important;
  background-image: linear-gradient(rgba(43, 43, 43, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 43, 43, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
}

#countdown-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("assets/countdown/up.png"),
    url("assets/countdown/down.png"), url("assets/countdown/Glow-left.png"),
    url("assets/countdown/Glow-right.png");
  background-position: center top, center bottom, -100px center,
    calc(100% + 100px) center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: contain, contain, 800px 100%, 800px 100%;
  pointer-events: none;
  z-index: 0;
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  direction: ltr;
  gap: 2rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  margin: 30px 0px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.countdown-item {
  text-align: center;
  color: #f4f4f4;
  font-size: 3.2rem;
  position: relative;
}

.countdown-item:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -1rem;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  color: #303030;
  font-size: 1.8rem;
  font-weight: bold;
}

.countdown-box {
  min-width: 60px;
  width: 60px;
  height: 60px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: -12px -12px 15px 0px rgba(21, 21, 21, 1) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "iranyekan";
  font-size: 1.8rem;
  color: #f7d49a;
  text-shadow: 0 0 9.6px #ff6a14;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.countdown-label {
  margin-top: 17px;
  font-size: 17px;
  color: #f7d49a;
  line-height: 100%;
  text-align: center;
}

/* سکشن‌های پیشنهادها */

.py-5 {
  padding-block: 3rem;
}

.bf-section {
  background: #050505;
}

/* Separate styles for beauty section */
#section-beauty {
  background: #0e0e0e;
  position: relative;
  overflow: hidden;
}

#section-beauty::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("assets/section-beauty/ellipse-top-left.png"),
    url("assets/section-beauty/ellipse-bottom-right.png");
  background-position: 0 0, bottom right;
  background-repeat: no-repeat, no-repeat;
  background-size: contain, contain;
  pointer-events: none;
  z-index: 0;
}

#section-beauty .container {
  position: relative;
  z-index: 1;
}

#section-beauty .bf-btn-cta {
  background-image: linear-gradient(#0e0e0e, #0e0e0e),
    linear-gradient(90deg, #ff6a14, #f7d49a);
}

/* Separate styles for javansazi section */
#section-javansazi {
  background: #0e0e0e;
}

.bf-offer-content {
  color: #f4f4f4;
}

.bf-branch-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bf-flag-icon {
  width: 32px;
  height: auto;
  object-fit: contain;
}

.bf-branch-title {
  color: #ff6a14;
  font-family: "iranyekanvbold";
  font-size: 1.8rem;
  font-weight: bold;
}

.bf-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #f2a983;
  color: #f2a983;
  font-size: 0.9rem;
}

.bf-title {
  font-family: "iranyekanvbold";
  font-size: 1.5rem;
  line-height: 1.6;
  color: #f4f4f4;
}

.bf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bf-list li {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #f4f4f4;
  padding-left: 1.5rem;
  position: relative;
}

.bf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff6a14;
}

.bf-list-title {
  font-family: "iranyekanvbold";
  color: #f4f4f4;
}

/* دکمه CTA */

.bf-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  border: 1px solid transparent;
  background-image: linear-gradient(#0e0e0e, #0e0e0e),
    linear-gradient(90deg, #ff6a14, #f7d49a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #f4f4f4;
  font-family: "iranyekanvbold";
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  position: relative;
}

.bf-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

/* فرم ساده */

.simple-form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  background: #0e0e0e;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.form-title {
  font-family: "iranyekanvbold";
  font-size: 1.2rem;
}

.simple-form .form-label {
  font-size: 0.9rem;
}

.simple-form .form-control,
.simple-form .form-select {
  background-color: #050505;
  border-color: #333;
  color: #fff;
}

.simple-form .form-control:focus,
.simple-form .form-select:focus {
  border-color: #f2a983;
  box-shadow: 0 0 0 1px #f2a983;
}

/* افکت فید سکشن‌ها */

.reveal-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-color: #0e0e0e;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ریسپانسیو */

@media (min-width: 768px) {
  .category-scroll {
    overflow-x: visible;
    /* justify-content: space-around; */
    justify-content: center;
    gap: 64px;
  }

  .category-item {
    margin-inline: 0;
  }
}

@media (min-width: 992px) {
  .countdown-box {
    min-width: 70px;
    width: 70px;
    height: 70px;
    padding: 10px 14px;
    font-size: 2rem;
    box-shadow: -12px -12px 15px 0px rgba(21, 21, 21, 1) inset;
  }

  .countdown-item:not(:last-child)::after {
    height: 70px;
    font-size: 2rem;
    right: -1.2rem;
  }

  .countdown-wrapper {
    gap: 2.5rem;
  }
}

/* تفاوت دسکتاپ/موبایل برای بنر */

@media (min-width: 769px) {
  .hero-image.mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-image.desktop {
    display: none;
  }

  .category-icon-wrap img {
    max-height: 100px;
  }

  .bf-branch-title {
    font-size: 1.4rem;
  }

  .bf-title {
    font-size: 1.25rem;
  }

  /* Reorder image and content on mobile - image first */
  #section-beauty .row {
    flex-direction: column !important;
  }

  /* Image columns appear first on mobile */
  #section-beauty .bf-image-col {
    order: 1 !important;
  }

  #section-beauty .bf-content-col {
    order: 2 !important;
  }

  /* Reset margin-bottom on image columns for proper spacing */
  #section-beauty .bf-image-col.mb-4,
  #section-beauty .bf-image-col.mb-20 {
    margin-bottom: 0 !important;
  }

  /* Add padding to content sections on mobile */
  #section-beauty .bf-offer-content {
    padding: 24px 20px;
  }
}

/* Modal Background */
.bf-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Modal Content Box */
.bf-modal-content {
  background: radial-gradient(
      circle at 50% 0,
      rgba(255, 106, 20, 0.3),
      transparent 55%
    ),
    #050505;
  border-radius: 40px;
  width: 100%;
  max-width: 520px;
  padding: 48px 56px 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  border: 1px solid #242424;
}

/* Close Button */
.bf-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  z-index: 10;
}

/* Modal Logo */
.bf-modal-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 120px;
  height: auto;
}

/* Ensure only the active form shows */
.bf-form-wrapper {
  display: none;
}
