@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Vazirmatn:wght@400;500;600;700;800;900&family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --primary-blue: #164E8A;
  --primary-blue-dark: #0F3561;
  --primary-blue-light: #EBF3FC;
  --accent-orange: #F37021;
  --accent-orange-light: #FFF3EB;
  --accent-yellow: #FDB913;
  --accent-yellow-light: #FFFBEB;
  --bg-white: #FFFFFF;
  --bg-soft: #F6F8FB;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --border-light: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(15, 53, 97, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 53, 97, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 53, 97, 0.12);
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 36px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Persian & Arabic Typography */
html[lang="fa"] body {
  font-family: 'Vazirmatn', 'Plus Jakarta Sans', sans-serif;
}

html[lang="ar"] body {
  font-family: 'Cairo', 'Vazirmatn', 'Plus Jakarta Sans', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar (Odoo minimalist sticky top bar) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

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

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--primary-blue);
}

.lang-btn.active {
  background: var(--bg-white);
  color: var(--primary-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
}

.btn-primary {
  background: var(--primary-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(22, 78, 138, 0.25);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 78, 138, 0.32);
}

.btn-orange {
  background: var(--accent-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(243, 112, 33, 0.25);
}

.btn-orange:hover {
  background: #D95D14;
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--primary-blue);
  border: 1.5px solid #D1D5DB;
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  padding: 10px 14px;
}

.btn-ghost:hover {
  color: var(--primary-blue);
  background: var(--bg-soft);
}

/* Hero Section (Odoo signature white canvas + brush highlights) */
.hero {
  padding: 72px 0 54px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #F4F8FD 0%, #FFFFFF 65%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid rgba(243, 112, 33, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
}

.hero-title {
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  max-width: 920px;
  margin: 0 auto 24px;
}

html[dir="rtl"] .hero-title {
  letter-spacing: 0;
  line-height: 1.32;
}

.highlight-orange {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 6px;
}

.highlight-orange::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 14px;
  background: linear-gradient(90deg, rgba(253, 185, 19, 0.55), rgba(243, 112, 33, 0.45));
  border-radius: 6px;
  z-index: -1;
  transform: rotate(-1deg);
}

.highlight-blue {
  position: relative;
  display: inline-block;
  z-index: 1;
  color: var(--primary-blue);
  padding: 0 6px;
}

.highlight-blue::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 6px;
  background: #3298D4;
  border-radius: 99px;
  z-index: -1;
  opacity: 0.45;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-cta-group .btn {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.hero-note {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.hero-note:hover {
  color: var(--accent-orange);
}

/* Odoo Signature App Grid Section */
.apps-section {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  margin: 12px 20px 64px;
  padding: 68px 24px;
  border: 1px solid #EAEFF5;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 14px;
  line-height: 1.25;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}

.app-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  border: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 78, 138, 0.25);
}

.app-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.app-card:hover .app-icon-box {
  transform: scale(1.07);
}

.app-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--bg-soft);
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.app-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.35;
}

.app-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.app-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-card:hover .app-link {
  color: var(--primary-blue);
}

.apps-bottom-note {
  text-align: center;
  max-width: 640px;
  margin: 42px auto 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Platform Bento / Feature Cards (Odoo "Enterprise software done right" style) */
.platform-section {
  padding: 56px 0 80px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.bento-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid #EAEFF5;
  transition: all 0.22s ease;
}

.bento-card:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 78, 138, 0.2);
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-weight: 800;
}

.bento-icon.blue {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.bento-icon.orange {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
}

.bento-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* How to Get Started (3 Steps from hamyar) */
.steps-section {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  margin: 0 20px 72px;
  padding: 68px 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-white);
  padding: 32px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-blue), #3298D4);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card:nth-child(2) .step-num {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
}

.step-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Ecosystem Split (Workspace + DAFINA) */
.eco-section {
  padding: 20px 0 76px;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.eco-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.eco-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary-blue);
}

.eco-card.orange-top::before {
  background: var(--accent-orange);
}

.eco-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--primary-blue);
}

.eco-card.orange-top h3 {
  color: var(--accent-orange);
}

.eco-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* FAQ Accordion */
.faq-section {
  max-width: 840px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: var(--bg-white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: inherit;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
  display: none;
  border-top: 1px solid #F3F4F6;
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-chevron {
  font-weight: 800;
  color: var(--accent-orange);
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Bottom CTA Banner (Odoo "Unleash your growth potential" style) */
.bottom-cta {
  text-align: center;
  padding: 76px 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FD 100%);
  border-top: 1px solid #EAEFF5;
}

.bottom-cta h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  margin: 0 0 14px;
}

.bottom-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 auto 30px;
  max-width: 580px;
}

/* Dark Footer (Matching Odoo's dark slate/navy footer) */
.footer {
  background: #0D1B2A;
  color: #CBD5E1;
  padding: 60px 0 32px;
}

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

.footer-brand img {
  height: 38px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.94rem;
  color: #94A3B8;
  max-width: 360px;
  margin: 0 0 16px;
}

.footer h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer ul li a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #94A3B8;
}

/* Product Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

html[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 22px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-title-wrap h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-title-wrap p {
  margin: 0;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.98rem;
}

.modal-intro {
  background: var(--bg-soft);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.97rem;
  margin-bottom: 24px;
  border-inline-start: 4px solid var(--accent-orange);
}

.modal-sec-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0 0 14px;
}

.modal-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.modal-features-list li {
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.93rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-features-list li::before {
  content: "✓";
  color: var(--accent-orange);
  font-weight: 900;
  flex-shrink: 0;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.spec-pill {
  background: var(--primary-blue-light);
  color: var(--primary-blue-dark);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .bento-grid, .steps-grid, .eco-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .apps-section, .steps-section {
    margin: 12px 10px 48px;
    padding: 44px 16px;
    border-radius: 24px;
  }
}


/* =========================================================
   ENHANCED NAVIGATION, FLAG SELECTOR, MOBILE DRAWER & PAGES
   ========================================================= */
.navbar-inner {
  height: 74px;
  gap: 12px;
}

.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 36px;
  width: auto;
  max-width: 185px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active-nav {
  color: var(--primary-blue);
}

.nav-links a.active-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Flag Dropdown Language Selector */
.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  padding: 7px 11px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
}

.lang-select-btn:hover {
  border-color: var(--primary-blue);
  background: var(--bg-white);
}

.flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  flex-shrink: 0;
  display: inline-block;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 152px;
  padding: 6px;
  display: none;
  z-index: 250;
}

html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

.lang-select-wrap.open .lang-dropdown-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.lang-option:hover {
  background: var(--bg-soft);
  color: var(--primary-blue);
}

.lang-option.active {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.desktop-cta {
  white-space: nowrap;
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Odoo-Style Slide-Down Mobile Menu Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 24px;
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 190;
}

.mobile-drawer.open {
  display: block;
  animation: drawerSlide 0.2s ease-out;
}

@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.mobile-nav-list a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active-nav {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.mobile-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.mobile-drawer-actions .btn {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
}

/* Sub-Pages (Products, About Us, Contact Us) */
.page-hero {
  padding: 64px 0 42px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #F4F8FD 0%, #FFFFFF 75%);
}

.about-content-box {
  max-width: 860px;
  margin: 0 auto 48px;
  background: var(--bg-soft);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid #EAEFF5;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.85;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 64px;
}

.stat-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-box .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-box .lbl {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  max-width: 1020px;
  margin: 0 auto 76px;
}

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

.contact-card {
  background: var(--bg-soft);
  border: 1px solid #EAEFF5;
  border-radius: var(--radius-md);
  padding: 22px;
}

.contact-card h4 {
  margin: 0 0 6px;
  color: var(--primary-blue);
  font-size: 1.02rem;
}

.contact-card p, .contact-card a {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.96rem;
}

.contact-form-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.c-field {
  margin-bottom: 16px;
}

.c-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.c-field input, .c-field textarea, .c-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

.c-field input:focus, .c-field textarea:focus, .c-field select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Strict Responsive Breakpoints (Fixes 375px overflow completely!) */
@media (max-width: 960px) {
  .nav-links,
  .desktop-cta {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .navbar-inner {
    height: 66px;
  }
  .mobile-drawer {
    top: 66px;
  }
  .brand-logo img {
    height: 30px;
    max-width: 145px;
  }
  .lang-select-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  .stats-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 46px 0 38px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .modal-box {
    padding: 22px 18px;
  }
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   ODOO-STYLE PRODUCTS MEGA-DROPDOWN & CLEAN HOME SHOWCASE
   ========================================================= */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  position: relative;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active-nav {
  color: var(--primary-blue);
}

.nav-dropdown-trigger.active-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--accent-orange);
}

.mega-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 720px;
  max-width: 92vw;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 53, 97, 0.16);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 300;
}

.nav-item-dropdown:hover .mega-dropdown-panel,
.nav-item-dropdown.open .mega-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

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

.mega-app-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-align: start;
}

.mega-app-item:hover {
  background: var(--bg-soft);
  border-color: rgba(22, 78, 138, 0.16);
  transform: translateY(-2px);
}

.mega-app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-app-icon svg {
  width: 20px;
  height: 20px;
}

.mega-app-info {
  min-width: 0;
}

.mega-app-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-app-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-footer a {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.mega-footer a:hover {
  color: var(--accent-orange);
}

/* Mobile Drawer Sub-Accordion for Products */
.mobile-sub-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-sub-toggle:hover,
.mobile-sub-toggle.active-nav {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.mobile-products-sublist {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 10px 10px;
  background: var(--bg-soft);
  border-radius: 12px;
  margin: 4px 0 8px;
  max-height: 260px;
  overflow-y: auto;
}

.mobile-products-sublist.open {
  display: flex;
}

.mobile-products-sublist a {
  padding: 8px 10px !important;
  font-size: 0.88rem !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start !important;
}

/* Clean Home Overview Section (Replaces cluttered 9-card dump on Home) */
.overview-section {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  margin: 12px 20px 64px;
  padding: 68px 24px;
  border: 1px solid #EAEFF5;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto 44px;
}

.pillar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 78, 138, 0.25);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-dark);
}

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

/* Interactive Mini App Strip + Single CTA Button to Products Page */
.app-strip-wrap {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.app-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.app-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.app-pill-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.app-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Dedicated Single Product View inside Products Page (?page=products&module=...) */
.single-module-banner {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 980px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow-md);
}

.single-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .overview-section {
    margin: 12px 10px 48px;
    padding: 44px 16px;
    border-radius: 24px;
  }
}


/* =========================================================
   MEGA-DROPDOWN POSITIONING, Z-INDEX & TEXT OVERFLOW FIX
   ========================================================= */
.navbar {
  z-index: 1000 !important;
}

.mega-dropdown-panel {
  position: fixed !important;
  top: 76px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(8px) !important;
  width: min(860px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  padding: 24px !important;
  z-index: 1100 !important;
  background: #FFFFFF !important;
  box-shadow: 0 28px 70px rgba(13, 27, 42, 0.22) !important;
}

.nav-item-dropdown:hover .mega-dropdown-panel,
.nav-item-dropdown.open .mega-dropdown-panel {
  transform: translateX(-50%) translateY(0) !important;
}

.mega-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.mega-app-item {
  align-items: flex-start !important;
  padding: 12px !important;
}

.mega-app-info {
  flex: 1;
  min-width: 0;
}

.mega-app-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-break: break-word;
  font-size: 0.86rem !important;
  line-height: 1.35 !important;
  margin-bottom: 3px;
}

.mega-app-sub {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 0.76rem !important;
}

@media (max-width: 1080px) {
  .mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* =========================================================
   INTERACTIVE CLICKABLE HOME CARDS & INFO POPUP MODAL
   ========================================================= */
.pillar-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pillar-card-action {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.pillar-card:hover .pillar-card-action {
  color: var(--accent-orange);
}

.pillar-card-action .plus-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.pillar-card:hover .pillar-card-action .plus-badge {
  background: var(--accent-orange);
  color: #FFFFFF;
}

/* Info Popup Modal (for "What is Hamyar?" cards on Home Page) */
.info-modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.22s ease-out;
  border-top: 5px solid var(--accent-orange);
}

.info-modal-box h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-blue);
  padding-inline-end: 36px;
}

.info-modal-box .info-lead {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 14px;
}

.info-modal-box .info-body {
  background: var(--bg-soft);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 24px;
}


/* =========================================================
   SMOOTH HOVER BRIDGE FOR PRODUCTS MEGA-DROPDOWN
   ========================================================= */
.nav-item-dropdown {
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.mega-dropdown-panel {
  top: 72px !important;
}

/* Invisible hover bridge connecting navbar trigger to fixed mega-dropdown */
.mega-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
}


/* =========================================================
   RICH ODOO-STYLE HOME SHOWCASE (MOCKUP, METRICS, QUOTE)
   ========================================================= */
.workspace-mockup-wrap {
  max-width: 1040px;
  margin: 44px auto 12px;
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid #DCE5F0;
  box-shadow: 0 26px 70px rgba(15, 53, 97, 0.13);
  overflow: hidden;
  text-align: start;
}

.mockup-topbar {
  background: #F4F7FB;
  padding: 13px 20px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mockup-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mockup-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.mockup-url-bar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  direction: ltr;
}

.mockup-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid #A7F3D0;
}

.mockup-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  overflow-x: auto;
}

.mockup-tab-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mockup-tab-btn:hover {
  color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.mockup-tab-btn.active {
  background: var(--primary-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(22, 78, 138, 0.22);
}

.mockup-body {
  padding: 24px;
  background: #FAFBFD;
}

.mockup-panel {
  display: none;
}

.mockup-panel.active {
  display: block;
  animation: fadeSlideIn 0.25s ease-out;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.mock-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
}

.mock-kpi-card .k-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mock-kpi-card .k-val {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-blue);
  direction: ltr;
  display: inline-block;
}

.mock-table-wrap {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow-x: auto;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mock-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 700;
  padding: 11px 14px;
  text-align: start;
  border-bottom: 1px solid #E5E7EB;
}

.mock-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-dark);
  font-weight: 600;
}

.mock-badge-ok {
  background: #DCFCE7;
  color: #166534;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.mock-badge-orange {
  background: #FFF3EB;
  color: #D95D14;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Metrics Strip */
.metrics-strip {
  max-width: 1080px;
  margin: 0 auto 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-item {
  background: linear-gradient(135deg, #0F3561 0%, #164E8A 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 53, 97, 0.16);
}

.metric-item:nth-child(2),
.metric-item:nth-child(4) {
  background: linear-gradient(135deg, #EA5B25 0%, #F37021 100%);
}

.metric-item .m-num {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  direction: ltr;
}

.metric-item .m-lbl {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.94;
}

/* Odoo Signature Testimonial Quote Card */
.quote-section {
  max-width: 920px;
  margin: 0 auto 76px;
  padding: 0 24px;
}

.quote-card {
  background: var(--bg-soft);
  border: 1.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 38px 42px;
  position: relative;
  text-align: center;
}

.quote-mark {
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 900;
  color: var(--accent-yellow);
  margin-bottom: 8px;
}

.quote-card blockquote {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.65;
}

.quote-card .q-author {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-blue);
}

@media (max-width: 900px) {
  .mock-kpi-row,
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .mock-kpi-row,
  .metrics-strip {
    grid-template-columns: 1fr;
  }
  .quote-card {
    padding: 28px 20px;
  }
}


/* =========================================================
   INTERACTIVE MOTION STORYBOARD & ORBIT CONVERGENCE STAGE
   ========================================================= */
.motion-showcase-section {
  padding: 54px 0 74px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FD 50%, #FFFFFF 100%);
}

.story-stage-card {
  background: #FFFFFF;
  border: 1.5px solid #DCE5F0;
  border-radius: 28px;
  box-shadow: 0 28px 75px rgba(15, 53, 97, 0.12);
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
}

.story-grid-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
  padding: 44px;
  border-bottom: 1px solid #EEF2F7;
}

.story-grid-row:last-child {
  border-bottom: none;
}

.story-grid-row.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.story-copy h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 14px;
  line-height: 1.3;
}

.story-copy p {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.75;
}

.story-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Scene 1: Circular Orbit -> Merge Into One Unified Core Animation */
.orbit-stage {
  position: relative;
  height: 360px;
  background: radial-gradient(circle at 50% 50%, #EFF6FF 0%, #F8FAFC 70%);
  border-radius: 22px;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.orbit-ring {
  position: absolute;
  width: 268px;
  height: 268px;
  border-radius: 50%;
  border: 1.5px dashed rgba(22, 78, 138, 0.25);
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.orbit-stage.merged .orbit-ring {
  width: 112px;
  height: 112px;
  border-color: var(--accent-orange);
  background: rgba(243, 112, 33, 0.08);
}

.orbit-center-hub {
  position: relative;
  z-index: 5;
  width: 108px;
  height: 108px;
  border-radius: 26px;
  background: #FFFFFF;
  border: 2px solid var(--primary-blue);
  box-shadow: 0 14px 35px rgba(22, 78, 138, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.orbit-stage.merged .orbit-center-hub {
  transform: scale(1.18);
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 12px rgba(243, 112, 33, 0.14), 0 20px 45px rgba(22, 78, 138, 0.3);
}

.orbit-center-hub span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-top: 5px;
  line-height: 1.2;
}

.orbit-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 6px 16px rgba(15, 53, 97, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.orbit-node svg {
  width: 22px;
  height: 22px;
}

.orbit-node-label {
  position: absolute;
  bottom: -18px;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.92);
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  transition: opacity 0.4s ease;
}

/* Position 8 orbital nodes around 134px radius */
.orbit-node[data-pos="0"] { transform: translate(0px, -134px); }
.orbit-node[data-pos="1"] { transform: translate(95px, -95px); }
.orbit-node[data-pos="2"] { transform: translate(134px, 0px); }
.orbit-node[data-pos="3"] { transform: translate(95px, 95px); }
.orbit-node[data-pos="4"] { transform: translate(0px, 134px); }
.orbit-node[data-pos="5"] { transform: translate(-95px, 95px); }
.orbit-node[data-pos="6"] { transform: translate(-134px, 0px); }
.orbit-node[data-pos="7"] { transform: translate(-95px, -95px); }

/* Merged state: all 8 nodes collapse smoothly into the unified Hamyar Core */
.orbit-stage.merged .orbit-node {
  transform: translate(0px, 0px) scale(0.25) !important;
  opacity: 0;
}

/* Scene 2: Multi-Business One-Click Switcher Stage */
.biz-switcher-stage {
  background: #0F233C;
  border-radius: 22px;
  padding: 24px;
  color: #FFFFFF;
  box-shadow: 0 18px 42px rgba(13, 27, 42, 0.22);
}

.biz-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #93C5FD;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.biz-card-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
}

.biz-card-item:last-child {
  margin-bottom: 0;
}

.biz-card-item:hover {
  background: rgba(255, 255, 255, 0.11);
}

.biz-card-item.active-biz {
  background: linear-gradient(135deg, rgba(22, 78, 138, 0.9), rgba(243, 112, 33, 0.28));
  border-color: var(--accent-yellow);
  transform: translateX(4px);
}

html[dir="rtl"] .biz-card-item.active-biz {
  transform: translateX(-4px);
}

.biz-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.biz-meta {
  font-size: 0.77rem;
  color: #CBD5E1;
}

.biz-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}

.biz-card-item.active-biz .biz-check {
  background: var(--accent-orange);
  color: #FFFFFF;
}

/* Scene 3: Web Browser + Installed Desktop/Mobile Hybrid Stage */
.device-sync-stage {
  background: #F4F7FB;
  border: 1px solid #DCE5F0;
  border-radius: 22px;
  padding: 24px;
}

.device-toggle-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.device-mode-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #D1D5DB;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-mode-btn.active {
  background: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--primary-blue);
}

.device-visual-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  min-height: 155px;
}

.sync-node-box {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid #E2E8F0;
  flex: 1;
}

.sync-node-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-blue);
  margin-top: 8px;
}

.sync-node-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sync-pulse-line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-orange);
  font-weight: 900;
  animation: pulseSync 1.4s infinite ease-in-out;
}

@keyframes pulseSync {
  0%, 100% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 900px) {
  .story-grid-row,
  .story-grid-row.reverse {
    grid-template-columns: 1fr;
    padding: 26px 18px;
    gap: 24px;
  }
  .orbit-stage {
    height: 320px;
  }
}


/* =========================================================
   CINEMATIC ENTRANCE MOTION, PARALLAX GRAPHICS & SCROLL FX
   ========================================================= */

/* Top Scroll Progress Indicator Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-blue), #3298D4, var(--accent-orange), var(--accent-yellow));
  z-index: 2000;
  transition: width 0.08s linear;
}

/* Hero Ambient Motion Canvas + Floating Brand Shapes */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.45;
  animation: floatOrb 11s ease-in-out infinite alternate;
}

.hero-orb.orb-blue {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(50, 152, 212, 0.32), rgba(22, 78, 138, 0.05));
  top: -90px;
  left: 8%;
}

.hero-orb.orb-orange {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(243, 112, 33, 0.25), rgba(253, 185, 19, 0.05));
  top: 40px;
  right: 6%;
  animation-delay: -4s;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 78, 138, 0.09) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 78%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 18px) scale(1.07); }
  100% { transform: translate(-18px, 28px) scale(0.96); }
}

/* Floating Live Status Badges Flanking Hero (Odoo-Style Kinetic Callouts) */
.hero-inner-stage {
  position: relative;
  z-index: 2;
}

.hero-float-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid #DCE5F0;
  box-shadow: 0 14px 35px rgba(15, 53, 97, 0.11);
  border-radius: 16px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dark);
  z-index: 3;
  animation: chipBob 5.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-float-chip.chip-left {
  top: 24px;
  left: 10px;
}

.hero-float-chip.chip-right {
  top: 96px;
  right: 10px;
  animation-delay: -2.5s;
}

.hero-float-chip.chip-bottom-left {
  top: 235px;
  left: 24px;
  animation-delay: -1.4s;
}

.hero-float-chip.chip-bottom-right {
  top: 245px;
  right: 24px;
  animation-delay: -3.8s;
}

.chip-icon-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes chipBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

/* Staggered Hero Entrance Cascade (Triggers Immediately on Page Load) */
.hero-anim-1 { opacity: 0; transform: translateY(20px); animation: heroReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards; }
.hero-anim-2 { opacity: 0; transform: translateY(24px); animation: heroReveal 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.16s forwards; }
.hero-anim-3 { opacity: 0; transform: translateY(24px); animation: heroReveal 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards; }
.hero-anim-4 { opacity: 0; transform: translateY(24px); animation: heroReveal 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.40s forwards; }
.hero-anim-5 { opacity: 0; transform: translateY(32px) scale(0.98); animation: heroRevealScale 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.52s forwards; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRevealScale {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animated Brush Stroke Draw Under Hero Highlights */
.highlight-orange::after,
.highlight-blue::after {
  transform-origin: left center;
  animation: brushSweep 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

html[dir="rtl"] .highlight-orange::after,
html[dir="rtl"] .highlight-blue::after {
  transform-origin: right center;
}

@keyframes brushSweep {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* Continuous Slow Rotation on Orbit Ring + Counter-Pulse */
.orbit-ring {
  animation: spinOrbitSlow 28s linear infinite;
}

@keyframes spinOrbitSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Live Radar Pulse on Orbit Center Hub */
.orbit-center-hub::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  border: 2px solid rgba(243, 112, 33, 0.35);
  animation: radarRing 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes radarRing {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* Scroll-Triggered Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1), transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3D Interactive Tilt & Glow Hover on Pillar & Bento Cards */
.pillar-card,
.bento-card,
.step-card,
.eco-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}

.pillar-card:hover .pillar-icon,
.bento-card:hover .bento-icon {
  transform: scale(1.12) rotate(-4deg);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated Live Data Ticker Strip Below Hero */
.live-ticker-bar {
  background: #0F233C;
  color: #E2E8F0;
  padding: 12px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  direction: ltr;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: tickerScroll 32s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1120px) {
  .hero-float-chip {
    display: none;
  }
}


/* =========================================================
   V11 FIX: CLEAN HERO WITHOUT OVERLAPPING FLOATING CHIPS
   + 9-MODULE SELECTOR POPUP MODAL ON HOME PAGE
   ========================================================= */
.hero-float-chip {
  display: none !important;
}

.modules-picker-modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.22s ease-out;
  border-top: 5px solid var(--primary-blue);
}

.modules-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.picker-module-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-soft);
  transition: all 0.2s ease;
  text-align: start;
}

.picker-module-card:hover {
  background: #FFFFFF;
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.picker-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.picker-module-icon svg {
  width: 22px;
  height: 22px;
}

.picker-module-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
}

.picker-module-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-blue);
}

@media (max-width: 820px) {
  .modules-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .modules-picker-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V12 HERO AMBIENT MOTION GRAPHICS & LIVE NUMBER COUNTERS
   ========================================================= */
.hero {
  background: linear-gradient(180deg, #F8FAFD 0%, #FFFFFF 100%) !important;
  position: relative;
  overflow: hidden;
}

#heroNetworkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

/* Subtle Architectural Side Workflow Silhouettes in Hero Background (Zero Text Collision) */
.hero-side-visual {
  position: absolute;
  top: 48px;
  width: 240px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.78;
}

.hero-side-visual.left-vis {
  left: max(16px, calc(50% - 620px));
  animation: floatSlowLeft 7s ease-in-out infinite;
}

.hero-side-visual.right-vis {
  right: max(16px, calc(50% - 620px));
  animation: floatSlowRight 7.5s ease-in-out infinite;
}

@keyframes floatSlowLeft {
  0%, 100% { transform: translateY(0px) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes floatSlowRight {
  0%, 100% { transform: translateY(0px) rotate(1.5deg); }
  50% { transform: translateY(-12px) rotate(-0.5deg); }
}

.glass-mini-widget {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(22, 78, 138, 0.08);
  margin-bottom: 14px;
  text-align: start;
}

.glass-mini-widget .w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.glass-mini-bar {
  height: 6px;
  border-radius: 99px;
  background: #E2E8F0;
  overflow: hidden;
  margin-bottom: 6px;
}

.glass-mini-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  animation: barPulse 3.2s ease-in-out infinite alternate;
}

@keyframes barPulse {
  0% { width: 58%; }
  100% { width: 94%; }
}

.tabular-num {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1240px) {
  .hero-side-visual {
    display: none;
  }
}


/* =========================================================
   V13: RTL/LTR SAFE HERO + ECOSYSTEM NETWORK CANVAS + PIPELINE MOTION
   ========================================================= */
.hero-side-visual {
  display: none !important;
}

.hero {
  background: linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 58px 0 54px !important;
}

/* Subtle architectural square grid + connected ecosystem canvas */
.hero-architectural-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 78, 138, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 78, 138, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0.95) 35%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0.95) 35%, rgba(0,0,0,0) 85%);
  pointer-events: none;
  z-index: 0;
}

#heroNetworkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

/* Clean Centered 4-Pill Feature Bar (Zero Overlap in EN, FA, and AR!) */
.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 760px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 3;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #DCE5F0;
  box-shadow: 0 6px 18px rgba(15, 53, 97, 0.07);
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-pill-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 24px rgba(15, 53, 97, 0.12);
}

.hero-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Fix RTL Hero Title Line Wrapping so Persian & Arabic fit cleanly inside container */
.hero-title {
  max-width: 960px !important;
  padding: 0 12px;
  word-wrap: break-word;
}

html[dir="rtl"] .hero-title {
  font-size: clamp(1.95rem, 4.1vw, 3.35rem) !important;
  line-height: 1.38 !important;
}

/* =========================================================
   NEW MOTION SECTION: LIVE AUTOMATED DATA PIPELINE (BELOW HERO)
   ========================================================= */
.pipeline-motion-section {
  padding: 58px 0 36px;
  background: #FFFFFF;
}

.pipeline-stage {
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0D1F38 0%, #163E70 100%);
  border-radius: 26px;
  padding: 36px 32px;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(13, 31, 56, 0.2);
  position: relative;
  overflow: hidden;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.pipe-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipe-node {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.pipe-node.pulse-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-yellow);
  transform: scale(1.03);
}

.pipe-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pipe-stream {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  position: relative;
}

.stream-track {
  width: 64px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.stream-packet {
  position: absolute;
  top: -2px;
  left: -24px;
  width: 24px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent-yellow), var(--accent-orange));
  animation: packetFlow 1.6s linear infinite;
}

html[dir="rtl"] .stream-packet {
  animation: packetFlowRtl 1.6s linear infinite;
}

@keyframes packetFlow {
  0% { left: -24px; }
  100% { left: 64px; }
}

@keyframes packetFlowRtl {
  0% { right: -24px; left: auto; }
  100% { right: 64px; left: auto; }
}

.pipe-engine-card {
  background: #FFFFFF;
  color: var(--text-dark);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  border: 2px solid var(--accent-orange);
  position: relative;
}

.pipe-engine-card h4 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.pipe-engine-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .pipe-stream {
    transform: rotate(90deg);
    margin: 8px 0;
  }
}


/* =========================================================
   V14 FIX: 2 LEFT + 2 RIGHT HERO PILLS (ZERO RTL OVERLAP)
   + IMMEDIATE VISIBILITY FOR PIPELINE MOTION SECTION
   ========================================================= */
.hero-feature-pills {
  display: none !important;
}

/* Narrower central text block so 2 left + 2 right pills NEVER touch EN, FA, or AR text! */
.hero-inner-stage {
  position: relative;
  z-index: 3;
}

.hero-title {
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(2rem, 3.8vw, 3.25rem) !important;
  line-height: 1.24 !important;
}

html[dir="rtl"] .hero-title {
  max-width: 650px !important;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem) !important;
  line-height: 1.42 !important;
}

.hero-sub {
  max-width: 640px !important;
}

/* 4 Floating Cards: 2 on Left, 2 on Right, pinned safely outside the 680px center column */
.hero-float-chip {
  display: inline-flex !important;
  position: absolute;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1.5px solid #DCE5F0;
  box-shadow: 0 14px 34px rgba(15, 53, 97, 0.11);
  border-radius: 15px;
  padding: 11px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  z-index: 4;
  max-width: 235px;
  text-align: start;
  line-height: 1.35;
  animation: chipBob 5.2s ease-in-out infinite;
  pointer-events: auto;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-float-chip:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px) scale(1.03);
}

.hero-float-chip.chip-left-1 {
  top: 38px;
  left: 0px;
}

.hero-float-chip.chip-left-2 {
  top: 195px;
  left: 14px;
  animation-delay: -1.8s;
}

.hero-float-chip.chip-right-1 {
  top: 38px;
  right: 0px;
  animation-delay: -2.6s;
}

.hero-float-chip.chip-right-2 {
  top: 195px;
  right: 14px;
  animation-delay: -4.1s;
}

@media (max-width: 1160px) {
  .hero-float-chip {
    display: none !important;
  }
}

/* Fix white blank area on Pipeline Motion Section: ensure it is always visible and never stuck at opacity:0 */
.pipeline-motion-section {
  padding: 56px 0 28px !important;
  background: #FFFFFF !important;
  position: relative;
  z-index: 5;
}

.pipeline-stage {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}


/* =========================================================
   V16: 5-COLUMN CATEGORIZED MEGA-DROPDOWN & 14 PRODUCTS GRID
   ========================================================= */
.mega-categorized-panel {
  width: min(1140px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  padding: 24px 26px !important;
}

.mega-cols-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  text-align: start;
}

.mega-cat-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #E2E8F0;
}

.mega-cat-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.38;
  margin-bottom: 4px;
  transition: all 0.18s ease;
}

.mega-cat-link:hover {
  background: var(--bg-soft);
  color: var(--primary-blue);
  transform: translateX(2px);
}

html[dir="rtl"] .mega-cat-link:hover {
  transform: translateX(-2px);
}

.mega-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.soon-tag {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-orange);
  font-size: 0.76rem;
}

.modules-picker-modal {
  max-width: 1040px !important;
}

@media (max-width: 1120px) {
  .mega-cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* =========================================================
   V17 FIX: CLEAN 5-COLUMN MEGA-DROPDOWN WITHOUT OVERLAPPING TEXT
   ========================================================= */
.mega-categorized-panel {
  width: min(1240px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  padding: 24px 26px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(0) !important;
}

.mega-cols-5 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
  text-align: start !important;
}

.mega-cat-col {
  min-width: 0 !important;
  overflow: hidden !important;
  background: #F8FAFC;
  border: 1px solid #EDF2F7;
  border-radius: 14px;
  padding: 14px 12px;
}

.mega-cat-header {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: var(--primary-blue) !important;
  padding-bottom: 8px !important;
  margin-bottom: 10px !important;
  border-bottom: 1.5px solid #DCE5F0 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.mega-cat-link {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 7px 6px !important;
  border-radius: 8px !important;
  font-size: 0.79rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  line-height: 1.42 !important;
  margin-bottom: 6px !important;
  min-width: 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  transition: background 0.16s ease, color 0.16s ease !important;
}

.mega-cat-link:last-child {
  margin-bottom: 0 !important;
}

.mega-cat-link:hover {
  background: #FFFFFF !important;
  color: var(--primary-blue) !important;
  transform: none !important;
  box-shadow: 0 3px 10px rgba(15, 53, 97, 0.06);
}

.mega-cat-link > span:last-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.mega-mini-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  margin-top: 6px !important;
  flex: 0 0 8px !important;
}

.soon-tag {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  color: var(--accent-orange);
  font-size: 0.74rem;
  margin-inline-start: 3px;
}

@media (max-width: 1180px) {
  .mega-cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .mega-cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* =========================================================
   V18: CRISP PRODUCT SECTION HEADINGS, BRAND "hamyar",
   & ENHANCED ABOUT / CONTACT PAGES
   ========================================================= */
.modal-features-list li.feat-group-heading {
  background: var(--primary-blue-light) !important;
  border-color: rgba(22, 78, 138, 0.22) !important;
  color: var(--primary-blue-dark) !important;
  font-weight: 800 !important;
  font-size: 0.98rem !important;
  margin-top: 8px;
}

.modal-features-list li.feat-group-heading::before {
  content: "▸" !important;
  color: var(--accent-orange) !important;
}

.about-content-box p {
  margin-bottom: 16px;
}

.about-content-box p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   V20 FIX: RESPONSIVE MOBILE/TABLET DRAWER SCROLLING
   & NUMBERED GROUPED FEATURE BLOCKS (1. ..., 2. ...)
   ========================================================= */
.mobile-drawer {
  max-height: calc(100vh - 68px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

.mobile-products-sublist {
  max-height: none !important;
  overflow-y: visible !important;
}

.grouped-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.feat-section-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
}

.feat-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--primary-blue-dark);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #DCE5F0;
}

.feat-section-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-section-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feat-section-items li {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feat-section-items li::before {
  content: "✓";
  color: var(--accent-orange);
  font-weight: 900;
  flex-shrink: 0;
}


/* =========================================================
   V21: DIRECT ACCOUNT / CTA / ACTION ROUTING TO CONTACT FORM
   ========================================================= */
.contact-form-card {
  scroll-margin-top: 96px;
}


/* =========================================================
   V22: CLEAN DOCUMENT OUTLINE FORMAT MATCHING WORD DOCS
   (Numbered Bold Section Heading + Clean Bulleted Sub-items)
   ========================================================= */
.doc-outline-wrap {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 28px;
}

.doc-group-block {
  margin-bottom: 24px;
}

.doc-group-block:last-child {
  margin-bottom: 0;
}

.doc-group-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 1.5px solid #D6DEEA;
}

.doc-group-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-group-list li {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 7px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.65;
}

.doc-group-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 4px;
  top: 0;
  color: var(--accent-orange);
  font-weight: 900;
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .doc-outline-wrap {
    padding: 18px 16px;
  }
}


/* =========================================================
   V23 FIX: RELIABLE FIXED MOBILE/TABLET DRAWER SCROLLING
   ========================================================= */
@media (max-width: 960px) {
  .mobile-drawer {
    position: fixed !important;
    top: 66px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    z-index: 990 !important;
    padding-bottom: 48px !important;
  }

  .mobile-products-sublist {
    display: none;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 14px !important;
  }

  .mobile-products-sublist.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .mobile-products-sublist a {
    min-height: 42px;
    line-height: 1.4 !important;
    touch-action: manipulation;
  }
}


/* =========================================================
   V24 FIX: NUMBERED SECTION TITLES WITHOUT BULLETS + LARGER
   TITLE SIZE VS BULLETED SUB-ITEMS BELOW
   ========================================================= */
.doc-group-title {
  display: block !important;
  margin: 0 0 12px !important;
  padding-bottom: 8px !important;
  font-size: 1.24rem !important;
  font-weight: 800 !important;
  color: var(--primary-blue-dark) !important;
  border-bottom: 1.5px solid #D6DEEA !important;
  list-style: none !important;
}

.doc-group-title::before,
.doc-group-title::after {
  content: none !important;
  display: none !important;
}

.doc-group-list {
  list-style: none !important;
  padding-inline-start: 10px !important;
  margin: 0 !important;
}

.doc-group-list li {
  position: relative !important;
  padding-inline-start: 20px !important;
  margin-bottom: 8px !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  line-height: 1.65 !important;
}

.doc-group-list li::before {
  content: "•" !important;
  position: absolute !important;
  inset-inline-start: 4px !important;
  top: 0 !important;
  color: var(--accent-orange) !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
}


/* =========================================================
   V25 FIX: SOLID OPAQUE TOP-LAYER MOBILE/TABLET DRAWER
   SO CONTENT BEHIND IT NEVER BLEEDS THROUGH
   ========================================================= */
@media (max-width: 960px) {
  .mobile-drawer {
    position: fixed !important;
    top: 66px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 66px) !important;
    max-height: none !important;
    background: #FFFFFF !important;
    opacity: 1 !important;
    z-index: 1500 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 18px 16px 110px !important;
    box-shadow: 0 20px 50px rgba(15, 53, 97, 0.25) !important;
  }
}


/* =========================================================
   V26 FIX: DEDICATED CLOSE (×) BUTTON INSIDE MOBILE DRAWER
   & SMOOTH RESPONSIVE MOBILE/TABLET MENU BEHAVIOR
   ========================================================= */
.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #D1D5DB;
  background: var(--bg-soft);
  color: var(--text-dark);
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-drawer-close:hover {
  background: var(--accent-orange-light);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}


/* =========================================================
   V27 STRICT HIERARCHY: NUMBERED TITLES (NO BULLET, LARGER)
   VS SUB-ITEMS (WITH BULLET, STANDARD SIZE)
   ========================================================= */
.doc-outline-wrap {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 6px 0 18px !important;
  margin-bottom: 24px !important;
}

.doc-group-block {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px !important;
}

.doc-group-block:last-child {
  margin-bottom: 0 !important;
}

.doc-group-title {
  display: block !important;
  margin: 0 0 12px 0 !important;
  padding: 0 0 8px 0 !important;
  font-size: 1.24rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: var(--primary-blue-dark) !important;
  border-bottom: 1.5px solid #DCE5F0 !important;
  list-style: none !important;
}

.doc-group-title::before,
.doc-group-title::after {
  content: none !important;
  display: none !important;
}

.doc-group-list {
  list-style: none !important;
  padding-inline-start: 8px !important;
  margin: 0 !important;
}

.doc-group-list li {
  position: relative !important;
  padding-inline-start: 22px !important;
  margin-bottom: 8px !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  line-height: 1.65 !important;
}

.doc-group-list li:last-child {
  margin-bottom: 0 !important;
}

.doc-group-list li::before {
  content: "•" !important;
  position: absolute !important;
  inset-inline-start: 4px !important;
  top: 0 !important;
  color: var(--accent-orange) !important;
  font-weight: 900 !important;
  font-size: 1.08rem !important;
  line-height: 1.55 !important;
}


/* =========================================================
   V28: GUARANTEED "hamyar" LOGO RENDERING + FALLBACK MARK
   ========================================================= */
.hamyar-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hamyar-brand-mark.hamyar-brand-light {
  color: #FFFFFF;
}


/* =========================================================
   V29: RICH ABOUT US & CONTACT US PAGES + GOOGLE MAP EMBED
   ========================================================= */
.about-mission-card {
  max-width: 920px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, #0F3561 0%, #164E8A 100%);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 32px 36px;
  box-shadow: 0 18px 45px rgba(15, 53, 97, 0.16);
}

.mission-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-yellow);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.about-mission-card p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.75;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 56px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto 36px;
}

.timeline-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.tl-year {
  display: inline-block;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.timeline-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto 52px;
}

.why-card {
  background: var(--bg-soft);
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 24px;
}

.why-card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-blue);
}

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

.promise-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto 36px;
}

.promise-box,
.security-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.promise-box {
  border-top: 5px solid var(--accent-orange);
}

.security-box {
  border-top: 5px solid var(--primary-blue);
}

.promise-box h3,
.security-box h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.promise-box .p-sub {
  margin: 0 0 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.promise-box ul,
.security-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.promise-box ul li,
.security-box ul li {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 8px;
  font-size: 0.93rem;
  color: var(--text-dark);
}

.promise-box ul li::before,
.security-box ul li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent-orange);
  font-weight: 900;
}

.values-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto 72px;
}

.val-card {
  background: var(--bg-soft);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 18px;
}

.val-card h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary-blue-dark);
}

.val-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Us Who-to-Talk-To Grid + Socials + Google Map */
.who-talk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 44px;
}

.who-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.who-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.who-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-dark);
}

.who-card p {
  margin: 0 0 16px;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.social-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-blue-light);
  color: var(--primary-blue) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
}

.social-pill:hover {
  background: var(--accent-orange);
  color: #FFFFFF !important;
}

.map-section-card {
  max-width: 1020px;
  margin: 0 auto 76px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-header-row {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
}

.map-header-row h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.map-header-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

.map-iframe-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

@media (max-width: 960px) {
  .glance-grid,
  .why-grid,
  .who-talk-grid,
  .values-4-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-grid,
  .promise-values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .glance-grid,
  .why-grid,
  .who-talk-grid,
  .values-4-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V30: SUBTLE CONNECTED NETWORK BACKGROUND ON ABOUT & CONTACT
   + ANIMATED COUNTERS STARTING SMOOTHLY FROM 0
   ========================================================= */
.subpage-network-hero {
  position: relative;
  overflow: hidden;
}

.subpage-network-hero > .container {
  position: relative;
  z-index: 2;
}

.subpage-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}


/* =========================================================
   V38: VISUAL HTML SITEMAP PAGE STYLES
   ========================================================= */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sitemap-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.sitemap-card h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue-light);
}

.sitemap-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sitemap-cat-box {
  background: var(--bg-soft);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 18px;
}

.sitemap-cat-box h4 {
  margin: 0 0 10px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  position: relative;
  padding-inline-start: 16px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.sitemap-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent-orange);
  font-weight: 900;
}

.sitemap-list li a {
  color: var(--text-dark);
}

.sitemap-list li a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  .sitemap-card[style*="span 2"] {
    grid-column: span 1 !important;
  }
  .sitemap-cats-grid {
    grid-template-columns: 1fr;
  }
}


.spa-view { display: none; }
.spa-view.active { display: block; }
