/* ======================
   FONTS
   ====================== */
@font-face {
  font-family: "AbarLowFaNum";
  src: url("../fonts/AbarLowFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

/* ======================
   VARIABLES (Medical Tech Light UI)
   ====================== */
:root {
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-primary-light: #e0f2fe;
  
  --color-accent: #0d9488;
  --color-accent-light: #ccfbf1;
  
  --color-bg-body: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-card: #ffffff;
  
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 30px -5px rgba(2, 132, 199, 0.15);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --container-max: 1280px;
}

/* ===== Mobile Typography Tuning ===== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    line-height: 1.7;
  }

  .section {
    padding: 1.5rem 0 !important;
  }

  .section-title {
    font-size: 1.3rem !important;
    margin: 0px 0px -2.5rem !important;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .product-card-title {
    font-size: 1.1rem;
  }

  .product-card-desc {
    font-size: 0.9rem;
  }

  .advantage-card h3 {
    font-size: 1rem;
  }

  .advantage-card p {
    font-size: 0.9rem;
  }
}

/* ======================
   RESET & BASE
   ====================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "AbarLowFaNum", Vazirmatn, Tahoma, system-ui, sans-serif;
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

button, input, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bg-light {
  background-color: var(--color-bg-light);
}

/* ======================
   HEADER
   ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  flex-shrink: 0;
}

.brand-mark-inner {
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 3px;
  position: relative;
}
.brand-mark-inner::after {
  content: "";
  position: absolute;
  top: -4px; right: -4px;
  width: 6px; height: 6px;
  background: var(--color-accent-light);
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ======================
   MAIN NAV
   ====================== */
.main-nav {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-right: auto;
  justify-content: flex-end;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.header-cta {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: var(--color-primary);
  color: white;
}

/* ======================
   HERO SLIDER
   ====================== */
.hero-slider {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  overflow: hidden;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 650px;
  display: flex;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-slide-content {
  flex: 1;
  max-width: 600px;
  padding: 3rem 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero-slide.is-active .hero-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 50px;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-badge-pill {
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.hero-badge-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text-main);
  margin: 0 0 1rem;
}

.hero-title-highlight {
  display: block;
  color: var(--color-primary);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0 0 2rem;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: 500;
}

.icon-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  position: relative;
}
.icon-check::after {
  content: "";
  position: absolute;
  top: 4px; left: 6px;
  width: 4px; height: 8px;
  border: solid var(--color-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-slide-media {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  transform: translateX(-30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.hero-slide.is-active .hero-slide-media {
  transform: translateX(0);
  opacity: 1;
}

.media-frame {
  width: 100%;
  max-width: 550px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  border: 8px solid white;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  background: white;
  padding: 0.5rem 0.8rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.is-active {
  width: 24px;
  border-radius: 10px;
  background: var(--color-primary);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.hero-arrow::before {
  content: "";
  width: 10px; height: 10px;
  border: solid var(--color-text-main);
  border-width: 0 2px 2px 0;
  display: inline-block;
  transition: border-color 0.2s ease;
}
.hero-arrow:hover::before {
  border-color: white;
}

.hero-arrow-next {
  left: 2rem;
}
.hero-arrow-next::before {
  transform: rotate(135deg);
  margin-left: 4px;
}

.hero-arrow-prev {
  right: 2rem;
}
.hero-arrow-prev::before {
  transform: rotate(-45deg);
  margin-right: 4px;
}

/* ======================
   BUTTONS
   ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.btn-ghost {
  background: white;
  color: var(--color-text-main);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  background: var(--color-bg-light);
  border-color: var(--color-text-light);
}

/* ======================
   SECTIONS
   ====================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ======================
   PRODUCTS GRID
   ====================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.product-card-media {
  padding: 1rem;
  background: var(--color-bg-light);
}

.product-media-wrapper,
.product-video-thumb,
.product-video-wrapper {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.product-media-wrapper img,
.product-video-thumb img,
.product-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-video-thumb {
  cursor: pointer;
}

.product-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  transition: background 0.3s;
}
.product-video-thumb:hover::after {
  background: rgba(15, 23, 42, 0.1);
}

.product-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.product-video-thumb:hover .product-video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.product-video-play::before {
  content: "";
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--color-primary);
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  color: var(--color-text-main);
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  flex: 1;
}

.product-card-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.product-card-features-list li {
  font-size: 0.85rem;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
  position: relative;
  padding-right: 1.2rem;
}

.product-card-features-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* ======================
   ADVANTAGES
   ====================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.adv-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.advantage-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  color: var(--color-text-main);
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ======================
   CONTACT
   ====================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info-panel {
  background: var(--color-primary);
  color: white;
  padding: 3rem 2rem;
}

.contact-info-panel h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.contact-info-panel p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 2rem;
  line-height: 1.8;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.c-label {
  font-size: 0.85rem;
  opacity: 0.7;
}

.c-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-form {
  padding: 3rem 2rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--color-bg-light);
  color: var(--color-text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* ======================
   FOOTER
   ====================== */
.site-footer {
  background: var(--color-text-main);
  color: white;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ======================
   MOBILE BOTTOM NAV
   ====================== */
.mobile-bottom-nav {
  display: none;
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */
@media (max-width: 1024px) {
  .hero-slide-inner {
    gap: 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* موبایل */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .brand {
    justify-content: flex-start;
  }

  .main-nav-top {
    display: none;
  }

  .hero-slider-wrapper {
    min-height: auto;
    display: block;          /* تضمین نمایش */
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
  }

  .hero-slide-inner {
    flex-direction: column;
    padding: 2rem 0 6rem;
    text-align: center;
    align-items: flex-start;
  }

  .hero-slide-inner > .hero-slide-content,
  .hero-slide-inner > .hero-slide-media {
    width: 100%;
  }

  .hero-slide-content {
    padding: 1.5rem 0 1rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }
  
  .hero-features {
    align-items: flex-start;
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-slide-media {
    width: 100%;
    justify-content: center;
    transform: translateX(0);
  }

  .media-frame {
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 1rem;
    padding: 0.4rem 0.7rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-info-panel {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.08);
  }

  .mobile-bottom-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0.4rem 0.8rem env(safe-area-inset-bottom, 0.4rem);
    margin: 0;
    list-style: none;
    gap: 0.35rem;
  }

  .mobile-bottom-nav li {
    flex: 1;
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.25rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
  }

  .mobile-bottom-nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
  }

  .mobile-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-nav-label {
    line-height: 1;
  }

  body {
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-field {
    margin-bottom: 1.5rem;
  }

  .btn {
    width: 100%;
  }

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

  .brand-title {
    font-size: 0.95rem;
  }
}







@media (max-width: 768px) {
  .brand-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

