/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* add fonts */
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/Shabnam.woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Shabnam";
  src: url("../fonts/Shabnam-Bold.woff2");
  font-weight: 700;
  font-style: normal;
}

:root {
  --red-color: #d71920;
  --white-color: #fff;
  --text-dark-color: #214378;
  --gray-bg-color: #f0f1f3;
  --blue-bg-color: #0078ff;
  --gray-border-color: #2143781f;
}

html,
body {
  height: 100%;
  font-family: "Shabnam", sans-serif;
}

img {
  max-width: 100%;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

button {
  background-color: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

header {
  height: 80px;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.5s ease;
}

header.sticky {
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  height: 100%;
  width: 100%;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
  /* padding: 20px 15px; */
}

.btn-red {
  background-color: var(--red-color);
  border-radius: 12px;
  color: var(--white-color);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 25px;
  font-weight: 700;
  cursor: pointer;
}

.hero-section {
  background-image: url("../images/header-bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 900px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap-reverse;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--white-color);
  margin-top: 70px;
  height: 57.78px;
}

.characters-wrapper {
  background-image: url("../images/characters-bg.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 100px 0;
  min-height: 900px;
}

.characters-wrapper .characters-subtitle {
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  color: var(--white-color);
  margin-bottom: 18px;
}

.characters-wrapper .characters-title {
  font-size: 80px;
  font-weight: 700;
  text-align: center;
  color: var(--white-color);
}

.characters-image {
  margin-top: -50px;
}

.family-wrapper {
  background-image: url("../images/family-bg.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 900px;
  padding-top: 160px;
  padding-bottom: 50px;
}

.family-content {
  text-align: center;
}

.family-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--white-color);
}

.family-slogan {
  font-size: 26px;
  color: var(--white-color);
  margin-top: 20px;
  font-weight: normal;
}

.breakfast-wrapper {
  background-image: url("../images/breakfast.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 900px;
  padding-top: 200px;
}

.breakfast-wrapper :is(.breakfast-title, .breakfast-slogan) {
  font-size: 32px;
  text-align: center;
  color: var(--white-color);
  font-weight: normal;
}

.breakfast-slogan {
  margin-top: 10px;
}

.video-wrapper {
  background-image: url("../images/video-bg.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.border {
  position: relative;
  width: 640px;
  height: 355px;
  /* padding: 20px 25px; */
  padding: 12px;
}

.border-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tablet-video {
  width: 100%;
  border-radius: 10px;
}

footer {
  background-image: url("../images/footer-bg.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 900px;
}

.footer-wrapper {
  display: flex;
  /* flex-wrap: wrap; */
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.footer-content {
  color: var(--text-dark-color);
}

.footer-content .footer-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
}

.footer-content .footer-title .txt1 {
  font-size: 18px;
  font-weight: normal;
}

.footer-content .footer-title .txt2 {
  font-weight: 700;
  font-size: 32px;
}

.footer-description {
  text-align: justify;
  font-size: 14px;
  line-height: 30px;
}

.footer-description strong {
  font-weight: 700;
  font-size: 16px;
}

.footer-groups {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  margin-top: 12px;
  gap: 8px;
}

.footer-groups .btn-red {
  flex: 1;
  width: 100%;
  background-color: var(--red-color);
  border-radius: 8px;
  color: var(--white-color);
  font-weight: 700;
  padding: 10px 25px;
  font-weight: 700;
  border: 2px solid var(--red-color);
}

.footer-groups .btn-share {
  border: 2px solid var(--text-dark-color);
  color: var(--text-dark-color);
  font-weight: 700;
  border-radius: 8px;
  flex: 1;
  width: 100%;
  padding: 10px 25px;
}

.copyright {
  padding: 16px;
  text-align: center;
  color: var(--red-color);
  font-size: 18px;
}

.hero-logo-sm {
  display: none;
}

.hero-logo {
  display: block;
}

.characters-image-sm {
  display: none;
}

.characters-image {
  display: block;
}

.family-image-sm {
  display: none;
}

.family-image {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
}

.modal.hidden {
  opacity: 0; /* شفافیت صفر برای محو شدن */
  transform: translateY(100%); /* انتقال کمی به سمت بالا */
  pointer-events: none; /* جلوگیری از تعامل */
}

.modal-content {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  max-width: 800px;
  width: 100%;
  gap: 24px;
}

.left-col {
  grid-column: span 4;
}

.right-col {
  grid-column: span 3;
  height: 100%;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.modal-description {
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  opacity: 50%;
  margin-bottom: 24px;
  color: var(--text-dark-color);
  opacity: 0.5;
  margin-top: 6px;
}

.fileName {
  color: var(--text-dark-color);
  margin-top: 24px;
}

.code-sent {
  background-color: #0078ff29 !important;
  color: #0078ff !important;
  border-color: #0078ff !important;
  z-index: 999;
}

.reupload-image {
  font-size: 16px;
  color: var(--red-color);
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  margin-top: 24px;
}

.btn-submit:disabled {
  opacity: 0.5;
}

.form-input {
  padding: 12px;
  background-color: var(--gray-bg-color);
  border-radius: 6px;
  border: none;
  margin-bottom: 12px;
  width: 100%;
  font-weight: normal;
  caret-color: var(--text-dark-color);
  color: var(--text-dark-color);
  outline: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--text-dark-color);
}

.code-input-group {
  position: relative;
  margin-bottom: 12px;
}

.code-input-group .send-code {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  background-color: var(--blue-bg-color);
  border-radius: 8px;
  padding: 12px 30px;
  color: var(--white-color);
  font-size: 16px;
  border: 1px solid transparent;
}

input.mobile {
  margin: 0 !important;
}

.btn-submit {
  background-color: var(--red-color);
  border-radius: 12px;
  color: var(--white-color);
  font-size: 16px;
  font-weight: 700;
  padding: 15px 25px;
  font-weight: 700;
  width: 100%;
}

.right-col-wrapper {
  border: 1px dashed var(--gray-border-color);
  padding: 12px;
  height: 93%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 12px;
}

.right-col-title {
  font-size: 18px;
  color: var(--text-dark-color);
  text-align: center;
  margin-bottom: 24px;
}

.drag-drop-text {
  margin-top: 24px;
  text-align: center;
  color: var(--text-dark-color);
  opacity: 0.5;
}

.modal .upload-image {
  border: 2px solid var(--text-dark-color);
  color: var(--text-dark-color);
  font-weight: 700;
  border-radius: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 6px 25px;
}

.modal .hint-text {
  text-align: center;
  color: var(--text-dark-color);
  opacity: 0.5;
  font-weight: 400;
  font-size: 11px;
  margin-top: 12px;
  display: block;
}

.modal .record-voice {
 display: none;
  border: 2px dashed var(--gray-border-color);
  color: var(--text-dark-color);
  font-weight: 700;
  border-radius: 8px;
  width: 100%;
  margin: 12px 0;
  padding: 6px 25px;
}

.add-image-icon {
  margin: 0 auto;
}

.alert-info .alert-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}

.close-btn img {
  vertical-align: middle;
}

.alert-info {
  position: fixed;
  top: 80px;
  left: 50%;
  width: 100%;
  max-width: 1400px;
  background-color: #0077ffc4;
  color: var(--white-color);
  padding: 12px 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.alert-info.active {
  opacity: 1;
  visibility: visible;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.mobile-swiper {
  display: none;
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-section {
    min-height: 700px;
  }

  .hero-content {
    flex-direction: column-reverse;
  }

  .hero-content {
    justify-content: center;
    gap: 10px;
    padding-bottom: 30px;
  }

  .hero-logo-sm {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 150px;
  }

  .hero-logo {
    display: none;
  }

  .characters-image-sm {
    display: block;
  }

  .characters-wrapper {
    min-height: 700px;
    padding-bottom: 50px;
  }

  .characters-image {
    display: none;
  }

  .characters-wrapper .characters-subtitle {
    font-size: 20px;
  }

  .characters-wrapper .characters-title {
    font-size: 40px;
  }

  .family-wrapper {
    min-height: 500px;
    padding-top: 150px;
    display: flex;
    align-items: end;
  }

  .family-title {
    font-size: 18px;
  }

  .family-slogan {
    font-size: 16px;
  }

  .breakfast-wrapper {
    background-image: url("../images/breakfast-sm.webp");
  }

  .breakfast-wrapper .breakfast-slogan {
    font-size: 14px;
    font-weight: 700;
  }
  .breakfast-wrapper .breakfast-title {
    font-size: 18px;
    font-weight: 700;
  }

  .border {
    width: 640px;
    height: 215px;
    /* padding: 12px; */
    margin-bottom: 90px;
  }

  .video-wrapper {
    background-image: url("../images/video-bg-sm.webp");
  }

  .footer-content .footer-title .txt1 {
    font-size: 16px;
  }

  .footer-content .footer-title .txt2 {
    font-size: 20px;
  }

  .footer-wrapper {
    flex-wrap: wrap;
  }

  .family-image-sm {
    display: block;
  }

  .family-image {
    display: none;
  }

  .btn-share {
    font-size: 12px;
  }

  .btn-red {
    font-size: 12px;
  }

  .modal-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: stretch;
  }

  header {
    height: 60px;
  }

  .logo {
    height: 40px;
  }

  .add-image-icon {
    display: none;
  }

  #myForm {
    width: 100%;
  }

  .modal {
    align-items: flex-end;
    justify-content: stretch;
  }

  .modal-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .upload-image {
    margin-top: 0 !important;
  }

  .right-col-wrapper {
    border: none;
    padding: 0;
  }

  .modal-content {
    border-radius: 12px 12px 0 0;
    width: 100%;
    padding: 12px;
  }

  .right-col-title {
    display: none;
  }

  .drag-drop-text {
    display: none;
  }

  .btn-submit {
    padding: 10px 25px;
  }

  .left-col {
    display: flex;
    flex-direction: column;
  }

  .btn-submit {
    order: ;
  }

  .mobile-swiper {
    height: 4px;
    background-color: lightgray;
    width: 80px;
    border-radius: 999px;
    display: block;
    margin: 0 auto 8px auto;
  }

  footer {
    background-image: url("../images/footer-bg-sm.webp");
  }
}

@media screen and (max-width: 500px) {
  .breakfast-wrapper {
    min-height: 521px;
    background-size: auto;
    padding-top: 100px;
  }

  .video-wrapper {
    min-height: 552px;
    background-size: auto;
  }

  .video-wrapper video {
    width: 220px;
  }

  footer {
    min-height: 700px;
    background-size: auto;
  }

  .border {
    width: 235px;
    height: 135px;
    padding: 7px;
    margin-bottom: 60px;
  }
}
