/* ============================================
   مهان تک توان الکترونیک — Home BESS / RTL Persian Corporate Site
   ============================================ */

:root {
  --primary: #00a651;
  --primary-dark: #008c44;
  --primary-light: #e8f7ef;
  --secondary: #0a2540;
  --secondary-light: #1a3a5c;
  --accent: #f5a623;
  --text: #333;
  --text-muted: #666;
  --text-light: #999;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --bg-dark: #0a2540;
  --border: #e5e8eb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
  --header-h: 80px;
  --container: 1200px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul, ol { list-style: none; }

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

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

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.section-label {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-outline-dark {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-dark:hover {
  background: var(--secondary);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ========== Top Bar ========== */
.top-bar {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a:hover { color: var(--primary); }

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar i { margin-left: 6px; color: var(--primary); }

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: var(--header-h);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.logo-text .brand span { color: var(--primary); }

.logo-text .tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--secondary);
  border-radius: 6px;
  transition: all var(--transition);
}

.nav > li > a:hover,
.nav > li.active > a {
  color: var(--primary);
  background: var(--primary-light);
}

.nav > li > a .arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.nav > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
  border: 1px solid var(--border);
}

.nav > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text);
  transition: all var(--transition);
}

.dropdown li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-right: 26px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--secondary);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.55) 55%, rgba(0, 166, 81, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
  padding: 80px 0;
}

.hero-content .badge {
  display: inline-block;
  background: rgba(0, 166, 81, 0.25);
  border: 1px solid rgba(0, 166, 81, 0.5);
  color: #7dffb3;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.35;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero-dots button.active {
  background: var(--primary);
  border-color: var(--primary);
  width: 32px;
  border-radius: 6px;
}

/* ========== Stats ========== */
.stats {
  background: var(--primary);
  color: #fff;
  padding: 40px 0;
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-item .label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* ========== Sections ========== */
.section {
  padding: 80px 0;
}

.section-gray { background: var(--bg-gray); }
.section-dark {
  background: var(--secondary);
  color: #fff;
}

.section-dark h2,
.section-dark h3 { color: #fff; }

/* ========== Solutions Cards ========== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  group: true;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.solution-card .img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.solution-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card:hover .img-wrap img {
  transform: scale(1.08);
}

.solution-card .body {
  padding: 22px;
}

.solution-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solution-card .link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.solution-card .link:hover { color: var(--primary-dark); }

/* ========== Product Feature ========== */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-feature.reverse {
  direction: ltr;
}

.product-feature.reverse > * {
  direction: rtl;
}

.product-feature .img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-feature .img-box img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-feature h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.product-feature .model {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1rem;
}

.feature-list {
  margin: 20px 0 28px;
}

.feature-list li {
  position: relative;
  padding: 8px 0 8px 0;
  padding-right: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ========== Services / Features Icons ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Products Grid ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.product-card .img-wrap {
  height: 200px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .body {
  padding: 22px;
}

.product-card .cat {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ========== Cloud / Monitoring CTA ========== */
.cta-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: #fff;
  min-height: 320px;
}

.cta-banner .content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1rem;
}

.cta-banner .img-side {
  position: relative;
  min-height: 280px;
}

.cta-banner .img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ========== News ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.news-card .img-wrap {
  height: 180px;
  overflow: hidden;
}

.news-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .img-wrap img {
  transform: scale(1.06);
}

.news-card .body {
  padding: 22px;
}

.news-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-meta .cat-tag {
  color: var(--primary);
  font-weight: 600;
}

.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Video Section ========== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card video,
.video-card .video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  gap: 12px;
  font-size: 0.9rem;
}

.video-placeholder .play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.video-card .body {
  padding: 16px 20px;
}

.video-card h3 {
  font-size: 0.98rem;
}

/* ========== About Page ========== */
.page-banner {
  background: var(--secondary);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0 60px;
  color: #fff;
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.92), rgba(0, 166, 81, 0.45));
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { opacity: 0.6; }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-intro h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.about-intro p {
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: justify;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vision-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.vision-card .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.vision-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.vision-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding: 0 60px 40px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-item .year {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.form-group label .req { color: #e74c3c; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-gray);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: right;
  padding: 18px 22px;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text .brand { color: #fff; }
.footer-brand .logo-text .tagline { color: rgba(255, 255, 255, 0.5); }

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--primary);
  padding-right: 6px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========== Contact Form bottom ========== */
.inquiry-section {
  background: var(--bg-gray);
  padding: 60px 0;
}

.inquiry-form {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.inquiry-form h2 {
  text-align: center;
  margin-bottom: 8px;
}

.inquiry-form > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ========== Back to top ========== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 166, 81, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ========== Mobile menu ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s ease;
  overflow-y: auto;
  padding: 20px;
}

.mobile-nav.open { right: 0; }

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--secondary);
}

.mobile-nav ul li a {
  display: block;
  padding: 12px 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
}

.mobile-nav ul li a:hover { color: var(--primary); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1999;
}

.mobile-overlay.show { display: block; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-feature { grid-template-columns: 1fr; }
  .product-feature.reverse { direction: rtl; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .img-side { min-height: 220px; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }

  .hero-content h1 { font-size: 1.8rem; }
  .hero { min-height: 480px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }

  .solutions-grid,
  .products-grid,
  .news-grid,
  .videos-grid,
  .features-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .header { height: 64px; }
  :root { --header-h: 64px; }
  .logo img { height: 40px; }
}

/* Logo placeholder */
.logo-placeholder {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.partner-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 28px;
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.partner-badge span {
  color: var(--primary);
}
