*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --accent: #ff4343;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  direction: rtl;
  font-family: "iransans";
}

@font-face {
  font-family: "iransans";
  font-style: normal;
  font-weight: 400;
  src: url(./persian-font/IRANSansX-Regular.woff) format("woff");
  src: url(./persian-font/IRANSansX-Regular.ttf) format("ttf"),
    url(./persian-font/IRANSansX-Regular.woff2) format("woff2");
}

@font-face {
  font-family: "iransans";
  font-style: normal;
  font-weight: 800;
  src: url(./persian-font/IRANSansX-Bold.woff) format("woff");
}

h1 {
  text-align: center;
  color: white;
  direction: rtl;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
}
h2 {
  color: rgb(80, 1, 25);
  text-align: right;
  font-size: 30px;
  margin-right: 3em;
}
h3 {
  margin: 0;
}

.s2 {
  background-image: url('./bg/1.jpg');
  background-image: image-set(
    url('./bg/1.avif') type('image/avif'),
    url('./bg/1.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center center;
}

.s3 {
  background: #1a1a1a;
}

/* --- Roya Section --- */

.roya-section {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.roya-title-wrap {
  width: 100%;
  max-width: 1800px;
  text-align: right;
  margin-bottom: 30px;
  margin-left: auto;
  pointer-events: none;
}

.roya-title-wrap > * {
  pointer-events: auto;
}

.roya-title {
  color: #fff;
  font-size: 2rem;
  margin: 0;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
}

.roya-desc {
  color: #fff;
  font-size: 1.1rem;
  margin: 12px 0 0;
  text-align: right;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
  padding-right: 10px;
}

.roya-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 20px 40px;
}

.roya-cards {
  display: flex;
  flex-wrap: wrap;
  column-gap: 36px;
  row-gap: 24px;
  justify-content: center;
  width: 100%;
  max-width: 1800px;
}

.roya-col {
  flex: 1;
  display: flex;
}

.roya-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
}

.roya-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.roya-img-default {
  opacity: 1;
}

.roya-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.roya-img-wrap:hover .roya-img-default {
  opacity: 0;
}

.roya-img-wrap:hover .roya-img-hover {
  opacity: 1;
  transform: scale(1.08);
}

.roya-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 70px 16px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.roya-img-wrap:hover .roya-label {
  opacity: 1;
}

.s4 {
  background-image: url('./bg/paul-brennus-1.jpg');
  background-image: image-set(
    url('./bg/paul-brennus-1.avif') type('image/avif'),
    url('./bg/paul-brennus-1.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/*نوار صفحه*/
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: white !important;
  filter: drop-shadow(2px 5px 1px #00000048);
}

/* --- About Section --- */

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  gap: 40px;
}

.about-heading {
  text-align: center;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: #ffffff;
  font-family: "iransans";
  text-shadow: 2px 2px 4px #171717d5;
  margin: 0;
}

.about-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.about-col {
  min-width: 250px;
  max-width: 420px;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px #171717d5;
}

.about-col-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 2px 2px 4px #171717d5;
}

.about-col-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  font-weight: 800;
}

/* --- Auth Modal Styles --- */

.signin-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  background: transparent;
  border: none;
  color: #fff;
  font-family: "iransans", sans-serif;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.signin-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px 28px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  direction: rtl;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--accent);
}

.modal-slide {
  display: none;
}

.modal-slide.active {
  display: block;
}

.modal-card h2 {
  all: revert;
  color: #1a1a2e;
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: 800;
  text-align: center;
}

.modal-card p {
  all: revert;
  color: #666;
  font-size: 14px;
  margin: 0 0 16px;
}

.phone-input-wrapper {
  margin-bottom: 8px;
}

.phone-input-wrapper input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: "iransans", sans-serif;
  text-align: center;
  direction: ltr;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.phone-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
}

.error-msg {
  color: #e74c3c;
  font-size: 12px;
  min-height: 0;
  margin-bottom: 12px;
}

.btn-next {
  width: 40%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-family: "iransans", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-next:hover {
  background: #cc3333;
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  direction: ltr;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-family: "iransans", sans-serif;
  font-weight: 800;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: border-color 0.3s ease;
  direction: ltr;
}

.otp-input:focus {
  outline: none;
  border-color: var(--accent);
}

.countdown {
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  font-family: monospace;
  margin-bottom: 16px;
  direction: ltr;
}

.resend-btn {
  display: none;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-family: "iransans", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resend-btn.visible {
  display: inline-block;
}

.resend-btn:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 28px 20px;
  }
  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 18px;
  }
}

/* --- Section content helpers --- */

.section-body {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  pointer-events: none;
}

.section-body > * {
  pointer-events: auto;
}

.section-body.v-top    { top: 12%; }
.section-body.v-center { top: 50%; transform: translateY(-50%); }
.section-body.v-bottom { bottom: 12%; }

.section-title {
  color: #fff;
  font-size: 2.5rem;
  margin: 0;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8));
}

.section-desc {
  text-align: center;
  color: rgba(255, 255, 255, 1.00);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 12px 0 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

/* --- Video Section --- */

.section-video {
  --video-scale: 1;
  --video-scale-mobile: 1;
  position: relative;
  overflow: hidden;
  background: #b9b9b9;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  transform: scale(var(--video-scale));
}

@media (max-width: 768px) {
  .bg-video {
    transform: scale(var(--video-scale-mobile));
  }

  .section-body {
    padding: 0 20px;
  }

  .section-body.v-top {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    text-align: center !important;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .roya-section {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    overflow: visible !important;
  }

  .roya-title-wrap {
    text-align: center;
    margin: 0;
    max-width: none;
  }

  .roya-title {
    font-size: 1rem;
  }

  .roya-desc {
    font-size: 0.85rem;
    margin-top: 4px;
    padding-right: 0;
  }

  .roya-inner {
    align-items: flex-start;
    padding: 20px 12px 20px;
  }

  .roya-cards {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    row-gap: 8px;
    column-gap: 0;
  }

  .roya-col {
    width: 100%;
  }

  .about-section {
    padding: 40px 20px;
    gap: 24px;
  }

  .about-heading {
    font-size: 1.5rem;
  }

  .about-row {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-top: 20px;
  }

  .about-col {
    width: 100%;
    max-width: 360px;
  }

  .about-col-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .about-col-desc {
    font-size: 0.95rem;
  }
}
