@font-face {
  font-family: Vazirmatn;
  src: url("./fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #d71920;
  --red-dark: #a90f15;
  --red-soft: #fff1f2;
  --white: #ffffff;
  --surface: #fafafa;
  --text: #202124;
  --muted: #6b7280;
  --border: rgba(215, 25, 32, 0.14);
  --shadow: 0 18px 45px rgba(34, 34, 34, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Vazirmatn;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

/* ===== نوبار شیشه‌ای ===== */
.glass-nav {
  position: fixed;
  z-index: 1000;
  top: 18px;
  right: 50%;
  transform: translateX(50%);
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(35, 35, 35, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  width: 57px;
  max-height: 70px;
  object-fit: cover;
  border-radius: 60px;
}

.nav-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.navButtons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navButtons a {
  position: relative;
  padding: 10px 13px;
  border-radius: 12px;
  color: #3b3b3b;
  font-size: 15px;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.navButtons a:hover,
.navButtons a.active {
  color: var(--red);
  background: var(--red-soft);
}

.nav-search {
  width: min(280px, 30vw);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-search:focus-within {
  border-color: rgba(215, 25, 32, 0.48);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.08);
}

.nav-search svg {
  width: 19px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
}

.searchBar {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--red-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 5px;
  background: var(--red);
}

/* ===== بنر اصلی ===== */
.header {
  min-height: 760px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px max(6%, calc((100% - 1180px) / 2)) 70px;
  overflow: hidden;
  background-image: url("/trial files/jason-briscoe-GliaHAJ3_5A-unsplash.jpg");
  /* background-color: #EA4444; */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.72) 16%,
      rgba(255, 255, 255, 0.12) 52%,
      rgba(255, 255, 255, 0.03) 60%
    ),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
}

.banner-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
}

.banner-badge,
.eyebrow,
.section-heading span {
  display: inline-flex;
  align-items: center;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.banner-badge {
  padding: 7px 13px;
  border: 1px solid rgba(215, 25, 32, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.banner-content h1 {
  max-width: 620px;
  margin: 22px 0 15px;
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  line-height: 1.25;
  letter-spacing: -1.5px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 41px;
  padding: 20px;
}

.banner-content h1::after {
  content: "";
  display: block;
  width: 82px;
  height: 5px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--red);
}

.banner-content p {
  max-width: 540px;
  margin: 0 0 28px;
  color: #000;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 41px;
  padding: 20px;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.primary-btn {
  color: white;
  background: var(--red);
  box-shadow: 0 12px 26px rgba(215, 25, 32, 0.22);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--red-dark);
  box-shadow: 0 16px 32px rgba(215, 25, 32, 0.28);
}

.primary-btn.small {
  min-height: 44px;
  padding-inline: 22px;
}

.secondary-btn {
  color: var(--red);
  border: 1px solid rgba(215, 25, 32, 0.25);
  background: rgba(255, 255, 255, 0.86);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: white;
}

/* ===== محصولات، همان ساختار قبلی ===== */
.products-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}

.section-heading h2,
.hero-content h2,
.faq-text h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.35;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.my-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #eeeeee;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.my-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(22, 22, 22, 0.72) 0%,
    rgba(22, 22, 22, 0.03) 52%
  );
}

.my-card:hover {
  transform: translateY(-7px);
  border-color: rgba(215, 25, 32, 0.25);
  box-shadow: var(--shadow);
}

.my-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.my-card:hover img {
  transform: scale(1.035);
}

.cardText {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  color: white;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 800;
}

.cardText::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 24px;
  margin-left: 10px;
  border-radius: 99px;
  vertical-align: middle;
  background: var(--red);
}

.empty-state {
  margin-top: 25px;
  padding: 20px;
  border-radius: 16px;
  color: var(--red);
  text-align: center;
  background: var(--red-soft);
}

/* ===== معرفی ===== */
.hero {
  max-width: 1180px;
  margin: 10px auto 90px;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 30px;
  border: 1px solid #efefef;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-image,
.hero-content {
  flex: 1;
}

.hero-image img {
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 22px;
}

.hero-content {
  padding: 25px 0 25px 25px;
}

.hero-content p,
.faq-text > p {
  margin: 18px 0;
  color: var(--muted);
  font-size: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--red);
  font-weight: 800;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(-4px);
}

/* ===== پرسش‌ها ===== */
.faq {
  max-width: 1180px;
  margin: 0 auto 100px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 58px;
  padding: 70px 48px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.faq-text,
.faq-accordion {
  flex: 1;
}

.faq-accordion {
  padding: 8px 24px;
  border: 1px solid #ececec;
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
}

.faq-item + .faq-item {
  border-top: 1px solid #eeeeee;
}

.faq-question {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: right;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

.support-time {
  padding-right: 16px;
  border-right: 3px solid var(--red);
  font-size: 14px !important;
}

/* ===== فوتر ===== */
.footer {
  padding: 64px max(30px, calc((100% - 1180px) / 2)) 22px;
  color: #3d3d3d;
  border-top: 4px solid var(--red);
  background: #fafafa;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1.25fr 0.8fr;
  gap: 44px;
}

.footer h3 {
  margin: 0 0 17px;
  color: #1f1f1f;
  font-size: 17px;
}

.footer-logo img {
  width: 125px;
  margin-bottom: 14px;
  border-radius: 28px;
}

.footer-logo p,
.footer-address p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links,
.footer-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links a,
.footer-address a {
  color: #555;
  font-size: 14px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover,
.footer-address a:hover {
  color: var(--red);
  transform: translateX(-3px);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 25, 32, 0.16);
  border-radius: 12px;
  color: var(--red);
  background: white;
  font-size: 12px;
  font-weight: 800;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: white;
  background: var(--red);
}

.footer-bottom {
  vertical-align: middle;
  margin-top: 45px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e8e8e8;
  color: #888;
  font-size: 13px;
}

@media (max-width: 980px) {
  .glass-nav {
    top: 12px;
    width: calc(100% - 24px);
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .nav-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 100%;
    display: none;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
  }

  .glass-nav.open .nav-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .navButtons {
    flex-direction: column;
    align-items: stretch;
  }

  .navButtons a {
    text-align: center;
  }

  .nav-search {
    width: 100%;
  }

  .header {
    min-height: 680px;
    background-position: center;
  }

  .banner-overlay {
    background: rgba(255, 255, 255, 0.83);
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .faq {
    margin-inline: 24px;
  }

  .hero {
    gap: 35px;
  }

  .faq {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .glass-nav {
    min-height: 66px;
    padding: 7px 12px;
    border-radius: 18px;
  }

  .nav-logo img {
    width: 72px;
    max-height: 46px;
  }

  .header {
    min-height: 620px;
    padding: 130px 24px 55px;
    background-position: 62% center;
  }

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

  .banner-content h1::after {
    margin-inline: auto;
  }

  .banner-actions {
    justify-content: center;
  }

  .products-section {
    padding: 65px 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero {
    margin: 0 14px 65px;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
  }

  .hero-image img {
    min-height: 260px;
  }

  .hero-content {
    padding: 18px 10px 24px;
    text-align: center;
  }

  .faq {
    margin: 0 14px 70px;
    padding: 38px 18px;
    gap: 35px;
  }

  .faq-text {
    text-align: center;
  }

  .faq-accordion {
    padding: 5px 16px;
  }

  .support-time {
    padding: 0;
    border: 0;
  }

  .footer {
    padding: 50px 24px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo,
  .footer-links,
  .footer-address,
  .footer-social {
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
