:root {
  --blue-dark: #0a2647;
  --blue-mid: #1a4a7a;
  --blue-light: #2d7dd2;
  --green: #6abf69;
  --green-light: #a8e6a3;
  --gold: #c9a84c;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --text-muted: #8898aa;
  --border: rgba(10, 38, 71, 0.12);
  --shadow: 0 8px 40px rgba(10, 38, 71, 0.1);
  --radius: 16px;
  --font: "Vazirmatn", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--blue-dark);
  overflow-x: hidden;
  direction: rtl;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-light);
  border-radius: 10px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::before {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text span:first-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
}

.nav-logo-text span:last-child {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-dark);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--blue-dark);
  color: white !important;
  opacity: 1 !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 13px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-light) !important;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 5% 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--blue-dark) 0%,
    var(--blue-mid) 60%,
    #1e5f94 100%
  );
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(106, 191, 105, 0.2);
  border: 1px solid rgba(106, 191, 105, 0.4);
  color: var(--green-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeSlideDown 0.8s ease both;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeSlideDown 0.8s 0.1s ease both;
}

.hero-title em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeSlideDown 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.8s 0.3s ease both;
}

.btn-primary {
  background: var(--green);
  color: var(--blue-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106, 191, 105, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeSlideLeft 1s 0.4s ease both;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 200px;
  transition: transform 0.3s;
}

.hero-stat-card:hover {
  transform: translateX(-4px);
}

.hero-stat-card .num {
  font-size: 36px;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.hero-stat-card .num span {
  font-size: 18px;
  color: var(--green);
}

.hero-stat-card .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translate(30px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* ── WAVE SEPARATOR ── */
.wave {
  display: block;
  width: 100%;
  height: 80px;
  margin-top: -2px;
}

/* ── SECTION BASE ── */
section {
  padding: 90px 5%;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 56px;
  line-height: 1.7;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* ── STATS ── */
.stats-section {
  background: var(--off-white);
  padding: 60px 5%;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}

.stat-num .counter {
  font-size: 48px;
  font-weight: 900;
  color: var(--blue-dark);
  min-width: 2ch;
  display: inline-block;
  text-align: center;
}

.stat-num .unit {
  font-size: 24px;
  color: var(--blue-light);
  flex-shrink: 0;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* ── PRODUCTS ── */
.products-section {
  background: white;
}

.product-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.product-tab {
  background: var(--off-white);
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.product-tab.active {
  background: var(--blue-dark);
  color: white;
}

.product-tab:hover:not(.active) {
  background: var(--border);
  color: var(--blue-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid transparent;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--blue-light);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.product-card:hover {
  border-color: var(--blue-light);
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card:hover::before {
  transform: scaleY(1);
}

.product-icon {
  width: 48px;
  height: 48px;
  background: rgba(10, 38, 71, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-code {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
}

/* ── CATEGORIES ── */
.categories-section {
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.categories-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(45, 125, 210, 0.2) 0%,
    transparent 70%
  );
  top: -200px;
  left: -200px;
}

.categories-section .section-title {
  color: white;
}

.categories-section .section-sub {
  color: rgba(255, 255, 255, 0.5);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.cat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cat-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.cat-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.cat-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.cat-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.cat-count {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(106, 191, 105, 0.15);
  border: 1px solid rgba(106, 191, 105, 0.3);
  color: var(--green-light);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ── PROCESS ── */
.process-section {
  background: var(--off-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 44px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(to left, var(--green), var(--blue-light));
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-num {
  width: 88px;
  height: 88px;
  background: white;
  border: 3px solid var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-dark);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.step:hover .step-num {
  background: var(--blue-dark);
  color: white;
  transform: scale(1.1);
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CERTIFICATIONS ── */
.certs-section {
  background: white;
}

.certs-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.cert-badge {
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  min-width: 160px;
  transition: all 0.3s;
}

.cert-badge:hover {
  border-color: var(--blue-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 38, 71, 0.1);
}

.cert-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.cert-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
}

.cert-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── WHY US ── */
.why-section {
  background: var(--off-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.why-feature:hover .why-feature-icon {
  transform: rotate(10deg) scale(1.1);
}

.why-feature-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.why-feature-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.why-visual {
  background: var(--blue-dark);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.why-visual::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(106, 191, 105, 0.15);
}

.why-visual-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.why-bar {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.why-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.why-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.why-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to left, var(--green), var(--blue-light));
  transition: width 1.5s ease;
  width: 0;
}

.why-bar-fill.animated {
  width: var(--w);
}

/* ── CONTACT ── */
.contact-section {
  background: white;
  display: none;
}

.contact-section.active {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.contact-item-body p {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--blue-dark);
  background: var(--off-white);
  transition: border-color 0.2s;
  outline: none;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-light);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── ORDER SECTION (hidden by default) ── */
.order-section {
  background: var(--off-white);
  display: none;
}

.order-section.active {
  display: block;
}

/* ── FOOTER ── */
footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 5% 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.productivity-login {
  background: #1d9e75 !important;
  border-color: #1d9e75 !important;
  color: #fff !important;
}

.productivity-login:hover {
  background: #15845f !important;
  border-color: #15845f !important;
  color: #fff !important;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.cert-badge {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.cert-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #f8f8f8;
  padding: 8px;
  margin-bottom: 10px;
}

.cert-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.cert-lightbox.active {
  display: flex;
}

.cert-lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 14px;
  background: white;
  padding: 8px;
}

.cert-lightbox-close {
  position: absolute;
  top: 18px;
  left: 24px;
  color: white;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.contact-item-body a {
  color: inherit;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: plaintext;
}

.contact-item-body a:hover {
  color: #1d9e75;
}

.nav-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.nav-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-quick-links a {
  text-decoration: none;
}

.nav-quick-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-quick-links .cta-icon {
  display: none;
  font-size: 16px;
  line-height: 1;
}

/* در دسکتاپ آیکون مخفی بمونه، فقط متن دیده بشه */
@media (min-width: 769px) {
  .nav-quick-links .cta-icon {
    display: none;
  }
}

/* در موبایل فقط آیکون دیده بشه، متن مخفی بشه */
@media (max-width: 768px) {
  .nav-quick-links .nav-cta {
    padding: 9px 10px;
  }

  .nav-quick-links .cta-icon {
    display: inline-block;
  }

  .nav-quick-links .cta-text {
    display: none;
  }
}

#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    z-index: 999;
    padding: 14px;
    margin: 0;
    list-style: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links::-webkit-scrollbar {
    width: 4px;
  }

  .nav-links::-webkit-scrollbar-track {
    background: transparent;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110, 0.35);
    border-radius: 999px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-links .nav-cta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .process-steps::before {
    display: none;
  }
}

/* ── NEW CONTENT SECTIONS ── */
#about .section-sub {
  margin-bottom: 28px;
}

#roadmap .cat-card h4,
#events .cat-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

#roadmap .cat-card p,
#events .cat-card p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
}

#innovation .products-grid,
#news .products-grid {
  max-width: 1120px;
  margin: 0 auto;
}

#innovation .product-card,
#news .product-card {
  min-height: 240px;
  cursor: default;
}

#innovation .product-card:hover,
#news .product-card:hover {
  transform: translateY(-4px);
}

.product-body {
  position: relative;
  z-index: 1;
}

.product-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

.product-body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
}

#news {
  background: var(--off-white);
}

#news .product-card {
  background: white;
  border-color: var(--border);
}

#news .product-card:hover {
  border-color: var(--blue-light);
}

#events {
  background: var(--blue-dark);
}

#gallery .certs-grid {
  max-width: 1120px;
  margin: 0 auto;
}

#gallery .cert-badge {
  overflow: hidden;
}

#gallery .cert-img {
  height: 210px;
}

#gallery .cert-name {
  color: var(--blue-dark);
}

/* ── FOOTER WITH EXTRA COLUMN ── */
.footer-top {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

/* ── ANCHOR OFFSET FOR FIXED NAV ── */
#about,
#roadmap,
#products,
#categories,
#innovation,
#certs,
#why,
#news,
#events,
#gallery,
#contact {
  scroll-margin-top: 90px;
}

/* ── NAV FIT AFTER NEW ITEMS ── */
.nav-links {
  gap: 22px;
}

.nav-links a {
  white-space: nowrap;
}

.productivity-login {
  padding-inline: 18px;
}

/* ── NEW SECTION RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-cta {
    padding-inline: 16px;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #innovation .product-card,
  #news .product-card {
    min-height: auto;
  }

  #gallery .cert-img {
    height: 190px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Gallery Section
========================= */

.gallery-section {
  padding: 110px 6%;
  background:
    radial-gradient(
      circle at top right,
      rgba(29, 158, 117, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(16, 75, 107, 0.08),
      transparent 34%
    ),
    #f4f7fb;
}

.gallery-grid {
  max-width: 1200px;
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 75, 107, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(16, 75, 107, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 65px rgba(16, 75, 107, 0.14);
  border-color: rgba(29, 158, 117, 0.22);
}

.gallery-card-large {
  grid-row: span 2;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-image {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #eaf0f6;
}

.gallery-card-large .gallery-image {
  height: 360px;
}

.gallery-card-wide .gallery-image {
  height: 260px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.06);
}

.gallery-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 34, 50, 0.42),
    rgba(7, 34, 50, 0.04)
  );
  pointer-events: none;
}

.gallery-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #104b6b;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gallery-content {
  padding: 22px;
}

.gallery-content h3 {
  margin: 0 0 10px;
  color: #104b6b;
  font-size: 19px;
  line-height: 1.7;
}

.gallery-content p {
  margin: 0;
  color: #607080;
  font-size: 14px;
  line-height: 2;
}

.gallery-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 158, 117, 0.1);
  color: #1d9e75;
  font-size: 12px;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card-wide {
    grid-column: span 2;
  }

  .gallery-card-large {
    grid-row: span 1;
  }

  .gallery-card-large .gallery-image {
    height: 260px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-section {
    padding: 80px 5%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
  }

  .gallery-card-wide {
    grid-column: span 1;
  }

  .gallery-image,
  .gallery-card-large .gallery-image,
  .gallery-card-wide .gallery-image {
    height: 230px;
  }

  .gallery-content {
    padding: 18px;
  }

  .gallery-content h3 {
    font-size: 17px;
  }

  .gallery-content p {
    font-size: 13px;
  }
}

.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  box-shadow: 0 14px 35px rgba(15, 118, 110, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(20, 184, 166, 0.96);
  box-shadow: 0 18px 45px rgba(15, 118, 110, 0.38);
  transform: translateY(-3px);
}

.back-to-top-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  position: relative;
  display: inline-block;
}

.back-to-top-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.back-to-top-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

.back-to-top-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 768px) {
  .back-to-top {
    left: 16px;
    bottom: 16px;
    height: 42px;
    padding: 0 15px;
  }

  .back-to-top-text {
    font-size: 13px;
  }
}

/* ── BRAND MESSAGE SECTION ── */
.brand-message-section {
  position: relative;
  padding: 110px 5%;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(106, 191, 105, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
  overflow: hidden;
}

.brand-message-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(45, 125, 210, 0.08);
  left: -160px;
  bottom: -160px;
}

.brand-message-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px 56px;
  align-items: center;
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(106, 191, 105, 0.14);
  color: #1d9e75;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
}

.brand-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d9e75;
}

.brand-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.45;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.brand-lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 2;
  color: var(--blue-mid);
  margin-bottom: 18px;
  text-align: justify;
}

.brand-text {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-muted);
  max-width: 650px;
  text-align: justify;
}

.brand-signature {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.brand-signature strong {
  display: block;
  font-size: 17px;
  color: var(--blue-dark);
  margin-bottom: 5px;
}

.brand-signature span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.brand-message-panel {
  position: relative;
}

.brand-message-panel::before {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  opacity: 0.12;
}

.brand-panel-card {
  position: relative;
  border-radius: 30px;
  padding: 34px;
  background: var(--blue-dark);
  box-shadow: 0 24px 70px rgba(10, 38, 71, 0.22);
  overflow: hidden;
}

.brand-panel-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(106, 191, 105, 0.18);
  left: -70px;
  bottom: -80px;
}

.brand-panel-card span {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: var(--green-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.brand-panel-card h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 28px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.brand-panel-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 2;
}

.brand-mini-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.brand-mini-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(10, 38, 71, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.brand-mini-card:hover {
  transform: translateY(-5px);
  border-color: rgba(106, 191, 105, 0.45);
  box-shadow: 0 20px 46px rgba(10, 38, 71, 0.12);
}

.brand-mini-card span {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #1d9e75;
  margin-bottom: 10px;
}

.brand-mini-card h4 {
  font-size: 15px;
  line-height: 1.8;
  color: var(--blue-dark);
}

@media (max-width: 900px) {
  .brand-message-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .brand-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .brand-message-section {
    padding: 80px 5%;
  }

  .brand-lead {
    font-size: 16px;
  }

  .brand-panel-card {
    padding: 26px;
    border-radius: 24px;
  }

  .brand-panel-card h3 {
    font-size: 23px;
  }

  .brand-mini-grid {
    grid-template-columns: 1fr;
  }
}

/*****/
.privacy-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.privacy-modal-overlay.is-open {
  display: flex;
}

.privacy-modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 89vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.privacy-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/********/
/* ===== متغیر ارتفاع نوار ناوبری ===== */
:root {
  --nav-height: 70px; /* اگر ارتفاع واقعی هدرت فرق می‌کنه، همینجا عوضش کن */
}

/* ===== نوار ناوبری اصلی - ثابت در بالای صفحه ===== */
#mainNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff; /* رنگ واقعی پس‌زمینه هدرت */
  height: var(--nav-height, 70px);
}

/* ===== لینک‌های منو ===== */
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

/* دکمه همبرگر - پیش‌فرض مخفی (دسکتاپ) */
.nav-menu-toggle {
  display: none;
}
/* از این رزولوشن به پایین (شامل تبلت) همبرگری فعال بشه */
@media (max-width: 1660px) {
  .nav-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 20px;
    gap: 4px;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

/* بالای 1400px همبرگری همیشه مخفی باشه */
@media (min-width: 1661px) {
  .nav-menu-toggle {
    display: none;
  }
}

/* ===== مودال حریم خصوصی - لیست ===== */
ul.privacy-modal-body {
  padding-inline-start: 44px; /* در مرورگرهای مدرن جهت (RTL/LTR) رو خودکار رعایت می‌کنه */
  padding-right: 44px; /* fallback برای RTL در مرورگرهای قدیمی‌تر */
}

ul.privacy-modal-body li {
  margin-bottom: 8px;
  line-height: 1.9;
}

/* ===== Scroll Spy Active Link ===== */
/* حالت پایه لینک‌ها */
.nav-links a {
  position: relative;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

/* لینک فعال */
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  box-shadow: 0 8px 22px rgba(45, 125, 210, 0.22);
  border-radius: 999px;
  opacity: 1;
  font-weight: 700;
  transform: translateY(-1px);
  padding: 8px 18px;
  min-height: 38px;
  text-align: center;
}

/* hover برای هماهنگی بیشتر */
.nav-links a:hover {
  opacity: 1;
}

/* hover وقتی active نیست */
.nav-links a:not(.active):hover {
  background: rgba(45, 125, 210, 0.08);
  border-radius: 999px;
}

/* خط زیر قبلی حذف شود */
.nav-links a.active::after {
  display: none;
}

/* ===== دکمه نمایش همه محصولات ===== */
.load-more-btn {
  display: block;
  margin: 32px auto 0;
  padding: 14px 40px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}

.load-more-btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.load-more-btn:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

.load-more-btn:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .load-more-btn {
    transition: none;
  }
}

.brand-message-head {
  grid-column: 1 / -1;
}
